blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
55066d351456806918e16de4f90fa5a40c4fc112
3ab97361bdc0c1b392d46c299a0293e16be577fa
/home/migrations/0002_load_initial_data.py
206a0bf2e653e72367f7fdaa30d0dc0414a2394b
[]
no_license
crowdbotics-apps/mason-21411
2f191039aedb0f66c2acc9fb5c6e022a00a1ba5a
1456b83bde0c15151ac78218ae2fd3391ddb8c31
refs/heads/master
2022-12-30T03:26:44.899130
2020-10-12T19:05:12
2020-10-12T19:05:12
303,487,539
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "mason" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") hom...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
efbac9d802b7d3a3214f5eec619b410d173accbd
9451bdaa89cef69a8216c9ca9c7ac8e5b7d7c22e
/7multi_process/multi_process.py
fd1f8d9b8081f0ec4d63fc57aa3c2eb7a24339e0
[]
no_license
PaulYoung1024/lou-plus-python
87c97334a5b2aa4c8dc3bc0071a7ab41fe553682
7cc8e85eb25bb72e79a7dd9d25046bc1b4f9f3c6
refs/heads/master
2020-04-30T08:36:36.466716
2019-03-20T11:57:47
2019-03-20T11:57:47
176,721,830
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
import time from multiprocessing import Process def io_task(): time.sleep(1) def main(): start_time=time.time() ''' for i in range(5): io_task() ''' #child task list process_list=[] for i in range(5): process_list.append(Process(target=io_task)) #start all child pro...
[ "ubuntu@localhost.localdomain" ]
ubuntu@localhost.localdomain
7d4489bec75756fcdc079f5f14ff4f709be1837b
5fa91971a552de35422698ad3e371392fd5eb48a
/docs/mcpi/algorytmy/mcpi-lpi02.py
5881d83e5b722c10f474aaac3deba06ea22d8b2e
[ "MIT", "CC-BY-SA-4.0" ]
permissive
koduj-z-klasa/python101
64b0bf24da6c7fc29c0d3c5a74ce7975d648b760
accfca2a8a0f2b9eba884bffe31be6d1e73fb615
refs/heads/master
2022-06-06T09:29:01.688553
2022-05-22T19:50:09
2022-05-22T19:50:09
23,770,911
45
182
MIT
2022-03-31T10:40:13
2014-09-07T21:01:09
Python
UTF-8
Python
false
false
2,565
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os import random from time import sleep import mcpi.minecraft as minecraft # import modułu minecraft import mcpi.block as block # import modułu block import local.minecraftstuff as mcstuff os.environ["USERNAME"] = "Steve" # nazwa użytkownika os.environ["COMPUTERNAME...
[ "xinulsw@gmail.com" ]
xinulsw@gmail.com
41348a2dd0b811a9e5820c028fb4d84d67ede459
7ee1fd7584f8770cd2381d85f797bf85cb9b4b67
/usuarios/applications/users/functions.py
7518ab24ad5b24eb53709d36fd01737178f8f777
[]
no_license
neunapp/usuariosdj
3171160fdf6898d07d6b353d034c70801e4bc21b
3fe69b7357757baa5d799b614f232d75ed659502
refs/heads/master
2022-12-01T16:51:00.432272
2020-09-17T14:28:21
2020-09-17T14:28:21
237,993,639
4
2
null
2022-11-22T05:17:26
2020-02-03T15:10:33
Python
UTF-8
Python
false
false
206
py
# funciones extra de la aplicacion users import random import string def code_generator(size=6, chars=string.ascii_uppercase + string.digits): return ''.join(random.choice(chars) for _ in range(size))
[ "csantacruz1127@gmail.com" ]
csantacruz1127@gmail.com
03a11a480258f5444025f7b60cf63fcf26362edb
c33844f13a625f9b3c908ea8816696a0b38abbac
/expenditure/migrations/0001_initial.py
dc5f3853c79d4d290e1e897dfb0381cd9729c7c3
[]
no_license
jkimuli/clinica
d6ddb72b4ba56e142f12b77593d2c4e68b3e3237
03cf956781ff5a50d692ca07799a73c36111a0aa
refs/heads/master
2022-12-21T20:13:39.454392
2020-11-09T08:13:25
2020-11-09T08:13:25
21,300,924
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
# Generated by Django 2.2.5 on 2020-06-17 16: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...
[ "jkimuli@gmail.com" ]
jkimuli@gmail.com
e4e82580ad98bbcb298532c026df83965c2ea339
05148c0ea223cfc7ed9d16234ab3e6bb40885e9d
/Packages/matplotlib-2.2.2/lib/mpl_examples/images_contours_and_fields/triplot_demo.py
d3a65762d021e09952a9512f7aa6c3df6982239b
[ "MIT" ]
permissive
NightKirie/NCKU_NLP_2018_industry3
9ee226e194287fd9088429f87c58c874e050a8b3
23ac13644b140587e23cfeffb114c7c6f46f17a2
refs/heads/master
2021-06-05T05:33:09.510647
2018-07-05T10:19:47
2018-07-05T10:19:47
133,680,341
1
4
MIT
2020-05-20T16:29:54
2018-05-16T14:43:38
Python
UTF-8
Python
false
false
4,772
py
""" ============ Triplot Demo ============ Creating and plotting unstructured triangular grids. """ import matplotlib.pyplot as plt import matplotlib.tri as tri import numpy as np ############################################################################### # Creating a Triangulation without specifying the triangle...
[ "qwer55113322@gmail.com" ]
qwer55113322@gmail.com
56cbe3a325b7e39dbfcee37c3ce40d0b704f5713
e23a4f57ce5474d468258e5e63b9e23fb6011188
/120_design_patterns/006_adapter/examples/adapter_005.py
f7aff08228bdda9c77bd6d64d410d32bb64c4da1
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
4,088
py
""" The Adapter pattern is a structural design pattern. It allows a Client to access functionalities of a Supplier. Without an Adapter the Client can not access such functionalities. This pattern can be implemented with an OBJECT approach or a CLASS approach. """ # Client class Smartphone(object): max_input_vo...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
76705674841dca7e1c0fdbec51fb4f0b7f989140
49f61714a6f78d984fd2194d6064d84e891bc5b7
/2019-1/220/users/2882/codes/1736_2496.py
34aaeee55371a5a36435ec18f6e128cfa904b6b2
[]
no_license
psbarros/Variaveis3
b5c4e1517e7d94a846ee03791d25d5821a1c651c
3dcf6f810709ce03c78335acf9533e008a2ae125
refs/heads/master
2023-06-13T07:05:00.878430
2021-07-06T17:51:37
2021-07-06T17:51:37
383,549,597
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
num=int(input("Numero: ")) i=0 soma=0 while (num != -1): soma=soma+num num=int(input("Numero: ")) i=i+1 print(soma)
[ "psb@icomp.ufam.edu.br" ]
psb@icomp.ufam.edu.br
29ab49aa05b4049510072ab0452bce50284ecf40
ea1373d9a58ad198c15d35a6daddb4e06d21aa39
/application-code/show3d_balls.py
4d086af1e8e3e1d75769cd87bd256539b3669351
[]
no_license
screnary/VoxSegNet
bb2778dfc460dfafdbd923f79755f7f0776dc36f
264f2efc0a589018a1fc68c111626beacbe095a5
refs/heads/master
2020-09-04T03:41:47.067129
2019-11-07T06:34:29
2019-11-07T06:34:29
219,649,857
5
0
null
null
null
null
UTF-8
Python
false
false
6,889
py
""" Original Author: Haoqiang Fan """ import numpy as np import ctypes as ct import cv2 import sys import os import pdb BASE_DIR = os.path.dirname(os.path.abspath(__file__)) showsz=800 mousex,mousey=0.5,0.5 ix,iy=-1,-1 zoom=1.0 changed=True dragging=False def onmouse(event,x,y,flags,param): # *args # args=[event...
[ "screnary@qq.com" ]
screnary@qq.com
3a3f131e46c372e5a1ffb23605dd5ea5ac592973
4652255cc1adaed1cf808f5475aa06265ee2016a
/fluiddb/security/test/test_oauth.py
d9a3fda028a68004273e684c46f1c20fd2a3f13a
[ "Apache-2.0" ]
permissive
fluidinfo/fluiddb
ca55b640ce44be53614068caade373046bdf30e4
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
refs/heads/master
2021-01-11T08:16:01.635285
2016-03-27T21:11:58
2016-03-27T21:11:58
54,848,235
3
2
null
null
null
null
UTF-8
Python
false
false
4,626
py
from random import sample from fluiddb.data.exceptions import UnknownUserError from fluiddb.data.system import createSystemData from fluiddb.data.user import getUsers, ALPHABET from fluiddb.model.oauth import ( OAuthAccessToken, OAuthRenewalToken, OAuthConsumerAPI, UnknownConsumerError) from fluiddb.model.user...
[ "terry@jon.es" ]
terry@jon.es
b129a9f14e65ef5524a7b3b9c62c43528fa7a56e
8df1237388352d29c894403feaf91e800edef6bf
/Algorithms/717.1-bit-and-2-bit-characters/1-bit-and-2-bit-characters_1.py
c29bf6ba7a65751ccf0ecf07f91a5fd4ce738556
[ "MIT" ]
permissive
GaLaPyPy/leetcode-solutions
8cfa5d220516683c6e18ff35c74d84779975d725
40920d11c584504e805d103cdc6ef3f3774172b3
refs/heads/master
2023-06-19T22:28:58.956306
2021-07-19T00:20:56
2021-07-19T00:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
class Solution: def isOneBitCharacter(self, bits: List[int]) -> bool: return False if not bits or bits == [[1, 0]] else True if bits == [0] else self.isOneBitCharacter(bits[1:]) if bits[0] == 0 else self.isOneBitCharacter(bits[2:])
[ "zoctopus@qq.com" ]
zoctopus@qq.com
deee26ca9e685631ff63c4376f9e435f66452620
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/s3prl/problem/hear/gtzan_music_speech.py
5cd6274c2963c8c9e15792e2f29f92bd1933caa8
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
2,662
py
import logging from s3prl.corpus.hear import hear_scene_kfolds from s3prl.util.configuration import default_cfg, field from .scene import HearScene logger = logging.getLogger(__name__) NUM_FOLDS = 10 class GtzanMusicSpeech(HearScene): @default_cfg( **HearScene.setup.default_except( corpus=d...
[ "leo19941227@gmail.com" ]
leo19941227@gmail.com
f79f3465381def312720a2205e28a051021ff1bd
3c82ea78607e530811e0e837503ce26717e5fd04
/TopQuarkAnalysis/Configuration/python/patRefSel_eventCleaning_cff.py
5676a6c747cd5e1df39cdbd39d2ec009084dd6f1
[]
no_license
fhoehle/OldCMSSWPackages
7065c1cd2944c56fe2731c9be49dc2bd1d9781ce
cb655adfd0d59c9c8143b2e3db1ea950110df8f6
refs/heads/master
2016-09-06T18:05:43.458784
2014-08-21T10:54:47
2014-08-21T10:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
import FWCore.ParameterSet.Config as cms from CommonTools.RecoAlgos.HBHENoiseFilter_cfi import * # s. https://hypernews.cern.ch/HyperNews/CMS/get/JetMET/1196.html HBHENoiseFilter.minIsolatedNoiseSumE = 999999. HBHENoiseFilter.minNumIsolatedNoiseChannels = 999999 HBHENoiseFilter.minIsolatedNoiseSumEt = 999...
[ "hoehle@physik.rwth-aachen.de" ]
hoehle@physik.rwth-aachen.de
b1b040d767296d8c2901283ddd4759ac1033adbc
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20200112/example_python/00varargs.py
ad017fc8a47ce3cd6acaaafb2268930d71dc5a06
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
141
py
def f(name: str, *args: str) -> None: print(name, args) # TypeError: f() got multiple values for argument 'name' f(1, 2, 3, name="foo")
[ "ababjam61+github@gmail.com" ]
ababjam61+github@gmail.com
338224b306fe6bd7bfb403460e852eaca4b28dee
da64994d73d250d19a30381de7462c5729372f81
/apps/student/migrations/0023_auto_20191125_2256.py
e8d84833aad8f99e902435dfa2d29e34a791bfa8
[]
no_license
Mid0Riii/psybackend
2f872c1dd21e97ba0a46efa10f2b3246ac8bb2b5
2cd477f01111a816b17725a00ffa77a156dec7b0
refs/heads/master
2023-03-26T07:55:17.580161
2021-03-14T01:45:19
2021-03-14T01:45:19
305,083,821
0
1
null
2021-03-14T01:45:20
2020-10-18T11:15:48
Python
UTF-8
Python
false
false
578
py
# Generated by Django 2.2.5 on 2019-11-25 14:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('student', '0022_auto_20191123_1526'), ] operations = [ migrations.AlterField( model_name='studentbasic', name='stu_l...
[ "1534296263@qq.com" ]
1534296263@qq.com
ef4d6dfcc404eef043eb20246f5b4cda418d1972
eaa43160aeeaa3cb4c7c9f52d8ed01f9abdf85e5
/tests/db/sql/clauses/test_array_agg.py
b827c5049998aee470f52ac1b088f9ea6f219154
[ "MIT" ]
permissive
furious-luke/polecat
4fd2a2f859b9a77d9d004b32bc1bf8f907fea2ba
7be5110f76dc42b15c922c1bb7d49220e916246d
refs/heads/master
2022-07-31T16:38:45.791129
2021-05-06T01:05:03
2021-05-06T01:05:03
179,440,367
4
0
MIT
2022-07-05T21:28:34
2019-04-04T07:00:55
Python
UTF-8
Python
false
false
457
py
from unittest.mock import MagicMock import pytest from polecat.db.sql.expression.array_agg import ArrayAgg from polecat.db.sql.sql import Sql from .conftest import SqlTermTester def test_to_sql(): term = ArrayAgg('test') sql = Sql(term.to_sql()) assert str(sql) == 'array_agg("test")' @pytest.mark.para...
[ "furious.luke@gmail.com" ]
furious.luke@gmail.com
1958ba72f578a180ae656aab8c407494a1874f58
cbc5e26bb47ae69e80a3649c90275becf25ce404
/xlsxwriter/test/comparison/test_chart_up_down_bars01.py
393b2df0723766bdd319a942f072296d1d44a69f
[ "BSD-2-Clause-Views", "BSD-3-Clause", "MIT" ]
permissive
mst-solar-car/kicad-bom-generator
c3549409c3139f787ad28391372b5cb03791694a
2aae905056d06f3d25343a8d784049c141d05640
refs/heads/master
2021-09-07T14:00:40.759486
2018-02-23T23:21:13
2018-02-23T23:21:13
107,868,801
3
0
null
null
null
null
UTF-8
Python
false
false
1,690
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "mwrb7d@mst.edu" ]
mwrb7d@mst.edu
07401c1e6a187b32c1074eb2c08dd8cb41916ac7
b095173b2dbc77c8ad61c42403258c76169b7a63
/src/sagemaker/cli/compatibility/v2/modifiers/deprecated_params.py
1cc2f6dca060824a2f9117889c88e84f5fe907bd
[ "Apache-2.0" ]
permissive
aws/sagemaker-python-sdk
666665e717cfb76698ba3ea7563b45344634264d
8d5d7fd8ae1a917ed3e2b988d5e533bce244fd85
refs/heads/master
2023-09-04T01:00:20.663626
2023-08-31T15:29:19
2023-08-31T15:29:19
110,621,895
2,050
1,255
Apache-2.0
2023-09-14T17:37:15
2017-11-14T01:03:33
Python
UTF-8
Python
false
false
2,482
py
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
[ "noreply@github.com" ]
aws.noreply@github.com
c97534d7ad5b129aa5e2e092a9d772af4853ed9a
ffadf9541d01cf9af20c419759d48b1eb01bfd35
/pachong/PCdemo1/day16/刘士豪20200414/梨视频爬取.py
c6ded9d8a6124d9c59c2e87f6c0e2f3f0748bb42
[]
no_license
1987617587/lsh_py
b1bb1016eaafcba03bbc4a5310c1db04ae227af4
80eb5175cd0e5b3c6c5e2ebb906bb78d9a8f9e0d
refs/heads/master
2021-01-02T05:14:31.330287
2020-06-20T05:18:23
2020-06-20T05:18:23
239,498,994
2
1
null
2020-06-07T23:09:56
2020-02-10T11:46:47
Python
UTF-8
Python
false
false
6,029
py
# author:lsh # datetime:2020/4/14 17:32 ''' .::::. _oo0oo_ .::::::::. o8888888o ::::::::::: 8...
[ "1987617587@qq.com" ]
1987617587@qq.com
a8bf7488a6744e53a99e1ccd19d70c3f88be861b
9a832a66a8a4b17021b2e0f7e3b40362879a7012
/arabel/asgi.py
dbdc7b43f4e9f73ea21c38c7c9520aa6d284df7f
[ "MIT" ]
permissive
niconoe/arabel
dcdd29cb14bafef8cf19853ad87b28fc30bc709d
ef0ffb1ef3e104799ac95dea55e48aae93b399d5
refs/heads/master
2023-05-04T22:07:53.244933
2021-05-26T14:58:08
2021-05-26T14:58:08
334,908,666
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" ASGI config for arabel project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "nicolas@niconoe.eu" ]
nicolas@niconoe.eu
e56c0a6f34577794fddf1e0e344ffa44cd7c5504
7807d8d9d109a3e272fffed91bf841201da39256
/trans_ALDS1_1_B/oreo0320_ALDS1_1_B_kotonoha.py
fb7da8b5cfb0a8448ae7e1cfdeee8e2de5cd6b7f
[]
no_license
y-akinobu/AOJ_to_Kotonoha
0e8df43393964fcdd5df06c75545091bd6c0c2e2
5a694a55a3d85e3fbc4a07b57edc4374556db9a1
refs/heads/main
2023-02-05T15:33:16.581177
2020-12-30T16:14:44
2020-12-30T16:14:44
325,524,216
0
1
null
null
null
null
UTF-8
Python
false
false
226
py
# mathモジュールを用いる import math # map(整数,入力された文字列を空白で分割した列)を展開し順にaとbとする a,b = map(int,input().split()) # math.gcd(a,b)を出力する print(math.gcd(a,b))
[ "sx2_vn_yuka@outlook.jp" ]
sx2_vn_yuka@outlook.jp
5ebae5874d208063c395bbf6d6118ed2aca27b8c
aa6e1dd07a71a73bc08574b76f9e57a3ce8c8286
/077.Test_BeeWare/helloworld/macOS/Hello World/Hello World.app/Contents/Resources/app_packages/rubicon/objc/__init__.py
15b6e36cede428eead64cb153f86979a662adfe7
[ "MIT", "BSD-3-Clause" ]
permissive
IvanaXu/PyTools
0aff5982f50bb300bfa950405192c78473b69537
358ae06eef418fde35f424909d4f13049ca9ec7b
refs/heads/master
2023-06-07T21:45:44.242363
2023-06-06T16:00:25
2023-06-06T16:00:25
163,940,845
60
8
MIT
2022-12-23T02:49:05
2019-01-03T07:54:16
Python
UTF-8
Python
false
false
2,188
py
# Examples of valid version strings # __version__ = '1.2.3.dev1' # Development release 1 # __version__ = '1.2.3a1' # Alpha Release 1 # __version__ = '1.2.3b1' # Beta Release 1 # __version__ = '1.2.3rc1' # RC Release 1 # __version__ = '1.2.3' # Final Release # __version__ = '1.2.3.post1' # Post Release...
[ "1440420407@qq.com" ]
1440420407@qq.com
f92f5f95e7c1c9b68e7a522938c2afe1c00e0d01
b38e64f47f84e3aa984f813d1fbeef2717e2bc3d
/characters/migrations/0003_class_race.py
fbdf75700c0bc20661afb443e1d24f7dabb0b948
[ "MIT" ]
permissive
luiz158/django-tutorial-v2
2abf28939060750e031fca95429c1d6cbb738f46
3d128301357e687542c6627f9d8eca026e04faaa
refs/heads/master
2021-12-04T04:18:59.535664
2015-01-06T21:54:45
2015-01-06T21:54:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('characters', '0002_alignment'), ] operations = [ migrations.CreateModel( name='Class', fields=[ ...
[ "mpirnat@gmail.com" ]
mpirnat@gmail.com
df6b7919f0f4d731c68b54914240fed2aaa8fe5b
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/rds_write_3/db-parameter-group_copy.py
ee699d9102789428290b58d77fa4169647f2cf6c
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
2,218
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_three_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/copy-db-parameter-group.html if __name__ =...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
b73428382fda2e1ca751a76df524f3bcf515ef26
7967a3ee1c0ba80d2c4be404f5b779882cd24439
/playground/config/apps.py
8a5b10b147866b35f9dd3f69a721de35112665cc
[ "MIT" ]
permissive
LeeHanYeong/django-quill-editor
bf0e7150afedc890652b20b288b27c635c777a5f
f49eabd65503462f0a9081626dfc66d2d7ddce36
refs/heads/master
2023-06-24T07:26:55.664214
2023-02-07T08:14:56
2023-02-07T08:30:14
245,107,729
184
44
MIT
2023-06-09T09:35:05
2020-03-05T08:27:55
Python
UTF-8
Python
false
false
185
py
from django.contrib.admin.apps import AdminConfig as DefaultAdminConfig __all__ = ("AdminConfig",) class AdminConfig(DefaultAdminConfig): default_site = "config.admin.AdminSite"
[ "dev@lhy.kr" ]
dev@lhy.kr
10219f3aa82ee083283d3ab5e26f3e0d93b5266b
cf70b91df736d472d31a54c79bbdf124b7713adc
/docs/conf.py
00d03b6ce5f611f322a30ce6a1b3ec1349168f29
[ "MIT" ]
permissive
andycasey/mcfa
1e8a46d7c313988c4c0c57f214bd5268f8e35ae7
8c4135e665e47006e9ca725e8bfc67315508366e
refs/heads/master
2021-06-16T02:27:01.686167
2019-09-30T02:18:17
2019-09-30T02:18:17
142,864,003
2
0
null
null
null
null
UTF-8
Python
false
false
5,654
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "andycasey@gmail.com" ]
andycasey@gmail.com
3dffc5c20f744079690693c532bc36ee2d591421
ef3a7391b0a5c5d8e276355e97cbe4de621d500c
/venv/Lib/site-packages/caffe2/quantization/server/group_norm_dnnlowp_op_test.py
973576bc6ed334f54d6524e629e153233989b982
[ "Apache-2.0" ]
permissive
countBMB/BenjiRepo
143f6da5d198ea6f06404b4559e1f4528b71b3eb
79d882263baaf2a11654ca67d2e5593074d36dfa
refs/heads/master
2022-12-11T07:37:04.807143
2019-12-25T11:26:29
2019-12-25T11:26:29
230,090,428
1
1
Apache-2.0
2022-12-08T03:21:09
2019-12-25T11:05:59
Python
UTF-8
Python
false
false
4,621
py
from __future__ import absolute_import, division, print_function, unicode_literals import collections import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as np from caffe2.python import core, dyndep, utils, workspace from caffe2.quantization.server import utils as dnnlowp_u...
[ "bengmen92@gmail.com" ]
bengmen92@gmail.com
b546b3ddc0e7dfe417126377133ce316d35c7020
e13c98f36c362717fdf22468b300321802346ef5
/documents/migrations/0001_initial.py
6c30b613f871a3e0cbc4328170b19e5c35b4b42e
[]
no_license
alexmon1989/libraries_portal
2415cc49de33459266a9f18ed8bb34ac99d3eb7c
277081e09f6347c175775337bffba074a35f3b92
refs/heads/master
2021-01-23T07:25:53.884795
2018-12-25T14:29:29
2018-12-25T14:29:29
80,501,603
0
0
null
null
null
null
UTF-8
Python
false
false
3,144
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-06 13:45 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('home', '0008_profile_address'), ] ...
[ "alex.mon1989@gmail.com" ]
alex.mon1989@gmail.com
25d7024a3f721b5139b7b411e7d035a562642b33
a17b30a9ed9e18e89433aadbb54ac94e7ea12045
/tests/test_feature.py
79ae55a811979865532f3a906c12e46cbdee7443
[ "BSD-3-Clause" ]
permissive
HuttleyLab/mutationorigin
b327fcbc9d9403006f2e9f8166b73185698d7dca
614aa0bc25531a1a0bc24f94ad0ca0fc101aa88a
refs/heads/develop
2021-06-30T01:37:05.359810
2020-02-10T02:26:55
2020-02-10T02:26:55
210,751,092
1
3
BSD-3-Clause
2021-01-14T03:22:40
2019-09-25T03:53:11
Python
UTF-8
Python
false
false
3,705
py
from unittest import TestCase, main from mutation_origin.feature import (isproximal, get_feature_indices, feature_indices_upto, seq_2_features, seq_feature_labels_upto) __author__ = "Gavin Huttley" __copyright__ = "Copyright 2014, Gavin Huttley" __credits__ = [...
[ "Gavin.Huttley@anu.edu.au" ]
Gavin.Huttley@anu.edu.au
2cf68c4c488cae807414c8d867e8fab21bbd5f08
935e6fc5f32dfd6dcd7db4c2ef2b6083e9dcd867
/examples/whbm/lstm_task.py
4637ae76103386793980ff053a3f90f6a6978202
[]
no_license
zkmartin/tsframe
0e805d76c89f647aa102e0acd5d75831f5dd808f
b522180f8179b52c4b1e510882813da912243e33
refs/heads/master
2020-03-21T13:14:08.559186
2018-06-12T14:03:00
2018-06-12T14:03:00
138,594,568
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
import tensorflow as tf import core from tframe import console import model_lib as models def main(_): console.start('WHBM task (LSTM model)') # Configurations th = core.th th.model = models.lstm th.num_blocks = 1 th.memory_depth = 2 th.hidden_dim = 100 th.epoch = 50000 th.learning_rate = 1e-4 t...
[ "willi4m@zju.edu.cn" ]
willi4m@zju.edu.cn
8df4ca9b5e0fe7752819761c02071cc06fc4b1a2
68e76ef27df38b0fe2c1c993a9c15896563f950d
/2 Практика Робот/robot-tasks-master/task_27.py
adb36b2f4c4d8b0d56eece184d7dc0228bed4853
[]
no_license
Jumas-Cola/mipt_cs_on_python3_answers
72e9341656daa4afa35f8d39de917eb5471ee132
a2d128c4ce391bdeea6d20eb955855ad5bc5a0b4
refs/heads/master
2020-03-27T23:44:09.088994
2019-07-29T13:55:35
2019-07-29T13:55:35
147,341,552
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
#!/usr/bin/python3 from pyrob.api import * @task def task_7_5(): n = 0 i = 0 move_right() while not wall_is_on_the_right(): if i==n: fill_cell() n+=1 i=0 move_right() i+=1 if __name__ == '__main__': run_tasks()
[ "kbbyfl91@gmail.com" ]
kbbyfl91@gmail.com
8f90c43fdb9608255f7aee58ef6c166d69b5e865
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p00001/s858862768.py
ef31f0508caf06e2a57f4dcb7d9882d5a5cb5fd8
[]
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
137
py
#coding: utf-8 temp = [] for i in range(10): N = input() temp.append(N) temp.sort() print temp[-1] print temp[-2] print temp[-3]
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1aece47b2e3ac6f10e5639dc6cb4c83423d6d772
d01a8a10cb6b5bdde50e5f522cb8bd5012910393
/footfolder_25603/wsgi.py
615846566d9480ca8e337c50ac41ebfff8a07680
[]
no_license
crowdbotics-apps/footfolder-25603
7231ab4c4db7f082ff1488bc69e00f637950b3a6
82be1f77f7f2658ab6244a1913b0a8b8109452b4
refs/heads/master
2023-04-02T20:48:15.819920
2021-04-09T21:13:24
2021-04-09T21:13:24
356,399,532
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for footfolder_25603 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
d9442ec4991157e8ecacec81963170be831c63f4
3a28b1a12d0710c06f6360381ad8be6cf3707907
/modular_model/triHPC/triHPCThermo/HPCFeed2SelfCstmLiqEtlp_pP.py
50a3ca49480d7c661fda3be8fe4136376d2ddf41
[]
no_license
WheatZhang/DynamicModelling
6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02
ea099245135fe73e8c9590502b9c8b87768cb165
refs/heads/master
2020-06-15T14:12:50.373047
2019-07-05T01:37:06
2019-07-05T01:37:06
195,319,788
4
0
null
null
null
null
UTF-8
Python
false
false
247
py
def LiqEtlp_pP(P,T,x_N2): x = (P-5.40396585e+02)/1.23902400e-01 y = (T--1.78102248e+02)/2.35833333e-03 z = (x_N2-9.97848887e-01)/4.61257558e-04 output = \ 1*-7.45932272e-01 liq_etlp = output*1.00000000e+00+0.00000000e+00 return liq_etlp
[ "1052632241@qq.com" ]
1052632241@qq.com
03e81ca2b65853869b3c82f32c0a5025d22b0183
b99d44bc1eea1681185429dab0c238e9fa45dc2e
/datatypes/Data/Functor/pure.src.py
11f50c806d872d8946d83dd63337787f3565129f
[]
no_license
Testing-PureScript-Python/datatypes
0933218ed21329be440a0218ee996b206b9ecf50
838cbca1a87cb4eea8a22c796799fb7fad69191d
refs/heads/master
2021-01-05T21:33:40.556174
2020-02-24T05:02:32
2020-02-24T05:02:32
241,143,733
1
0
null
null
null
null
UTF-8
Python
false
false
7,528
py
from py_sexpr.terms import * from py_sexpr.stack_vm.emit import module_code res = block( "No document" , assign_star( "$foreign" , call( var('import_module') , "datatypes.ffi.Data.Functor" ) ) , assign_star( "ps_Control_Semigroupoid" ...
[ "twshere@outlook.com" ]
twshere@outlook.com
5c21a1f652a75a295576e53ff349f00acfdecbdf
9af29df29012ff521074aa1f3a6eacfe7f3eb6a9
/449/main.py
16040660dbe2ad5bb44c5084a592f09b3f83d7fe
[]
no_license
rh01/spring-go-code
e3a0cd1246683aa1bed8b29baa1c8b5ea87253c6
706ad785cbc4abb3566710c6e2904fe743c1cc6f
refs/heads/master
2021-04-13T02:36:54.892843
2020-03-22T06:52:08
2020-03-22T06:52:08
249,129,346
0
0
null
null
null
null
UTF-8
Python
false
false
1,301
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Codec: def serialize(self, root): """Encodes a tree to a single string. :type root: TreeNode :rtype: str ""...
[ "1048157315@qq.com" ]
1048157315@qq.com
1d6041b82892195a800cd204f526e36d4a3cbb2b
23f8076467b0cc276a91a3ee0a6fbd6e30d3905d
/resource/trac-plugins/workfloweditorplugin/workfloweditor/workfloweditor_admin.py
2a3d481fc0c5eefd49d67bd1a17ef4200bf1bb60
[]
no_license
okamototk/kanonconductor
b6f7d04b2e5c5acd6fd4ee6f6d2f05a4b02bce45
e6335c264e7a9a2e961e9a72db3660c2da1c24e3
refs/heads/master
2021-01-13T02:11:45.895523
2012-11-22T14:03:02
2012-11-22T14:03:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,149
py
# -*- coding: utf-8 -*- from trac.core import * from trac.web.chrome import ITemplateProvider, add_stylesheet, add_script from trac.admin import IAdminPanelProvider from trac.web.api import ITemplateStreamFilter, IRequestHandler from trac.web.chrome import Chrome from api import LocaleUtil class WorkflowEdit...
[ "devnull@localhost" ]
devnull@localhost
e83b9ea8504433bfed386da9ae633fcd91098dd9
73c01a3f052f8ef63890ec3c2e28403ad41e9a71
/td/migrations/0004_auto_20170207_1445.py
47bae81cbf8dd662e87669a0574724e21c14fb19
[]
no_license
Jokey90/aho
4c007c65c819efb726a732a8f36067c5a0226100
8bcd41e9ef7d40f07499429f385d4fec590636f6
refs/heads/master
2020-03-21T22:28:36.395996
2018-06-29T09:25:05
2018-06-29T09:25:05
139,128,834
0
0
null
null
null
null
UTF-8
Python
false
false
6,958
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-02-07 14:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ...
[ "Kishkurno_AS@dsdf.cds.ru" ]
Kishkurno_AS@dsdf.cds.ru
efc9bfc1f5bb128ff465c9c98e06e75c9ccd4d0f
7c3116ca951c1c989fcc6cd673993ce6b1d4be5a
/modules/iconcache_connector.py
626ff1385dbd7b7fefbfaf8cae8c755cde714200
[ "Apache-2.0" ]
permissive
Kimwonkyung/carpe
c8c619c29350d6edc464dbd9ba85aa3b7f847b8a
58a8bf7a7fc86a07867890c2ce15c7271bbe8e78
refs/heads/master
2022-12-15T13:51:47.678875
2020-09-11T05:25:43
2020-09-11T05:25:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,068
py
# -*- coding: utf-8 -*- import os from modules import manager from modules import interface from modules import logger from modules.windows_iconcache import IconCacheParser as ic from dfvfs.lib import definitions as dfvfs_definitions class IconCacheConnector(interface.ModuleConnector): NAME = 'iconcache_connector'...
[ "jbc0729@gmail.com" ]
jbc0729@gmail.com
9bc346a7ae74d0660986cc88c38cd2578d71e903
741333ced9ea1b326997dc031e5de27529bad04a
/glue_vispy_viewers/extern/vispy/testing/__init__.py
d8a7266c45d1e6c776b6e2397a6158aff13fb7d4
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
jzuhone/glue-vispy-viewers
f1b7f506d3263c4b0c2f4032d4940b931b2c1ada
d940705f4ba95f8d7a9a74d37fb68c71080b490a
refs/heads/master
2020-06-20T19:10:02.866527
2019-06-24T11:40:39
2019-06-24T11:40:39
197,217,964
0
0
BSD-2-Clause
2019-07-16T15:14:53
2019-07-16T15:14:52
null
UTF-8
Python
false
false
2,415
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Testing ======= This module provides functions useful for running tests in vispy. Tests can be run in a few ways: * From Python, you can import ``vispy`` and do ``vis...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
84d070f945255f5301c9b2a7602b9f80389ce53e
45f93a9d47204d76b8bf25a71dfb79403e75c33c
/next-greater-element-i.py
36f563052966cec348db92db4c5eb4254417f009
[]
no_license
tahmid-tanzim/problem-solving
0173bce1973ac3e95441a76c10324c0e1b0a57c3
6ddb51de6772130f209474e76f39ca2938f444f0
refs/heads/master
2023-06-25T02:18:03.690263
2023-06-20T06:58:46
2023-06-20T06:58:46
137,173,850
4
1
null
2022-03-30T08:28:41
2018-06-13T06:44:25
Python
UTF-8
Python
false
false
1,340
py
#!/usr/bin/python3 # https://leetcode.com/problems/next-greater-element-i/ from typing import List # Time O(n) # Space O(1) def nextGreaterElement(nums1: List[int], nums2: List[int]) -> List[int]: nums1Index = {} for i, n1 in enumerate(nums1): nums1Index[n1] = i nums1[i] = -1 n = len(nums...
[ "tahmid.tanzim@gmail.com" ]
tahmid.tanzim@gmail.com
c1e42865ba3ad91fb08d55eeef704a910a0e7138
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02771/s406306655.py
4ada1942e5bf7fc9e5cd7254eff15a8aba906b50
[]
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
170
py
A, B, C = map(int,input().split()) if A == B and B != C: print('Yes') elif C == B and C != A: print('Yes') elif A == C and C != B: print('Yes') else: print('No')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6f101ccbdad195f757a4123805328db4ef6ba9c5
ef5f98cdaca58bc9c1ba1a94a1ccf7bebc3f1260
/ir_actions_act_url.py
d2968068725bcdde7011beb4ddd33709c85f326e
[ "MIT" ]
permissive
tonygalmiche/is_plastigray
512ad911b3118c6aa2aab49f64ad7871fb80f195
774feea510fc0854776016dbbbc7472ebd1248c5
refs/heads/master
2023-07-25T21:49:56.284434
2023-07-18T13:15:28
2023-07-18T13:15:28
24,811,999
1
0
null
null
null
null
UTF-8
Python
false
false
6,794
py
# -*- coding: utf-8 -*- from openerp import models, fields, api, _ from openerp.http import request class ir_actions_act_url(models.Model): _inherit = 'ir.actions.act_url' # def get_soc(self, cr, uid): # user = self.pool['res.users'].browse(cr, uid, [uid])[0] # soc = user.company_id.partner_i...
[ "tony.galmiche@infosaone.com" ]
tony.galmiche@infosaone.com
c6431345804aab5097e1f006eec9f898f72ba44b
bc8509d57a162fb685da06a98c67dc8130d96316
/src/slim/nets/cyclegan_test.py
593af0862b804778ed17a102fa23ecd5566d776a
[ "Apache-2.0" ]
permissive
Ptolemy-DL/Ptolemy
2065e2d157d641010567062410bee4608691d059
f72a531286d17c69e0e2e84d0ad8a5b0587e2e08
refs/heads/master
2023-05-29T08:58:18.328258
2021-06-15T09:28:16
2021-06-15T09:28:16
284,590,756
115
5
NOASSERTION
2020-10-24T04:18:51
2020-08-03T03:06:35
Python
UTF-8
Python
false
false
4,398
py
# Copyright 2017 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...
[ "ygan10@ur.rochester.edu" ]
ygan10@ur.rochester.edu
7f02a5306eb52284c806b3ab7df0859ec1c2c51c
8e69eee9b474587925e22413717eb82e4b024360
/v2.5.7/toontown/speedchat/TTSCSellbotInvasionMenu.py
8118a9bd04309cc70834ec5261fd1357faa3fcfd
[ "MIT" ]
permissive
TTOFFLINE-LEAK/ttoffline
afaef613c36dc3b70514ccee7030ba73c3b5045b
bb0e91704a755d34983e94288d50288e46b68380
refs/heads/master
2020-06-12T15:41:59.411795
2020-04-17T08:22:55
2020-04-17T08:22:55
194,348,185
5
4
null
null
null
null
UTF-8
Python
false
false
1,641
py
from otp.otpbase import PythonUtil from otp.speedchat.SCMenu import SCMenu from otp.speedchat.SCMenuHolder import SCMenuHolder from otp.speedchat.SCStaticTextTerminal import SCStaticTextTerminal from toontown.speedchat.TTSCIndexedTerminal import TTSCIndexedTerminal from otp.otpbase import OTPLocalizer SellbotInvasionMe...
[ "s0mberdemise@protonmail.com" ]
s0mberdemise@protonmail.com
1d602b92c8fee5c4b37ab8b37affd34b151a01b7
9a343c495459e79dc408a102730bcaeac7fa8886
/CMDB_SYSTEM/autoclient/src/plugins/board.py
3da6198756f35073241b05ffde6ee417b3325017
[ "MIT" ]
permissive
MMingLeung/Python_Study
62d3ae92bf6760de0804aa5792f53fb3799486a2
4ff1d02d2b6dd54e96f7179fa000548936b691e7
refs/heads/master
2022-12-27T12:53:05.186800
2018-03-07T04:34:36
2018-03-07T04:34:36
92,124,981
3
1
MIT
2021-06-10T18:35:33
2017-05-23T03:28:52
JavaScript
UTF-8
Python
false
false
1,639
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import os from lib.conf.config import settings class Board(object): def __init__(self): pass @classmethod def initial(cls): return cls() def process(self, command_func, debug): if debug: output = open(os.path.join(settin...
[ "mingmingleung1991@gmail.com" ]
mingmingleung1991@gmail.com
d54177f734b5221d7c6a4fe45641dab66c10a92b
7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3
/codeforces/cf251-275/cf255/b2.py
ce0f660a579831dc53f02607d6e65c334c0b0e0d
[]
no_license
roiti46/Contest
c0c35478cd80f675965d10b1a371e44084f9b6ee
c4b850d76796c5388d2e0d2234f90dc8acfaadfa
refs/heads/master
2021-01-17T13:23:30.551754
2017-12-10T13:06:42
2017-12-10T13:06:42
27,001,893
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll s = raw_input() k = int(raw_input()) w = map(int, raw_input().split()) c = chr(w.index(max(w)) + ord("a")) s += c * k ans = 0 for i, si in enumerate(s): ans += w[ord(s[i]) - ord("a")] * (i + 1) print ans
[ "roiti46@gmail.com" ]
roiti46@gmail.com
7e8ffd682bae9bbaff7485ca16af4ec980de96df
89a90707983bdd1ae253f7c59cd4b7543c9eda7e
/programming_python/Gui/Tools/queuetest-gui.py
af7ab12cc6f3f174c8f6247680d767335d9e5fb5
[]
no_license
timothyshull/python_reference_code
692a7c29608cadfd46a6cc409a000023e95b9458
f3e2205dd070fd3210316f5f470d371950945028
refs/heads/master
2021-01-22T20:44:07.018811
2017-03-17T19:17:22
2017-03-17T19:17:22
85,346,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
# GUI that displays data produced and queued by worker threads import _thread import queue import time dataQueue = queue.Queue() # infinite size def producer(id): for i in range(5): time.sleep(0.1) print('put') dataQueue.put('[producer id=%d, count=%d]' % (id, i)) def ...
[ "timothyshull@gmail.com" ]
timothyshull@gmail.com
459925a74c6e9585cf8d4b23622b67d49986ab33
51aa2894c317f60726fe9a778999eb7851b6be3e
/140_gui/pyqt_pyside/examples/Advanced_Python_Scripting/008_Class_widget/006_Tree_widget_QTreeWidget.py
7c346ad7464b09da172de7525381e20a3b937bde
[]
no_license
pranaymate/Python_Topics
dd7b288ab0f5bbee71d57080179d6481aae17304
33d29e0a5bf4cde104f9c7f0693cf9897f3f2101
refs/heads/master
2022-04-25T19:04:31.337737
2020-04-26T00:36:03
2020-04-26T00:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,436
py
from PySide.QtGui import * from PySide.QtCore import * import os path = os.path.dirname(os.path.dirname(__file__)) class simpleWindow(QWidget): def __init__(self): super(simpleWindow, self).__init__() ly = QHBoxLayout() self.setLayout(ly) self.tree = QTreeWidget() ly.addWid...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
99843c7e7a1a0218b814ee58d5be89d0b2b70fee
b456cbde5527e5ef1617c4670f79052d9d9b1e0c
/fundemo/filter_demo.py
69e7002d9dbac921461db5d82938cf9a06002ac5
[]
no_license
srikanthpragada/PYTHON_07_JAN_2019_DEMO
071269dd59b954ecb69d33b63b0bece1f29d8563
f8e211da5460072b34526b50eebfe4df242c11a4
refs/heads/master
2020-04-16T03:31:44.032616
2019-02-16T12:27:31
2019-02-16T12:27:31
165,234,686
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
def positive(n): return n >= 0 nums = [10, -10, 20, 5, -7, 15] for n in filter(positive, nums): print(n) for n in filter(lambda v: v >= 0, nums): print(n)
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
994a21e1b5351bb8803115122538763a18ca4061
8ce656578e04369cea75c81b529b977fb1d58d94
/cabinet/management/commands/install_agent_document_categories.py
f7066c4849307c4450974b965c055fa0181053d4
[]
no_license
JJvzd/django_exp
f9a08c40a6a7535777a8b5005daafe581d8fe1dc
b1df4681e67aad49a1ce6426682df66b81465cb6
refs/heads/master
2023-05-31T13:21:24.178394
2021-06-22T10:19:43
2021-06-22T10:19:43
379,227,324
0
0
null
null
null
null
UTF-8
Python
false
false
3,460
py
from django.core.management import BaseCommand from clients.models import AgentDocumentCategory class Command(BaseCommand): help = 'Ининцализация документов агента' def handle(self, *args, **options): data = [ { 'name': 'Согласие на обработку персональных данных.', ...
[ "javad@MacBook-Pro-Namig.local" ]
javad@MacBook-Pro-Namig.local
d1f9a4f51096ddd9ae18d5367d377658e2bb5622
11fe265badfae33041cf5fcdde1aa08aa1ab6839
/LeetCode/290.WordPattern/Solution.py
304580b9b2cf4a2bf6f2f11f799295df3b755fb2
[]
no_license
CharlotteKuang/algorithm
04344a0f3d2675625843d47fbf7ea8ef5621ccc8
e5750c2eee33fcc94d5be1643576ace541036bf5
refs/heads/master
2021-01-19T09:12:48.102258
2016-03-21T05:46:11
2016-03-21T05:46:11
33,219,348
1
1
null
null
null
null
UTF-8
Python
false
false
742
py
class Solution(object): def wordPattern(self, pattern, str): """ :type pattern: str :type str: str :rtype: bool """ strArr = str.split(' ') if len(strArr) != len(pattern): return False count = 0 strDict = {} for p in pattern: if not p in strDict: strDict[p] = strArr[count] else: if st...
[ "charlottekuang430@gmail.com" ]
charlottekuang430@gmail.com
d60e472f2c0a6abc4f19eb90c7e3b6c0f3fdef2b
8dfe4b53fae92795405d789d52148d1291836afa
/python/python学习/day1/习题二-找出tmp目录下所有相同大小的文件.py
732d9fc54c4c063aaf8d66a4aec841a91b161712
[]
no_license
ymyjohnny/python
e07c54a88954e090cf3d30a4c6f6ac46353063fb
b483fd55e577d4dcceb5762bddf833df23874f3a
refs/heads/master
2021-01-10T01:10:19.038424
2019-07-02T02:40:23
2019-07-02T02:40:23
45,223,843
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
import os from os import path from os.path import join, getsize d_size ={} for root, dirs, files in os.walk('/tmp'): for file in files: # if '-' not in file: # continue # filenameall = os.path.join(dirs, file) filenameall = path.join(root,file) #print filenameall t...
[ "ymyjohnny@adsame.com" ]
ymyjohnny@adsame.com
b18236cb57a00898c5431242292ced8deffcd973
7bb747cb9a36b83fa1ba7e907f6198065f9bcab5
/models/GAN3D.py
785d3f7dd0b21e453601356a27467c3d221b18a4
[ "MIT" ]
permissive
stjordanis/3D-GAN-pytorch
87531716b1574798558f741fa84a80aeaacc7479
e3f640dbb8335cde239334b3b1ad143acd784c56
refs/heads/master
2022-04-17T12:52:03.358450
2020-04-15T16:48:25
2020-04-15T16:48:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,379
py
import torch import torch.nn as nn from torchsummary import summary """ Implementation based on original paper NeurIPS 2016 https://papers.nips.cc/paper/6096-learning-a-probabilistic-latent-space-of-object-shapes-via-3d-generative-adversarial-modeling.pdf """ class Discriminator(torch.nn.Module): def __init__(se...
[ "noreply@github.com" ]
stjordanis.noreply@github.com
3203f96749773440ba87ed366bd845ea5a43a2c9
f6080f777407734e4b42a0100df57f40f17f3ad2
/DSA 450 GFG/reverse_linked_list_iterative.py
791cbfa29840d79af71d950be8fd0124e0a84ec3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MannyP31/CompetitiveProgrammingQuestionBank
abf136410a9a76b186995b0e851cb3869938b5f5
23fd547b06a65ae0f5246d2500c4c81fab1a92e0
refs/heads/master
2023-08-24T23:06:13.740397
2021-09-30T06:38:34
2021-09-30T06:38:34
358,646,838
2
0
MIT
2021-09-30T06:38:35
2021-04-16T15:43:10
C++
UTF-8
Python
false
false
960
py
#https://leetcode.com/problems/reverse-linked-list/ # Iterative method #Approach : # Store the head in a temp variable called current . # curr = head , prev = null # Now for a normal linked list , the current will point to the next node and so on till null # For reverse linked list, the current node should po...
[ "dsrao0712@gmail.com" ]
dsrao0712@gmail.com
010fa572fce96bbea946684f5f4c6dd203f393d4
66a530b297725b1a2d1c95f95883145c04614ae1
/0x06-python-classes/4-square.py
b06dd0ffb43c9324bf62690a848170202420b3da
[]
no_license
Yagomfh/holbertonschool-higher_level_programming
4e6f28186eae18eaba60017fe49ac446a02cbdc5
1d15597a6040a8ee15b08447c478d0a2e79b5854
refs/heads/main
2023-04-23T18:23:28.096644
2021-05-18T08:12:27
2021-05-18T08:12:27
319,253,389
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
#!/usr/bin/python3 """Define a class Square.""" class Square: """A class Square.""" def __init__(self, size=0): """Initialize a new Square. Args: size (int): The size of the new square. Raises: TypeError: if size is not an int ValueError: if size ...
[ "yagomfh@gmail.com" ]
yagomfh@gmail.com
125b0fb3e4af48e20e3f8383e2f0dfe78cb291fe
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/gos_20200614063006.py
3b1d50fca3f5888ff5d4a21fa47bff0e281d9930
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
8,556
py
# # Імпорт фажливих бібліотек # from BeautifulSoup import BeautifulSoup # import urllib2 # import re # # Створення функції пошуку силок # def getLinks(url): # # отримання та присвоєння контенту сторінки в змінну # html_page = urllib2.urlopen(url) # # Перетворення контенту в обєкт бібліотеки BeautifulSoup #...
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
06c45efbe18b822fa8d30305bf3275b8c87b3b59
4ade586eb178b3cfb80f4fcabef023b1f1001d0c
/tips/DFS/arc_031_2.py
0abc82e408dc433f1ca32f30a0ad15e637d377b9
[]
no_license
TakeruEndo/atcoder
e3c5ef8ca802aa4995c471deca7b25daf56a06ef
5c812377096ae255b2fa51b3a29c1b2ea686ad57
refs/heads/master
2022-06-02T08:05:55.003353
2020-05-02T08:59:32
2020-05-02T08:59:32
234,338,212
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
import sys sys.setrecursionlimit(1000000) # 4方向への移動bベクトル dx = [1, 0, -1, 0] dy = [0, 1, 0, -1] def dfs(h, w, type_): if type_ == 'first': pass else: d[h][w] = 1 global count count += 1 # 4方向を探索 for dire in range(4): nh = h + dy[dire] nw = w + dx[dire] #...
[ "sitentaduro1118@gmail.com" ]
sitentaduro1118@gmail.com
ec3c89592d4d8c69c233e4564f3b388d26f5e4f4
91fb65972d69ca25ddd892b9d5373919ee518ee7
/pibm-training/sample-programs/exception_002.py
74b1fd23e26fd08cf017cd245626f8fdde4a1499
[]
no_license
zeppertrek/my-python-sandpit
c36b78e7b3118133c215468e0a387a987d2e62a9
c04177b276e6f784f94d4db0481fcd2ee0048265
refs/heads/master
2022-12-12T00:27:37.338001
2020-11-08T08:56:33
2020-11-08T08:56:33
141,911,099
0
0
null
2022-12-08T04:09:28
2018-07-22T16:12:55
Python
UTF-8
Python
false
false
251
py
#exception_002.py while True: try: n = input("Please enter an integer: ") n = int(n) break except ValueError: print("No valid integer! Please try again ...") print ("Great, you successfully entered an integer!")
[ "zeppertrek@gmail.com" ]
zeppertrek@gmail.com
708ea2020f4815fbe87b1959cbb649477a0ad86b
b28c2e04e2a093a7e83b214c877ea30978ff862e
/twitter_clustering/fetch_tweets.py
52d24a15e40e4d372cfb9cb8f5584ff41e3151f6
[]
no_license
markmo/experiments
ec00dcb6219cd422873ae3a018fc2bc8cadedd5c
f7d3f25dfef2472ec1b5bed30be7b46daa448257
refs/heads/master
2020-05-31T17:55:21.537201
2011-04-12T20:53:41
2011-04-12T20:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
# -*- coding: utf-8 =*- import codecs # import json import sys import twitter HASHTAG = sys.argv[1] PAGES = int(sys.argv[2]) RPP = int(sys.argv[3]) # http://search.twitter.com/search.json?pages=15&rpp=100&q=%23webstock&show_user=true # Twitter will only return a max of approx. 1500 results (rpp * pages), # showing a...
[ "markmo@me.com" ]
markmo@me.com
71a3bd14e7095ed858fc0f5c4537109f5b7edef0
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/union/duration-decimal/Schema+Instance/NISTXML-SV-IV-union-duration-decimal-enumeration-4-4.py
31399b0d101328ef12787056cf9e2b96842cc399
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
616
py
from output.models.nist_data.union.duration_decimal.schema_instance.nistschema_sv_iv_union_duration_decimal_enumeration_4_xsd.nistschema_sv_iv_union_duration_decimal_enumeration_4 import NistschemaSvIvUnionDurationDecimalEnumeration4 from output.models.nist_data.union.duration_decimal.schema_instance.nistschema_sv_iv_u...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
ce27f610b1f9156233d4b024e14ac4d729503599
1375f57f96c4021f8b362ad7fb693210be32eac9
/kubernetes/test/test_v1_replication_controller_status.py
b142b6da9d514589c5adfdf4056cc4689abbee8d
[ "Apache-2.0" ]
permissive
dawidfieluba/client-python
92d637354e2f2842f4c2408ed44d9d71d5572606
53e882c920d34fab84c76b9e38eecfed0d265da1
refs/heads/master
2021-12-23T20:13:26.751954
2017-10-06T22:29:14
2017-10-06T22:29:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
f2f2341b156aee87b251c8e69a037bcec17fe382
a8062308fb3bf6c8952257504a50c3e97d801294
/problems/N1015_Smallest_Integer_Divisible_By_K.py
ecc44268c08d271cd52b6ffb21cb2292647e28db
[]
no_license
wan-catherine/Leetcode
650d697a873ad23c0b64d08ad525bf9fcdb62b1b
238995bd23c8a6c40c6035890e94baa2473d4bbc
refs/heads/master
2023-09-01T00:56:27.677230
2023-08-31T00:49:31
2023-08-31T00:49:31
143,770,000
5
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
class Solution(object): """ num = a*K + r ==> num%K == r%K num_1 = num*10 + 1 = 10*a*K + 10*r + 1 ==> num_1%K == (10*r + 1)%K so for all num, num%K == (10*(last r) + 1)%K r = num%K ==> r < K so the while at most run K times, then : 1. it find num which num%K == 0 2. there is a ...
[ "rarry2012@gmail.com" ]
rarry2012@gmail.com
9df1c852a8bc6e84f68ce40d11133309ae3de95a
d75cbad7a79e24b49f405c6529633ea65c9b286d
/basic_linear_regression.py
37b7c00364080d4167bba791a2f3655a849f9e08
[]
no_license
aj2622/ML_HW1
bc49e61781f108c66dfd598423915e27c72f7b3a
7497f8d71f6b731fc232058d6a0597af4884a53f
refs/heads/master
2020-04-22T08:49:52.188349
2017-10-31T14:23:02
2017-10-31T14:23:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,108
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': test_data = pd.read_csv('data/4_test.csv') train_data = pd.read_csv('data/4_train.csv') train_t = np.array(train_data['t'].values) test_t = np.array(test_data['t'].values) train_x = np.array(train_dat...
[ "ya70201@gmail.com" ]
ya70201@gmail.com
dc217de412ac4cd7870e2b1f1bb8531cab88a313
accfe90fbd439fa4ef0655114a5b3d9d771ca837
/euler53.py
f0facc7f50f6052f742c862cf253746770a693ac
[]
no_license
hackingmath/Project-Euler
57641ba6e82706e5a3585e8072c70db81d97d984
83863e5351ba4425bd803ae0d01efeb824ffa7ca
refs/heads/master
2022-02-22T09:06:10.215593
2019-07-13T16:21:47
2019-07-13T16:21:47
111,737,031
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
'''Problem 53: Combinatoric selections''' import time t1 = time.time() def fact(n): if n <= 1: return 1 return n*fact(n-1) def combinations(n,r): '''returns nCr''' return fact(n)/(fact(r)*fact(n-r)) tot = 0 for n in range(1,101): for r in range(1,101): if c...
[ "noreply@github.com" ]
hackingmath.noreply@github.com
a9f2c564853bc7441c44a4c883e66286c4babe0a
4d9bdaf3deb0f78dc99eb87b8cd4386e8f3069de
/scripts/PostStacksFiltering/genMissingLoci.py
139e11d32999f22d8bad689cab5607c7e34c1d16
[]
no_license
mfisher5/PCod-Compare-repo
5b6f688097feb279a26cd12f43bf91f9a5a83e15
2320781656836c1d9534be1a406b1cae4c47ebe1
refs/heads/master
2020-03-07T12:33:25.000207
2018-06-10T23:05:23
2018-06-10T23:05:23
127,480,623
2
0
null
null
null
null
UTF-8
Python
false
false
3,424
py
### This file generates Eleni's Missing Loci filtering file ### ## MF 2/24/2017 ## Arguments: ##-- population map ######################### import sys popmap = open(sys.argv[1], "r") script = open("FilterLoci_by_MissingValues.py", "w") ## Start writing the MAF filtering script ## script.write("### This script...
[ "mfisher5@uw.edu" ]
mfisher5@uw.edu
4a29737770e7086e49a02c6b2ad4f68990dfe713
dc7c62f22e5b7da4691d2bdf9a1da2f3ba9edd75
/Course_case/2018_11_13/triangular2.py
d06a373b587ee46f8804945adac150cc981320b4
[]
no_license
xiaohaiguicc/CS5001
563c17637f06f0074ccb743db4f0bdd2a326f978
51698ba8bfc2201639e6f4d358e0fc531780d2fc
refs/heads/master
2020-04-06T17:32:55.046301
2018-12-20T23:53:05
2018-12-20T23:53:05
157,664,298
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
import sys def main(number): print(add_up(number, 0, 0)) def add_up(number, counter, total): if(counter == number): return total else: counter += 1 total = total + counter print(total) return add_up(number, counter, total) # Tail recursion should maintain ...
[ "xiaohaiguicc@gmail.com" ]
xiaohaiguicc@gmail.com
a8c8e4c916d17a090cfcb804aa6462fed27bdbb2
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters_py3.py
27b1bcd7ec17e77255ff1d4ced6bc9eb6304a6ed
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
1,204
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
0a76d52c519c2b9ff4438e8567ebfbc0b5e3cb2e
d8f16b24ba0db0abdcecbbce1cffdb2406a0e652
/onlineshopping/myshopping/migrations/0007_auto_20200310_1644.py
85939b0c355318b8cf5b90416ea6310e30142333
[]
no_license
roshan-pokhrel2/djangoecommerce
5c482221dd8dbd043fa8239345797444a4db2224
21b52e33396af9b0e2af338f0dd3186026f40edb
refs/heads/master
2021-04-04T22:09:58.792737
2020-03-20T08:19:38
2020-03-20T08:19:38
248,493,578
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
# Generated by Django 3.0.3 on 2020-03-10 16:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myshopping', '0006_order_orderitem'), ] operations = [ migrations.RemoveField( model_name='orderitem', name='item', ...
[ "you@example.com" ]
you@example.com
19a3eee629fa47e078d018c096fe5cbfebf9e3ca
9b527131c291b735a163226d1daac2397c25b712
/Lecture5/roma_changing_signs.py
c0d266b142cfb3c1ac106e243bb79b49848d36dc
[]
no_license
arnabs542/BigO-Coding-material
dbc8895ec6370933069b2e40e0610d4b05dddcf2
3b31bddb1240a407aa22f8eec78956d06b42efbc
refs/heads/master
2022-03-19T18:32:53.667852
2019-11-27T23:55:04
2019-11-27T23:55:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
if __name__ == '__main__': n, k = map(int, input().split()) arr = list(map(int, input().split())) i = 0 current_sum = 0 done = False while k > 0: if arr[i] < 0: k -= 1 arr[i] *= (-1) current_sum += arr[i] elif arr[i] == 0: k = 0 current_sum += sum(arr[i:]) done = True else: #arr[i] >...
[ "tranhoangkhuongvn@gmail.com" ]
tranhoangkhuongvn@gmail.com
56291aa4a0f783a753deddf4f50d79d3d9595070
d1f971b9fa0edfa633b62887cf9d173d6a86a440
/concepts/Exercises/fractions_example.py
9c1d73c4e52a77b235af4df8a39a46bdb6118ce0
[]
no_license
papan36125/python_exercises
d45cf434c15aa46e10967c13fbe9658915826478
748eed2b19bccf4b5c700075675de87c7c70c46e
refs/heads/master
2020-04-28T10:01:10.361108
2019-05-10T13:45:35
2019-05-10T13:45:35
175,187,760
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
import fractions # Output: 3/2 print(fractions.Fraction(1.5)) # Output: 5 print(fractions.Fraction(5)) # Output: 1/3 print(fractions.Fraction(1,3))
[ "noreply@github.com" ]
papan36125.noreply@github.com
02214ea3f8469684440d875077648f0e178654d6
4142b8c513d87361da196631f7edd82f11465abb
/python/round690/1462A.py
a873968e7e5d1a7c9aafc73f818dd309e372ef2b
[]
no_license
npkhanhh/codeforces
b52b66780426682ea1a3d72c66aedbe6dc71d7fe
107acd623b0e99ef0a635dfce3e87041347e36df
refs/heads/master
2022-02-08T17:01:01.731524
2022-02-07T10:29:52
2022-02-07T10:29:52
228,027,631
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from sys import stdin for _ in range(int(stdin.readline())): n = int(stdin.readline()) a = list(map(int, stdin.readline().split())) res = [] for i in range(n // 2): res.append(a[i]) res.append(a[-i - 1]) if n % 2 == 1: res.append(a[n // 2]) print(*res)
[ "npkhanh93@gmail.com" ]
npkhanh93@gmail.com
64d8680345a04444e6e646f2a2095d2dc6a64b52
256746f29f9995accd4fee35b9b8981264ca2e37
/Ch05/2017-8-21_2.py
e37173b77da869c3f53193f47a2a80dc66a3786c
[]
no_license
Vagacoder/Python_for_everyone
adadd55561b2200d461afbc1752157ad7326698e
b2a1d1dcbc3cce5499ecc68447e1a04a8e59dc66
refs/heads/master
2021-06-22T00:26:02.169461
2019-05-25T16:06:04
2019-05-25T16:06:04
114,508,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
## Ch05 P 5.26 def read_digit(code): bar1 = read_bar(code[0]) bar2 = read_bar(code[1]) bar3 = read_bar(code[2]) bar4 = read_bar(code[3]) bar5 = read_bar(code[4]) number = bar1 * 7 + bar2 * 4 + bar3 * 2 + bar4 * 1 + bar5 * 0 if number == 11: number = 0 return number ...
[ "noreply@github.com" ]
Vagacoder.noreply@github.com
3bfd0f28ba277e393000a71c1308dee534790150
d57148c74b79954ff762ce3a02c1b0ef3e79d6a1
/libs/smartmeshsdk-REL-1.3.0.1/libs/VManagerSDK/vmanager/models/user_list_element.py
bcb914e1417f2a8286c6556ef01fbd45bcd0d182
[ "BSD-3-Clause" ]
permissive
realms-team/solmanager
62fb748b140361cf620b7dd8ff6df755afd42bbe
95fa049df041add5f8d37c053ef560d0e5d06dff
refs/heads/master
2020-04-11T10:00:21.086457
2018-11-20T15:49:27
2018-11-20T15:49:27
40,271,406
0
0
BSD-3-Clause
2018-11-20T15:49:28
2015-08-05T22:15:39
Python
UTF-8
Python
false
false
3,057
py
# coding: utf-8 """ Copyright 2015 SmartBear Software 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...
[ "twatteyne@gmail.com" ]
twatteyne@gmail.com
d6bf95c21fddc999194bb12a05edb9c1c0d457aa
2ed6e49f6bb841a36f51e7562a71788682f2f282
/backend/backend/git_utils.py
56837bde860f73ea789a3c21d8e06a4b3571e8bf
[ "Apache-2.0", "MIT", "CC-BY-4.0" ]
permissive
arthur-flam/qaboard
7fcaf3c351bd94d457dd14b9f9c6793a583d6841
7a11c3c2279595f87bc113c7d383d11241d83946
refs/heads/master
2022-10-07T13:55:13.356189
2020-06-05T07:07:05
2020-06-05T07:07:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
from git import Repo from git import RemoteProgress from git.exc import NoSuchPathError class Repos(): """Holds data for multiple repositories.""" def __init__(self, git_server, clone_directory): self._repos = {} self.git_server = git_server self.clone_directory = clone_directory def __getitem__(s...
[ "arthur.flam@samsung.com" ]
arthur.flam@samsung.com
9254d9688bf09016bb2da20222a8382e55e09309
22d4bdff084db5becb8c76d5d8c3ce6ea095d3d8
/tcapy/vis/computationresults.py
a9064c413d1e8b0f07ce94559ac9eeb040c73b7c
[ "Apache-2.0" ]
permissive
sbnair/tcapy
1768220657bdd4d3bdc0f2e8248e971c76ed4953
380d49139d7af9fd4cf63d406029833c9a41cc70
refs/heads/master
2021-05-17T14:13:22.206884
2020-03-27T17:10:06
2020-03-27T17:10:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,549
py
from __future__ import print_function __author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com # # Copyright 2018 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro # # See the License for the specific language governing permissions and limitations under the License. # import abc from tcapy.util.utilfunc import ...
[ "saeedamen@hotmail.com" ]
saeedamen@hotmail.com
a74d2f981d3af22b80dfd2637fd66240f655a8e6
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/mysensors/test_light.py
8d4ce445779881be401c869f41257377a2583ea5
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
8,086
py
"""Provide tests for mysensors light platform.""" from __future__ import annotations from collections.abc import Callable from unittest.mock import MagicMock, call from mysensors.sensor import Sensor from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_RGB_COLOR, ATTR_RGBW_COLOR, DOMAIN...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
dcabca991e405722f266c26a79a6218eee88a8e5
bcda330eab528871da7fe007851f9554f2e19e66
/dfp/get_orders.py
839da7a3b615c878b631f55ed7c0aa7da9f8bd90
[ "MIT" ]
permissive
gmalta/dfp-prebid-setup
2b80cc6ac53240c8e2caec6abadb6df349ada6ae
d965f9a70e56a8444ecd80566028f09964b51d04
refs/heads/master
2023-08-19T02:02:30.265693
2021-09-22T19:47:17
2021-09-22T19:47:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,087
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from googleads import ad_manager from dfp.client import get_client logger = logging.getLogger(__name__) def get_order_by_name(order_name): """ Gets an order by name from DFP. Args: order_name (str): the name of the DFP order Returns: a...
[ "kevin.jennison1@gmail.com" ]
kevin.jennison1@gmail.com
65837fe0fa38a44d96ddeb2ef1f74ed692cc0f06
fa14db78eac812bed2acf5801f4cbae87753d5aa
/setup.py
003a7ee178ac36569d02a6cea310d9bc66e5f341
[]
no_license
rogerlew/dictset
61abcf14313d29150d4e320c4a28fce73bcaa8ca
97ece69bf4ceb265c36f6ea79f98b6553b9ccc1c
refs/heads/master
2016-09-03T07:41:45.098506
2011-05-13T19:41:57
2011-05-13T19:41:57
32,486,726
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
# Copyright (c) 2011, Roger Lew [see LICENSE.txt] # This software is funded in part by NIH Grant P20 RR016454. ##from distutils.core import setup from setuptools import setup setup(name='dictset', version='0.3.1.2', description='A specialized Python container datatype for managing collections of sets....
[ "rogerlew@gmail.com" ]
rogerlew@gmail.com
3c9255c8322cd490ba9c22476e6343bc1b6cc27b
95fe42bbae799ef76d21af95d51807d0f6e29638
/conf/settings.py
5e6a56205a322686ea3cb3edd7e8ad75798da3ab
[]
no_license
PhyCosmos/Back-end
8a8eda71a30eee3de7a58acb9829004db5664845
1826db6efaef5114267e8e684fc66f2316280259
refs/heads/main
2023-06-21T16:08:53.287483
2021-06-07T17:14:08
2021-06-07T17:14:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,394
py
""" Django settings for conf project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os from p...
[ "ehsgnl123@naver.com" ]
ehsgnl123@naver.com
34a1c01f9276612864b317d7f6156216a0bbf4c8
723e52a46ef0b3b3927a842799fa8b99d7a678a6
/generic_crud/serializers.py
dee90946baae87a30031eae803273dbc2f1bc630
[]
no_license
MilanTagline2021/rest-api-views
aa2f17279405f839ad86f03e0eea034d82c6bbb5
5f1b7743d84ce754d4e69192fdb9f0526945e801
refs/heads/master
2023-08-21T02:27:37.917621
2021-10-21T10:59:38
2021-10-21T10:59:38
419,275,142
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from rest_framework import serializers from generic_crud.models import Student class StudentSerializers(serializers.ModelSerializer): class Meta: model = Student fields = ['id','name','roll','city']
[ "milans.tagline@gmail.com" ]
milans.tagline@gmail.com
55f888fe74738900a474126796c6ce311ab676a7
5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1
/Section 7 - Dictionaries/buildDictResults v2a.py
2d965ef573e752a8df80252691d83a5278a6d5d0
[ "CC0-1.0" ]
permissive
pdst-lccs/lccs-python
b74ef2a02ac8ad2637f713fff5559f4e56c9827d
95cb7ece05716521e9951d7a40de8fb20a88021f
refs/heads/master
2023-05-28T00:46:57.313972
2023-05-22T10:16:43
2023-05-22T10:16:43
240,501,524
21
18
null
null
null
null
UTF-8
Python
false
false
550
py
# Event: LCCS Python Fundamental Skills Workshop # Date: Dec 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: A program to demonstrate how to build a dictionary # Version 2a. A dictionary to store multiple results for a student results = {} name = input("Enter student name: ") ...
[ "noreply@github.com" ]
pdst-lccs.noreply@github.com
73f7a9ecc236f542ada437f4643ea62163cf9f9a
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/clans/restrictions.py
66ef025b31ed78f0d1115478c56bf6c0174e879a
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
6,260
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/clans/restrictions.py import weakref from constants import CLAN_MEMBER_FLAGS from debug_utils import LOG_DEBUG, LOG_WARNING from account_helpers import isOutOfWallet, isClanEnabled from gui.clans.settings import error, success, ...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
c8505627362494931737ca5085fe06aca508dd70
731c6170829acf912143f9e65d86f45bce9102ea
/test/test_device.py
caf9bb0a60e0bc05ed0e29dd1b6a4314f93db19f
[]
no_license
Oculus-Dei/Oculus-Dei
9774eae334a86d8e2b4a91d6da889f546a695ee2
cde8cec5898e11aa274c609e1d4106b6e51f7896
refs/heads/master
2021-01-19T06:36:32.709805
2016-07-31T17:30:10
2016-07-31T17:30:10
60,718,426
3
0
null
2016-07-12T17:01:53
2016-06-08T17:53:48
Python
UTF-8
Python
false
false
175
py
# encoding: utf-8 """ Created by misaka-10032 (longqic@andrew.cmu.edu). TODO: purpose """ import ocd.device def test_device(): d = ocd.device.Device() assert True
[ "longqicai@gmail.com" ]
longqicai@gmail.com
61cf66905bc0a97d62d0b3be655a9527446f7069
ad3e8de09b8a314f4a6d9a59c54a421805776dc5
/chapter2_notebook.py
a82b3519e837bab532e53b551c2ce2e4337e76e6
[]
no_license
georstef/Python_ObjectOrientedProgramming
6401a96195238fcc1624c519984e37e0894f92a7
6c00f30b31e8754dd18aa45bb42033c4d15b46ae
refs/heads/master
2020-12-24T17:25:58.577160
2015-11-08T19:01:50
2015-11-08T19:01:50
15,637,218
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
import datetime # global (singleton) last_id = 0 class Note: def __init__(self, memo, tags=''): self.memo = memo self.tags = tags self.creation_date = datetime.date.today() global last_id last_id += 1 self.id = last_id def match(self, filter): ''' ...
[ "georstef@gmail.com" ]
georstef@gmail.com
2d5465cffaec39f1e38615d0dc066898635e8dfc
7775a073201f568022bbb4ed3d04cb1639ae5e65
/AtguiguShop/apps/trade/migrations/0001_initial.py
e2f1b9b40d2d911ffa6afe615e9928b8c1f80b8c
[]
no_license
a289237642/rest-api
25db777fa1ca85fee77f86b8ae92d3656ce2ef40
fd2c70245cb12212dcd2fd8899f789c3e41d1af2
refs/heads/master
2020-04-24T14:12:13.312539
2019-03-14T08:41:27
2019-03-14T08:41:27
172,012,413
1
0
null
null
null
null
UTF-8
Python
false
false
3,218
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-18 11:28 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('goods', '0001_initial'), ...
[ "a289237642@163.com" ]
a289237642@163.com
4c9ab3dc477a8746e0cb8fbe150a54692002b6d8
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5686275109552128_1/Python/SiaKateb/B.py
6a3e7e9c2dee218a9b3e27a1dcc9f988f0fd6609
[]
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
286
py
__author__ = 'siavash' T = input() for t in range(T): D = input() P = list(map(int, raw_input().split(" "))) ans = max(P) Z = 2 while Z < ans: ans = min(ans, sum([(x - 1) // Z for x in P]) + Z) Z += 1 print 'Case #{0}: {1}'.format(t + 1, ans)
[ "eewestman@gmail.com" ]
eewestman@gmail.com
a0c388980789e8279aead795a5456b5d20c71d8c
3bae1ed6460064f997264091aca0f37ac31c1a77
/apps/cloud_api_generator/generatedServer/tasklets/disk/getXMLSchema/disk_getXMLSchema.py
7fb7c7b36663e1883b9bbf6c12744ce01caf7615
[]
no_license
racktivity/ext-pylabs-core
04d96b80ac1942754257d59e91460c3a141f0a32
53d349fa6bee0ccead29afd6676979b44c109a61
refs/heads/master
2021-01-22T10:33:18.523799
2017-06-08T09:09:28
2017-06-08T09:09:28
54,314,984
0
0
null
2017-06-08T09:09:29
2016-03-20T11:55:01
Python
UTF-8
Python
false
false
180
py
__author__ = 'aserver' __tags__ = 'disk', 'getXMLSchema' __priority__= 3 def main(q, i, params, tags): params['result'] = '' def match(q, i, params, tags): return True
[ "devnull@localhost" ]
devnull@localhost
adbdceca5ed229f3715c5b02449a90573cf11f36
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Latn.MCD/Serif_12/pdf_to_json_test_Latn.MCD_Serif_12.py
e2a6c3fafba9bcc5590f3fd798d4299201704f19
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
305
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.MCD/Serif_12/udhr_Latn.MCD_Serif_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
9bd9447b16887d8c853d33373cfe76d2145cc3ee
1ba2f5282084f967aed5df2f614b79366ea8070c
/sort/bubble_sort/bubble_sort.py
bb27adb5aa11000f9146b1eae2954c22a32fddb3
[]
no_license
rohitmi0023/cs_programs
fcdb45a7ff3291c6fa0b44cfdbfd76d826bd805f
7396daf0c2a65574da674c6dfef91a09138034ac
refs/heads/master
2023-07-17T08:47:54.806128
2021-09-01T16:36:52
2021-09-01T16:36:52
205,328,085
1
0
null
null
null
null
UTF-8
Python
false
false
805
py
def bubble_sort_func(lists): # In total we have to make length - 1 iterations for i in range(1, len(lists)): # In an iteration we have to further make length - i iterations for j in range(0, len(lists) - i): # Comparing the current and the next element if lists[j] > lists...
[ "you@example.com" ]
you@example.com
53d3bdc39fa2dc67b61a5ac0caf041498f56ccdb
6206620e1a20c2d8847e63be974f90408c0cfa3c
/Advanced_python/polymorphism/method_overriding.py
1bedabce0838dc15938ad1f2989ed30fdd8f7934
[]
no_license
vinuv296/luminar_python_programs
c1eb4f91201634c999b427dd13b79968486e9e9e
08c078e25c63b71e97c60a6b2ddd3911e2c915d2
refs/heads/master
2023-04-05T05:02:47.023113
2021-04-19T10:18:18
2021-04-19T10:18:18
358,550,878
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
class Parent: def properties(self): print("10 lakh rs,2 Car") def mary(self): print("with raju") class Child(Parent): def mary(self): print("With Gopi") c=Child() c.mary()
[ "vinuv296@gmail.com" ]
vinuv296@gmail.com
b8dbb70f4b3a26af37196a9a463f6061d6e2e864
bfa4447ec5e92017aec95ee6d349d91b5733afca
/test/test_assign/files/otter-correct/student/tests/q1.py
bf7a73d9e1cf2f82d664f62d60f74fae56746002
[ "BSD-3-Clause" ]
permissive
ucbds-infra/otter-grader
4020c14614fc62a93ce564c6b8ad88269defac97
e6ece6b53ef2291f2724ff9965f09d910ad10e7e
refs/heads/master
2023-08-23T22:46:15.793814
2023-08-18T21:53:52
2023-08-18T21:53:52
208,363,438
112
62
BSD-3-Clause
2023-09-12T00:01:41
2019-09-13T23:40:57
Python
UTF-8
Python
false
false
526
py
OK_FORMAT = True test = { 'name': 'q1', 'points': 3.75, 'suites': [ { 'cases': [ {'code': '>>> isinstance(x, int)\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> None\n', 'hidden': False, 'locked': False}, {'code': '>>> 0 < ...
[ "cpyles@berkeley.edu" ]
cpyles@berkeley.edu
ed2e5a15b0308028be8c4dcf2f25b68e7a37e18a
771b8d8b60783ed8181de344e418691bd2cf882d
/nb_hook/migrations/0001_initial.py
18adea7e3bab930b9cade0de8bcf78deae8ae901
[]
no_license
mozilla/mozilla_webhook_sync
3c99eaa43e36e21b5a55e95c9e75c613fbef6aaa
8e955e1f6416bbb4e04246f0bbc67acab6e73af3
refs/heads/master
2023-09-03T22:53:22.737607
2017-11-06T11:22:40
2017-11-06T11:22:40
66,299,225
0
0
null
2016-10-18T21:54:49
2016-08-22T18:48:53
Python
UTF-8
Python
false
false
679
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-19 22:45 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateMode...
[ "walter@fissionstrategy.com" ]
walter@fissionstrategy.com
7a0b281c0707828a0e8c7afce58a3cbce2546ca8
faf793376991092615975a559c6bed4e093acc44
/SECTION 25 first step with Django/180 to install Django.py
0ce11cffde7701e2493656f21e382c11f53f4e95
[]
no_license
jdiaz-dev/practicing-python
2385f2541759cfc9ed221b62030c28e8cf6ddde4
139b7dd4332e9ab3dd73abee0308cff41f4657fe
refs/heads/master
2023-04-05T06:13:53.590830
2023-03-19T16:06:00
2023-03-19T16:06:00
320,443,146
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
""" --there are many ways to install Django --first: podemos montar un entorno virual de Python, que permite saltar de una version a otra de python y saltar de otra version a otra de Django, esto esta bien; pero la instalación se complicaría, y no es necesario para una entorno local de desarrollo --la in...
[ "lordgelsin26@gmail.com" ]
lordgelsin26@gmail.com
4ce3a8efd95d236d73a447758148f57878a4bfdb
ebc7c4d82eed374060bf6bbc7df76930412ba26a
/plait/api.py
98476b79c0cb686fc7f39bb0936a197961f50a2a
[ "MIT" ]
permissive
dustinlacewell/plait
6878b2124069373fd2cafdcf5ba1ca628bda64ec
b57bc353298401af41b286fbefa6120b236be102
refs/heads/master
2021-01-10T12:23:34.931115
2015-12-04T21:55:30
2015-12-04T21:55:30
45,318,025
2
0
null
null
null
null
UTF-8
Python
false
false
980
py
import inspect from twisted.internet import reactor from twisted.internet.threads import blockingCallFromThread as blockingCFT from plait.task import thread_locals class RemoteCallError(Exception): pass def run(cmd, fail=False): """ Execute a command on the remote host. Blocks by calling into the main r...
[ "dlacewell@gmail.com" ]
dlacewell@gmail.com
6f7783056afc32c59c56147ec14e1af860df6a49
b48e2c61292ad9c6621bee95cd70265911d6d636
/tests/test_marketstack/test_import.py
8e369050c5f3d39e3e813414f40f454211bfeaca
[ "BSD-3-Clause" ]
permissive
kvh/snapflow-stocks
9f544769b14887338e35df7c6592a035c7bddd6c
2531749d86b9ca8a47b3443605d6a9f69c219a03
refs/heads/master
2023-06-04T15:47:59.157490
2021-06-18T04:15:22
2021-06-18T04:15:22
320,654,176
1
0
BSD-3-Clause
2020-12-15T20:08:19
2020-12-11T18:33:51
Python
UTF-8
Python
false
false
1,807
py
import os from snapflow import graph, produce def ensure_api_key() -> str: api_key = os.environ.get("MARKETSTACK_ACCESS_KEY") if api_key is not None: return api_key api_key = input("Enter Marketstack access key: ") return api_key def test_eod(): from snapflow_stocks import module as sto...
[ "kenvanharen@gmail.com" ]
kenvanharen@gmail.com
020896c5168cdb397dd61350967710c264a45466
ad3fd0595c60cd10130676203ca695781ba59fa5
/RicardoFabbri18022013_2257_gml_fb/scripts/rdfFBEgoGML.py
6c096e21a08746b169e5094ef97e3471bd11bb1c
[ "CC0-1.0" ]
permissive
labmacambira/fbEgoGML
e3d5b499df5ad48613f5071cae8965a5b22b3315
3b725b0a6c1998788bcb9b6ebcc966ed4cb083fd
refs/heads/master
2021-05-30T15:07:38.155574
2015-12-11T10:13:15
2015-12-11T10:13:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,911
py
import social as S, percolation as P, os import importlib #importlib.reload(P.rdf) importlib.reload(S) importlib.reload(S.fb) importlib.reload(S.fb.read) importlib.reload(S.fb.gml2rdf) c=P.utils.check umbrella_dir="fbEgoGML/" fpath="./publishing/fb4/" dpath="../data/fb/gml/" scriptpath=os.path.realpath(__file__) fname...
[ "renato.fabbri@gmail.com" ]
renato.fabbri@gmail.com
b8ed560f29c16f3eb2bbbe66bd280997880c9fad
6fa831a9ac84ab220aad1195365640cabf3eeb88
/tools/calibrate/min_quad.py
10eff68e71089a0ffedda59e1d153540a3f30fe1
[]
no_license
d4niele/maia
1e68faae43687a4d12f29fff7fe94424e9713da1
178087336a32856c5f46e364bf164dc1e229b59d
refs/heads/master
2020-05-24T16:07:53.666392
2019-07-02T22:42:50
2019-07-02T22:42:50
187,349,363
1
0
null
null
null
null
UTF-8
Python
false
false
217
py
import numpy as np from matplotlib import pyplot as plt N = 10 xs = np.random.random(N) ys = np.random.random(N) trend = np.polyfit(xs,ys,1) plt.plot(xs,ys,'o') trendpoly = np.poly1d(trend) plt.plot(xs,trendpoly(xs))
[ "you@example.com" ]
you@example.com
767ade35eef66aad7a14b9a9d020379e637aa45e
fd379769378d129ae2f038a01f85391034491d61
/python/inversions.py
67c0c16bafa80a0b69c63aab4ce145dfca63c857
[ "MIT" ]
permissive
drusk/algorithms
824593d489904f6efa3ccf2a44fab69aafec9cd4
c8bdc1c1aff6386e37c023bf1f4984e5addbcab5
refs/heads/master
2021-01-10T19:33:45.092215
2013-12-17T19:59:54
2013-12-17T19:59:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
""" Count inversions in a list of numbers. """ __author__ = "David Rusk <drusk@uvic.ca>" def main(): input_file = ("/home/drusk/Documents/Courses/online/algorithms1/" "assignments/a1/IntegerArray.txt") numbers = [] with open(input_file, "rb") as filehandle: for line in filehandl...
[ "drusk@uvic.ca" ]
drusk@uvic.ca
5de26745bb13ad2ae79516eb18e726a7104d168a
51d0377511a5da902033fb9d80184db0e096fe2c
/30-case-studies-in-statistical-thinking/5-earthquakes-and-oil-mining-in-oklahoma/01-eda-plotting-earthquakes-over-time.py
fd64e420d5acd064b26dfb6c353d44084515012c
[]
no_license
sashakrasnov/datacamp
c28c6bda178163337baed646220b2f7dcc36047d
759f4cec297883907e21118f24a3449d84c80761
refs/heads/master
2021-12-07T02:54:51.190672
2021-09-17T21:05:29
2021-09-17T21:05:29
157,093,632
6
5
null
null
null
null
UTF-8
Python
false
false
1,291
py
''' EDA: Plotting earthquakes over time Make a plot where the y-axis is the magnitude and the x-axis is the time of all earthquakes in Oklahoma between 1980 and the first half of 2017. Each dot in the plot represents a single earthquake. The time of the earthquakes, as decimal years, is stored in the Numpy array time,...
[ "a@skrasnov.com" ]
a@skrasnov.com