blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff8f86292617a8597edc809076063b0f6261283c | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/SiamFC/src/dataset.py | 83c8e8c6e3e8ce864c6d87af664d12aa08b25bc6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 5,068 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
8eeaa0ca64e1bf2b2d43b5a3ce16af064f666d4a | 67a442ecabcdca9f54f5920874d0095d57f98ede | /gewittergefahr/gg_utils/dilation_test.py | ffb5a2725b02b9dd7ffdc08e4b856685a7be3f54 | [
"MIT"
] | permissive | thunderhoser/GewitterGefahr | 58ba3446c1cc154f56c12c4354dff05b34c12b13 | 1835a71ababb7ad7e47bfa19e62948d466559d56 | refs/heads/master | 2022-07-23T06:47:13.883598 | 2022-07-15T12:43:48 | 2022-07-15T12:43:48 | 104,016,785 | 29 | 13 | MIT | 2020-12-18T20:44:33 | 2017-09-19T02:37:21 | Python | UTF-8 | Python | false | false | 2,662 | py | """Unit tests for dilation.py."""
import unittest
import numpy
from gewittergefahr.gg_utils import dilation
TOLERANCE = 1e-6
SMALL_PERCENTILE = 12.5
LARGE_PERCENTILE = 87.5
DILATION_HALF_WIDTH_IN_PIXELS = 1
INPUT_MATRIX = numpy.array(
[[-20., -15., -10., -5., 0.],
[-10., -5., 0., 5., 10.],
[0., 5., 10.... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
570d5e82d5c6785c52442478d82a296869969b12 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/authorization/v20180501/policy_set_definition_at_management_group.py | 319473b88f6f90a3be594135a1f64be8fef76212 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 16,443 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
22393b19c5fb7be5e9fe08ffa8f211847a997248 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20201101/get_load_balancer.py | fd9af3d72c16c5bbcb5d9fd47aa696d0901401e7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,378 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
2282c152c06546a82f340c485eafb5b3ed595424 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/graphql/checkout/mutations/__init__.py | 7718967b325810e573ce4fd4fe617dcc87905933 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 1,556 | py | from .checkout_add_promo_code import CheckoutAddPromoCode
from .checkout_billing_address_update import CheckoutBillingAddressUpdate
from .checkout_complete import CheckoutComplete
from .checkout_create import CheckoutCreate
from .checkout_customer_attach import CheckoutCustomerAttach
from .checkout_customer_detach impo... | [
"noreply@github.com"
] | quangtynu.noreply@github.com |
838f2f8902ca4fdcf743b209c0a1ff7c7ab3412d | 229ed0dad61f9e855de604c230d034a0bd9b3882 | /EdabitPractice/evenOddCounter.py | 06c675245b08e406cfb9c3b1124f90e1dd4de379 | [] | no_license | Darrenrodricks/EdabitPythonPractice | 987d534dd149ddaef6219df381df850eabbe80b2 | c1be8b10a6fcc1085640a1128f022c05fb2890a9 | refs/heads/main | 2023-07-17T00:36:43.772435 | 2021-08-31T16:24:07 | 2021-08-31T16:24:07 | 400,630,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # Python program to count Even and Odd numbers in a List
# Input: list1 = [2, 7, 5, 64, 14]
# Output: Even = 3, odd = 2
a = 0
b = 0
list1 = [2, 7, 5, 64, 14]
for i in range(0, len(list1)):
if i % 2 == 0:
a += 1
else:
b += 1
print("There are {} Even, and {} Odd".format(a, b)) | [
"noreply@github.com"
] | Darrenrodricks.noreply@github.com |
9cca242910678dbdb4fce620cc6f69091f65087c | 539b031a4edd1aec31af5b6658f25a0de03776a4 | /strings_and_text/sub_re_groups1.py | b91fbc11289d3b5f5a17a2b714d35dde5bec785c | [] | no_license | leogtzr/python-cookbook-code-snippets | c517e7f14e468e1aa8def71d3389348150d43085 | a3f189c26ba38bc982dd140b3b4d6326b39671dc | refs/heads/main | 2023-01-23T07:16:30.292456 | 2020-11-28T04:29:42 | 2020-11-28T04:29:42 | 309,217,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import re
from calendar import month_abbr
def change_date(m):
mon_name = month_abbr[int(m.group(1))]
return '[{}] ({}) |{}|'.format(m.group(2), mon_name, m.group(3))
datepat = re.compile(r'(\d+)/(\d+)/(\d+)')
text = 'Today is 11/27/2012. PyCon starts 3/13/2013.'
# a substitution callback function
print(dat... | [
"leogutierrezramirez@gmail.com"
] | leogutierrezramirez@gmail.com |
0998ba915d80be9aaf99b9cef30acdb467528d1c | 2e145222a18d4509d937951f5cec4df0e26ee86f | /vas/gemfire/CacheServerInstances.py | 9405a719dd10335d0ccd1c552ba07c8a6ef1c57d | [
"Apache-2.0"
] | permissive | vdreamakitex/vas-python-api | 7627b7e3fcf76c16b1ea8b9fb670fdb708eff083 | ce7148a2044863e078e78b47abbaafc426f732ee | refs/heads/master | 2021-01-18T05:13:25.459916 | 2012-11-05T09:58:45 | 2012-11-05T09:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | # vFabric Administration Server API
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | [
"bhale@vmware.com"
] | bhale@vmware.com |
53bc8edebb6fabc73a2cacad23ca6d8b08fa9b0a | 16450d59c820298f8803fd40a1ffa2dd5887e103 | /baekjoon/2667.py | b85ee7659586696418e866ced977042046429337 | [] | no_license | egyeasy/TIL_public | f78c11f81d159eedb420f5fa177c05d310c4a039 | e2f40eda09cb0a65cc064d9ba9b0e2fa7cbbcb38 | refs/heads/master | 2021-06-21T01:22:16.516777 | 2021-02-02T13:16:21 | 2021-02-02T13:16:21 | 167,803,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | """
<그림 1>과 같이 정사각형 모양의 지도가 있다. 1은 집이 있는 곳을, 0은 집이 없는 곳을 나타낸다. 철수는 이 지도를 가지고 연결된 집들의 모임인 단지를 정의하고, 단지에 번호를 붙이려 한다. 여기서 연결되었다는 것은 어떤 집이 좌우, 혹은 아래위로 다른 집이 있는 경우를 말한다. 대각선상에 집이 있는 경우는 연결된 것이 아니다. <그림 2>는 <그림 1>을 단지별로 번호를 붙인 것이다. 지도를 입력하여 단지수를 출력하고, 각 단지에 속하는 집의 수를 오름차순으로 정렬하여 출력하는 프로그램을 작성하시오.
> input
첫 번째 줄에는 지도의 크기 N(정... | [
"dz1120@gmail.com"
] | dz1120@gmail.com |
49f6016496073d31808c5ceda4ff0bb6ac102c09 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/ml/azure-ai-ml/tests/compute/unittests/test_compute_operations.py | ecfc11bd07cf4aafd9e8a34abaa324d6be10f0af | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 4,501 | py | from typing import Callable
from unittest.mock import Mock
import pytest
import vcr
from pytest_mock import MockFixture
from azure.ai.ml import load_compute
from azure.ai.ml._scope_dependent_operations import OperationConfig, OperationScope
from azure.ai.ml.entities import AmlCompute, Compute, ComputeInstance, Identi... | [
"noreply@github.com"
] | gaoyp830.noreply@github.com |
6229d71ac4298b44124dd4b8e60fbc94f362f721 | 22f57701df31b3182f3bcb83da729ecc584f8fb6 | /December-12/py_anuppriya_revsinglylinkedlist.py | eca33e40110bce5169894193a53714e455c02d79 | [] | no_license | Prashant-Bharaj/A-December-of-Algorithms | e88640c711abbe2e6cac71cb4652dac243984484 | 7bbd56572f4ddc9648e90615ee810765544c56e4 | refs/heads/master | 2023-08-05T15:37:20.362561 | 2021-09-19T05:51:53 | 2021-09-19T05:51:53 | 287,055,360 | 0 | 0 | null | 2020-08-12T15:53:05 | 2020-08-12T15:53:04 | null | UTF-8 | Python | false | false | 995 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def reverse(self):
prev = None
current = self.head
while(current is not None):
... | [
"noreply@github.com"
] | Prashant-Bharaj.noreply@github.com |
21e0c6271798aca723cc58befb65b2e755533138 | 3f95904666cbecc5a65605e86f8b4dfe4797f8c5 | /seven/timeseries.py | e08993380af5ac04c418f257f7f805c290abffe5 | [] | no_license | rlowrance/test7 | 60b2778e19d91c357304637d3e73d74c9bcd3b79 | 3535bd46bff602fc3ba35c080d38b30e75a97fe7 | refs/heads/master | 2021-07-18T11:42:20.784873 | 2017-10-24T14:27:52 | 2017-10-24T14:27:52 | 97,166,588 | 2 | 5 | null | 2017-08-16T15:06:16 | 2017-07-13T21:32:41 | Python | UTF-8 | Python | false | false | 11,582 | py | '''time series prediction
Copyright 2017 Roy E. Lowrance
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
e8c2786ad69cfccec2ad37b66382443519baed1a | 59fb17c240b261040026d713a6ac9c97d6a9f265 | /gym/gym/envs/registration.py | 18519749167fe193d8d2cb3b3348653ae837fd17 | [
"MIT"
] | permissive | dmeger/TeachingImitation | 3fb97499e76929959913266f127154f6ae5a8e99 | 5f4dba7e49987924c3d55cd27579cad4c71ef7a4 | refs/heads/master | 2023-03-28T13:25:01.307382 | 2021-04-06T15:07:08 | 2021-04-06T15:07:08 | 355,223,500 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | import re
import copy
import importlib
import warnings
from gym import error, logger
# This format is true today, but it's *not* an official spec.
# [username/](env-name)-v(version) env-name is group 1, version is group 2
#
# 2016-10-31: We're experimentally expanding the environment ID format
# to incl... | [
"david.meger@gmail.com"
] | david.meger@gmail.com |
5a34b1c2505774cc28123bf7867e9d5b84e9422c | ea5de3d347ef4e1dcac9ee37da2d9850888d9ecc | /pawn_brotherhood.py | 57460c2b269a4526698cd78561b3aa401f2e81a2 | [] | no_license | skoriy88/Chekio | 4d50c18c54741c425d468a80a24ceb526a13dabe | fcbc291ca624cb9d5415128e605ea27d5e50983e | refs/heads/master | 2020-03-18T11:26:09.966384 | 2018-05-25T13:52:54 | 2018-05-25T13:52:54 | 134,671,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | lst = {"b4", "d4", "f4", "c3", "e3", "g5", "d2"}
def safe_pawns(inp):
new = {(ord(i[0]), int(i[1])) for i in inp}
safe = sum(1 for pawn in new if(pawn[0]-1, pawn[1]-1) in new or (pawn[0]+1, pawn[1]-1) in new)
#print(safe)
return safe
safe_pawns(lst)
'''
print(ord('a'))
print(ord('b'))
print(ord('c'))
... | [
"skoriy88@gmail.com"
] | skoriy88@gmail.com |
fe4a6346bcb9bbbbbfa99d1e0c34646eaaeeb80d | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/mlrRecon/607-tideGauge.py | 5d3a5857f4fc004b496e5aaa6fe495475221f2de | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,255 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
----------------------------------------------------
This program is designed to reconstruct merra daily
maximum surge using MLR
----------------------------------------------------
@author: Michael Tadesse
"""
def reconstruct():
"""
run KFOLD me... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
0c952f5626c7a7187c2ce0175469a5ae5d62cbc9 | 26a0941b02286518e382fe86daa0dd5c0f596a9a | /stage_scenes.py | 26bf98175d74488c0e99843bcaa5d0d4709e9ced | [
"MIT"
] | permissive | Gargaran/videos | 729c3c7e91cb20e5377b5e397b3b90ea91e3f8a1 | 26458da42fc665eb4ae844168c16ebb0526cc231 | refs/heads/master | 2023-08-22T16:36:33.235479 | 2021-10-06T22:48:08 | 2021-10-06T22:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | #!/usr/bin/env python
import inspect
import os
import sys
import importlib
from manimlib.config import get_module
from manimlib.extract_scene import is_child_scene
def get_sorted_scene_classes(module_name):
module = get_module(module_name)
if hasattr(module, "SCENES_IN_ORDER"):
return module.SCENES_I... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
926a6e5c2f8e14ca41571537b899f12932268bbd | 5258903bb9cdeedf13a7101aa98e82c915914974 | /curriculum/migrations/0001_initial.py | d9ad40787e5dfc4ba0c58df54e9178a4392de19e | [
"BSD-2-Clause"
] | permissive | ZuluPro/django-cv | 7328e4f3e30ecfef7c5e6e598d5b95986ed7dbe9 | 64a7fda155d7052642484ebc9a7e7822d73ea1b0 | refs/heads/master | 2020-05-29T18:12:29.262859 | 2016-06-12T23:13:11 | 2016-06-12T23:13:11 | 45,745,590 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 29,493 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import curriculum.models.utils
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Certification',
fields=[
... | [
"montheanthony@hotmail.com"
] | montheanthony@hotmail.com |
852411151db8afff623d48a858ba720238508dd7 | faaf12ab18978082233c09628b815a69e73868e4 | /codechef/practice/easy/lebombs.py | 3c70653a1ff04cd448e8e83575cc876a870c045a | [
"WTFPL"
] | permissive | ferhatelmas/algo | 6826bcf0be782cb102c1ee20dce8d4345e1fd6d2 | 7b867f6d2c8a9fb896f464168b50dfc115617e56 | refs/heads/master | 2023-08-18T19:59:58.435696 | 2023-08-14T10:16:00 | 2023-08-14T10:16:00 | 3,813,734 | 27 | 16 | WTFPL | 2020-10-25T23:00:16 | 2012-03-23T23:43:31 | Java | UTF-8 | Python | false | false | 229 | py | from sys import stdin
from itertools import groupby
for i, ln in enumerate(stdin):
if i > 0 and i % 2 == 0:
s = "0" + ln.rstrip() + "0"
print(sum(max(len(list(g)) - 2, 0) for k, g in groupby(s) if k == "0"))
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
0271e2bd69581d5e5dc88b564ddc46e9e59ed80e | 06289aabd78e6a0e5e5ab8360fffbf9a8504d615 | /api/budget/serializers/expense_serializer.py | 0f5fd044d6751912c22d145c7efad0ab32499638 | [] | no_license | jtclayt/finance_planner_api | 6ca8130c761999abc01e03429a0676c0c803b640 | 06cd592e479145cbeb6acad4574021ef7515b33b | refs/heads/main | 2023-08-15T02:20:34.455483 | 2021-09-22T16:15:49 | 2021-09-22T16:15:49 | 409,044,817 | 0 | 0 | null | 2021-09-22T05:08:48 | 2021-09-22T02:54:50 | Python | UTF-8 | Python | false | false | 627 | py | from rest_framework import serializers
from ..models.budget import Budget
from ..models.expense import Expense
class ExpenseSerializer(serializers.HyperlinkedModelSerializer):
'''Serializer for list view of expenses'''
url = serializers.HyperlinkedIdentityField(view_name='budget:expense-detail')
budget =... | [
"jt.clayton92@yahoo.com"
] | jt.clayton92@yahoo.com |
5ef953377a82188de0c437031ecd64571429c4dd | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/special-array-with-x-elements-greater-than-or-equal-x.py | 01c11c68d89db61b02579b98174c1831b10e0923 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 3,409 | py | # Time: O(n)
# Space: O(1)
# counting sort solution
class Solution(object):
def specialArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
MAX_NUM = 1000
count = [0]*(MAX_NUM+1)
for num in nums:
count[num] += 1
n = len(nums)
... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
d17776b6855dfcc141feea8086af080f6d09fc11 | 8bcf5bf18f6e9c1d5871ef8a88ef5921e03e9b02 | /koldunov/api/urls.py | a4efa9857dea75f924535c42e25c43c5803313cc | [] | no_license | volgoweb/rest_example | 73f5fc26cce45c0aae49247768f74ffa2f4c01d4 | 7ee8b87914d6c69c80158e7e22a6b454c3e7f76b | refs/heads/master | 2021-01-10T01:32:44.098668 | 2017-09-05T12:42:00 | 2017-09-05T12:42:00 | 51,444,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from rest_framework import routers
from .views.product_views import CategoryViewSet, ItemViewSet
from .views.stat_views import StatViewSet
router = routers.SimpleRouter()
router.register(r'category', CategoryViewSet)
router.register(r'item', ItemViewSet)
router.register(r'stat', StatViewSet)
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
fb28d6bd690ff888dfd3ea29b317ae4cf3d2be7a | 8eca0a7a9ae207113f9f9ed98d093cbe21ffcd8a | /Maths_based_problems/grid_unique_paths/solution2_dp.py | eed4c34ad0482d36605fb37189b7a03c658eb218 | [] | no_license | Ranjit007ai/-Interviewbit-Maths | 3238c720bb5e0765eef0e0e1a39549eff1ba788d | 044627422fc38ee3e5aaa9cbfc8f00398d1f9bb5 | refs/heads/main | 2023-03-25T06:06:14.206384 | 2021-03-27T14:38:16 | 2021-03-27T14:38:16 | 352,065,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | def unique_paths(m,n):
dp = [[0]*n for _ in range(0,m)]
# each position in dp show the no of way to reach their
# now the first row and first col will be 1 ,since their is 1 way to traverse from one position to another in single row or column vector
for row in range(0,m):
dp[row][0] = 1
... | [
"noreply@github.com"
] | Ranjit007ai.noreply@github.com |
b3096c51d5f0148b23157700f003b048c28d4cb6 | efd6c1d24b0a392a177679429d53dd2f515d0d95 | /bi_auth/migrations/0001_initial.py | fd577d05d960ad8b413cd4b9a52c1be60fe0f81b | [] | no_license | mitshel/TakedaAnalitic | 5ccfb4aa83a056cbeaebce03df41819c7ece7985 | b04b08fb053bff238a1ce68df423f99314827b48 | refs/heads/master | 2021-07-02T21:27:10.023816 | 2019-02-14T14:32:18 | 2019-02-14T14:32:42 | 153,908,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | # Generated by Django 2.1.2 on 2018-12-15 11:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mitshel@mail.ru"
] | mitshel@mail.ru |
5fe19acc4de946e7408e43a378612cded89edc88 | aa91f6e8d59286f65e7f6ed065823c80b7694439 | /scripts/analysis/baostock/yangxian/yangxian.py | adf483a1883a24304215af71aef322817a97af98 | [
"MIT"
] | permissive | davidyuqiwei/davidyu_stock | 7f93bcc2c50a0e2c356e3b517dbf7e2e7467093f | c234911f49d5980f2dff651333f8ca957333e094 | refs/heads/master | 2023-01-07T02:08:04.330559 | 2023-01-02T16:31:37 | 2023-01-02T16:31:37 | 163,694,812 | 13 | 2 | null | 2022-12-18T03:55:10 | 2018-12-31T20:07:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,725 | py | from davidyu_cfg import *
from functions.data_dir import *
from functions.get_datetime import *
from functions.run_combine_all_csv import *
from functions.colNames import *
from functions.day_history.kLines import klineDate
from functions.LinearReg import *
from functions.common.dfProcess import *
from functions.common... | [
"davidyuqiwei@outlook.com"
] | davidyuqiwei@outlook.com |
34ea96fab7aa2f5a03931e3a87d652ab5f3e629e | f6b5f0d72f3e5deb8a913d0a6d541ef3ad5445cb | /braintree/transaction.py | 5c5a315ac43e7831732e7dec0f4ba96100d19ceb | [
"MIT"
] | permissive | hathawsh/braintree_python | bf056a4d2b8c8b8094f2c876cea4782dc92c715a | 4ec0f3696438b8c2117f5917834e67ddbf3ebdc7 | refs/heads/master | 2021-01-16T00:04:08.883102 | 2013-07-23T22:11:32 | 2013-07-23T22:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,913 | py | import braintree
import urllib
import warnings
from decimal import Decimal
from braintree.add_on import AddOn
from braintree.disbursement_detail import DisbursementDetail
from braintree.discount import Discount
from braintree.successful_result import SuccessfulResult
from braintree.status_event import StatusEvent
from ... | [
"code@getbraintree.com"
] | code@getbraintree.com |
b468d83e6f86299cc5a6da5cc3813594132a55dc | 30b232051b10753e9103a70d88a387dfa1aca63f | /164.py | 2f3c183e1682f60665db64f6c436ac296f2bf23b | [] | no_license | samrithasudhagar/guvi2 | fe6d7af8a73cef515991524d7abad754c3700dc5 | f7eb8a8b2cd701c2708c414939cc139414d3310d | refs/heads/master | 2020-04-20T12:27:47.748859 | 2019-05-26T09:45:42 | 2019-05-26T09:45:42 | 168,843,977 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | n,k=map(int,input().split())
l=list(map(int,input().split()))
m=0
if k in l:
print(k)
else:
for i in l:
if i>m and i <k:
m=i
print(m)
| [
"noreply@github.com"
] | samrithasudhagar.noreply@github.com |
8fb33330b1462f23987648fc31eb06140b7e5caa | 1e03cd80d27d35ffdc8f68f70a36a461eaae4b9d | /apps/common/views.py | 9da3528729470edad1fb1663ca5e9291ee3c0179 | [] | no_license | paddy375691/flask_zlbbs | bee8f15497c58bd5f1f614d6a686b93301f93d0a | 90fb142b33aecca6ff66013953ecf6e3e39b6139 | refs/heads/master | 2023-02-04T07:55:00.798789 | 2020-12-25T08:51:13 | 2020-12-25T08:51:13 | 324,265,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py |
from flask import Blueprint
bp = Blueprint('common', __name__, url_prefix='/common')
@bp.route('/')
def index():
return 'common index'
| [
"you@example.com"
] | you@example.com |
3ad52e8c095b3ad50975940c78e30707311ab01e | 32ba9f1c35ae916d33b121daeeea8e1910a447d7 | /utils/tag.py | 99083b27f2ee3987fa2f8e96f2665c4f0533c66f | [
"MIT"
] | permissive | rituparna/glTools | 8b02fa2751e1b997f7a202c7df8a3dd3d3032722 | c512a96c20ba7a4ee93a123690b626bb408a8fcd | refs/heads/master | 2020-03-19T19:23:47.684580 | 2018-06-10T23:53:58 | 2018-06-10T23:53:58 | 136,853,456 | 0 | 0 | null | 2018-06-10T23:46:54 | 2018-06-10T23:46:53 | null | UTF-8 | Python | false | false | 2,893 | py | import maya.cmds as mc
import glTools.tools.namingConvention
class Tag( object ):
def __init__(self):
'''
'''
self.nameTagAttr = 'nameTag'
def addNameTag(self,control,tag):
'''
Set the name tag value for the specified control
'''
# Check control
if not mc.objExists(control): raise Exception('... | [
"grant@bungnoid.com"
] | grant@bungnoid.com |
e037ce0f746846b6294b60c884db7209be1e7464 | efbc8c73e9ac5cbcb9321518ab06b3965369a5f0 | /SWEA/D2/1974_스도쿠 검증.py | 5c70e3a29c30f7e85436a3f0b4edb86ade4466a6 | [] | no_license | AshOil/APS | 56b9395dcbb8eeec87a047407d4326b879481612 | fe5a2cd63448fcc4b11b5e5bc060976234ed8eea | refs/heads/master | 2023-07-15T17:32:20.684742 | 2021-08-23T13:04:05 | 2021-08-23T13:04:05 | 283,709,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | import sys
sys.stdin = open('input_data/1974.txt',"r")
num_dict = {}
T = int(input())
for t in range(1, T+1):
for tt in range(1,10):
num_dict[tt] = list(map(int, input() .split()))
result = True
# 가로부터 검사하자
for hori in num_dict.values():
if sorted(hori) != [1, 2, 3, 4, 5, 6, 7, 8, 9]:... | [
"ka0@kakao.com"
] | ka0@kakao.com |
49adb1a0d02abd33be4f5345e463f2839479722a | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/short/max_pwr/job18.py | 8d86f952590173e5884246a93a2efab702b53071 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,216 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
1fc74891fa1324f804b07585e2b154d9b49afdf6 | de681ebfa95a07c04fbb1280bf722847b06ee548 | /migrations/versions/3fd0d7bc25ea_create_tag_model.py | c5297e733152e5145f95a89eca64b85173b984bb | [] | no_license | Dzhoker/flask-lessons | 156957ed29a674df474cfc6b8cdca12adae021d7 | 590e436516dbd8a3a9af4ad33aafbc854088a6aa | refs/heads/master | 2023-03-18T09:44:19.431920 | 2021-02-18T02:52:07 | 2021-02-18T02:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | """create Tag model
Revision ID: 3fd0d7bc25ea
Revises: 1b2fd89e61b5
Create Date: 2021-01-12 07:40:03.728879
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3fd0d7bc25ea'
down_revision = '1b2fd89e61b5'
branch_labels = None
depends_on = None
def upgrade():
... | [
"surenkhorenyan@gmail.com"
] | surenkhorenyan@gmail.com |
12180bacf865e009ab34847ca2fc32c7d48d7f9b | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_ddos_custom_policies_operations.py | 9bdb5268477680f052fb35e51b998db264bd5970 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 19,277 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
b332b14aa6f86a6013de1b87f5c0920504478890 | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/870.矩阵中的幻方.py | 00fdbac5b41f5978d6246140777b7c174e01c850 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 870.矩阵中的幻方.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
1bd246b511bcb25535f008e43dec5d7633a97690 | 2c112f781016f2022dc7ff1c616b1f57185fe8f8 | /tests/conftest.py | 34a2935ba0d6d69229c0b0455e16b60a8fcb1f85 | [] | no_license | dominicgs/Website | c15312a5b081b42db880b99df6811c8c04777824 | fc3587daacff20ec3ab590df121c9f693f09a8ce | refs/heads/master | 2020-03-21T16:49:07.492309 | 2018-06-26T21:41:50 | 2018-06-26T21:41:50 | 64,015,414 | 0 | 1 | null | 2016-07-23T12:33:16 | 2016-07-23T12:33:16 | null | UTF-8 | Python | false | false | 2,265 | py | " PyTest Config. This contains global-level pytest fixtures. "
import os
import os.path
import pytest
import shutil
from models.user import User
from main import create_app, db as db_obj, Mail
from utils import CreateBankAccounts, CreateTickets
@pytest.fixture(scope="module")
def app():
""" Fixture to provide an ... | [
"russ@garrett.co.uk"
] | russ@garrett.co.uk |
c80abae38d1dabb5dfaa1cc1b9606faa528421bd | 13b72e5c48f5f7213d9a569f699dc1554bc363dd | /demo/libdemo/list_git__repos.py | 35f238aa8d2d69b1030b7d8cfefa92fded15d932 | [] | no_license | srikanthpragada/PYTHON_02_MAR_2021 | 6997fece4ad627bb767c0bca5a5e166369087e68 | 5dfd0c471378bd22379ac0d66f8785d4d315017b | refs/heads/master | 2023-04-04T20:28:22.738042 | 2021-04-17T14:19:48 | 2021-04-17T14:19:48 | 344,498,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import requests
user = "srikanthpragada"
response = requests.get(f"https://api.github.com/users/{user}/repos")
if response.status_code != 200:
print(f"Sorry! Could not get details for {user} from github!")
exit()
repos = response.json() # Convert JSON to dict
for repo in repos:
print(repo['name'])
pri... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
e1f046bf1125c305df03d5d353029498f0cbe882 | 56d41bbc6b5d831ba699ad4a44f5880ba3d195c8 | /thread_sync.py | bcd0c1730eb098adb4c5bb1a0e3dc4d595662b6d | [] | no_license | pigliangliang/2018-07-05-08 | 4635e4dc1926f3f17eae7f607a0b188f6aaf9f43 | ba95331f4b0cc0316377a5c67f86d03e8cc257b8 | refs/heads/master | 2020-03-22T08:51:08.209718 | 2018-07-08T07:58:06 | 2018-07-08T07:58:06 | 139,795,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | #author_by zhuxiaoliang
#2018-07-05 下午3:39
"""
A. Semaphore(信号量)
在多线程编程中,为了防止不同的线程同时对一个公用的资源(比如全部变量)进行修改,需要进行同时访问的数量(通常是1)的限制。信号量同步基于内部计数器,每调用一次acquire(),计数器减1;每调用一次release(),计数器加1.当计数器为0时,acquire()调用被阻塞。
"""
import time
from random import random
from threading import Thread,Semaphore,enumerate
sema = Semaphore... | [
"836904717@qq.com"
] | 836904717@qq.com |
6844ce56ffa18f4d971b348110a9f410a1502c7e | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/input/func_noerror_yield_assign_py25.py | f40d8d96e837e9022fc2596b23ce8733990a450c | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 387 | py | """http://www.logilab.org/ticket/8771"""
from __future__ import print_function
def generator():
"""yield as assignment"""
yield 45
xxxx = yield 123
print(xxxx)
def generator_fp1(seq):
"""W0631 false positive"""
for val in seq:
pass
for val in seq:
yield val
def generator_... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
40dbe20a67504c37c5be2abfab99add67569df21 | 585bac463cb1919ac697391ff130bbced73d6307 | /36_ValidSudoku/solution1.py | 91569e66f6dee678a57f5dd30000308804bcd22a | [] | no_license | llgeek/leetcode | ce236cf3d3e3084933a7a4a5e8c7766f7f407285 | 4d340a45fb2e9459d47cbe179ebfa7a82e5f1b8c | refs/heads/master | 2021-01-22T23:44:13.318127 | 2020-03-11T00:59:05 | 2020-03-11T00:59:05 | 85,667,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
seen = set()
for i in range(len(board)):
for j in range(len(board[0])):
val = board[i][j]
if val == '.': continue
if str(val) + 'in row ' + str(i) in seen:
... | [
"angleflycll@gmail.com"
] | angleflycll@gmail.com |
bf439e9862b4ae08f44e047b1d51ff58c9ae6f67 | c6666d0235d1d03ed9a5a2d1a3cfa9ccc9d9e88c | /webcore/migrations/0001_initial.py | bc167afd1bfb17d3738481c8cc02fc4ac5b3fcf0 | [] | no_license | boiyelove/savingsensei | 67dc8a5690c7599dd126159837af6e567852aa73 | 8acd46ebd770b9e18f64e14ff08bfd2ddbcc0edc | refs/heads/master | 2021-10-20T01:32:10.775234 | 2019-02-25T03:27:31 | 2019-02-25T03:27:31 | 172,426,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-20 12:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Banner'... | [
"daahrmmieboiye@gmail.com"
] | daahrmmieboiye@gmail.com |
4b1ecbe8bfc1dfb288e7e30b8ba859c26d6a53c9 | b13ca274b4463c9900840ee6516094b7509b6041 | /empower/lvapp/lvaphandler.py | b5c42204161a1e3cc0f451116cafa63d304a1803 | [
"Apache-2.0"
] | permissive | imec-idlab/sdn_wifi_manager | 09d206f2f649aa715752d3c44e011d3f54faf592 | eda52649f855722fdec1d02e25a28c61a8fbda06 | refs/heads/master | 2021-06-23T08:03:22.482931 | 2020-12-03T11:30:10 | 2020-12-03T11:30:10 | 162,106,793 | 0 | 0 | Apache-2.0 | 2019-03-27T16:23:31 | 2018-12-17T09:33:47 | Python | UTF-8 | Python | false | false | 3,522 | py | #!/usr/bin/env python3
#
# Copyright (c) 2016 Roberto Riggio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"pedroisolani@gmail.com"
] | pedroisolani@gmail.com |
1e273a85868f0f6b461bfd41551779c6a908e717 | eab72229ae04d1160704cbf90a08a582802a739c | /pipeline.py | 951739aed5ac7ad0818e105dbff2397a48108344 | [
"MIT"
] | permissive | megatazm/Crowd-Counting | 444d39b0e3d6e98995f53badf4c073829038b6b7 | 647a055baccee2c3b6b780f38930e2ffd14d1664 | refs/heads/master | 2022-04-01T04:49:16.409675 | 2020-01-31T21:24:02 | 2020-01-31T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import os
# Crop area
#os.system("python3 crop.py")
## APPROACH 1 MCNN
os.system("python3 put_zero_image.py")
os.system("python3 test.py")
os.system("python3 put_zero_den.py")
os.system("python3 find_people.py")
os.system("python3 position.py")
## APPROACH 2 - RNN
#os.system("python3 tiny_face_eval.py --weig... | [
"gpsunicamp016@gmail.com"
] | gpsunicamp016@gmail.com |
934e6966fbd17ae8a420204911909a52151bbaf6 | 8d5f49fa1fda8ffc473e7f5a62786c77838a5820 | /website/load_tests/drawquest/test_scripts/utils.py | e305eef730b14c15bd7911f0cf1ade88885204ff | [
"BSD-3-Clause"
] | permissive | MichaelBechHansen/drawquest-web | dfc6f5d9541860a5df23db678e82564a230bd42e | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | refs/heads/master | 2021-01-14T10:30:10.861222 | 2015-11-10T03:13:42 | 2015-11-10T03:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | import json
import uuid
import requests
PASSWORD = 'testpassword'
#QUEST_ID = 658
#QUEST_ID = 926 #staging smilie
QUEST_ID = 7004
PLAYBACK_DATA = ''
TEST_USERNAME = 'test_account__'
TEST_PASSWORD = 'testaccount'
class ApiError(Exception):
pass
class HttpError(Exception):
pass
class ApiConsumer(object)... | [
"alex.ehlke@gmail.com"
] | alex.ehlke@gmail.com |
5dbd16bad92c13444eb77d53b650fba51d099460 | 7f8cebd9315129bcdb7ef220dc449cda26a19ce4 | /models/aetanh.py | bcff65d94ee5b2f960314125e4beb4f15db6e754 | [] | no_license | KaiqianZhang/dpcca_v8 | 75477b1768905b6c41838c8da9ff77fba13b5a45 | 1b65fc0c3ec6b182907ba070e859c1d92fc98942 | refs/heads/master | 2020-08-30T09:32:58.485684 | 2019-11-11T17:34:55 | 2019-11-11T17:34:55 | 218,334,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | """=============================================================================
Autoencoder.
============================================================================="""
import numpy as np
from torch import nn
# ------------------------------------------------------------------------------
class AETanH(nn.Mod... | [
"ggundersen@gmail.com"
] | ggundersen@gmail.com |
5824f026706f22fed9333ce3b0f3cdc2674fb5cf | afb7d4d6013b6a9022d707d5835a3dd578214b2e | /Bite_172.py | d38f7db655c51e87afd6b54e249df6347f9a2efa | [] | no_license | JB0925/Bites | 86f0bd49d8b53376257c14df280ae0a9643139a2 | f884ce4ffd7ce39afcea5b86a80cec14c607a4f0 | refs/heads/master | 2023-03-29T21:48:42.849729 | 2021-03-29T01:37:48 | 2021-03-29T01:37:48 | 316,419,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from functools import partial
# create 2 partials:
# - 'rounder_int' rounds to int (0 places)
# - 'rounder_detailed' rounds to 4 places
rounder_int = 0
rounder_detailed = 0
def round_to_int(num, places):
return round(num, places)
rounder_int = partial(round_to_int, places=0)
rounder_detailed = partial(round_... | [
"jbrink0925@gmail.com"
] | jbrink0925@gmail.com |
6bb7901debec9f9ddd547ba4fb9d52462ca74c58 | fa45fe7eaba7ef7c27ecf95db7c460ca189ce0d4 | /everydays/BookBeingRead/python高级编程/day12.1.py | 0d2033516213b11dfa91ea44119d6e37e17ceb4c | [] | no_license | jake20001/Hello | be1a2bb5331f2ad4c1d8f30c6a9a530aff79e605 | 08217871bb17152eb09e68cd154937ebe5d59d2c | refs/heads/master | 2021-07-10T09:48:15.883716 | 2021-04-23T14:49:03 | 2021-04-23T14:49:03 | 56,282,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding:utf-8 -*-
# -------------------------------
# ProjectName : autoDemo
# Author : zhangjk
# CreateTime : 2020/12/18 11:05
# FileName : day12.1
# Description :
# --------------------------------
import os
class DublinCoreAdapter(object):
def __init__(self,filename):
self._filename = filename
... | [
"jianke.zhang@beantechs.com"
] | jianke.zhang@beantechs.com |
12036ced2dc9a7de9f3d4d79fc1ad4e7fbcbe6cd | 8fef8af953e8dafde78c671e8ee9813d08ab2d60 | /trees/BST/LowestCommAncestor.py | f1e104c3496e69731c8a6af520b879abc8aa4736 | [
"MIT"
] | permissive | htrahddis-hub/DSA-Together-HacktoberFest | 037b009c744863070e0f1b61167c18f9101335f2 | a5c6165c449c5b5b91e56815f2a38d5fd23bf354 | refs/heads/main | 2023-08-23T18:52:55.654386 | 2021-10-17T15:45:14 | 2021-10-17T15:45:14 | 418,180,825 | 1 | 0 | MIT | 2021-10-17T15:56:21 | 2021-10-17T15:56:21 | null | UTF-8 | Python | false | false | 2,808 | py | # Link to the problem :https://practice.geeksforgeeks.org/problems/lowest-common-ancestor-in-a-bst/1#
#Function to find the lowest common ancestor in a BST.
# We are looking for a node which is closest to both the nodes
def LCA(root, n1, n2):
#code here.
while(root):
# If the root is greater than ... | [
"dsrao0712@gmail.com"
] | dsrao0712@gmail.com |
1eba6ca236ff4f6105330a8c2c4442d3537a21a8 | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/scikit-learn_test_results/conflicts/52_bench_sgd_covertype_actual.py | f88cf076b4bf0da384e6c9ba249ccf1ec8f143b1 | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | """
================================
Covertype dataset with dense SGD
================================
Benchmark stochastic gradient descent (SGD), Liblinear, and Naive Bayes, CART
(decision tree), RandomForest and Extra-Trees on the forest covertype dataset of
Blackard, Jock, and Dean [1]. The dataset comprises 581,0... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
516ddce9995ee16a9c3d14b282864b36283da25f | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/eve/common/lib/eveLocalization/__init__.py | a26d9acf4f873ae1332caf2913e0b18ee75e8119 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\common\lib\eveLocalization\__init__.py
from _evelocalization import * | [
"victorique.de.blois@asu.edu"
] | victorique.de.blois@asu.edu |
9107cd52b4f5cb29c06fa7c3b10e07dbb89fe3a2 | e230e3c1d6935d36b7074390f096d782cabd75af | /dailyfresh/settings.py | 520e1cbe63fe0018a6d3e7702bc98f883808c38e | [] | no_license | PeterZhangxing/dailyfresh_ori | 603e7e42457d27ffefb6a4601f9b6826a3a55a6f | 19b6d667d6f49a528aeb6f4430e2537c933936f0 | refs/heads/master | 2020-12-02T01:41:32.160278 | 2019-12-30T04:24:50 | 2019-12-30T04:24:50 | 230,846,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,607 | py | """
Django settings for dailyfresh project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os... | [
"964725349@qq.com"
] | 964725349@qq.com |
c564381b8a3786274c292ddc6a57ed24ad1e6895 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03681/s311284212.py | d8b25fb6e7dd6d5384882806daa8e1c440d5c178 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | n, m = map(int, input().split())
mod = 10 ** 9 + 7
if abs(n - m) >= 2:
print(0)
else:
res = 1
for i in range(1, n+1):
res = res * i % mod
for i in range(1, m+1):
res = res * i % mod
if abs(n - m) == 1:
print(res)
else:
print(res * 2 % mod) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fbc9661d70e561d78342cfa587b4a738aa00e9e6 | c85ec43e50f81f8e20c883eae9e06a5c8c621f8e | /caldera/utils/__init__.py | b2967128d628a732cece629c50a123db23a166f8 | [
"MIT"
] | permissive | jvrana/caldera | b6cc0faed560df6bfa15a3f460fed4ea18b8a55a | a346324e77f20739e00a82f97530dda4906f59dd | refs/heads/master | 2023-04-27T04:19:05.499430 | 2021-03-09T16:37:50 | 2021-03-09T16:37:50 | 266,161,720 | 0 | 0 | MIT | 2020-08-12T01:40:48 | 2020-05-22T16:49:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,795 | py | r"""
Caldera utility functions.
.. autosummary::
:toctree: generated/
dict_join
# pairwise
Indexing
--------
.. autosummary::
:toctree: generated/
reindex_tensor
unravel_index
Tensor
------
Utilities for :class:`torch.Tensor`
.. autosummary::
:toctree: generated/
scatter_coo
... | [
"justin.vrana@gmail.com"
] | justin.vrana@gmail.com |
db704e6bc73086f4b513638afc26cfca69671862 | 4618c0152d45bcb5f54e298661a1479c643353f4 | /pyengine/api/v1/GetProductDetail.py | d47126c2ec1ccde23882d215ccd30c526680ccaf | [] | no_license | pyengine/catalog | 07312fb7606f6ff0b7e55359740af4a4e5d509f4 | 2403563c1f93d988466a12b870ce25475b0d1d92 | refs/heads/master | 2021-01-10T04:47:24.200088 | 2016-04-13T15:04:47 | 2016-04-13T15:04:47 | 55,772,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from pyengine.lib.error import *
from pyengine.lib.command import Command
class GetProductDetail(Command):
# Request Parameter Info
req_params = {
'uuid': ('r', 'str'),
}
def __init__(self, api_request):
super(self.__class__, self).__init__(api_request)
def execute(self):
... | [
"choonho.son@gmail.com"
] | choonho.son@gmail.com |
1f8eb3d5d29c1b02e07895acc3f612ee67858941 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/routing_system/interface/loopback/ipv6/ipv6_config/address/ipv6_address/__init__.py | 0eecc2d4add5bb3dd32255bc3b601767a6121cd0 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,516 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
f6d5e74ffb4eeffb6b0b056154516157ac157cef | 1edf3c5a83c3d9d1fe63a38a67db667c89ee0642 | /botTester/unpredictable.py | 0d9e45bcfb074f7611b9ecea581d00d73c3ce08a | [] | no_license | roctbb/GoTo | e0ebbb9a70cd4c123a43d980299da043bc8537c2 | 6ba9cca18e106acc2e6d441dd98b597e397ec211 | refs/heads/master | 2020-05-21T20:13:52.486735 | 2018-11-18T09:38:35 | 2018-11-18T09:38:35 | 61,876,224 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | __author__ = 'roctbb'
from random import choice
def step(history):
return choice(["камень", "ножницы","бумага"]) | [
"roctbb@gmail.com"
] | roctbb@gmail.com |
abf7eb515ae21d5ef3f410269569113c07252f57 | 22b3e3b9d5137575f4a9c8b70703ffaecfe9a5a8 | /gauss1.py | 34384098fbae7656a4f61a8bb77a8c6f8855db6d | [] | no_license | abdcelikkanat/expemb | d2cee75fa5b533a294a3da2349cef326c627fc2e | e5180e9bceceba507cf4d6438541ea6d6ca541ab | refs/heads/master | 2020-03-22T09:58:20.236304 | 2018-07-18T15:53:14 | 2018-07-18T15:53:14 | 139,872,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,350 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"abdcelikkanat@gmail.com"
] | abdcelikkanat@gmail.com |
0f40308406e38359eb00bd87c471b5f1ff5f6778 | 0fba89a7703d883231decbb5b748d4df22832e6a | /recipe_scrapers/_decorators.py | 87fb968ea2b97ba5373f8906f7b9acf4f19879ef | [
"MIT"
] | permissive | tobiaghiraldini/recipe-scrapers | c66f1fb448f6e696677ec95d43a595be8470e890 | 1ced80d25dcc6e88877c26187990f112f3134e67 | refs/heads/master | 2022-07-04T20:31:07.114353 | 2020-05-20T10:42:26 | 2020-05-20T10:42:26 | 262,996,294 | 0 | 0 | MIT | 2020-05-11T09:23:45 | 2020-05-11T09:23:45 | null | UTF-8 | Python | false | false | 1,895 | py | import functools
from language_tags import tags
from ._schemaorg import SchemaOrgException
class Decorators:
@staticmethod
def schema_org_priority(decorated):
"""
Use SchemaOrg parser with priority (if there's data in it)
On exception raised - continue by default.
If there's ... | [
"hhursev@gmail.com"
] | hhursev@gmail.com |
d9e5e750b84c63450d958537f59dbc8b3863f3b4 | 2194df5490666825d382e6e47bd33139b1faf0df | /vtools/videotoimage.py | ff6b9cb5e919adadbff64930f5eb8a56adafd551 | [] | no_license | aiporre/video_tools | a88a3134c6148bd384c71e846aeab49da6bfab8e | f955c22fc7259a4b45592f522bb80f0533e6093d | refs/heads/master | 2021-08-02T21:03:53.344844 | 2021-07-28T16:45:57 | 2021-07-28T16:45:57 | 213,970,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,568 | py | import cv2
import argparse
import os
from tqdm import tqdm
class VideoToImage(object):
def __init__(self, src=0, output_path = './', extension = '.jpg', prefix='frame_', padding=-1):
# Create a VideoCapture object
self.capture = cv2.VideoCapture(src)
self.output_path = output_path
... | [
"ariel.iporre.rivas@gmail.com"
] | ariel.iporre.rivas@gmail.com |
dab5a55c04a4f4242ed5725c95704470f8d27791 | aa30891b324f86fe9c6a3eeeb6a9b8ae64b7d81d | /ex043.py | 3f7ab5d16e10be268d9e4f0765ca04086af2ad88 | [] | no_license | JoamirS/Exercicios-Python | 0055c5f73b9d0fb2d5d780c620bb0c4840c7d1b8 | 09b74babdfdf7142254a8d14132859e52f7b52b6 | refs/heads/master | 2023-08-31T13:21:03.310332 | 2023-08-26T03:42:58 | 2023-08-26T03:42:58 | 178,745,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | '''
Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule seu IMC e mostre seu status, de acordo
com a tabela abaixo:
- Abaixo de 18.5: Abaixo do Peso | - Entre 18.5 e 25: Peso ideal | 25 até 30: Sobrepeso | 30 até 40: Obesidade
- Acima de 40: Obesidade Morbida
'''
#Declarando as variá... | [
"jmrsilveira@outlook.com"
] | jmrsilveira@outlook.com |
caa5d7f22e33db8b41abcb461289fd84c5a814ee | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/78/24413/submittedfiles/main.py | eab508f3756a8f0f59276fbd4bed79017c152c6b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # -*- coding: utf-8 -*-
from __future__ import division
import funcoes
#COMECE AQUI
m=int(input('digite o valor de m:')
e=input('digite o valor de epsilon:')
m=funcoes.absoluto(m)
pi=funcoes.pi(m)
cosseno=funcoes.cosseno(pi/5,e)
razaoaurea=funcoes.razaoaurea(m,e)
print('%.15f' %pi)
print('%.15f' %razaoaurea)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b0b53b387467c7290b49d7c01a16691b782d9100 | 951b605ea41da28dccba6d3de63fb9211b7ad5b1 | /Mains/main.py | f3cabc1b8e650a5af81217b1b118a57e8a7327f4 | [
"MIT"
] | permissive | tiangeluo/DefectiveCNN | 99296f7a86efd3c4d044701f4e94388989cbd66a | fdbf5235adffa846630fadb4ff910de50870c077 | refs/heads/master | 2022-01-29T14:23:10.198712 | 2022-01-08T22:20:54 | 2022-01-08T22:20:54 | 222,830,775 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,648 | py | '''Train CIFAR10 with PyTorch.'''
from __future__ import print_function
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import torchvision.transforms as transforms
import os
import argparse
#from models import *
f... | [
"tiangelce@gmail.com"
] | tiangelce@gmail.com |
e47a993956b0cf5a138d15c01e3ad44563245394 | 023167de90034d0ac4e3695db5d0fc419e298247 | /flash_examples/serve/translation/inference_server.py | f8f9c8dbce012db0f244cc5b81026cd00ef424f8 | [
"Apache-2.0"
] | permissive | dlangerm/lightning-flash | 9e66e90f86d597d362e5c307e391b623f509c092 | 892f7594fff40ebc4333b62a5c4e73b02549fb82 | refs/heads/master | 2023-08-06T22:11:56.467679 | 2021-09-29T11:00:22 | 2021-09-29T11:00:22 | 406,909,766 | 0 | 0 | Apache-2.0 | 2021-09-15T20:04:16 | 2021-09-15T20:04:15 | null | UTF-8 | Python | false | false | 754 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | dlangerm.noreply@github.com |
13b2b9c390f93b4c58274db5a361c530327c3a2b | bbe74f172bf1f1cca1c77bd249c6f9a97ca897a4 | /probs11-20/prob13.py | 0e84fcee2846a2e45db91e51d3eefd773b8d39cf | [] | no_license | kruthar/euler | 5b32b7780502ff82e855c0c9670c91aff3938c5d | 18a59531f2108074de3a7db29a77017663753abc | refs/heads/master | 2021-01-13T13:19:54.723543 | 2016-02-22T14:53:45 | 2016-02-22T14:53:45 | 52,280,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,357 | py | __author__ = 'kruthar'
'''
Large Sum
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406... | [
"kruthar@gmail.com"
] | kruthar@gmail.com |
19a5eb94d0a3c8ccb52b085d6825e08f5a8062ca | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /atcoder/soundhound2018-summer-qual/c.py | 93091c2550ea9792540a7ddf7fe97eb7d9c2060f | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | Python | false | false | 296 | py | #!/usr/bin/env python3
# https://soundhound2018-summer-qual.contest.atcoder.jp/tasks/soundhound2018_summer_qual_c
n, m, d = map(int, input().split())
if d == 0: print('{:.10f}'.format((m - 1) / n))
else:
t = n * (n - 1) // 2
print('{:.10f}'.format((m - 1) * (n - 1) * (n - d) / (t * n)))
| [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
8a2eb862ad50edda68a729d3dc9f11fc97df64e8 | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /examples/docs_snippets/docs_snippets_tests/concepts_tests/resources_tests/test_resources.py | 5e07b899452a7f25971b2a9d834e8dd7bb8a8a0f | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 1,581 | py | from dagster import build_init_resource_context, build_op_context
from docs_snippets.concepts.resources.resources import (
cereal_fetcher,
connect,
db_connection,
db_resource,
do_database_stuff_dev,
do_database_stuff_job,
do_database_stuff_prod,
op_requires_resources,
test_cm_resourc... | [
"noreply@github.com"
] | dagster-io.noreply@github.com |
1856c7c864ac34d62c6c9bc7de93fbbd76a236f0 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2009.1/x11/terminal/xterm/actions.py | 0bc996b345bff3ffad1468eeeffc1e93bc0c3d83 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actions... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
0a53ab68989d286f013da079bf2fa922a9c6acde | 8dd000d05a29cece1460fd48c4f6b12c56281ca1 | /ugly/default_settings.py | e3dea2571f19db51dc2da821e5e99b015d7ad1a8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | imclab/ugly | 3e2717982b6e999c99d3e884d7f4d48d08fc7609 | bc09834849184552619ee926d7563ed37630accb | refs/heads/master | 2021-01-15T19:35:38.835572 | 2014-01-08T20:24:56 | 2014-01-08T20:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Flask stuff.
DEBUG = False
TESTING = False
SECRET_KEY = "development key"
# App stuff.
ADMIN_EMAIL = "Ugly Reader <ugly@dfm.io>"
BASE_MAILBOX = "[Ugly Reader]"
AES_KEY = b"test AES key... change this in production"
MAX_FEEDS = 100
# Database stuff.
SQLALCHEMY_DATABASE_URI = "postgresql://localhost/ugly"
# Google O... | [
"danfm@nyu.edu"
] | danfm@nyu.edu |
8f55e7fc73404cd650b20ca669fd313db96f1b3c | 4c67112b8e4c1ed7fd2f636a0dcee4972eeb79e6 | /deployment/GPT2/encoder.py | f6508e866e80f4de9aaa34474e404aae72cbb3bd | [
"MIT"
] | permissive | t04glovern/gpt2-k8s-cloud-run | 700cc8da97e8b42ca39fb0aed9a26f7edebb090b | 687a20f76c3e53f917ea9553e569be52deb323d6 | refs/heads/master | 2023-06-04T14:07:50.532901 | 2022-09-03T12:58:48 | 2022-09-03T12:58:48 | 180,802,919 | 8 | 1 | MIT | 2023-05-22T21:56:35 | 2019-04-11T13:53:44 | Python | UTF-8 | Python | false | false | 4,156 | py | """Byte pair encoding utilities"""
import os
import json
import regex as re
from functools import lru_cache
@lru_cache()
def bytes_to_unicode():
"""
Returns list of utf-8 byte and a corresponding list of unicode strings.
The reversible bpe codes work on unicode strings.
This means you need a large # o... | [
"nathan@glovers.id.au"
] | nathan@glovers.id.au |
dfea14f587580d86c76f3dbc73c65587e1154af8 | faaf12ab18978082233c09628b815a69e73868e4 | /leetcode/algorithms/easy/keep_multiplying_found_values_by_two.py | 9d03b8b29a25813877514664235bcbeb70bc846b | [
"WTFPL"
] | permissive | ferhatelmas/algo | 6826bcf0be782cb102c1ee20dce8d4345e1fd6d2 | 7b867f6d2c8a9fb896f464168b50dfc115617e56 | refs/heads/master | 2023-08-18T19:59:58.435696 | 2023-08-14T10:16:00 | 2023-08-14T10:16:00 | 3,813,734 | 27 | 16 | WTFPL | 2020-10-25T23:00:16 | 2012-03-23T23:43:31 | Java | UTF-8 | Python | false | false | 212 | py | from typing import List
class Solution:
def findFinalValue(self, nums: List[int], original: int) -> int:
s = set(nums)
o = original
while o in s:
o *= 2
return o
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
5a43f55a19e3c63e780c242dc3f5a1013c94a070 | a951ccc03e99ae61178ab85f6db0fd5968709280 | /prefix_sums/genomic_range.py | 04f8f6028e9ab8f7e8919e44da513188dc5cd481 | [] | no_license | mmanishh/codilitysolution | 37142e66c25f786ef7bedaebbe0b164e50ff7804 | d3487be50e52861cc59d3651e996d4d23cb32613 | refs/heads/master | 2021-07-07T12:58:07.651699 | 2020-08-07T10:00:21 | 2020-08-07T10:00:21 | 163,286,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py |
def genomic_range(S,P,Q):
S = list(S)
new_s = []
result = []
impact = {'A':1,'C':2,'G':3,'T':4}
for s in S:
new_s.append(impact[s])
for i in range(len(P)):
l ,r = P[i] , Q[i]
sliced = new_s[l:r+1]
result.append(min(sliced))
return result
if __na... | [
"dfrozenthrone@gmail.com"
] | dfrozenthrone@gmail.com |
0c3685cd9f60cf9fab17887921f148cea4932610 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortCalendarWindow.py | 96f439b6351f27ea524c3190daac96e5559db5f9 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 11,877 | py | # 2017.05.04 15:23:16 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortCalendarWindow.py
import BigWorld
from collections import defaultdict
from helpers import time_utils
from helpers.i18n import makeString as _ms
from gui import makeHtmlString
from gui.... | [
"info@webium.sk"
] | info@webium.sk |
b53210f45388c5820faf0c133ad6ef73039b955b | 9a034b12c845d01f36aff2e5fdbf8486a9e8a642 | /faketrudy/trudy_api/migrations/0005_child_tweets.py | 58e5ce1a352b4425e107065b667d213e62e02fbe | [] | no_license | piyush6191996/Django-Rest-Framework | 2d1cd89de700e7aa68f93f9104418c05c70e800a | 3950a72bed52fd4bcbec3de439fe9f1130df10f9 | refs/heads/master | 2020-03-15T06:00:31.362680 | 2018-05-07T19:09:17 | 2018-05-07T19:09:17 | 131,998,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | # Generated by Django 2.0.2 on 2018-04-10 08:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('trud... | [
"you@example.com"
] | you@example.com |
fac948d696d4a82b62dca8ce6557a6b4e27a4e6e | 0ecb1763b4cab08a1fb80234639e46afc8921e2f | /further/routing_1.py | 882cf1231be2c220621e4dd32a8a4aea3cdd9566 | [] | no_license | mach8686devops/pyside6-demo | 4eed3713288ec21b0ec4b8561290f87925693b89 | 848302ff9c1536034cf5f225fa953944d011c2a4 | refs/heads/main | 2023-05-05T11:12:20.711846 | 2021-05-28T13:44:41 | 2021-05-28T13:44:41 | 371,714,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | import sys
from PySide6.QtCore import QSize, Qt
from PySide6.QtWidgets import QApplication, QLabel, QMainWindow
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.label = QLabel("Click in this window")
self.status = self.statusBar()
self.setFixed... | [
"zhangjohn202@gmail.com"
] | zhangjohn202@gmail.com |
f9a3bff56e5ed0ba4f874a6571ecf9e908e79f95 | de1f9d660cfb738afdb66e4a2d63a4577c07d9c6 | /xcube/webapi/defaults.py | e2f0580e213aeaa838812aab943976b33b2c918e | [
"MIT"
] | permissive | rabaneda/xcube | db47eb416db85df891a924063482a7943cae9d4f | 0d38ca513987184dbc4a37da1616e4076964d0f1 | refs/heads/master | 2020-11-24T00:11:17.107630 | 2020-02-11T10:11:34 | 2020-02-11T10:11:34 | 227,877,138 | 0 | 0 | MIT | 2019-12-13T16:14:51 | 2019-12-13T16:14:50 | null | UTF-8 | Python | false | false | 1,831 | py | # The MIT License (MIT)
# Copyright (c) 2019 by the xcube development team and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation... | [
"norman.fomferra@gmail.com"
] | norman.fomferra@gmail.com |
16788fb6c4d87a3d199099337d60a972ac10c1d0 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_1/Python/gvalli/2016-1A-A-lastword.py | becda986965852bb63622f5a8164983cb9663cf1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #! /#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
fh = open(sys.argv[1], 'r')
T = int(fh.readline()) # number of test cases
for t in range(T):
S = fh.readline().split()[0] # string of letters
res = ''
oldval = -1
for c in S:
val = ord(c)
if val >= oldval:
res =... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
def6c18b46463b5c3cd481ceefdafb7b8c4e49d6 | 98a936d5372294ed892a9bf9cf98646c72af515c | /usage/lab/explorer_usage.py | fd4a3b0be9636dbe6d5abd61ffe6a45858e3c81c | [
"MIT"
] | permissive | edublancas/pipeline | f6d22ad07b134be98c139d1de6ca7d8321072ba8 | 5bef04d77fdadc1dc4ec22b9b346f0a062cca1ce | refs/heads/master | 2021-05-15T01:09:50.072378 | 2016-12-29T05:45:48 | 2016-12-29T05:45:48 | 59,692,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from pipeline import ExperimentExplorer
# load everything
explorer = ExperimentExplorer()
# just load results from my_experiment_a
explorer = ExperimentExplorer('my_experiment_a')
# load results from my_experiment_a and my_experiment_b
explorer = ExperimentExplorer(['my_experiment_a', 'my_experiment_b'])
# compute ne... | [
"edu.blancas@gmail.com"
] | edu.blancas@gmail.com |
c5a4840e2abacff143dd7d855e796d90b83c83fe | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/metis_transf_20180709124830.py | 42a9fae8f327a0df02f62926b8ffe1d5dacf3f19 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 2,331 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import graph_tool.all as gt
import metis
from pathlib import Pat... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
cde74c8664798c8237fa5329c575a705974c6f41 | 34c5a03855ab0aca39acea941be520157f7d0b74 | /lib/ansible/modules/cloud/alicloud/ali_slb_vsg_info.py | 72e35f09e490e814c2cd95556da2fa6bd18f6359 | [
"Apache-2.0"
] | permissive | lixue323/ansible-provider | 1260d1bc17a2fa7bf4c0f387a33dd942059850ed | aae2658532afcbcdf471609fae0e2108fb57af3b | refs/heads/master | 2020-08-11T21:44:37.685788 | 2019-12-13T03:11:23 | 2019-12-13T04:00:45 | 214,633,323 | 0 | 1 | Apache-2.0 | 2019-10-12T11:12:07 | 2019-10-12T11:12:07 | null | UTF-8 | Python | false | false | 6,239 | py | #!/usr/bin/python
# Copyright (c) 2017-present Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under t... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
4067eaa4a5851aa47554afb318aa9f0825522d89 | c9490d7bb9c3add1a5e71b06c9180260ffc1fff5 | /web_dynamic/2-hbnb.py | 2eadee48a25ba93f32aa643310baf9dfb56b7b2c | [
"MIT"
] | permissive | PierreBeaujuge/AirBnB_clone_v4 | 54a255023587e6e291f41410f124da8089f2a5b7 | f93bb1f22660f4497fb942abe120a5e69815affc | refs/heads/master | 2021-01-04T15:00:01.541582 | 2020-10-08T09:04:29 | 2020-10-08T09:04:29 | 240,601,631 | 0 | 1 | MIT | 2020-02-18T02:25:15 | 2020-02-14T21:28:36 | HTML | UTF-8 | Python | false | false | 1,351 | py | #!/usr/bin/python3
"""
Flask App that integrates with AirBnB static HTML Template
"""
from flask import Flask, render_template, url_for
from models import storage
import uuid
# flask setup
app = Flask(__name__)
app.url_map.strict_slashes = False
port = 5000
host = '0.0.0.0'
# begin flask page rendering
@app.teardow... | [
"pierre.beaujuge@gmail.com"
] | pierre.beaujuge@gmail.com |
4c20e6b6769d1680490e49efd35daee18df732f1 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/graph_objs/sankey/__init__.py | 951083a2bed5804da50a572a9104aeb1dea14990 | [
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 95,548 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Textfont(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
85723fbe5a2fd93ee074528b9234f24cb86ed9e2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/n7e.py | 33f3429b1e2c4c1ad76ee80ffc4f1c7f76064da3 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
e99b6fff29c79ce050c083f47a26f60657b1e4de | 55a947cddcac5188c557e175aec98df19485f623 | /tests/integration/test_customer.py | 811fcaa2b0bc6edf8f9dbe8c3288e900ea02b3db | [
"MIT"
] | permissive | pfrantz/braintree_python | d02c1691049df68d87f7738e53d489682db94a7e | 055e7400dd70a79ec18e5a30476dc77827bc465d | refs/heads/master | 2021-01-16T20:07:31.664653 | 2013-10-30T00:19:16 | 2013-10-30T00:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,730 | py | from tests.test_helper import *
import braintree.test.venmo_sdk as venmo_sdk
class TestCustomer(unittest.TestCase):
def test_all(self):
collection = Customer.all()
self.assertTrue(collection.maximum_size > 100)
customer_ids = [c.id for c in collection.items]
self.assertEquals(collec... | [
"code@getbraintree.com"
] | code@getbraintree.com |
d891da04d501abe4b1f6da6ca84babc9ccac723d | d7fb8eacd8a1aae8fe6eb49111f93090b7e87ce0 | /backend/tstcr2020102701_dev_14091/settings.py | e74bd1f3e5a9f57d885d8b38f60ca2550b592ad3 | [] | no_license | crowdbotics-apps/tstcr2020102701-dev-14091 | 4d5bcfc2b0aa29e67cebcd8948258b75e8ad9c6b | cc6ba4999444c7e93943f76af75c2506048bf2b6 | refs/heads/master | 2023-01-03T05:09:02.457778 | 2020-10-28T21:59:17 | 2020-10-28T21:59:17 | 307,772,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,125 | py | """
Django settings for tstcr2020102701_dev_14091 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
70b49f18abf43bf5e67f80ab9e45eba1399e8cd0 | e8274f167fd219ef78241ba8ea89e5d5875ed794 | /cloud/quantum/quantum/openstack/common/lockutils.py | 9f4eddf57c95bd92e8539b8e2c97039dc97bb433 | [
"Apache-2.0"
] | permissive | virt2x/folsomCloud | 02db0147f7e0f2ab0375faf4f36ca08272084152 | e6fd612dd77f35a72739cf4d4750e9795c0fa508 | refs/heads/master | 2021-01-01T17:26:28.405651 | 2013-10-17T12:36:04 | 2013-10-17T12:36:04 | 13,647,787 | 0 | 1 | null | 2020-07-24T08:25:22 | 2013-10-17T12:10:24 | Python | UTF-8 | Python | false | false | 8,455 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | [
"quan.xu@intel.com"
] | quan.xu@intel.com |
96e74a51787d9206d2e4ddd5c9531473c08384c5 | 593dff0c5746603268417a702a00cd3355f47f3a | /hq_extracter.py | 0637fa456196047256f299fb62689b0330057cc7 | [] | no_license | vc2309/Blue-sky-tools | e508f2cb0fd240a95b812ed53f2ac6ed3ea1cd64 | 055b06cc9865808f3d0665dc9c95aba6b401fe69 | refs/heads/master | 2021-09-10T18:55:52.616954 | 2018-03-31T07:14:01 | 2018-03-31T07:14:01 | 104,192,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import pandas as pd
ifiles=['sjs_all_feb_report_m.csv']
floors=['HQ - G/F'
,'HQ - 2S'
,'HQ - 2N'
,'HQ - 3S'
,'HQ - 3N'
,'HQ - 4N'
,'HQ - 5S'
,'HQ - 5N'
,'HQ - 6S'
,'HQ - 6N'
,'HQ - 7S'
,'HQ - 7N'
,'HQ - 8S'
,'HQ - 8N'
,'HQ - 9S'
,'HQ - 9N'
,'HQ - AC'
,'HQ - 11'
,'HQ - 12'
,'HQ - 13'
,'HQ - Lift'
,'HQ - 10']
def extrac... | [
"wishiknew.vishnu@gmail.com"
] | wishiknew.vishnu@gmail.com |
1c90deae299ed6a990528539c555580748edee2a | bc441bb06b8948288f110af63feda4e798f30225 | /tuna_service_sdk/model/pipeline/build_pb2.pyi | b2d4c34548e7bc31341d04a0ced2cc56bb0cfe4a | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScal... | [
"service@easyops.cn"
] | service@easyops.cn |
fc62026ad385c261dc340d5914e1490389de7b69 | 16abd82b9523f0fc7ae6df0aac11fd03e2e3d9f3 | /boards/tests/test_views.py | c6631a2dcbefbde8dc9659cd11ccf5750f89b5e0 | [] | no_license | msm3858/projektforum | cf5255a5781f3536db56cf1b680557ca876f8221 | c6a0abda9f147d3578e430012780bda3eb4f20b5 | refs/heads/master | 2021-09-10T10:03:32.962523 | 2018-03-24T06:26:18 | 2018-03-24T06:26:18 | 124,791,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,560 | py | from django.test import TestCase
from django.urls import reverse, resolve
from ..views import home, board_topics, new_topic
from ..models import Board, Topic, Post, User
from ..forms import NewTopicForm
# Create your tests here.
#########################
# TEST HOME
#########################
class HomeTests(TestCase... | [
"="
] | = |
87416760e8d527e89eda7274e938fa35d0f5862c | ec551303265c269bf1855fe1a30fdffe9bc894b6 | /topic12_backtrack/T37_solveSudoku/interview.py | aa39e66a9273588c348549634ece2fa51180ca9a | [] | no_license | GongFuXiong/leetcode | 27dbda7a5ced630ae2ae65e19d418ebbc65ae167 | f831fd9603592ae5bee3679924f962a3ebce381c | refs/heads/master | 2023-06-25T01:05:45.683510 | 2021-07-26T10:05:25 | 2021-07-26T10:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | '''
37. 解数独
编写一个程序,通过已填充的空格来解决数独问题。
一个数独的解法需遵循如下规则:
数字 1-9 在每一行只能出现一次。
数字 1-9 在每一列只能出现一次。
数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。
空白格用 '.' 表示。
'''
class Solution:
def solveSudoku(self, board):
"""
Do not return anything, modify board in-place instead.
"""
# 把... | [
"958747457@qq.com"
] | 958747457@qq.com |
6fead26c5691ec527b0a25f5b1bb51407b45423b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03433/s234156745.py | 8af8f4093c0e131eec273745a1b4cdfd8539bffb | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | n = int(input().rstrip())
a = int(input().rstrip())
if n % 500 <= a:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
300c13b7d14b8eeb64fe0620787ba963d4b4a22d | 3c03ecb8e066f2d4eac73a469a75e5906734c66c | /_2019_2020/Classworks/_21_08_02_2020/_4.py | bb2dfe36b4e2eba4992e43a24a81bc1310665095 | [] | no_license | waldisjr/JuniorIT | af1648095ec36535cc52770b114539444db4cd0b | 6a67e713708622ae13db6d17b48e43e3d10611f2 | refs/heads/master | 2023-03-26T06:29:06.423163 | 2021-03-27T06:27:34 | 2021-03-27T06:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | file = open('1(4.py)', 'w')
for i in range(1000):
file.write(f"{i}\n")
file.close() | [
"waldis_jr@outlook.com"
] | waldis_jr@outlook.com |
4e1efa5fc68c6cf783d434aebf74d1157be0268f | 6c1b28fce483c873f627104c8c58c90af54ef22a | /approach_3_solution_2.py | cbb82862b98488db1ddca6a2e88b15cc2ed1fb8c | [] | no_license | rajkan01/hands_on_code_review | dc873857a7d73f75c9d2caa5bba3fa93ba56a4a2 | ac28dabd6eb0d46345714208741ff57345f95149 | refs/heads/master | 2023-09-04T00:20:16.741717 | 2021-10-23T15:45:34 | 2021-10-25T10:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # Approach 3 - Solution 2
from string import ascii_lowercase as lowercase_letters
def is_pangram(sentence):
actual_bits = 0
expected_bits = 0b11111111111111111111111111
for i, char in enumerate(sentence):
if char.isalpha():
letter_index = ord(char.lower()) - ord("a")
bit... | [
"amy.m.haddad@gmail.com"
] | amy.m.haddad@gmail.com |
bd29a3919e9e554eae311ed596991eb065b7db1f | b210903908d418d471e0df3b93c5f290ec1c05a9 | /gluon2pytorch/gluon2pytorch.py | ced44d371fe483100a99ec280b38330ca6939d3d | [
"MIT"
] | permissive | chipper1/gluon2pytorch | d7bcf71900172484f1e26c46ba6f051aa1e7d773 | e0fd770a28b1a8bf4d0aa352f360bf5765e8347d | refs/heads/master | 2020-04-19T07:49:38.974250 | 2019-01-22T13:17:23 | 2019-01-22T13:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | import json
import torch
import torch.nn as nn
import torch.nn.functional as F
import mxnet as mx
import numpy as np
# Import comverters
from .layers import CONVERTERS
# Import PyTorch model template
from .pytorch_model_template import pytorch_model_template
def eval_model(pytorch_source, pytorch_dict, module_nam... | [
"nerox8664@gmail.com"
] | nerox8664@gmail.com |
52f8d22f90a6a6870ff064d288a72be4c6ab50de | 7d78a18fcb8f34cc84e9439bd19cf491e3e0ec49 | /Code/Particle_Identification/msc-hpc/hpc-mini-1/model8.py | 7fca90d0b9552dd533fb15cee80aeff0c4a24a33 | [] | no_license | PsycheShaman/MSc-thesis | 62767951b67b922ce5a21cad5bdb258998b7d2ea | 34504499df64c7d6cc7c89af9618cd58d6378e8e | refs/heads/master | 2022-03-12T07:17:57.309357 | 2019-12-10T21:17:39 | 2019-12-10T21:17:39 | 151,471,442 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 16 18:47:05 2019
@author: gerhard
"""
import glob
import numpy as np
#P_files = glob.glob("C:/Users/gerhard/Documents/msc-thesis-data/P_*.pkl", recursive=True)
x_files = glob.glob("/scratch/vljchr004/1_8_to_2_2_GeV/x_*.pkl")
y_files = glob.glob("/scratch... | [
"christiaan.viljoen@cern.ch"
] | christiaan.viljoen@cern.ch |
fa852b15b22790660899f828bd2b36acf41ab473 | 2b477700384af7ceb67f97908f1bd5899d984596 | /mxonline/second_day/mxonline/mxonline/settings.py | 0c86916a2d658b263215bc8d182ed18fe7d4a103 | [] | no_license | ZhiqiKou/django | 58b743f962e0f7d85b3610e9d09a0e1db32ba9bb | e3d35c981e6b91130472114b121b65fd7d5cacf8 | refs/heads/master | 2020-03-28T20:44:56.286125 | 2018-09-07T02:21:29 | 2018-09-07T02:21:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | """
Django settings for mxonline project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
i... | [
"1816635208@qq.com"
] | 1816635208@qq.com |
a4b4a0a3244cac402cda7f3b4ed5278efc2fa651 | c4b47ba53d40e861571c82f8a968a989974dc433 | /fireball/blobs/admin.py | 454a72b4217a2e674b995a6f5a635ca10bde368e | [] | no_license | underlost/fireball | 4be3e441a82f6a0fbb603b33be8493f03019392e | 3cf312fa88860e9f2e9f34479b5b1962dae09f55 | refs/heads/master | 2016-09-01T18:45:18.059628 | 2013-06-03T16:26:12 | 2013-06-03T16:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.contrib import admin
from fireball.blobs.models import Blob
class BlobAdmin(admin.ModelAdmin):
list_filter = ('user',)
search_fields = ['description','url',]
list_display = ('user', 'url',)
admin.site.register(Blob,BlobAdmin)
| [
"underlost@gmail.com"
] | underlost@gmail.com |
596411c05f2c94b4b357beb48a6cac370bb39083 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GL/ARB/seamless_cube_map.py | 25e63a7d3f689d0ff11cc0c81f81b889b4c44394 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | '''OpenGL extension ARB.seamless_cube_map
This module customises the behaviour of the
OpenGL.raw.GL.ARB.seamless_cube_map to provide a more
Python-friendly API
Overview (from the spec)
When sampling from cube map textures, a three-dimensional texture
coordinate is used to select one of the cube map faces and ge... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
d485cfa23c7f446ebfa1be31d86428513cf3a031 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_38775.py | aa5ba685bb6ffb0c7e77e41ce4af889ae20a5bd0 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,853 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
fcd0b3996dcc8bf3891d3ed563e44c660b62677b | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/D/dmsilv/facebook_fans.py | 3fc1f0e56bfce614a8af5c9b37936e98b95a0c94 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | # Blank Python
import scraperwiki
from BeautifulSoup import BeautifulSoup
#define the order our columns are displayed in the datastore
scraperwiki.metadata.save('data_columns', ['Page Name', 'Fans'])
#scrape the fan section
def scrape_fans(soup):
data_table = soup.find("table",{ "class" : "uiGrid"}) #find the ... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
982fb6dfb5536e8d2ea0d6d461feb007703ab20d | 4cdcd0e06497bdeb793abcd98c870db414700bdd | /pyblp/utilities/basics.py | bd2060c78e628c77393492763db5863b5c7a861b | [
"MIT"
] | permissive | markpham/pyblp | bc1d22e6820c0d28905615aec4e8deb79ee03efa | 59714a0d7c46afa10dcd7575bace21026ebb00c7 | refs/heads/master | 2020-07-16T04:14:00.834907 | 2019-08-31T23:05:00 | 2019-08-31T23:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,063 | py | """Basic functionality."""
import contextlib
import functools
import inspect
import multiprocessing.pool
import re
import time
import traceback
from typing import (
Any, Callable, Container, Dict, Hashable, Iterable, Iterator, List, Mapping, Optional, Set, Sequence, Type, Tuple,
Union
)
import numpy as np
fr... | [
"jeff@jeffgortmaker.com"
] | jeff@jeffgortmaker.com |
7b47c1b415e3ad729bdce1cdb26e32be6031bda6 | ef66e297a49d04098d98a711ca3fda7b8a9a657c | /snippets/ziroom/detail.py | 32e2f1c346b125a3b9d7882a7320a3f98a252f9a | [] | no_license | breezy1812/MyCodes | 34940357954dad35ddcf39aa6c9bc9e5cd1748eb | 9e3d117d17025b3b587c5a80638cb8b3de754195 | refs/heads/master | 2020-07-19T13:36:05.270908 | 2018-12-15T08:54:30 | 2018-12-15T08:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import os
from datetime import datetime
from time import sleep
from random import choice
import requests
from agents import AGENTS
url = 'http://www.ziroom.com/detail/info'
params = {
'id': '61155405',
'house_id': '60185997',
}
headers = {
'User-Agent': choice(AGENTS),
}
while True:
resp = request... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
f588bf0d916ba7a047741568bb2946f4fd4c309d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/53/usersdata/89/22195/submittedfiles/matriz2.py | cd1384dfef6761b0fbf48eaf1aa1f3eaef0a4bc4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def somaDiagonalPrincipal(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,i]
return soma
def somaDiagonalSecundaria(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,a.shape[0]-... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.