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
4b7c937f22f3014ec84bad9e620ce8522f0d431f
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/bin/jupyter-qtconsole
488a1d74540d18578cde9d0aa14b719fbdb5f409
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
101
#!/usr/bin/env python from qtconsole.qtconsoleapp import main if __name__ == '__main__': main()
352121d56b8a5bb9fa3eec78314000a59d9186b6
b50508302647ad849029210bff200930b1902987
/apps/articles/migrations/0001_initial.py
dcee0bc7423816df2b8733388e92bfed9f9a7652
[]
no_license
tianjiajun123/myBlog
a46718ed3fde114bfa282428d0c8b7f36b5adce9
2cd67bc0e85974cda477c366db9f7051b8b11132
refs/heads/master
2023-02-15T11:12:37.266980
2021-01-06T10:58:50
2021-01-06T10:58:50
326,363,135
0
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
# Generated by Django 3.1.4 on 2021-01-03 20:04 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...
d0999586ccbd5cec385e34f8a7edbf19decb2542
4443d08048f9980045e5f0541c69db0d756391d1
/partner_ngos/programs_management/doctype/project_indicator/test_project_indicator.py
886c2b9e33e38f60e194f3c716e3dc39fa36f037
[ "MIT" ]
permissive
mohsinalimat/partner_ngos
dea0db6e0f9718e7ffc69f7171bdb1603a055d72
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
refs/heads/master
2023-03-15T13:15:40.571368
2020-07-09T07:22:59
2020-07-09T07:22:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Akram Mutaher and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestProjectIndicator(unittest.TestCase): pass
c5ef9f3c896720bfe3cbcd8bf8087394c0635cc3
343bdaddfc66c6316e2cee490e9cedf150e3a5b7
/0101_0200/0140/0140.py
fcfbf5535dac6588d0fb41901a5501b3284bd7d6
[]
no_license
dm-alexi/acmp
af7f6b4484b78f5922f3b464406a0ba5dea0d738
3fa0016d132adfeab7937b3e8c9687a34642c93a
refs/heads/master
2021-07-09T15:14:25.857086
2020-10-20T19:08:54
2020-10-20T19:08:54
201,908,038
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
from math import inf with open("input.txt", "r") as f, open("output.txt", "w") as q: n = int(f.readline()) m = [[int(x) if x != "100000" else inf for x in f.readline().split()] for i in range(n)] for k in range(n): for i in range(n): for j in range(n): if m[i][k] < inf an...
e3777872b94428267992a01b44c30ba2643b99bc
c91b68be796a9835c528856b6f5fa7b56d2af451
/examples/mnist_convnet.py
d9e994d350811b397b81ced710890fceedbf32db
[ "Apache-2.0" ]
permissive
syzh1991/tensorpack
fe61cb46fd40aa0cb9f8a0a3ea4ea3bb833cb3c5
174c3fc9d60b0cbeccac2ae3e73e73d6e788dbe0
refs/heads/master
2021-01-17T00:24:08.366350
2016-04-19T06:25:57
2016-04-19T06:25:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,520
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: mnist_convnet.py # Author: Yuxin Wu <[email protected]> import tensorflow as tf import numpy as np import os, sys import argparse from tensorpack.train import * from tensorpack.models import * from tensorpack.utils import * from tensorpack.tfutils.symbolic_functi...
d06d7c4a50a9d2ed62e1339c2c422ef078e2e611
7410903c6cd5ef35c592af00c934fb21c369cbf2
/00_Code/01_LeetCode/69_Sqrt.py
4f2aa947d9e808ddbc9837a59a51ea6e638dbf3b
[ "MIT" ]
permissive
KartikKannapur/Algorithms
f4e4726170599db0622d18e8c06a382e9bce9e77
66e3c8112826aeffb78bd74d02be1a8d1e478de8
refs/heads/master
2020-12-25T18:32:41.086518
2020-10-19T02:59:47
2020-10-19T02:59:47
93,961,043
1
0
null
null
null
null
UTF-8
Python
false
false
806
py
# #Implement int sqrt(int x). # #Compute and return the square root of x. # #x is guaranteed to be a non-negative integer. # #Your runtime beats 81.07 % of python submissions. class Solution(object): def mySqrt(self, x): """ :type x: int :rtype: int """ """ Method 1: ...
873f832b9b4a502cdab6b718ab5f202b53555a0a
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/datetime/rsntpprovtontpauthkey.py
a7e4bb2cc3d0c51d834f75f92edff686fd33660f
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
8,541
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
74108a22b91ad3b4c6b46bc638f052f5195fb339
e030b26ea0f45eda5a25bf18051e9231e604fdd5
/doc/source/sphinxext/numpy_ext/docscrape_sphinx.py
bcf7e70731cc798b73e4f22a48c25d361f65c6d1
[ "CECILL-B", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
neurospin/piws
d246dc1925c563964309e53f36fc44e48f929cf7
4ec6f60c6343623a82761c90c74642b4b372ffd1
refs/heads/master
2021-01-17T03:49:35.787846
2018-10-15T09:44:39
2018-10-15T09:44:39
32,163,903
0
17
NOASSERTION
2020-10-14T12:56:38
2015-03-13T15:29:57
HTML
UTF-8
Python
false
false
8,004
py
import re import inspect import textwrap import pydoc import sphinx from docscrape import NumpyDocString from docscrape import FunctionDoc from docscrape import ClassDoc class SphinxDocString(NumpyDocString): def __init__(self, docstring, config=None): config = {} if config is None else config sel...
e4c2ae41b7aec6371b17182c26cbfda22f852b60
b466a62a6b8151937212688c09b3a5704eaa7466
/Python OOP - Exam Preparation - 2 April 2020/tests/test_battlefield.py
86b729b594d2a13d2cc6756a5da43117a61aedc9
[ "MIT" ]
permissive
DiyanKalaydzhiev23/OOP---Python
89efa1a08056375496278dac3af97e10876f7728
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
refs/heads/main
2023-07-08T08:23:05.148293
2021-08-13T12:09:12
2021-08-13T12:09:12
383,723,287
2
0
null
null
null
null
UTF-8
Python
false
false
1,693
py
from unittest import TestCase, main from project.battle_field import BattleField from project.controller import Controller class TestBattleField(TestCase): def setUp(self): self.c = Controller() self.c.add_player("Beginner", "pesho") self.c.add_player("Advanced", "ivan") self.c.ad...
ac4c91a50fd1f04ce141715e5289aa64f8765f8f
0bb474290e13814c2498c086780da5096453da05
/agc034/B/main.py
dcdc2a07ea70836db87eccb7f03314c35c2aad03
[]
no_license
ddtkra/atcoder
49b6205bf1bf6a50106b4ae94d2206a324f278e0
eb57c144b5c2dbdd4abc432ecd8b1b3386244e30
refs/heads/master
2022-01-25T15:38:10.415959
2020-03-18T09:22:08
2020-03-18T09:22:08
208,825,724
1
0
null
2022-01-21T20:10:20
2019-09-16T14:51:01
Python
UTF-8
Python
false
false
721
py
#!/usr/bin/env python3 import sys def solve(s: str): s = s.replace('BC', 'X') ans = 0 cur = 0 for i in range(len(s)): if(s[i] == 'A'): cur += 1 elif(s[i] == 'X'): ans += cur else: cur = 0 print(ans) return # Generated by ...
18169718282ec7bfbfb2b7d2c8bd1613b7b9aa52
9b8e2992a38f591032997b5ced290fe1acc3ad94
/lcs4t.py
ede392018cce26478bbc4a6e676503d973b8be70
[]
no_license
girishdhegde/aps-2020
c694443c10d0d572c8022dad5a6ce735462aaa51
fb43d8817ba16ff78f93a8257409d77dbc82ced8
refs/heads/master
2021-08-08T04:49:18.876187
2021-01-02T04:46:20
2021-01-02T04:46:20
236,218,152
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
from collections import defaultdict import math t=int(input()) for i in range(t): n, total=map(int,input().split()) coin = [] values = defaultdict(list) y = list(map(int,input().split())) for j in range(n): coin.append(y[j]) values[y[j]].append(0) coins = [] for j in range(...
eda051d72d323b88e5d07e61bdabdbd16c2948e5
d6a3186af0aaa86b3936f1d98730b7120918b962
/testing_practice/tests_django/car_v2.py
91228379ab91290fe1f4b03df8524ddd44bd8be1
[]
no_license
kranthy09/testing
edd6376733723ef58a8a5ecece31cbaf030ca45d
ecdd5ce3b3688b42181d5ccb74003ed97e79fbc9
refs/heads/master
2022-07-02T23:58:09.308746
2020-05-05T16:58:45
2020-05-05T16:58:45
261,354,583
0
0
null
null
null
null
UTF-8
Python
false
false
4,592
py
class Car: def __init__(self,max_speed, acceleration, tyre_friction, color = None): self._color = color self.is_valid_data("max_speed", max_speed) self.is_valid_data("acceleration", acceleration) self.is_valid_data("tyre_friction", tyre_friction) self._accelerat...
de7ce52b41660eee7eea8ff7603241674cd09c47
9da8754002fa402ad8e6f25659978bd269bbcec8
/src/622A/cdf_622A.py
696901db63211acbb043bb8a0098147f0db843e9
[ "MIT" ]
permissive
kopok2/CodeforcesSolutionsPython
a00f706dbf368ba0846c8ae86d4145b5dd3e1613
35bec0dbcff47765b123b5fe60476014376153df
refs/heads/master
2023-02-02T03:08:22.097651
2020-12-17T22:00:50
2020-12-17T22:00:50
196,035,812
1
1
null
null
null
null
UTF-8
Python
false
false
645
py
import math class CodeforcesTask622ASolution: def __init__(self): self.result = '' self.n = 0 def read_input(self): self.n = int(input()) def process_task(self): n = int(math.sqrt(self.n)) a = (n + n ** 2) / 2 while a < self.n: n += 1 ...
249ce324bde793fd41492fa2f8d1d0c2ce88c9cd
ed97fb5c71da7ed89235432e3971bb0ef6064f8b
/algorithms/python/290.py
3c1bbff0685733f3cd42f905b78b0d011cbfcd85
[ "MIT" ]
permissive
viing937/leetcode
8241be4f8bc9234a882b98ada2e5d13b0ebcca68
b07f7ba69f3d2a7e294f915934db302f43c0848f
refs/heads/master
2023-08-31T18:25:06.443397
2023-08-31T15:31:38
2023-08-31T15:31:38
37,374,931
3
0
null
null
null
null
UTF-8
Python
false
false
559
py
class Solution(object): def wordPattern(self, pattern, str): """ :type pattern: str :type str: str :rtype: bool """ arr = str.split(' ') if len(pattern) != len(arr): return False hashmap = {} for i in range(len(pattern)): ...
f5fccd5cf37b249aa0bd6ec0df11050ccceac4ba
226b1c73a706f4734834196d18305d4d2c873589
/synlib/descriptions/INVX12.py
d9548d8ad876fcb48facd24d7fd0a2450a47ae9a
[]
no_license
ocakgun/vlsistuff
43b4b07ae186b8d2360d11c57cd10b861e96bcbe
776c07f5d0c40fe7d410b5c85e7381017d4dab64
refs/heads/master
2022-06-13T14:40:22.641310
2020-05-08T11:09:00
2020-05-08T11:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
Desc = cellDescClass("INVX12") Desc.properties["cell_leakage_power"] = "3253.878540" Desc.properties["cell_footprint"] = "inv" Desc.properties["area"] = "43.243200" Desc.pinOrder = ['A', 'Y'] Desc.add_arc("A","Y","combi") Desc.set_job("inv") # (!A) Desc.add_param("area",43.243200); Desc.add_pin("A","input") Desc.add_pi...
66cba7b1d697df1b112e0741f078b2d82f7853cf
a0801d0e7325b31f0383fc68517e208680bb36d6
/ProjectEuler/113.py
67180d3f1e179379f2c22641ec3d5bb209b71d03
[]
no_license
conormccauley1999/CompetitiveProgramming
bd649bf04438817c7fa4755df2c2c7727273b073
a7e188767364be40f625612af3d16182f2d8d4de
refs/heads/master
2023-05-14T13:19:32.678134
2023-05-11T16:07:33
2023-05-11T16:07:33
179,089,010
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
# Problem 113 def cnt(length, inc): end = 10 if inc else -1 step = 1 if inc else -1 dp = [] dp.append([1] * 10) dp[0][0] = 0 for _ in range(length - 1): dp.append([0] * 10) for cur_position in range(1, length): for cur_digit in range(10): for next_digit in range(...
1856097d55982c651ccb71ab0b51f7fa59839318
c7386a7a7aafabe9feb8368c42b607cff70dcfe7
/01_GPLVM_Training/GPy/plotting/matplot_dep/plot_definitions.py
0e3bc32d398084b4f35cc48526b06f520e9121e8
[]
no_license
dechamoungsri/Prosody_modeling
8f3d603af6c54786cb048186bab65cfcd5b441f1
7895a032dde1c2c34cf42b7c362ca2b61ada0f37
refs/heads/master
2021-08-31T02:32:42.813986
2017-12-20T06:42:36
2017-12-20T06:42:36
114,848,055
2
0
null
null
null
null
UTF-8
Python
false
false
13,812
py
#=============================================================================== # Copyright (c) 2015, Max Zwiessele # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source...
acf05d3118136eda97208eb88dd7e8c8055cb3e6
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/Hs7YDjZALCEPRPD6Z_23.py
df3fe0713ed74b8a036c99152bfd2695f2129cfd
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
count_uppercase=lambda a: sum([y.isupper() for x in a for y in x])
1852e9dffcb63b063f786faeffaec2ee72e25153
390d19c3159133d8c688396cb11b4ed3f8178d09
/BaekJoon/단계별로 풀어보기/Stack & Queue/1874_스택 수열.py
a3b4cc9eb6adb72cb147d6257fb3a6768140f325
[]
no_license
JJayeee/CodingPractice
adba64cbd1d030b13a877f0b2e5ccc1269cb2e11
60f8dce48c04850b9b265a9a31f49eb6d9fc13c8
refs/heads/master
2021-08-16T17:14:01.161390
2021-07-16T00:42:18
2021-07-16T00:42:18
226,757,079
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
n = int(input()) arr = [int(input()) for _ in range(n)] cnt = 0 stack = [] path = [] for i in range(1, n+1): stack.append(i) path.append('+') while stack and stack[-1] == arr[cnt]: stack.pop() path.append('-') cnt += 1 if stack: print('NO') else: for p in path: print...
b755ac44206a9c9dda1a389710cdf3a9fba8ec30
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/securityinsights/v20190101preview/get_watchlist.py
c72fb1c220e6a8ad7528ffa0f04b1c3a81368bad
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,021
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 from ... import _utilities, _tables from...
3f80baeaee8814fce5876d1fd05427e8e5961cfc
281a10505f8044dbed73f11ed731bd0fbe23e0b5
/expenseApp/forms.py
a27cb1ba630beb7e285f40eca794838affed173f
[ "Apache-2.0" ]
permissive
cs-fullstack-fall-2018/project3-django-jpark1914
7c6f57ab5f8055c11ac5b9d3c8bf0aa5057008d7
53bca13243d7e50263ec25b2fb8a299a8bbada1c
refs/heads/master
2020-04-02T00:59:33.254360
2018-10-29T04:58:42
2018-10-29T04:58:42
153,831,819
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
from .models import AccountModel, UserSetup, TransactionModel from django import forms class AccountForm(forms.ModelForm): class Meta: model = AccountModel fields = ['account_name','balance','savings','deposit', 'expense'] widgets = {'balance': forms.HiddenInput, 'savings':forms.HiddenInput...
e95f81c2edaab21bbe2f5f9e621eae62b13fdc86
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/_api/v1/keras/datasets/cifar10/__init__.pyi
f00ca8b56bea50c2b28c37c450e8e377366f9b62
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
220
pyi
# Stubs for tensorflow._api.v1.keras.datasets.cifar10 (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from tensorflow.python.keras.datasets.cifar10 import load_data as load_data
5f6125e1653f98b3cd435fbb27e389a8d9bf676d
c033b4bc0b80938192712a336a941f921b056106
/PythonK/FirstPython/Actual/Chapter7/venv/Scripts/pip3.6-script.py
8c4ea0adf094c7250d2fa2c3df53aa8e4c53ad4f
[]
no_license
BigBrou/Laboratory
4e9a92cbccf2379c8fedb5abbb5dc896a477d018
2ec4ece91bf7d5774d7028c3ea620a36b279bfbb
refs/heads/master
2020-03-24T16:48:25.017498
2018-12-27T09:04:13
2018-12-27T09:04:34
142,837,539
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
#!C:\Laboratory\PythonK\Actual\Chapter7\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv...
615b0e3ce001a61de185b62a6465cb046a30fcc6
416baad7e83075c1c59f1fa920d9a18cd3351f16
/tensor2tensor/models/__init__.py
58badcb4e011ce3350c1cf88d2bd7a49cbdc8d59
[ "Apache-2.0" ]
permissive
jmlingeman/tensor2tensor
aa759fc9101149284b0b6f2f7a03e9759b7214a9
9921c4a816aafb76964a960541045ce4d730b3c9
refs/heads/master
2021-04-29T01:52:38.283004
2018-04-23T20:04:12
2018-04-23T20:04:12
121,812,413
0
0
null
2018-02-16T23:39:11
2018-02-16T23:39:11
null
UTF-8
Python
false
false
1,986
py
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
06f2d36fbb85bae7a5b684e93a760e88ee7b328d
de392462a549be77e5b3372fbd9ea6d7556f0282
/accounts/migrations/0198_auto_20210812_1748.py
26547e06f8a5011da9233e88c29c998430ef3246
[]
no_license
amutebe/AMMS_General
2830770b276e995eca97e37f50a7c51f482b2405
57b9b85ea2bdd272b44c59f222da8202d3173382
refs/heads/main
2023-07-17T02:06:36.862081
2021-08-28T19:07:17
2021-08-28T19:07:17
400,064,408
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
# Generated by Django 3.2.3 on 2021-08-12 14:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0197_auto_20210812_1740'), ] operations = [ migrations.AlterField( model_name='car', name='car_number', ...
281090431d5371b25cb5f61faa42b5ded0fee6a8
b2ba670818623f8ab18162382f7394baed97b7cb
/test-data/AndroidSlicer/Carnote/DD/32.py
4201f082c91275a5dd9fd6d0c08a4ab34f2b21ff
[ "MIT" ]
permissive
hsumyatwin/ESDroid-artifact
012c26c40537a79b255da033e7b36d78086b743a
bff082c4daeeed62ceda3d715c07643203a0b44b
refs/heads/main
2023-04-11T19:17:33.711133
2022-09-30T13:40:23
2022-09-30T13:40:23
303,378,286
1
1
null
null
null
null
UTF-8
Python
false
false
1,140
py
#start monkey test seedNo 0 import os; from subprocess import Popen from subprocess import PIPE from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage from com.android.monkeyrunner.MonkeyDevice import takeSnapshot from com.android.monkeyrunner.easy import EasyMonkeyDevice from com.android.monkeyru...
ff38640ad5a4f55a1f83c27af699d4597b525d3d
70f41a06d733e680af3bb1f00d8ff33574f4f4bb
/src/fh_tools/language_test/base_test/bisect_demo/grades_demo.py
3c04e262f62fafdf04b345d787e0ae2cae0fa7b6
[ "MIT" ]
permissive
mmmaaaggg/RefUtils
209f7136acc63c880e60974c347e19adc4c7ac2e
f127658e75b5c52b4db105a22176ee0931ceacae
refs/heads/master
2021-06-11T16:06:06.245275
2021-03-10T05:32:14
2021-03-10T05:32:14
139,413,962
1
1
null
null
null
null
UTF-8
Python
false
false
445
py
#! /usr/bin/env python # -*- coding:utf-8 -*- """ @author : MG @Time : 19-8-9 上午10:33 @File : grades_demo.py @contact : [email protected] @desc : 通过二分发计算分数等级 """ import bisect def grade(score, breakpoints=[60, 70, 80, 90], grades='FDCBA'): i = bisect.bisect(breakpoints, score) return grades[i] pri...
2155f6826ed7b9607bfc77f9e46bc7b6daf29ed5
95d64b1dea3db73e85562aa2665c3a696370a679
/code/information-gain.py
da46714604a93ed9d59f09d41c3b92d03c5e7812
[]
no_license
Smolky/exist-2021
7481e36fb3f44263c1a2190890fc6ac894c4fac5
2d51a01a829cb9e9b44eca5b9eefb06cb62162c8
refs/heads/main
2023-05-30T14:21:56.913663
2021-06-16T08:10:36
2021-06-16T08:10:36
364,022,851
1
0
null
null
null
null
UTF-8
Python
false
false
5,758
py
""" Information Gain per class This class calculates the Information Gain (Mutual Info) of a dataset and uses it to select the most discrimatory features @author José Antonio García-Díaz <[email protected]> @author Rafael Valencia-Garcia <[email protected]> """ import...
9545a1c677720b2cc1d1a08ee3eaaa268a423759
390d19c3159133d8c688396cb11b4ed3f8178d09
/BaekJoon/APS_2019/2669_직사각형 네개의 합집합의 면적.py
1d2b01330c52119bf983190b61936d5a7dcf040a
[]
no_license
JJayeee/CodingPractice
adba64cbd1d030b13a877f0b2e5ccc1269cb2e11
60f8dce48c04850b9b265a9a31f49eb6d9fc13c8
refs/heads/master
2021-08-16T17:14:01.161390
2021-07-16T00:42:18
2021-07-16T00:42:18
226,757,079
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
dwr = [[0]*100 for _ in range(100)] count = 0 for i in range(4): xs, ys, xe, ye = map(int, input().split()) for x in range(xs, xe): for y in range(ys, ye): if dwr[x][y] == 0: dwr[x][y] = 1 count += 1 print(count)
173ca58a434c334f2487c1bf0d994d3395abcd30
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_11371.py
a3211135d7b87d8da37dd74f4338428a4d5ef5ce
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
# Using python modules over Paramiko (SSH) RMI
a865e9f10130569267073fa37a1314786a38c6bb
8efd8bcd3945d88370f6203e92b0376ca6b41c87
/problems1_100/79_ Word_Search.py
5374317283275085258b340378ccd5eef61390f0
[]
no_license
Provinm/leetcode_archive
732ad1ef5dcdfdde6dd5a33522e86f7e24ae2db5
3e72dcaa579f4ae6f587898dd316fce8189b3d6a
refs/heads/master
2021-09-21T08:03:31.427465
2018-08-22T15:58:30
2018-08-22T15:58:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
''' Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once. For example, Given board = [ ['A','B','C','E']...
54a075ef2572940304283d2f526de481af678278
5154364983b0e44c4af2d41a59cfa8edc923283a
/python_Source/developmentP/deeplearining/pie_chart_01.py
00eb701184787dad7373c13e41ea294c5459683e
[]
no_license
vasana12/python_python_git
082f84df30e4b307d223e8970f87a7432a1d80fd
db87e112731fca1fe80fef29d8f180f19b9e7afc
refs/heads/master
2020-03-30T23:22:30.197307
2018-11-24T05:05:51
2018-11-24T05:05:51
151,698,409
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
import matplotlib.pyplot as plt from matplotlib import font_manager, rc import matplotlib font_location = "C:/Windows/fonts/malgun.ttf" font_name = font_manager.FontProperties(fname=font_location).get_name() matplotlib.rc('font', family=font_name) labels = '개구리', '돼지', '개', '통나무' sizes = [15, 30, 40, 10] colors = ['y...
b8f5573ff344929c69dceabf3640aea61ec7232f
bd97064b5ed9f17b11bcd3ac9a1f2c8ea9ffaf82
/restapi/routers/Utils.py
8284d48e5f99c5cebcbd87f7d2ecb895771a1912
[]
no_license
IndominusByte/bhaktirahayu-backend
a33eff6d0a74894934a6643ef3b81af283542ecf
628d5d5cdbe145696835e32c47f77ca03dc72708
refs/heads/main
2023-08-13T16:25:21.241086
2021-09-18T18:04:25
2021-09-18T18:04:25
389,309,892
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from fastapi import APIRouter, Depends from fastapi_jwt_auth import AuthJWT from schemas.utils.UtilSchema import UtilEncodingImageBase64 from libs.MagicImage import MagicImage router = APIRouter() @router.post('/encoding-image-base64',response_model=bytes) async def encoding_image_base64(util_data: UtilEncodingImageB...
96f9cd408c789bb3d86cc01acb1306bd78afc4ad
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/SSD/.dev_scripts/batch_test.py
e5d863211eaf2182497d8ddfbc0f40ce48f93e99
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
8,393
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 agree...
9166dc2e456f9adbf39f8f327bc6c3f432090aa9
976d399110f839ba98dc30e51004297385c56479
/phone.py
cd062200df0418c8ebf51a5f6d08aaded568f901
[]
no_license
EileenLL/Phone-App-Practice
4f9bb0eda10e505c833b79d15e21b5e3525399f6
3b83fd7547a4248752f89255f530e19710b91033
refs/heads/master
2020-12-05T02:01:28.760728
2017-03-02T05:15:49
2017-03-02T05:15:49
83,637,368
0
0
null
null
null
null
UTF-8
Python
false
false
2,924
py
class Phone(object): """A simple Phone class to keep track of contacts""" def __init__(self, number, name, contacts=None): self.number = number self.name = name if contacts: self.contacts = contacts else: self.contacts = {} # The __repr__ method giv...
870f4ef3cedddc663fb7b8f310d6b86d04b6de4f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03588/s377192087.py
33be853cadb78a71d1fcb119905a836c2c06e43c
[]
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
160
py
n = int(input()) max_a = 0 st_b = 0 for i in range(n): a,b = map(int,input().split()) if max_a < a: max_a = a st_b = b print(max_a+st_b)
8b183bf27487b5db210287a08477ad86698afa14
7d328fa9c4b336f28fa357306aad5483afa2d429
/BinTreeFromSortedArray.py
2d3addba12667610b79141ff6049c7dda7f413fa
[]
no_license
ktyagi12/LeetCode
30be050f1e2fcd16f73aa38143727857cc943536
64e68f854b327ea70dd1834de25e756d64957514
refs/heads/master
2021-07-01T21:24:26.765487
2021-05-09T11:42:50
2021-05-09T11:42:50
230,497,920
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
#Problem available at: https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/submissions/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def sortedArrayToBST(self, n...
15225b8ed699b8710acd02ca79f4d765e1fdcdbf
150af06564fbd615479d67385e39b491d55a2ac2
/examples/aio.py
c590d077ca02df6b350e0b14348466c5b12f2d8d
[ "MIT" ]
permissive
colanconnon/graphql-ws
3d340abe167a7202cca858fe86d829dd700dc99a
3df53014dc60762007e2669d45135fb0f574e759
refs/heads/master
2021-05-07T17:36:38.551202
2017-10-25T21:16:27
2017-10-25T21:16:27
108,750,259
0
0
null
2017-10-29T16:21:07
2017-10-29T16:21:07
null
UTF-8
Python
false
false
1,645
py
from aiohttp import web, WSMsgType from template import render_graphiql from schema import schema from graphql import format_error import json from graphql_ws import WebSocketSubscriptionServer async def graphql_view(request): payload = await request.json() response = await schema.execute(payload.get('query',...
51b9d85a67e999addd2899a420954e72eea8ab63
978248bf0f275ae688f194593aa32c267832b2b6
/xlsxwriter/test/comparison/test_table14.py
f0690c66bde3644bc9256ba5ff345a5604768e7d
[ "BSD-2-Clause-Views" ]
permissive
satish1337/XlsxWriter
b0c216b91be1b74d6cac017a152023aa1d581de2
0ab9bdded4f750246c41a439f6a6cecaf9179030
refs/heads/master
2021-01-22T02:35:13.158752
2015-03-31T20:32:28
2015-03-31T20:32:28
33,300,989
1
0
null
null
null
null
UTF-8
Python
false
false
1,856
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, [email protected] # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
e5c4b6d4c1599915e9426a9c04b64e22883ba6cc
efac669c3351e2b4055d575638205199b9296680
/pytorch_lightning/tuner/tuning.py
b1a38bd27688ca53c2f8926ab1afb36155bcdff2
[ "Apache-2.0" ]
permissive
peteriz/pytorch-lightning
5c90456f57b9cbe4688d71999c8a8240f799a7c6
49a4a36ad45b937dd0124ecfb08eb7400dbf3950
refs/heads/master
2022-03-15T19:08:00.991416
2022-03-08T18:10:18
2022-03-08T18:10:18
235,549,600
0
0
Apache-2.0
2020-02-13T10:03:24
2020-01-22T10:28:16
Python
UTF-8
Python
false
false
9,167
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...
ef297538dbdda1ba03ef3bd3400677dee6aa2c18
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/A3COM-HUAWEI-DOT11-ROAM-MIB.py
d7ff4a0c1ceab21807297768f81b42c90780999e
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
15,440
py
# # PySNMP MIB module A3COM-HUAWEI-DOT11-ROAM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-DOT11-ROAM-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:49:40 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python versio...
0b61ccd08991ebb0902f43a83ba3074f2e60a203
18305efd1edeb68db69880e03411df37fc83b58b
/pdb_files3000rot/g7/1g7v/tractability_450/pymol_results_file.py
b3ca0aa99f8776269651041e072c2f991de4c442
[]
no_license
Cradoux/hotspot_pipline
22e604974c8e38c9ffa979092267a77c6e1dc458
88f7fab8611ebf67334474c6e9ea8fc5e52d27da
refs/heads/master
2021-11-03T16:21:12.837229
2019-03-28T08:31:39
2019-03-28T08:31:39
170,106,739
0
0
null
null
null
null
UTF-8
Python
false
false
7,214
py
from os.path import join import tempfile import zipfile from pymol import cmd, finish_launching from pymol.cgo import * finish_launching() dirpath = None def cgo_arrow(atom1='pk1', atom2='pk2', radius=0.07, gap=0.0, hlength=-1, hradius=-1, color='blue red', name=''): from chempy import cpv radius, gap =...
3c1414d17c449561e276f13e399900b1c4bd8035
72a9d5019a6cc57849463fc315eeb0f70292eac8
/Python-Programming/6- Numpy/Numpy_.py
98ac37a1616122702019f51a69f73e320c98fe2f
[]
no_license
lydiawawa/Machine-Learning
393ce0713d3fd765c8aa996a1efc9f1290b7ecf1
57389cfa03a3fc80dc30a18091629348f0e17a33
refs/heads/master
2020-03-24T07:53:53.466875
2018-07-22T23:01:42
2018-07-22T23:01:42
142,578,611
1
0
null
2018-07-27T13:08:47
2018-07-27T13:08:47
null
UTF-8
Python
false
false
3,509
py
# %%%%%%%%%%%%% Python %%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%% Authors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # Dr. Martin Hagan----->Email: [email protected] # Dr. Amir Jafari------>Email: [email protected] # %%%%%%%%%%%%% Date: # V1 Jan - 04 - 2018 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %...
fcff171d2095a1a02ec1b3033c6527903854024e
a844cba1a0cd54c650b640a7a5cbeabb8c2d15a5
/modules/debugger/modules.py
952d7b44e0a87252905c2dcc0c446df72cfd9ab7
[ "MIT" ]
permissive
romain-tracktik/sublime_debugger
de5950d9f79fcfbe0407af4f89e15e91acb035aa
6ff71182fee427cfc0254a9d47679d7a6d1424f9
refs/heads/master
2020-09-13T12:06:54.544461
2019-11-16T09:51:55
2019-11-16T09:51:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
from ..typecheck import * from ..import dap from ..import core from ..import ui class Modules: def __init__(self): self.modules = [] #type: List[dap.Module] self.on_updated = core.Event() #type: core.Event[None] def on_module_event(self, event: dap.ModuleEvent) -> None: if event.reason == dap.ModuleEvent.new:...
4c61d56834868c5e80a82df074f0e9fbc4e1815a
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/semicolon.py
ed11103b36352b18bd6e69914773b3ce1e715926
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
63
py
ii = [('KirbWPW2.py', 1), ('BachARE.py', 1), ('HogaGMM.py', 1)]
98e405fff7ad9fa147d9ed56eddd076e542a2578
d5e7a3f489c2f4e95204906cd07e44ef812ddd24
/Part/湮灭之瞳.py
bac547ea7ac3107ff582ee495d66640d0abf6897
[]
no_license
VV4yne/DNFCalculating
ee57a1901421c7def6e81a29113dec69adde69c9
631992a653029d0c95d23abbdba162cd9ebfa4ee
refs/heads/master
2022-10-04T13:54:52.668409
2020-06-09T09:13:24
2020-06-09T09:13:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,195
py
from PublicReference.base import * class 湮灭之瞳主动技能(技能): #只扩展了技能的三条属性,第一条技能hit默认1,2、3条hit默认为0,需要手动赋值 #如果需要继续扩展,可以在各自职业类内继承后自行扩展,同时需要重写下等效百分比函数 #固伤在填写基础及成长的时候需要注意,技能面板/独立得到的成长及数值需要*100 基础 = 0.0 成长 = 0.0 攻击次数 = 1.0 基础2 = 0.0 成长2 = 0.0 攻击次数2 = 0.0 基础3 = 0.0 成长3 = 0.0 攻击次数3 = ...
551b428503874c903e41834e1c62952b6faaeea5
8baa6d8e35a17f331345d9f314cdb2787653d38a
/src/exojax/spec/exomol.py
b13173a276fb13d010cf9c32fe7d85bedb6157c2
[ "MIT" ]
permissive
bmorris3/exojax
2fb1dae486a1d4d7a91ee8e9fdd1c9e616fb1b3f
67d1b6c868d69892d4bbf9e620ed05e432cfe61f
refs/heads/master
2023-09-04T20:12:32.817699
2021-06-12T06:14:00
2021-06-12T06:14:00
379,588,979
0
0
MIT
2021-06-23T12:03:57
2021-06-23T12:03:57
null
UTF-8
Python
false
false
1,356
py
import numpy as np def Sij0(A,g,nu_lines,elower,QTref): """Reference Line Strength in Tref=296K, S0. Note: Tref=296K Args: A: Einstein coefficient (s-1) g: the upper state statistical weight nu_lines: line center wavenumber (cm-1) elower: elower QTref: partition...
ec9c417e630a5d1e8843d6a2e23386c2db157f4e
d136c10cdd556055717f8b4330066f56052688b5
/setup.py
49f3c1e51fc0701380fc53e434bee2a0568658c7
[ "CC0-1.0" ]
permissive
biomodels/BIOMD0000000083
24cfbb23497e0dae2fa764e13bbdfef565bd2a51
e8221a507f10df4490c4c6dd004368c9384f2de6
refs/heads/master
2021-01-01T05:34:54.036641
2014-10-16T05:22:13
2014-10-16T05:22:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
from setuptools import setup, find_packages setup(name='BIOMD0000000083', version=20140916, description='BIOMD0000000083 from BioModels', url='http://www.ebi.ac.uk/biomodels-main/BIOMD0000000083', maintainer='Stanley Gu', maintainer_url='[email protected]', packages=find_packages(...
8817047c2c71be9cdae859f54be02ae569fe144c
724ae861f52fedc9d57f39c30971fab0114dc34b
/cms_content/cms_app.py
1f95945cb2b4dac8bdf406ce033d0d0148078a6c
[ "BSD-3-Clause" ]
permissive
mmlic/django-cms-content
36faa82f5303ba151d1f5542d895bbf65aec753a
d6b214542ab618b6fa4645483fa5bf58e8212f86
refs/heads/master
2021-01-16T18:06:01.393986
2010-09-18T14:54:45
2010-09-18T14:54:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from cms.app_base import CMSApp from cms.apphook_pool import apphook_pool from cms_content.menu import CMSContentMenu class CMSContentApp(CMSApp): name = _(u"CMS Content App") urls = ["cms_content.urls"] menus = [CMSContentMe...
871af0fab6d27935b3a9d6894e5b69448e205e49
e7d4b6fcace1509d37359776d9f72020dad3da41
/part010/ch08_basemap/sec2_draw/test_2_plot_x_x.py
955139e8b3ec761b1aa180217c7fb55b866cb87f
[]
no_license
LinyunGH/book_python_gis
b422e350222c4ab5711efb4cc6101e229bd26f7b
067d75e324c006e2098827ac16ba38d4894b8a21
refs/heads/master
2020-04-09T22:25:35.049625
2018-10-14T09:56:38
2018-10-14T09:56:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,862
py
# -*- coding: utf-8 -*- print('=' * 40) print(__file__) from helper.textool import get_tmp_file ################################################################################ from mpl_toolkits.basemap import Basemap import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt para = {'projection': 'merc',...
662c71161cfd8d0510f97315e3f4b811738fdcf3
c1c7214e1f9230f19d74bb9776dac40d820da892
/examples/django/model一般/FilePathFieldの使い方の例/project/app/views.py
862e10440074a4c00591ebc229e8546a7d8428c2
[]
no_license
FujitaHirotaka/djangoruler3
cb326c80d9413ebdeaa64802c5e5f5daadb00904
9a743fbc12a0efa73dbc90f93baddf7e8a4eb4f8
refs/heads/master
2020-04-01T13:32:28.078110
2018-12-13T00:39:56
2018-12-13T00:39:56
153,256,642
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
from django.shortcuts import render import os from .forms import * from pathlib import Path import re from ajax.views import z #この部分は本編とは関係なし ######################## d=z() ######################## def index(request): d["form"]=Form d["form2"]=Form2 d["form3"]=Form3 d["form4"]=Form4 d["form...
4e633c267ce51f581b210db672c0ed1041e02ffd
37ff29a9a83eafbf0f54e2ce0bf2c0255b1663a1
/build/husky_control/catkin_generated/generate_cached_setup.py
d7af4a5285b20e1200840d1b9135e75b800eadd2
[]
no_license
wy7727/husky
f8d9c2a05487f66efbfb58e8fc1c141efc10e177
7925bc34ae316639aef88fc3e6a8d36aba12620b
refs/heads/master
2020-04-09T12:09:41.420418
2019-12-01T09:24:24
2019-12-01T09:24:24
160,337,603
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys....
24ff4cfbe9ebc07dc6bf91e7a7bdf56035b30726
b5402b40b69244380bc0d3f85ff65483d0505181
/mongodb/factory/execode.py
c462619c70d66714d3b5f4d8d1e6279769e79df5
[ "MIT" ]
permissive
RxJellyBot/Jelly-Bot
ea7b6bd100431736732f9f4cc739858ec148e3e2
c7da1e91783dce3a2b71b955b3a22b68db9056cf
refs/heads/master
2023-08-29T20:41:01.813945
2021-10-20T05:27:21
2021-10-20T05:27:21
189,347,226
5
1
MIT
2020-09-05T00:50:41
2019-05-30T04:47:48
Python
UTF-8
Python
false
false
7,976
py
"""Execode-related data controllers.""" from datetime import timedelta from typing import Type, Optional, Tuple from bson import ObjectId from django.http import QueryDict # pylint: disable=wrong-import-order from extutils.dt import now_utc_aware from flags import Execode, ExecodeCompletionOutcome, ExecodeCollationF...
bc311155799542ad602305eb319bcfe862940578
f37978530be6cf40bd7b4e5dbaf63f779114ff95
/src/bioregistry/curation/add_descriptions_from_gs.py
04f3759ae75bb8aaa0a3fc81e7d23e8b6bb18533
[ "MIT", "CC0-1.0", "CC-PDDC", "CC-BY-4.0" ]
permissive
biopragmatics/bioregistry
03d983e96b65681352d0eddbe39902059d299e6d
a05af7e42f60109f01133e3072bb673423b74dd3
refs/heads/main
2023-08-30T21:02:44.854342
2023-08-30T01:10:16
2023-08-30T01:10:16
319,481,281
77
28
MIT
2023-09-12T08:21:24
2020-12-08T00:33:21
Python
UTF-8
Python
false
false
940
py
# -*- coding: utf-8 -*- """Add descriptions from a google curation sheet.""" import click import pandas as pd import bioregistry URL = ( "https://docs.google.com/spreadsheets/d/e/2PACX-1vQVw4odnZF34f267p9WqdQOhi" "Y9tewD-jbnATgpi5W9smbkemvbOcVZSdeboXknoWxDhPyvtcxUYiQO/pub?gid=1947246172&single=true&output=t...
e1e3e0a6195e8962484a4fa4111f09eb936c7802
add74ecbd87c711f1e10898f87ffd31bb39cc5d6
/xcp2k/classes/_each148.py
382a04d946964f99cf0e1924c7cf471beca627c8
[]
no_license
superstar54/xcp2k
82071e29613ccf58fc14e684154bb9392d00458b
e8afae2ccb4b777ddd3731fe99f451b56d416a83
refs/heads/master
2021-11-11T21:17:30.292500
2021-11-06T06:31:20
2021-11-06T06:31:20
62,589,715
8
2
null
null
null
null
UTF-8
Python
false
false
1,113
py
from xcp2k.inputsection import InputSection class _each148(InputSection): def __init__(self): InputSection.__init__(self) self.Just_energy = None self.Powell_opt = None self.Qs_scf = None self.Xas_scf = None self.Md = None self.Pint = None self.Metad...
f43afaa4f0016dfe69be9baf4880dfa31bc9e26b
85e50dc8487701f0c15c72141681c849021d9826
/news/scripts/indiatoday.py
0dc1c52a98c0c909ed68bcbfa7521e59391e3c62
[]
no_license
sadakchap/news-aggregator
4c46a9b3ab18cf4c693dff2c71c9c7fc58f1ee1c
dbd7e031d783f9cc9cf9e652be8b70d73d53d9cb
refs/heads/master
2022-12-09T12:34:43.929043
2021-06-02T01:46:30
2021-06-02T01:46:30
199,251,857
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
from bs4 import BeautifulSoup import requests from news.models import NewsBox requests.packages.urllib3.disable_warnings() url = 'https://www.indiatoday.in/' source = requests.get(url).text soup = BeautifulSoup(source, "lxml") news_box = soup.find('ul', class_='itg-listing') # print(news_box.prettify()) def indiat...
53f066b9b58f4908fa80f7b05ad0314541a78b2f
d83120a187421256f4a59e7dec582657b8b8bb88
/starter/.history/backend/flaskr/__init___20210711040044.py
96f30636e696400be6d39026aec94776b5b72129
[]
no_license
saraalmuraytib/Trivia
2dc382cf0c124d673cad699cb01563ca87389d38
f88e21ac04681f4131c737f1674dcde32731071c
refs/heads/main
2023-06-30T04:52:08.612654
2021-08-03T15:33:50
2021-08-03T15:33:50
384,743,716
0
0
null
null
null
null
UTF-8
Python
false
false
5,468
py
import os from flask import Flask, request, abort, jsonify from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS import random from models import setup_db, Question, Category QUESTIONS_PER_PAGE = 10 def paginate_questions(request, selection): page = request.args.get('page', 1, type=int) start =...
ef3d8382444a8442f31cd305561d3477ba1a01b4
4ff8676136167cdd81d7a983272102fff86360e8
/python/258. 各位相加.py
138d139307262136c271371b5e43d5a1c038538f
[]
no_license
geniuscynic/leetcode
0ec256af2377d19fee22ce736462a7e95e3f4e67
379a8f27f8213951ee8be41bd56598036995d267
refs/heads/master
2023-07-19T07:22:20.001770
2021-09-07T14:50:40
2021-09-07T14:50:40
297,277,833
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
import sys from collections import defaultdict from collections import Counter from collections import deque # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def add...
c4eed199172881acd25a5d986044c3aded598837
52b5773617a1b972a905de4d692540d26ff74926
/.history/2D_20200722174654.py
d47af0911f58fcf03a29cbe21f4c5d543a6f60ef
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
def array(n,m): # where n is row size and m is column size array = [[0 for x in range(n)] for x in range(m)] print(array) a = [[2, 4, 6, 8, 10], [3, 6, 9, 12, 15], [4, 8, 12, 16, 20]] # where the first arguement reps the row and second arguement reps the column print(a[0][3]) def hourGlass(...
74f652c82ed09864bfc29d35dfe58397eefec789
613d8e4af67407c8e95effb1759b9ffca5246cd3
/oc_stats/common.py
c9028eedcbcc4e889573a69a6a85ae4c9a630def
[]
no_license
old-castle-fansubs/stats
c0286af1c66d82165a526b4a307c79235da6807a
dd814252918d1d5f08af90ec0d39b008249639a1
refs/heads/master
2021-07-21T15:14:22.622202
2021-07-18T15:02:35
2021-07-18T15:02:35
189,878,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
import dataclasses import typing as T from datetime import date, datetime, timedelta from pathlib import Path PROJ_DIR = Path(__file__).parent ROOT_DIR = PROJ_DIR.parent DATA_DIR = ROOT_DIR / "data" CACHE_DIR = DATA_DIR / "cache" STATIC_DIR = PROJ_DIR / "static" def json_default(obj: T.Any) -> T.Any: if dataclas...
1afc24adfe7a79c184a08009fa6d8f3031d965d5
b02a759c59a9d469f5fee00b3775703c5405e1b2
/16.RecommenderSystems/test_evaluation_model.py
0697d622f761ff08d2ef829abbb01ea9d92d7d8e
[]
no_license
asdlei99/MachineLearningCombat
a18672e11306d26cc59b9bb16ee90db06af24df5
57e8dafcef849eb407bc79a0b0724abc9931bd27
refs/heads/master
2021-09-15T12:50:24.531567
2018-06-02T01:30:27
2018-06-02T01:30:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,754
py
import random import math def SplitData(data, M, k, seed): test = [] train = [] random.seed(seed) for user, item in data: if random.randint(0, M) == k: test.append([user, item]) else: train.append([user, item]) return train, test # 准确率 def Precision(train, t...
924614ca77686fbed9c16d7c46a7bc9e6c37e0a0
6471dcdf07fc0bdcde9797914857d154d85e3c07
/pie_app/bSerial.py
8f5c20566aaf7756b96301008a6c2c9f609a675b
[]
no_license
cudmore/pie
e43ec3c4c95acb5a051a25a8d5549071908ed5c8
b74b105bc101a8504453d20a066fcd764864731f
refs/heads/master
2023-05-15T01:51:54.326274
2023-05-09T02:17:11
2023-05-09T02:17:11
139,335,434
0
0
null
null
null
null
UTF-8
Python
false
false
2,915
py
""" Author: Robert H Cudmore Date: 20180808 """ import time, threading, serial, queue import logging logger = logging.getLogger('flask.app') ######################################################################### class mySerialThread(threading.Thread): """ background thread which monitors inSerialQueue and sends...
3802507496894d4653a42e21e7b67071fb3f637a
d5e8610ad12b6733e5b014abba5cf356cb658a44
/network/client.py
cbcce48537f16c421516b99c718c8210d6b6b600
[ "WTFPL" ]
permissive
EliasFarhan/GBJam
494c4bfcff1e2246001d489c3e60a6e9ddb6ae62
156a003378b8db994d4bd1f9c3a12415ceac7c01
refs/heads/master
2016-09-05T11:41:50.329113
2014-08-10T20:14:31
2014-08-10T20:14:31
22,541,009
1
0
null
null
null
null
UTF-8
Python
false
false
4,869
py
import copy import socket from threading import Lock, Thread from engine.const import log, CONST from engine.vector import Vector2 players = {} players_lock = Lock() player_pos = Vector2() player_anim_state = "" player_anim_counter = 0 client_player_lock = Lock() PORT = CONST.port HOST = CONST.host update_thread...
670e3279efdafed42ae531d9129bbbdd829e0b5a
b472c692ac9efc39e508d2709fe14e2b4e844fd7
/Python/test.py
818eb63debb2c34cbca6a32dc628f5e91c3de1f1
[]
no_license
enningxie/Interview
75ac734873282dc67503815019718a6e1b27c512
becdd40463c01551f2c8a53abc9d2281979f2bc1
refs/heads/master
2020-03-18T08:13:00.049201
2018-12-25T01:02:45
2018-12-25T01:02:45
134,496,872
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from collections import defaultdict if __name__ == '__main__': d_dict = defaultdict() nums1 = [1, 2, 2, 1] nums2 = [2, 2] for i, value in enumerate(nums1): d_dict[i] = value d_dict.pop()
ef5cedf36af3d5382bcecb579ae28b374f22bd7d
7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3
/atcoder/arc/arc006/c.py
cb6d240266da7927722159dc9328cf026bb5874f
[]
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
332
py
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll N = int(raw_input()) a = [] for i in xrange(N): w = int(raw_input()) for j in xrange(len(a)): if a[j] >= w: a[j] = w break else: a.append(w) a = sorted(a) p...
784fa6abdaea42679c74b37c9104130a6c8ab49a
ee7e42417d9d1e76b0e84e44dc6eb037adc3ebad
/.history/manage_20190703133205.py
97195c48fcefe2c35d0dc6fce4c318d0b570fa33
[]
no_license
web3-qa/pets-api
4632127ee84a299f207d95754f409fc1e4c0013d
ee4a04e7291740ac8eb6147c305b41d27d5be29c
refs/heads/master
2023-05-12T09:09:47.509063
2019-07-18T15:07:13
2019-07-18T15:07:13
197,611,701
0
0
null
2023-05-01T19:42:17
2019-07-18T15:19:59
Python
UTF-8
Python
false
false
429
py
import os import sys from os import path from xmlrpc.client import Server from virtualenv import create_bootstrap_script from application import create_bootstrap_script from flask_script import Manager, Server sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))) app = create_app() manager ...
3e0f44d691a846473e3bd241080b059dfc70b086
8fd56e9b9dbc49c16b4a8afe1007f824183bb0ab
/Python_Stack/django/django_fundamentals/django_intro/dojo_and_ninjas/dojo_and_ninjas/settings.py
f0d9e05a39974011a73b5ec3195f1ab742aa2ea1
[]
no_license
DiyarBarham/CodingDojo
b1cc7d7355f5fb139cb640168f78d6b7f91e372a
0891e2c41ddbb9004eadfd2d54fe7f34d6d4ef58
refs/heads/main
2023-07-08T12:12:33.227932
2021-08-07T13:55:33
2021-08-07T13:55:33
363,878,740
0
2
null
null
null
null
UTF-8
Python
false
false
3,293
py
""" Django settings for dojo_and_ninjas 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/ """ from...
bff8c1e537389300427596e9c36f71fadaf71296
9b9a02657812ea0cb47db0ae411196f0e81c5152
/repoData/mirumee-django-messages/allPythonContent.py
9918ddf59a580b2c2fb4f59768881fac6fa2cc3f
[]
no_license
aCoffeeYin/pyreco
cb42db94a3a5fc134356c9a2a738a063d0898572
0ac6653219c2701c13c508c5c4fc9bc3437eea06
refs/heads/master
2020-12-14T14:10:05.763693
2016-06-27T05:15:15
2016-06-27T05:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
37,475
py
__FILENAME__ = admin from django import forms from django.conf import settings from django.utils.translation import gettext_lazy as _ from django.contrib import admin from django.contrib.auth.models import User, Group if "notification" in settings.INSTALLED_APPS: from notification import models as notifica...
8f629fd50ba1ec120f55b90d665fc66b65f77590
07a783c06bb4bb059e8c38589fe3f9bfc5a14b22
/tests/builtins/test_iter.py
b06f6fbbe28a6ac4114a49d71dc32bf850c37594
[ "BSD-3-Clause", "MIT" ]
permissive
vishalsodani/batavia
a3c79b0342069fe6387eb3d7cc3ac3f4947d1842
690e5093da6653456381466e5fb9c153c295cb6b
refs/heads/master
2021-01-22T08:10:07.777012
2016-09-03T15:14:52
2016-09-03T15:14:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
from .. utils import TranspileTestCase, BuiltinFunctionTestCase class IterTests(TranspileTestCase): pass class BuiltinIterFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["iter"] not_implemented = [ 'test_bytearray', 'test_bytes', 'test_complex', '...
dbfee9b9af6cb812be348a4573cc993fd8d52d08
c7a6f8ed434c86b4cdae9c6144b9dd557e594f78
/ECE364/.PyCharm40/system/python_stubs/348993582/gtk/_gtk/TreeSortable.py
37cf02c4e1bb9f31abf693a5bf90d28a3cd5e6da
[]
no_license
ArbalestV/Purdue-Coursework
75d979bbe72106975812b1d46b7d854e16e8e15e
ee7f86145edb41c17aefcd442fa42353a9e1b5d1
refs/heads/master
2020-08-29T05:27:52.342264
2018-04-03T17:59:01
2018-04-03T17:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
# encoding: utf-8 # module gtk._gtk # from /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/_gtk.so # by generator 1.136 # no doc # imports import atk as __atk import gio as __gio import gobject as __gobject import gobject._gobject as __gobject__gobject class TreeSortable(__gobject.GInterface): # no doc @class...
31a19fe8af08abd87b739ef20aafc4f44fe5f260
97c5fe6a54636de9b056719ea62ac1de4e76ebdc
/src/newsletter/views.py
04f05109ae7071108c1fdf1cfd58ac97df81bd14
[ "MIT" ]
permissive
EdwardBetts/matchmaker
937ece7acbfd1fcb57ab59cd13b16c3cd67d54f3
ec56d18c6af8ca904325deca3be56484d3415c70
refs/heads/master
2020-12-11T01:50:10.773983
2016-01-26T16:53:29
2016-01-26T16:53:29
56,478,725
0
0
null
2016-04-18T05:11:12
2016-04-18T05:11:12
null
UTF-8
Python
false
false
3,301
py
from django.conf import settings from django.core.mail import send_mail from django.shortcuts import render, get_object_or_404 from django.views.generic.base import TemplateView from django.views.generic.detail import DetailView from django.views.generic.edit import ModelFormMixin from likes.models import Like from ...
f41ef0801111314ead7d07efb93cd9336de689ed
c63629e0e0477aeb6ff2e8751d00d9985500e7cd
/Mmani/__init__.py
de7539b6d20d2871550662c0a7e3757fabc33446
[ "BSD-2-Clause" ]
permissive
Jerryzcn/Mmani
1389016e68eeac05d0d735aa153320913467d2a4
732d3c7581fddb762390699216b724a1e0890508
refs/heads/master
2020-12-28T22:46:17.515828
2016-01-26T00:40:13
2016-01-26T00:40:13
49,289,748
0
0
null
2016-01-26T00:44:02
2016-01-08T18:41:59
Python
UTF-8
Python
false
false
66
py
"""Mmani: Scalable Manifold Learning""" __version__ = "0.1.dev0"
84aaf4120a0a6a01012a2a5dcf06b0d75f9c3de5
8afb5afd38548c631f6f9536846039ef6cb297b9
/_MY_ORGS/Web-Dev-Collaborative/blog-research/Data-Structures/1-Python/strings/contain_string.py
67056fed67317b8f05ae54f52aee5108734c2c45
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
651
py
""" Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = "hello", needle = "ll" Output: 2 Example 2: Input: haystack = "aaaaa", needle = "bba" Output: -1 Reference: https://leetcode.com/problems/implement-strstr/desc...
675ae4611cdb22f5676993b3c7c77fdad3196c7b
e638e9fda0e672fa9a414515d0c05a24ab55ad38
/FindPeakElement.py
8ff51d79a507758cc2e9a7895bd046e1d669a131
[]
no_license
zjuzpz/Algorithms
8d1c7d50429aa5540eb817dc5495a20fc3f11125
2df1a58aa9474f2ecec2ee7c45ebf12466181391
refs/heads/master
2021-01-21T05:55:48.768728
2020-08-04T22:44:08
2020-08-04T22:44:08
44,586,024
2
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
""" 162. Find Peak Element A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multiple peaks, in that case return the index to any one of the peaks is fine. You may imagine that num[-1] = num[...
84e04268feae1b1a5487fcbd2eaeda1fadbcb044
978248bf0f275ae688f194593aa32c267832b2b6
/xlsxwriter/test/table/test_table04.py
b4fda1d6dc147b5f25e5321e06cd322bd6883955
[ "BSD-2-Clause-Views" ]
permissive
satish1337/XlsxWriter
b0c216b91be1b74d6cac017a152023aa1d581de2
0ab9bdded4f750246c41a439f6a6cecaf9179030
refs/heads/master
2021-01-22T02:35:13.158752
2015-03-31T20:32:28
2015-03-31T20:32:28
33,300,989
1
0
null
null
null
null
UTF-8
Python
false
false
1,867
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, [email protected] # import unittest from ...compatibility import StringIO from ..helperfunctions import _xml_to_list from ...table import Table from ...worksheet impor...
b9da67d441c8a8ea04914a68e4e11e3566b32dde
9ca55981d3245d87d45debce8e9825b60db43046
/chemicals/thermal_conductivity.pyi
75e0492a449dc884cb25dbc4ed2080c24b0a1a97
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CalebBell/chemicals
c6b1ebd409c32e0e1053c4f97668a8ebcc92b969
37e32a7c7f819e0cb8e2a8784f8448f68b9a4215
refs/heads/master
2023-07-25T23:34:17.754310
2023-07-25T02:00:14
2023-07-25T02:00:14
264,697,738
137
33
MIT
2022-06-05T18:21:02
2020-05-17T15:27:11
Python
UTF-8
Python
false
false
2,921
pyi
# DO NOT EDIT - AUTOMATICALLY GENERATED BY tests/make_test_stubs.py! from typing import List from pandas.core.frame import DataFrame from typing import ( List, Optional, Union, ) def Bahadori_gas(T: float, MW: int) -> float: ... def Bahadori_liquid(T: float, M: int) -> float: ... def Chung(T: float, M...
03ac8c891da817f67d9b5c8e05d36778c398ff8e
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba3483.pngMap.py
11a26fda8cd8a7ca0878fb5776a770da9bee2f06
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba3483.pngMap = [ '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '0000000000000000000000000000000000000...
47c2d02951db7604b35e5da5d690abc1744355f0
5cb8b2e8496a2e6d0cfa7f2bae26d43bce263632
/example2.py
820d5006d40bf4e7f280e7882c49bd00a38c06f4
[]
no_license
Malak-Abdallah/Intro_to_python
3745786e499c8d6a95c414d3e5d87d27e5332039
9dbd8fa6e52b3056ef5406ab1337291feefad8da
refs/heads/master
2023-06-25T09:09:16.709645
2021-07-28T12:26:18
2021-07-28T12:26:18
383,780,163
0
1
null
2021-07-26T13:02:32
2021-07-07T11:48:29
Python
UTF-8
Python
false
false
306
py
if __name__ == '__main__': x=list(map(int,input().split(" "))) lists={} for i in range(x[0]): lists[i]=list(map(int,input().split(" "))) lists[i].sort(reverse=True) num=0 for i in range(x[0]): num = num+ lists[i][0] ** 2 if num <x[1]: print(num)
efde0bd1158f2af6861f6ccd43d34cadf581acf1
c0e7f3e1801bfd99c5fc86067ea552a8436c47dd
/junk_drawer/store.py
91bbab4f943ccdcd3bb220b99dccdc8e8a27896d
[]
no_license
Opentrons/junk-drawer
27a463053dbb45e56902f3d8286f57f931631f59
32ca381f754489b476e26fbf18001bbf98881ea9
refs/heads/main
2023-08-29T06:11:09.028658
2021-10-08T18:03:20
2021-10-08T18:03:20
298,059,402
0
0
null
2023-05-23T16:17:06
2020-09-23T18:26:53
Python
UTF-8
Python
false
false
5,183
py
"""Store module for junk_drawer.""" from __future__ import annotations from logging import getLogger from typing import Optional from .read_store import SCHEMA_VERSION_KEY, ReadStore, ModelT from .filesystem import ( PathNotFoundError, RemoveFileError, FileEncodeError, FileWriteError, ) log = getLogg...
375dc7a9f08e87def6b9d83af33b3624c9f7ab69
56df6683865fd9319b389afd6dd4a922299da593
/source/scripts/python/host/source/host.py.in
0e4829aa2a05b70be869733b69853d892d4ff567
[ "Python-2.0", "GPL-2.0-or-later", "MPL-1.1", "NCSA", "LicenseRef-scancode-proprietary-license", "GPL-1.0-or-later", "BSD-3-Clause", "MPL-2.0", "Ruby", "BSD-2-Clause", "MIT", "Apache-2.0" ]
permissive
metacall/core
4f36fe0b13924853aab6d0f053285b649398cc1d
419ffb573b17501c91662f0f161032bb19ea1ab3
refs/heads/develop
2023-08-23T10:19:30.898387
2023-08-10T18:39:08
2023-08-10T18:39:08
163,221,062
1,391
167
Apache-2.0
2023-09-13T23:49:43
2018-12-26T22:02:57
C
UTF-8
Python
false
false
957
in
#!/usr/bin/env python3 import sys # Insert Python Port folder first in the system path list sys.path.insert(0, '@PROJECT_METACALL_PORTS_DIRECTORY@') from metacall import metacall, metacall_load_from_memory script = '''#!/usr/bin/env node 'use strict'; const path = require('path'); /* Load MetaCall addon */ const...
53d2fbfd9f3c99ec42a32fc5ee87f71345a8cd07
14e7058adf766352a0b90b66b7dcf887105a481c
/djangoappengine/settings_base.py
b62b7cbd0c0dfb09d8af41eeb26eecfd9cb6af34
[ "BSD-2-Clause" ]
permissive
brunogamacatao/portalsaladeaula
2b7f07f07c2518dd359f043483fbb27417f62aaf
9429e485aa37ffea3208339a807032e9230a3c84
refs/heads/master
2020-12-29T01:42:18.594281
2012-06-22T12:24:44
2012-06-22T12:24:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
# Initialize App Engine SDK if necessary try: from google.appengine.api import api_proxy_stub_map except ImportError: from .boot import setup_env setup_env() from djangoappengine.utils import on_production_server, have_appserver DEBUG = not on_production_server TEMPLATE_DEBUG = DEBUG ROOT_URLCONF = 'urls...
080bcf39abb2b1192174b56c122775222dc094e5
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Games/Pygame/pygame_widgets/widgets/holder.py
96b94e5e4579dd18844513a989799935872a599d
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:72853c292faeedcdb3d5218c2cef2738641f5b2b222c1b069415a537cc49181f size 7770
af1a0b1e3fbc5532f301616c7de79889ed3c1f13
338298474c517e28d9a214c3525b9709625fa438
/YouWeesh/Controllers/RegisterController.py
e1c6418416713ae4a61fcdd2a707f2d628d8db50
[]
no_license
vincehar/Backend
f5a8f0e264de2ba7ccadba3bce015f3a30e9c478
fb143c6c70cb65018d0436bf5b891cb72620208d
refs/heads/master
2023-07-06T10:37:50.057555
2023-06-28T13:04:36
2023-06-28T13:04:36
73,698,999
0
0
null
null
null
null
UTF-8
Python
false
false
2,284
py
from base64 import b64decode from django.core.files.base import ContentFile from django.http import Http404 from mongoengine.django.auth import User from rest_framework.decorators import api_view, renderer_classes, permission_classes from rest_framework.permissions import AllowAny from rest_framework.renderers import ...
1fa1bec403921087904bbafbee13cec85e2e510f
52b5773617a1b972a905de4d692540d26ff74926
/.history/trapping_20200617172315.py
650a589856ffb33697b3724367c5a84d8aea7bf7
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
def trap(arr): # left = max(arr) # copy = [] # for j in arr: # copy.append(j) # arr.remove(left) # right = max(arr) # total = 0 # print(copy) # for i in range(len(copy)-1): # total += min(left,right) - copy[i] # print(min(left,right),"-",copy[i],"==",tota...
bd4a9a56ca71e397b6a266f1919c1626b4d31214
5390d79dad71ad0d9ff9d0777435dcaf4aad16b3
/chapter_07/pizza_topping3.py
d3a2378353388256cf56dcd63ea0eaf942f43e2c
[]
no_license
JasperMi/python_learning
19770d79cce900d968cec76dac11e45a3df9c34c
8111d0d12e4608484864dddb597522c6c60b54e8
refs/heads/master
2020-11-26T08:57:02.983869
2020-03-11T10:14:55
2020-03-11T10:14:55
218,935,548
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
prompt = "\nPlease input your pizza toppings:" prompt += "\nEnter 'quit' to end the program. " message = "" while True: pizza_topping = input(prompt) if pizza_topping == 'quit': break else: print("We'll add " + pizza_topping + ".")
691cf31fb1d7e831b764492ca883e2c4ccfdeb40
9a8ff03d27e4822fa27f78fb6ba1dd419725cf90
/home/urls.py
1411cf4d18bcdf2783251f6cd45251f3234642e5
[]
no_license
Pavlo-Olshansky/Social-lemon
0f9f994fbbba78cd0e7defa1e7fcf60b6ed55165
3b7f0b9e8526f6c74d98ad38412151ea2678f808
refs/heads/master
2022-12-11T01:12:30.919023
2018-06-17T14:57:10
2018-06-17T14:57:10
104,945,732
0
0
null
2022-11-22T01:53:50
2017-09-26T22:48:52
Python
UTF-8
Python
false
false
2,089
py
from django.conf.urls import url, include from . import views from django.contrib.auth import views as auth_views from .forms import CustomAuthForm from django.contrib.auth.models import User urlpatterns = [ # url(r'^$', views.HomePage.as_view(), name='home'), # Register new user url(r'^signup...
824a8a299cdea984c99f9a2b32fe5eb4b4918082
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/lib/python3.6/site-packages/traits/tests/test_container_events.py
7ccbe4fccef1ce095b0e9bfabb18e60297996524
[ "Apache-2.0" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
5,193
py
# ------------------------------------------------------------------------------ # # Copyright (c) 2007, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in /LICENSE.txt and may be redistributed only # under the conditions described...
0330944a234507649832eb94badabbf3a9353faf
5a9194df7e40b1f9694576c88c536b24d22f548b
/tests/projects/test_delete_project.py
96d89108aa6b51da09f660ffdc8b7e8fd51e6b38
[]
no_license
jamesstidard/Talk-Zoho
17230611e40e5c232dcd33bdbd5148ba20543810
3a918d72146dae1ed6bb8afee09dfe658a540048
refs/heads/master
2021-05-08T10:44:05.881154
2017-03-03T16:49:34
2017-03-03T16:49:34
119,862,940
0
0
null
2018-02-01T16:34:38
2018-02-01T16:34:38
null
UTF-8
Python
false
false
383
py
import pytest from tests.projects.fixtures import * # noqa @pytest.mark.gen_test def test_cant_delete_user(projects, portal_id): # Deleting user with wrong id always returns true (CRM API limitation) # Pull projects down to lowest common denominator for unified interface. success = yield projects.projec...
1963788b916b4fec844fe1d1523a7cfee98a0955
bd109656f1ea18fe2eae9afffcc0074d75826bb9
/setup.py
55a44300afd9c9ab3918a9fb2a7ad146c8367a9b
[ "MIT" ]
permissive
ffreemt/baidu-tr-async-free
4db5356e24e1ac818a6f641ccad7093113dd32ec
3bf422e8d8406123479c5bcdb679af795db0ba8f
refs/heads/master
2021-01-02T21:41:05.188476
2020-02-12T06:15:30
2020-02-12T06:15:30
239,812,578
1
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
''' setup ''' # pylint: disable=invalid-name from pathlib import Path import re from setuptools import setup, find_packages name = """baidu-tr-async-free""" description = 'baidu translate for free with async and proxy support' dir_name, *_ = find_packages() # dir_name = 'bdtr_async' curr_dir = Path(__file__).parent ...
c8e6f159a7813608572c6285f8a0b42c0a56fd09
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_213/61.py
cfe6796cc3346eddb991963bab839f4b05e02f73
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
# link: https://code.google.com/codejam/contest/5314486/dashboard#s=1 import string import time testIndex=2 problemRoot="d:/prog/versenyek/googlejam" problemDir="2017/round2" problemName="B" inputFiles= ["-example.in", "-small.in", "-large.in"] outputFiles=["-example.out", "-small.out", "-large.out"] t...
2dea5afe2da38332a9e1ae100dcd6b3750a2efc4
c6374029bcba930ab37098e8e954067aeae252d8
/mla/svm/kernerls.py
da289a183af1d605a4fb65c9a4a197ad9621ecda
[ "MIT" ]
permissive
bhumikadhingra/MLAlgorithms
ab6f20aa8a899ff265668155cb4083ec19535429
8f002d0804663854eaec41b4ead698caaaf11c69
refs/heads/master
2020-08-07T09:12:36.194453
2019-10-07T13:15:12
2019-10-07T13:15:12
213,387,107
1
0
MIT
2019-10-07T13:13:09
2019-10-07T13:13:09
null
UTF-8
Python
false
false
721
py
# coding:utf-8 import numpy as np import scipy.spatial.distance as dist class Linear(object): def __call__(self, x, y): return np.dot(x, y.T) def __repr__(self): return "Linear kernel" class Poly(object): def __init__(self, degree=2): self.degree = degree def __call__(self,...
387523e464797ebfe8e34406b339dc22c29b74c0
69099b95bb1507b30e6be8d4ad1d39f923833e97
/BIRL_optimal_demos.py
737cf7525eced539ad6a481bc67d6068cbee618d
[ "MIT" ]
permissive
dsbrown1331/aima-based-irl
80d8cc2eafd751bd84bdcda6ad5a9a44060947c6
553550030240ae886f4260ece59dd252adb1fc6e
refs/heads/master
2021-01-17T23:12:03.038606
2016-09-27T15:30:27
2016-09-27T15:30:27
67,889,747
1
0
null
2016-09-10T19:16:56
2016-09-10T19:16:55
null
UTF-8
Python
false
false
4,300
py
import numpy as np import mdp from my_birl_batch import * from my_birl import * from halfspace_uncertainty import * from mdp_feature_counts import * from optimal_teaching import * from activeLearning import chain_variance import operator for size in range(3,4): print "^^^^^^", size, "^^^^^^^" f = open('active_...
6e4e5e3c39abdfef03c473cadda68be2c7a10fa9
97072bdb023dd3916d0ced6aba1c98ec0893ee01
/tests/test_user.py
6c75c87d9a88a701e3f63fcc1efb7784b662cc2f
[ "MIT" ]
permissive
AnumAsif/my-blogs
ed814d0559a1d84e138a02b846d2a2b85aacfebd
8dd6d8e9e84867582dad10265203d1219c00926c
refs/heads/master
2020-04-23T01:51:07.902859
2019-02-19T12:18:42
2019-02-19T12:18:42
170,826,439
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
import unittest from app.models import User class TestUserModel(unittest.TestCase): def setUp(self): self.user = User(password="anum123") def test_password_setter(self): self.assertTrue(self.user.password_hash is not None) def test_no_access_password(self): with self.ass...
88e0919771e070e602f208c9d6bbeae0dab97897
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.5/django/contrib/databrowse/__init__.py
00928c97e129815852bcfa60bb1f0d6611f9a0ce
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
103
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/contrib/databrowse/__init__.py
6416d21e330f6923f19a06e51308eeb8b9f4168b
f26d67e3e9f8b90e5d6243279a1c2ce87fa41d46
/tests/api/test_prodstats.py
c06973ae4a39c46587d14ccdcf139af25afd3c4a
[ "MIT" ]
permissive
OCB-DS/prodstats
cf554e3abee651463e9f81606d4b633f464658a7
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
refs/heads/master
2022-11-25T15:30:06.988683
2020-08-02T16:08:05
2020-08-02T16:08:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,722
py
# import logging # import pandas as pd # import pytest # import starlette.status as codes # from db.models import ProdStat as Model # from tests.utils import rand_str # logger = logging.getLogger(__name__) # pytestmark = pytest.mark.asyncio # @pytest.fixture(scope="session") # def prodstat_records(json_fixture)...
8e3b3c81c0c614f310d3cacfaea2b523e16773bf
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_344/ch46_2019_03_19_20_17_36_654772.py
5d9a674902235b456d5687c756b4218f596434d0
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
lista_palavras = [] palavra= input('Escreva uma palavra: ') while palavra != 'fim': lista_palvras.append(palavra) palavra= input('Escreva outra palavra') if palavra[0] = 'a': print (palavra)
4a091b6d0f3d4382e67c122acfa7fa4c68c9ce22
3cd5fe995670963e5e94918ba9f1796e9e7cb73f
/2.7/ipython/profile_default/ipython_config.py
a6a72a3e3e16cbe3fa84b7e6893e98aa0bbcbb58
[]
no_license
GrahamDumpleton-abandoned/s2i-ipython-notebook
1e0a7ff4c893b5b743bd250535cedf4b0ed0988f
33246956d6ba32384f678d4803148ac964b0befe
refs/heads/master
2021-05-31T04:53:03.679233
2016-04-02T09:28:01
2016-04-02T09:28:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,830
py
# Configuration file for ipython. #------------------------------------------------------------------------------ # Configurable configuration #------------------------------------------------------------------------------ #------------------------------------------------------------------------------ # InteractiveSh...
d5c5c47e59e9a5bc56b001df5aa50bcd31f4ad79
ab8117bc5b5040e5107fc59337fabc966cb062ba
/.history/twitter/engine_20200328094821.py
ee9b4bd9c70c405259d659015ba54699abc23b6b
[]
no_license
mirfarzam/DownloaderBro
6019ab561c67a397135d0a1585d01d4c6f467df4
8e0a87dd1f768cfd22d24a7f8c223ce968e9ecb6
refs/heads/master
2022-04-16T15:31:38.551870
2020-04-15T17:36:26
2020-04-15T17:36:26
255,090,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
import tweepy import datetime import configparser import time config = configparser.ConfigParser() config.read('credential.conf') consumer_key = config['API']["API_key"] consumer_secret = config['API']["API_secret_key"] access_token = config['ACCESS']["Access_token"] access_token_secret = config['ACCESS']["Access_t...
9855860eeee26a97c487f030f08eba7c367d287f
4b4828d3c98d76d7bf38f90a015945acc408ddc5
/PythonAI/Practice/DAY03/src/URL_Parsing_02.py
0ef5fb5e164d8ee32d3ebfbbf7f7046114d8a105
[]
no_license
Huh-jae-won/Study
cb5d32728e8dcded492e7edb054b500c91ec607c
e4dbc3fef69bb273b62b866fb5ef2a7250222f10
refs/heads/main
2023-06-20T13:06:26.691899
2021-07-11T07:43:41
2021-07-11T07:43:41
362,759,927
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
import sys import urllib.request as req import urllib.parse as parse # 명령줄 매개변수 추출 if len(sys.argv) <= 1 : print("USAGE : download-forecast-argv <Region Number>") sys.exit() regionNumber = sys.argv[1] # 매개변수를 URL 인코딩 API = "http://www.kma.go.kr/weather/forecast/mid-term-rss3.jsp" values = { 'stnid': regionNum...
66fb33b0030c894e919d60edb6cc528e910809b4
8cce0b5a4be09783016906a36192c52e9daa84aa
/equipment_engineering/meter_reader_4_pointer/main.py
d3851c2d25d932f0aa84ba3adc0c8e32b8fd3a3b
[ "MIT" ]
permissive
Castrol68/opencv-practice
fcc9495553d3a10fb045c396697391a5d2a06f36
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
refs/heads/master
2023-08-31T07:18:51.497902
2020-05-03T17:43:12
2020-05-03T17:43:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,288
py
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import abc from abc import ABC import argparse import os class EquipmentRunner(ABC): def __init__(self): self.__successor = None @property def mode(self): if not self.__successor: exit(404) return self._...