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
b5a1c9ead29c35ffe80c2249e48b6950a5b028c2
717f5324f8d4ce44a94e2c0b654a2d2a4f0a3c74
/scripts_python/ttst_resume_training_from_checkpoint.py
030f41d5b842905c790d8765eca76c3bbb8e171c
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jhlegarreta/dwi_ml
3ac7ef28f3bba13f34a8f38a9f910cf2946dcc7b
a7c03f26780677e4eaccff9b381d5a8ec6120293
refs/heads/master
2023-03-04T07:22:15.737775
2023-02-23T18:20:53
2023-02-23T18:20:53
242,525,253
0
0
MIT
2020-06-10T00:53:06
2020-02-23T13:49:01
Python
UTF-8
Python
false
false
4,344
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import logging import os from dwi_ml.data.dataset.utils import prepare_multisubjectdataset from dwi_ml.experiment_utils.timer import Timer from dwi_ml.models.projects.transforming_tractography import TransformerSrcAndTgtModel from dwi_ml.training.projects.t...
[ "emmanuelle.renauld@usherbrooke.ca" ]
emmanuelle.renauld@usherbrooke.ca
5a9b14b0058889ab230509951fa84e604a6ac34e
c1fe97208afe479b7ae1ee67d69866a6911564ca
/Login/profilecreate/migrations/0003_alumni_name.py
a9a1db57641bc9be5a4730965f8ecec61accdf61
[]
no_license
jaindhairyahere/Python_Django
a0a46c57b6ca60d0942ae181fe28ea56bb1ee948
f170a2e38b78df698a02821a454a3baea0c358a6
refs/heads/master
2020-06-18T09:17:56.364928
2019-11-02T18:34:12
2019-11-02T18:34:12
196,249,108
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
# Generated by Django 2.2.1 on 2019-07-14 09:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profilecreate', '0002_auto_20190713_0758'), ] operations = [ migrations.AddField( model_name='alumni', name='name', ...
[ "jaindhairya2001@gmail.com" ]
jaindhairya2001@gmail.com
2eff7c4aa8efdc6f5de38ddcc613103dc4990ac2
1012f61f46ff7aaf37cd3ce0ead64e035ec201dc
/coding-challange/codewars/6kyu/2020-01-19~2020-04-14/unique-in-order/unique-in-order.py
b94146d7942389aa5d54d38d56dfd0e250883ce8
[]
no_license
polyglotm/coding-dojo
89efe22f5a34088e94c9e3a4e25cad510b04172a
43da9c75e3125f5cb1ac317d275475f1c0ea6727
refs/heads/develop
2023-08-17T11:59:30.945061
2023-08-16T14:13:45
2023-08-16T14:13:45
188,733,115
2
0
null
2023-03-04T05:49:21
2019-05-26T21:26:25
JavaScript
UTF-8
Python
false
false
578
py
# unique-in-order # https://www.codewars.com/kata/54e6533c92449cc251001667 from unittest import TestCase def unique_in_order(iterable=[]): arr = list(iterable) result = [arr[0]] if len(arr) else [] for i in range(1, len(iterable)): if arr[i] != arr[i - 1]: result.append(arr[i]) ...
[ "polyglot.m@gmail.com" ]
polyglot.m@gmail.com
af1a6be8a17761444fa00179dc4ecd5249584a69
22dcd52b6a07e82e8db9bf8b7ad38711d12f69a8
/venv/Lib/site-packages/sklearn/neural_network/multilayer_perceptron.py
ebab1fc1327c1415ac2ce41255977c49ce8f32e7
[]
no_license
MrGreenPepper/music_cluster
9060d44db68ae5e085a4f2c78d36868645432d43
af5383a7b9c68d04c16c1086cac6d2d54c3e580c
refs/heads/main
2023-08-15T09:14:50.630105
2021-10-01T09:45:47
2021-10-01T09:45:47
412,407,002
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys from . import _multilayer_perceptron from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_path = 'sklearn.neural_network.multilayer_perceptron' correct_import_path = 'sklea...
[ "sebastian_truemper@posteo.de" ]
sebastian_truemper@posteo.de
b5f85580fa1323a0920557440d5badef8e4679cf
5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8
/buildout-cache/eggs/plone.app.dexterity-2.0.18-py2.7.egg/plone/app/dexterity/browser/clone_type.py
3657f9aa22a789d5cdde48857ec7c824eebc3229
[]
no_license
renansfs/Plone_SP
27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a
8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5
refs/heads/master
2021-01-15T15:32:43.138965
2016-08-24T15:30:19
2016-08-24T15:30:19
65,313,812
0
3
null
null
null
null
UTF-8
Python
false
false
1,202
py
from z3c.form import form, field from plone.z3cform.layout import wrap_form from Products.CMFCore.utils import getToolByName from plone.dexterity.fti import DexterityFTI from plone.app.dexterity import MessageFactory as _ from plone.app.dexterity.interfaces import ITypeSettings class TypeCloneForm(form.AddForm): ...
[ "renansfs@gmail.com" ]
renansfs@gmail.com
f39c6917da4351e5e940d4f3051da31ebc653b8d
9489d14ea85fa72ae83172290ceab59fc9ec323d
/project/core/migrations/0002_auto_20150915_1928.py
5a557daf86b20c6df98d6f8f8d459043d6bf7840
[]
no_license
exister/interview_task_appointments_app
11f95503a37644cdddc33c045e0e05c2060e78bd
92871cd523524c644a9f09ab9b1d16635ba61853
refs/heads/master
2021-01-13T02:22:45.059670
2015-09-17T18:38:28
2015-09-17T18:38:28
42,674,606
0
0
null
null
null
null
UTF-8
Python
false
false
962
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth import get_user_model from django.db import models, migrations def forwards_func(apps, schema_editor): User = get_user_model() try: User.objects.create_superuser('admin', 'admin@example.com', 'admin') except ...
[ "mkuznetsov.dev@gmail.com" ]
mkuznetsov.dev@gmail.com
1ab0c492114de3924d5cb67cf6b9b58164351964
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/_management_link_client.py
ba9c8130be263defcf09dccc5b3d4f8482eec828
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
4,663
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
f5a5672c9da94bc11a594e5649ffdb822f496606
5dc1c0c8345a8125b6283041c91eb5c9750eb0a3
/leet/trees/depthSum.py
8f4bc0e79314b23900439c2228099ce8a22a52d3
[ "Apache-2.0" ]
permissive
ZNosX/python-cp-cheatsheet
82bf3985d5ba36df1cb3e7ef352581c076d33187
c0b9eb5dfdb6fdec7ac66531e674740f1b99e9a3
refs/heads/master
2023-07-08T01:39:31.478223
2021-08-20T19:21:23
2021-08-20T19:21:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,790
py
# """ # This is the interface that allows for creating nested lists. # You should not implement it, or speculate about its implementation # """ #class NestedInteger: # def __init__(self, value=None): # """ # If value is not specified, initializes an empty list. # Otherwise initializes a single i...
[ "peterrlamar@gmail.com" ]
peterrlamar@gmail.com
82e6b92d3c7d34a6bb62ede15c554837f07ced96
72094757026691e4f2648f76f8b376b85296dda4
/Hausaufgabe_9/sorts/Bubble/BubbleSortV3.py
a3d07961c1c3ffc1d6fa212c503509ad19af5ed7
[]
no_license
5h3rr1ll/SmallWorks
7d4808eddbc651d3d6589f2896a7ff5fd98759e1
05efea55e0e48eff48e6bc21fd85ac3a8a449441
refs/heads/master
2021-01-11T14:18:27.777472
2017-02-15T09:30:37
2017-02-15T09:30:37
81,319,247
0
0
null
null
null
null
UTF-8
Python
false
false
1,977
py
#! /usr/bin/env python # -*- coding: utf-8 -*- def BubbleSort(): """ Sortiert die Zahlen von klein nach groß. Erwartet eine Listen-Objekt, gefüllt mit Zahlen. """ ZahlenLst = [] ZahlenLst += input("Gib die Zahlen mit komma getrennt, keine Leerzeichen, ein, die sortiert werden sollen: ") print(Zah...
[ "a@sherrill.de" ]
a@sherrill.de
dfd0b913f9e7805e74dd2d73d8ac46cfabb6399d
761f4b629885108941fc02a41593923d1a125e9d
/kakera_core/migrations/0003_theme.py
ff940ac47d6558c6b2ede63eccaeee27c37ac29a
[]
no_license
KazokuCo/kakera
731ae8853baf353cd3c59de2d2b05c0effa69737
36ad76b99676ddbf6ac723e43af2482583e9201d
refs/heads/master
2021-01-11T08:14:59.713237
2020-01-29T11:56:42
2020-01-29T11:56:42
69,804,674
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-03 19:05 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0015_fill_filter_spec_field'), ('w...
[ "uppfinnarn@gmail.com" ]
uppfinnarn@gmail.com
e3e88c32d1fb86a7fecfef1f4b988524caa53b04
4546398a18590e4e182629fb55d185547dd6df0a
/2023/problems/guillaume/submissions/partially_accepted/reduce_fraction_10.py
a8580631f63046ac431e13392d6733ff72985aa1
[]
no_license
ForritunarkeppniFramhaldsskolanna/Keppnir
352341fa97c6349af65b513c03171f3e706f7db2
65c8eb5358d8a49f956edf76c2d47b9372accc3c
refs/heads/master
2023-04-28T15:33:36.396225
2023-04-23T15:00:15
2023-04-23T15:00:15
78,303,702
1
2
null
null
null
null
UTF-8
Python
false
false
571
py
#!/usr/bin/python3 from fractions import Fraction n = int(input()) results = input() wins = 0 draws = 0 losses = 0 best = -1 best_output = (0,0) for i in range(n-1, -1, -1): if results[i] == 'G': wins += 1 elif results[i] == 'A': losses += 1 else: draws += 1 cur = Fraction(win...
[ "bjarki.agust@gmail.com" ]
bjarki.agust@gmail.com
bdb5a9f734e592d50b9749a5c18579b71d21ac58
bd1025d9f0ec2c7a40329010cd109bd68bd43a58
/tests/org/one.py
53c57ce1dbcbe75e8023a3ca48e3c1f95cd784a8
[ "MIT" ]
permissive
cltrudeau/torquemada
709ecaf2111c59413b55657d21aa009ea605fdd3
31a73272fc5496cd720279a5a7620036d004697b
refs/heads/main
2023-01-24T08:15:04.894789
2020-12-06T21:54:13
2020-12-06T21:54:13
318,828,867
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
import os, json def long_fn(one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen): print(one) print(two) print(three) print(four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen) def print_os(): long_fn(*range(0, 14)...
[ "ctrudeau@arsensa.com" ]
ctrudeau@arsensa.com
6737c92b9f2af1d85c19ac2cbfbabc4d66e5c10c
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_5308.py
ca55d12752a528b6e4540ea03dd336edde0db18c
[]
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
139
py
# WSGI - Set content type to JSON self.response.headers['Content-Type'] = "application/json" self.response.out.write(json.dumps(response))
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
6244ce839ed8a103b5bfa7745009f1eb85dedb8c
1c5f80a5f95e609eeac143da854f902297411705
/lief_transform.py
bc4f3001fa5896a38cf5137823cd35f6c66c5476
[]
no_license
romainthomas/whitebox
71eda59d3a303510d5a66d69222a9aee2b5cb717
2c66dc8de61073a423aa50ad5b9e2d017c68395a
refs/heads/master
2020-03-13T03:56:27.432317
2018-04-25T08:15:18
2018-04-25T08:15:18
130,953,693
1
0
null
null
null
null
UTF-8
Python
false
false
604
py
import lief libnative = lief.parse("./OAES/lib/x86_64/libnative-lib.so") # Change Symbol version (All to global) for s in libnative.dynamic_symbols: if s.has_version: if s.symbol_version.value > 1: s.symbol_version.value = 1 # 1. Remove liblog (Android specific) liblog = libnative.get_lib...
[ "romainthomasc@gmail.com" ]
romainthomasc@gmail.com
31687cf889fb18cc159e52f4e0ae3938540c679d
645e9674e78b3c0ae72a7d4dc5f9694f97c035d3
/Python/Chapter05/plasma_tv.py
e2ad8344f37e8a18ab562d48a78f45e79164ac25
[ "MIT" ]
permissive
msiplab/EicProgLab
30cd1b3f45eb86c26a270af5888f6966abaac9ae
aa4b19e59154ce27cda856fa6a615859304bd595
refs/heads/master
2023-07-19T22:35:52.457866
2023-07-12T20:35:23
2023-07-12T20:35:23
125,338,699
1
2
null
null
null
null
UTF-8
Python
false
false
867
py
from interface_tv import ITv class PlasmaTv(ITv): def __init__(self): pass def display(self,channel): print('プラズマ:', end='') if self.__region == '新潟': if channel == 8: print('NHK総合表示中...') elif channel == 12: print('NHK教育表示中.....
[ "shogo@eng.niigata-u.ac.jp" ]
shogo@eng.niigata-u.ac.jp
7b04bf6d30672c4643b48016c58e96c419b9aab6
f8e8e365c9cf58b61d72655bc2340baeaed5baff
/Leetcode/Python Solutions/Strings/FindAndReplaceInString.py
9159316f3352cbddfa84e6bdf65ca255e2eba018
[ "MIT" ]
permissive
Mostofa-Najmus-Sakib/Applied-Algorithm
39a69f6b9ed113efe4a420d19cad79e0aa317637
bc656fd655617407856e0ce45b68585fa81c5035
refs/heads/master
2023-08-31T19:54:34.242559
2021-11-05T03:43:35
2021-11-05T03:43:35
412,263,430
0
0
MIT
2021-09-30T23:45:29
2021-09-30T23:45:25
null
UTF-8
Python
false
false
732
py
""" LeetCode Problem: 833. Find And Replace in String Link: https://leetcode.com/problems/find-and-replace-in-string/ Language: Python Written by: Mostofa Adib Shakib Time complexity: O(n) Space Complexity: O(n) """ class Solution: def findReplaceString(self, S: str, indexes: List[int], sources: List[str], target...
[ "adibshakib@gmail.com" ]
adibshakib@gmail.com
839abf744c3635fdb01d25712a679a01c44ab7ba
a285d3054bd64efaab2f111829aeaba929b0a8aa
/Oddam/settings.py
59605123917ea2471f3e394725f10a22bf82b3e5
[]
no_license
rbartosinski/Oddam-w-dobre-rece
920d2c2e4c72ad03cb64529d1778c6fe8e622735
a9210c47815ed9bbfcad4e31fb348f76440da8cd
refs/heads/master
2020-04-19T07:02:34.616144
2019-01-30T13:24:37
2019-01-30T13:24:37
168,035,746
0
0
null
null
null
null
UTF-8
Python
false
false
3,195
py
""" Django settings for Oddam project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # B...
[ "you@example.com" ]
you@example.com
ad13e4b19e892d944c7fb446352da23167774d67
9b07b7b3b6a2c1bbff2f4be9275ab36ca55fd54b
/kegbot/pycore/flow_meter.py
f3ffc3c3ceff00e592128bff70ca0ea5932f717c
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Kegbot/kegbot-pycore
c876eee117cb26e427bc07af3b5c8e229d9c6a49
40923e4b359ecccfb773ac76a258f02d3487605f
refs/heads/master
2022-12-15T21:02:53.110325
2020-05-16T22:46:31
2020-05-16T22:46:31
4,918,468
3
9
MIT
2022-12-08T09:43:53
2012-07-06T02:39:47
Python
UTF-8
Python
false
false
1,666
py
"""Utility module for summing flows.""" from builtins import object import logging class FlowMeter(object): """Represents a tick-accumulating flow sensor.""" def __init__(self, name, max_delta=0): self._name = name self._max_delta = max_delta self._last_ticks = None self._total_ticks = 0 self....
[ "opensource@hoho.com" ]
opensource@hoho.com
95c32f5d492dd37ec907c20b70434043eaaa4f36
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/ec_12049-2808/sdB_ec_12049-2808_lc.py
68bb7ff6420c7c638ac9f6ec4ea1b416a6eb7623
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[181.893542,-28.428025], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_ec_12049-2808/sdB_ec_12049-2808_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
b316e37680c71c4c022c0517df433dcaf44d452b
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_server_groups_page_info_result.py
1af24edca19a97842d36eb0eee9e9d25477f7020
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
2,881
py
# coding: utf-8 import pprint import re import six class ListServerGroupsPageInfoResult: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name a...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
8a55543e5813e761685b88eeede96adfdadcf69c
5e4a25bce2f60ee87f580b64f62697ad9bbbaced
/0109-Convert-Sorted-List-to-Binary-Search-Tree/solution.py
897c02b8c5139e1105b0b86873edb2b54cd812f1
[]
no_license
Glitch95/InterviewPrep
e729b88826a257699da9ea07493d705490da7373
b3a27d34518d77e1e4896af061f8581885ccfed0
refs/heads/master
2020-08-02T12:19:58.783302
2019-10-09T16:47:34
2019-10-09T16:47:34
211,348,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None def bst(arr, start, en...
[ "kaleshsingh96@gmail.com" ]
kaleshsingh96@gmail.com
e6ded9db29412a1c8e25eb13fe366a73ea28d4e9
0f79a920cbbeb585d5207496f71ca4750b83bf0f
/bot/urls.py
a755f0d24863e1ee0e718aec4811cffc346ff8b5
[ "MIT" ]
permissive
mitsei/CLIx_MiTiRobot
2bf2ecb405a2f7dc0c1d5b306ebffcfbf2d49fb3
964a72f4d0b26d830f7fdaf731f692a1e03a7980
refs/heads/master
2020-04-09T14:42:00.708434
2018-02-22T15:53:11
2018-02-22T15:53:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
from django.conf.urls import url from django.views.decorators.csrf import csrf_exempt from . import views urlpatterns = [ url(r'^$', csrf_exempt(views.index), name='index'), ]
[ "bhanks@mit.edu" ]
bhanks@mit.edu
45ad517e3160e052f374c69c6ab82e0e162b322b
f4b75e06e456dbd065dc57f07d55a2f5ec4ad688
/openstates/data/migrations/0042_delete_personcontactdetail.py
3226e905dd5065421e87af97b5810efe099a17a0
[ "MIT" ]
permissive
openstates/openstates-core
19bf927a2e72c8808a5601f4454846acaf32218a
3055632ea7ddab6432cc009989ffb437aed6e530
refs/heads/main
2023-09-05T10:30:58.866474
2023-09-01T15:43:59
2023-09-01T15:43:59
251,511,904
19
27
MIT
2023-09-06T19:30:03
2020-03-31T05:47:28
Python
UTF-8
Python
false
false
299
py
# Generated by Django 3.2.2 on 2021-10-13 19:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("data", "0041_personoffice"), ] operations = [ migrations.DeleteModel( name="PersonContactDetail", ), ]
[ "dev@jamesturk.net" ]
dev@jamesturk.net
1ebeba13fb08123c673b240c631b24d656dedbf6
5e6543d360396d02d2e9ae052a88997fde4af61d
/lingvo/core/ml_perf_log.py
d499f5b86d6758cc6dd9c099bf6e02fc9d2a52a8
[ "Apache-2.0" ]
permissive
saswat0/lingvo
58b0c044485fe89b33aca22a1c01e81d3be45c8a
3d0418a896c21240bb75ce1dc4c906da5a6dc757
refs/heads/master
2022-12-06T19:24:08.679519
2020-09-02T14:30:29
2020-09-02T14:30:29
279,816,053
2
0
Apache-2.0
2020-09-02T14:30:30
2020-07-15T08:49:42
null
UTF-8
Python
false
false
2,455
py
# Lint as: python3 # Copyright 2018 MLBenchmark Group. 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 requ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
5bd24a895d252fe524b989a59d660fe1b28db8fb
3918bdddcd1c78f22f7b67e7864f5a5a914c7951
/chapter_4/quicksort_randompivot_timer.py
bba7725e48a61c2c0dfc0572c8291944cbad8f14
[]
no_license
mkoundo/grokking_algorithms
33998c355b436ed0156e1f72e6dcc40b507bb329
3e7099b93cf4ba5b32d2cce2a451b819233e2c92
refs/heads/master
2022-12-08T05:09:39.087809
2020-08-19T14:41:03
2020-08-19T14:41:03
288,721,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,897
py
#! python3 # quicksort_randompivot.py # Author: Michael Koundouros """ Ref: Chapter 4 Ref: Grokking Algorithms: An illustrated guide for programmers and other curious people, A. Bhargava, 2016. Quicksort - A sorting routine using divide & conquer and recursion. Runtime is O(n log n) Choose pivot at random Assume list h...
[ "michael.koundouros@outlook.com" ]
michael.koundouros@outlook.com
dbe488fb2101e341742c0a2d8980614f8522683e
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/L9nvCobbYyGgKpWi8_23.py
160235b83b2da31e0ba3368c74fbfeace809d92a
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
""" Write two functions: 1. `to_list()`, which converts a number to an integer list of its digits. 2. `to_number()`, which converts a list of integers back to its number. ### Examples to_list(235) ➞ [2, 3, 5] to_list(0) ➞ [0] to_number([2, 3, 5]) ➞ 235 to_number([0]) ➞ 0 ### No...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a2554617f9e76ce9866b289c8a09c0fa6cad6f0f
1f2052bcd11f3f74b74ff94df4841cde171f0039
/base/models.py
c1b2835fa282e45c434a8d2a2187328603853811
[ "MIT" ]
permissive
pyprism/Hiren-Bookmark-Server
90edda76c4d35c71b0b6c0c03e3d45b2a813693c
7b2a899e99699399d09b13104e8ae3b6d3ab4cc2
refs/heads/master
2022-11-14T20:21:55.582660
2022-10-21T15:24:49
2022-10-21T15:24:49
32,663,532
1
1
MIT
2022-10-21T15:24:50
2015-03-22T05:38:59
JavaScript
UTF-8
Python
false
false
966
py
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import BaseUserManager class AccountManager(BaseUserManager): def create_user(self, username=None, password=None, **kwargs): account = self.model(username=username) account.set_pa...
[ "git.pyprism@gmail.com" ]
git.pyprism@gmail.com
635701c51e732c7d1aca93595b7adc834ba19e11
97a8da2b863521bdec9cc8b4a8e5fe15c875d524
/axitom/__init__.py
eb2367afaba97d916feb31d65ff83a531f21ba75
[ "MIT" ]
permissive
nik849/AXITOM
7fb7aed6f8fa8a20c4bff2ed737e131f6ddb0f4c
25f32ec69c467089d263f35f75f374c1de8f99b1
refs/heads/master
2020-07-28T18:55:17.659927
2019-09-06T10:28:11
2019-09-06T10:28:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
from .backprojection import fdk from .config import * from .parse import * from .phantoms import * from .projection import forward_project from .utilities import *
[ "sindre.n.olufsen@ntnu.no" ]
sindre.n.olufsen@ntnu.no
12077fc0d79601eb666aa14e154fbca6b432eb3e
66869778e8361fabff20ee8003521365bf5f67ae
/termicoder/cli/ls/__init__.py
9fa2596641a8ab6521c6dc6c444a98ff52509c39
[ "MIT" ]
permissive
termicoder/termicoder
752d7c2d70d0258a14991430845f8a8b2c3b497a
e7938113c2090112c9190107266e0e31024500bc
refs/heads/master
2021-06-29T17:26:39.599001
2018-10-14T11:57:36
2018-10-14T11:57:36
83,844,313
15
5
MIT
2019-10-10T15:18:50
2017-03-03T21:46:51
Python
UTF-8
Python
false
false
817
py
import click from click_default_group import DefaultGroup from . import contest from . import folder from . import running from ...utils.logging import logger from ...utils.exceptions import handle_exceptions # view command has various subcommands # default is termicoder view this # TODO change default_if_no_args to...
[ "diveshuttamchandani@gmail.com" ]
diveshuttamchandani@gmail.com
97614d71dc9af6b2642538c5ee3bfabb934fb43a
1d450f4655ae63240e88b474b8a17c1e711e1a81
/AttributesAndMethods/PhotoAlbum.py
cdb6a7aac3cf316ad3f7e49eb3a5c0db8e14f599
[]
no_license
RuzhaK/PythonOOP
f2cb396390349e2aac605c90fd7a18039653cf5e
68cbf321b5947b376459d7397aed36554347d256
refs/heads/master
2023-05-30T06:17:42.618984
2021-06-17T08:04:46
2021-06-17T08:04:46
371,284,629
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
import math class PhotoAlbum: def __init__(self,pages): self.pages=pages self.photos=[[] for _ in range(pages)] @classmethod def from_photos_count(cls,photos_count: int): return cls(math.ceil(photos_count//4)) def add_photo(self,label:str) : for idx,page in enumerate(sel...
[ "rkaraatanasova@gmail.com" ]
rkaraatanasova@gmail.com
d0669b6c8d5a893356f14fdc4b2387bd3fde30f5
8fe0eeb2b8e02036d4a76e1d27660c56d464e7e9
/pageheadstate/tests/autopilot/pageheadstate/tests/test_main.py
7be4be74ff470e1571d1150a5eba348945bfa118
[]
no_license
UbuntuChina/pageheadstate
cd9d1b394fa5e0c67bba65831dadbf0318286d01
4e4b19fe48d7ec6c01f8d1f1a0820a6beaaafe7e
refs/heads/master
2021-01-19T05:24:01.846412
2016-03-10T03:36:51
2016-03-10T03:36:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- from autopilot.matchers import Eventually from testtools.matchers import Equals from pageheadstate import tests class MainViewTestCase(tests.BaseTestCase): """Tests for the mainview""" def setUp(self): super(MainViewTestCase,...
[ "liu_xiao_guo@yahoo.com" ]
liu_xiao_guo@yahoo.com
cd47107a470d0f0ad4d81f1d4581d37d31a7fca1
6f1e1c378997bf76942ce6e203e720035169ce27
/172-factorial-trailing-zeroes.py
0b205d8225023846b59515176940016cb86f1bdd
[ "MIT" ]
permissive
yuenliou/leetcode
a489b0986b70b55f29d06c2fd7545294ba6e7ee5
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
refs/heads/main
2021-06-16T07:47:39.103445
2021-05-11T09:16:15
2021-05-11T09:16:15
306,536,421
0
0
null
null
null
null
UTF-8
Python
false
false
949
py
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- class Solution: def trailingZeroes(self, n: int) -> int: """ 思路:问题转化成n分解成5的因子的个数,5 """ res = 0 while n: n = n // 5 res += n return res def main(): param = 125 solution = Solution() ...
[ "liuyuan@aplum.com.cn" ]
liuyuan@aplum.com.cn
905d4105c3c7555786f925f92f001d47bff09490
2c00267fb582605ad6cc8071d10be1dbb623d012
/venv/bin/pip3
10b59eff03d4478ae3a439da206e3fa949ce814b
[]
no_license
Abdulrahimch/coding_excersize
14a741f070dbbbba295eea560407a8eface206e7
f44f98f2943fe83ba791ead3110d4cb81cec7bac
refs/heads/master
2023-02-24T23:01:52.282536
2021-01-21T13:24:57
2021-01-21T13:24:57
331,635,229
0
0
null
null
null
null
UTF-8
Python
false
false
265
#!/home/cisco/PycharmProjects/coding_excercise/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "abooodch101@gmail.com" ]
abooodch101@gmail.com
4d7bf52de62c21700733600a5eaab247427ce4cb
50dab5e3b8f74bc547977a60c152f3df65eed884
/orders/order_database_manager.py
4027d70599213533c891d4938d00f764989f799f
[]
no_license
Lennoard/online-shop-sample
a98e963b3dc237938e4c549dee39c35827620cf9
0a5d9011af52e61e74dd60541864a8585c17cecc
refs/heads/main
2023-02-23T18:32:50.514439
2021-02-02T17:33:11
2021-02-02T17:33:11
330,277,673
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
# TODO: Proxima sprint -> persistência de dados def get_orders(): pass def save_order(order): pass def get_order(order_id): pass
[ "lennoardrai@gmail.com" ]
lennoardrai@gmail.com
1b97b61c7e3864f18af8e2c2d9d207665c4d248e
a5698f82064aade6af0f1da21f504a9ef8c9ac6e
/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_or_delete_publish_record_for_api_v2_request.py
5a3c1e38d8a74367e155f2a115e5e3ddd5d647de
[ "Apache-2.0" ]
permissive
qizhidong/huaweicloud-sdk-python-v3
82a2046fbb7d62810984399abb2ca72b3b47fac6
6cdcf1da8b098427e58fc3335a387c14df7776d0
refs/heads/master
2023-04-06T02:58:15.175373
2021-03-30T10:47:29
2021-03-30T10:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,591
py
# coding: utf-8 import pprint import re import six class CreateOrDeletePublishRecordForApiV2Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
fb903a15da85f99727a837f813796531dd55872c
a40084dcc613a27be966940d00d222ad826e6149
/netbox/secrets/forms.py
2e08b0b22408efa6ce147801f5cee5f7c3c92d8f
[ "Apache-2.0" ]
permissive
inovex/netbox
2e8340450e0fb3ac1712f21706e782fdc9b5a23a
ba1a4f06fff7c0f41dcfe4cb2ddf2c797f3f2bf8
refs/heads/develop
2021-01-19T12:52:53.772103
2017-04-10T14:55:05
2017-04-10T14:55:05
88,051,715
2
0
null
2017-04-12T12:55:28
2017-04-12T12:55:28
null
UTF-8
Python
false
false
4,641
py
from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA from django import forms from django.db.models import Count from dcim.models import Device from utilities.forms import BootstrapMixin, BulkEditForm, BulkImportForm, CSVDataField, FilterChoiceField, SlugField from .models import Secret, SecretRole,...
[ "jstretch@digitalocean.com" ]
jstretch@digitalocean.com
0f4c3c70e34efca6db73472ecde0d4d85e118935
05c86f7127df61993534f56c5c94c266fb0e4599
/app/modules/core/activity.py
974c101ddd7f4229e8f7826eeb1940aa765cefb9
[ "BSD-3-Clause" ]
permissive
arxcdr/silverback
88c0f28f9e0a18ff0accd50eba00ae7c5bba048d
212139cbc1a648d1f877d60f2d7c4d750eefc3da
refs/heads/master
2020-08-02T10:15:46.136453
2019-10-01T08:23:20
2019-10-01T08:23:20
211,314,562
0
0
BSD-3-Clause
2019-09-27T12:29:22
2019-09-27T12:29:22
null
UTF-8
Python
false
false
1,385
py
""" Activity Module """ # Local Library from app.modules.entity.activity_entity import ActivityEntity class Activity(): __activity_entity = None def __init__(self): self.__activity_entity = ActivityEntity() def get_one_by_id(self, id): activity = self.__activity_entity.get_one_by_id(id...
[ "hello@clivern.com" ]
hello@clivern.com
6a73dc8eada0935c7430204163a333e09949e12b
7d8cceea2d82e5069dd1f5f99ae487b07e977a2a
/user_app/app.py
0d7887b98c2c9d33288257fa58562b7be960dec6
[]
no_license
thingsroot/user_apps_example
af8e34d6741e4def0327adcc3963880ee5425dfc
708bdea217f274f27000e50c753bf14d3839c674
refs/heads/master
2020-03-29T08:51:11.565486
2019-10-18T02:31:55
2019-10-18T02:31:55
149,729,562
0
0
null
null
null
null
UTF-8
Python
false
false
1,845
py
from __future__ import unicode_literals import sys import logging from utils import _dict from flask import Flask, request, json console_out = logging.StreamHandler(sys.stdout) console_out.setLevel(logging.DEBUG) console_err = logging.StreamHandler(sys.stderr) console_err.setLevel(logging.ERROR) logging_handlers = [...
[ "dirk@kooiot.com" ]
dirk@kooiot.com
8685f43fdfd0d32533c816c4099bba5215451496
ddb09330eb51f823c1dc66617b363affd4e23290
/python/20190311/my_djangos/django_vote_app/polls/admin.py
cc68ae6cbe05c141a533620e9905e65db04effa6
[ "MIT" ]
permissive
kinghaoYPGE/career
9df8a1d5303f2981ba0116fa60284945cec03bfd
50260f6ccf874c7c5f7af23f02ed823645ea7898
refs/heads/master
2020-04-04T11:19:44.480173
2019-04-17T14:31:37
2019-04-17T14:31:37
155,886,969
3
4
MIT
2019-03-21T09:12:01
2018-11-02T15:39:31
CSS
UTF-8
Python
false
false
657
py
from django.contrib import admin from .models import Question, Choice # admin.site.register(Question) class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): # fields = ['pub_date', 'question_text'] fieldsets = [ ('Text information', {'fields...
[ "kinghao1020437855@163.com" ]
kinghao1020437855@163.com
2651e62cf676d1bf6e35ba078b4c56b6c2430894
0738d9f85b98a7e30d7f33b4fe94ceb58f44b123
/Basic Programming/Dimik oj/Python3/প্রোগ্রামিং সমস্যা 9 - [৫২ সমস্যা বই] পূর্ণবর্গ সংখ্যা.py
a957bbf9cb3e96171bcd22d623155b4af9e66c0e
[]
no_license
arifkhan1990/Competitive-Programming
e51606b6bafc0671e8799df4297529b27eb6488e
9b8ca6e8f2ec4c74ea314e8d80657ac97489a315
refs/heads/master
2022-10-28T19:31:16.818123
2022-10-14T21:32:51
2022-10-14T21:32:51
199,027,360
5
4
null
null
null
null
UTF-8
Python
false
false
698
py
# Name : Arif Khan # Judge: Dimik Oj # University: Primeasia University # problem: প্রোগ্রামিং সমস্যা 9 - [৫২ সমস্যা বই] পূর্ণবর্গ সংখ্যা # Difficulty: Easy # Time Complexity: 0.3006 সেকেন্ড # ...
[ "arifkhanshubro@gmail.com" ]
arifkhanshubro@gmail.com
57fa1444aeaa376cee1543ae85d059aea735cf3c
de428c011b56db862f05ec0ceab17b85f83f94b1
/print_items.py
591eb3f248bbb0a693adc66d26a144f0e3515377
[]
no_license
risooonho/python-2d-game
c6d1fceaf09c72a6f7573230a4a899bf79164b7f
24b02646ed56f9017069b243b774e0ee46951aea
refs/heads/master
2021-05-17T06:02:13.538699
2020-02-15T23:59:54
2020-02-15T23:59:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
#!/usr/bin/env python3 from typing import List, Tuple, Optional from pythongame.core.common import ItemType from pythongame.core.item_data import randomized_item_id, create_item_description, get_items_with_category, \ get_optional_item_level, ItemData, build_item_name from pythongame.core.item_inventory import Ite...
[ "jonte.murray@gmail.com" ]
jonte.murray@gmail.com
dbf6137b296d0f47e106a88d063c56e87e60f4e6
47bd686ab04d8f6daba2097875dfefdba967d598
/18_programmers/programmers_33.py
7b61886f5857e1b8178d9f2b528236fb1edb4be4
[]
no_license
EmjayAhn/DailyAlgorithm
9633638c7cb7064baf26126cbabafd658fec3ca8
acda1917fa1a290fe740e1bccb237d83b00d1ea4
refs/heads/master
2023-02-16T17:04:35.245512
2023-02-08T16:29:51
2023-02-08T16:29:51
165,942,743
3
0
null
null
null
null
UTF-8
Python
false
false
369
py
# https://school.programmers.co.kr/learn/courses/30/lessons/120891 # programmers, 코딩테스트 입문 def solution(order): answer = 0 order = str(order) for s in order: if s in ['3', '6', '9']: answer += 1 return answer if __name__=='__main__': test_set = [3, 29423] for test in test...
[ "emjay.data@gmail.com" ]
emjay.data@gmail.com
f8390ef457f6dec8c26c8b748c1bad7d770e2263
4099874b184134618724eb99a1a907dfd86d4ea8
/nova/tests/virt/hyperv/test_rdpconsoleutils.py
2818e5280571d5cc76d696fa72e3a78ea96e93f3
[ "Apache-2.0" ]
permissive
shahar-stratoscale/nova
809e710e2744ec31ffd351ada692356089ddb4c1
5a4581a2e219669c7841a59acf2f42686e319840
refs/heads/master
2021-01-16T21:26:37.503025
2014-09-18T00:58:59
2015-04-14T08:27:08
33,251,708
0
1
Apache-2.0
2023-08-15T09:20:06
2015-04-01T14:19:07
Python
UTF-8
Python
false
false
1,102
py
# Copyright 2013 Cloudbase Solutions Srl # # 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 ...
[ "apilotti@cloudbasesolutions.com" ]
apilotti@cloudbasesolutions.com
a4ffc456d658a6d303cda4db7da10b9f2892250f
5943b469fa8683f5eb8be07d595c56636c8a58e8
/18.4_sum.py
de09ad738ff06f889f65a1c538e3051a8d592eac
[]
no_license
tonyxuxuxu/Leetcode-Training
cd80f7af842639209ba989363b3ef04ea42e941c
3660b4f96b74df91e0e635cd7d427bbf70819edd
refs/heads/master
2020-03-21T09:35:46.711196
2018-09-11T09:47:32
2018-09-11T09:47:32
138,407,940
0
0
null
null
null
null
UTF-8
Python
false
false
1,528
py
""" Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: The solution set must not contain duplicate quadruplets. Example: Given array nums = [1, 0, -1, 0, -2...
[ "tonyxu0124@yahoo.com" ]
tonyxu0124@yahoo.com
a94a10d7108ceedefc9f83c0af769a8994c92d5b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02574/s302773464.py
3e4c4e4b564ca32399037c5644263ea3bd81aa75
[]
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
589
py
from sys import stdin readline = stdin.buffer.readline def r_map(): return map(int, readline().rstrip().split()) def r_list(): return list(r_map()) def main(): N = int(readline().rstrip()) A = r_list() M = max(A) d = [0] * (M + 1) g = True for a in A: d[a] += 1 for i in range(2, M +...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f37e0513a70b55cf8c50487180b2df271455cd71
805a795ea81ca8b5cee1dec638585011da3aa12f
/MAIN/2.79/python/lib/test/test_winsound.py
4a8ab7de582c10ed00e95da03773279f058418e2
[ "Apache-2.0" ]
permissive
josipamrsa/Interactive3DAnimation
5b3837382eb0cc2ebdee9ee69adcee632054c00a
a4b7be78514b38fb096ced5601f25486d2a1d3a4
refs/heads/master
2022-10-12T05:48:20.572061
2019-09-26T09:50:49
2019-09-26T09:50:49
210,919,746
0
1
Apache-2.0
2022-10-11T01:53:36
2019-09-25T19:03:51
Python
UTF-8
Python
false
false
3,575
py
# Ridiculously simple test of the winsound module for Windows. import functools import os import subprocess import time import unittest from test import support support.requires('audio') winsound = support.import_module('winsound') # Unless we actually have an ear in the room, we have no idea whether a sound # act...
[ "jmrsa21@gmail.com" ]
jmrsa21@gmail.com
5137cc482dc427fbd44ee31618fc67d9c462a47f
f3040bc6962eb5c7890662a23e18d96bd5fd3942
/competitive coding/singlyLinkedList.py
f55d1cdaf0af63bfc5b40b03c1fb34695a43cbbc
[]
no_license
h0axyboi/practice-scripts
08f5e036d3d58ac888ae830b8763c3f86601643a
5d146102481036dfb43f05c7ba23bed9d698c2f0
refs/heads/master
2023-04-14T18:23:25.024604
2021-05-01T14:51:56
2021-05-01T14:51:56
292,655,129
0
0
null
null
null
null
UTF-8
Python
false
false
2,935
py
class Node: def __init__(self,data): self.data=data self.next=None class LinkedList: def __init__(self): self.head=None def insert_end(self,nextNode): if self.head is None: self.head=nextNode else: currentNode=self.head while True...
[ "sabari15krishna@gmail.com" ]
sabari15krishna@gmail.com
de84a50ae2cef23825bbaf07ade454d9cdd84229
88332700e893553ed52247b83f7ae8e542e67239
/test/test_rest_version_nagiosplugin.py
8a14699c4460032aab7ec822726cbacb696a46e6
[]
no_license
zhuohuwu0603/pylib
3857a8ec3954d09e58c21c14d683bc95cb7f9d23
02b0a343b055dfd6bed4d64c40aa77ed8394c1b2
refs/heads/master
2020-08-12T02:55:35.956301
2019-10-09T23:08:58
2019-10-09T23:08:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,761
py
# vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2014-09-15 20:49:22 +0100 (Mon, 15 Sep 2014) # # https://github.com/harisekhon/pylib # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback # to help ...
[ "harisekhon@gmail.com" ]
harisekhon@gmail.com
711ce63dab41b1a4e124e0abcd02bfc7c338c853
64a000d42240493e054c39528efca48aca19998a
/distributed/http/utils.py
19aa834c214ed13efd17ab118f8ba957e772c95e
[ "BSD-3-Clause" ]
permissive
dask/distributed
1ee853c7d1273a421601247954d242d21330bd3d
ec40daa12dc690e4e33dbe12dc40488633e0f67b
refs/heads/main
2023-08-30T12:17:49.467926
2023-08-29T16:51:52
2023-08-29T16:51:52
42,408,083
1,534
982
BSD-3-Clause
2023-09-14T17:21:47
2015-09-13T18:42:29
Python
UTF-8
Python
false
false
1,184
py
from __future__ import annotations import importlib import os import toolz from tornado import web from distributed.utils import has_keyword dirname = os.path.dirname(__file__) class RequestHandler(web.RequestHandler): def initialize(self, dask_server=None, extra=None): self.server = dask_server ...
[ "noreply@github.com" ]
dask.noreply@github.com
8fdc6b703c2650cd743bed91ced85fc4c2c36ce1
d482b593d7e773b35551e0d6905ed652c8fef272
/utg/migrations/m_0005_remove_time_participle_property.py
d9fe179da3420444d42a02815317b0cb2d5d72b1
[ "BSD-3-Clause" ]
permissive
gridl/utg
f69cc027f4e4ea21fec91a25481dc51dd759e597
b6a25cc99fcf629653369e216c993336a5d2167f
refs/heads/master
2021-05-17T00:42:38.315311
2019-10-12T17:26:20
2019-10-12T17:26:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
# coding: utf-8 # receive and return only serialized data def migrate(word_data): if word_data['type'] != 4: return word_data if '5' in word_data['properties']: del word_data['properties']['5'] return word_data
[ "a.eletsky@gmail.com" ]
a.eletsky@gmail.com
96c34dae1034f98bed48e377f57f32aec2c65626
e5b8a5d93989dd53933c5cd417afa8b2a39ad307
/ultracart/models/coupon_tiered_percent_off_items.py
44eedd219430abf58bb292e0cc7f86e2f2197c65
[ "Apache-2.0" ]
permissive
gstingy/uc_python_api
f3586bfce9c962af2e8c1bc266ff25e0f1971278
9a0bd3f6e63f616586681518e44fe37c6bae2bba
refs/heads/master
2020-03-28T11:13:22.537641
2018-09-10T17:07:59
2018-09-10T17:07:59
148,190,066
0
0
null
null
null
null
UTF-8
Python
false
false
4,767
py
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class CouponTieredPercentOffIte...
[ "perry@ultracart.com" ]
perry@ultracart.com
fcfef0b4c0aba2697180530ca3fe6804f5efc81a
2fac796fa58c67fb5a4a95a6e7f28cbef169318b
/python/the-smallest-difference.py
f5a01b921fb5debea185194107893292af3f44fa
[]
no_license
jwyx3/practices
f3fe087432e79c8e34f3af3a78dd10278b66dd38
6fec95b9b4d735727160905e754a698513bfb7d8
refs/heads/master
2021-03-12T20:41:59.816448
2019-04-14T06:47:30
2019-04-14T06:47:30
18,814,777
2
0
null
null
null
null
UTF-8
Python
false
false
439
py
class Solution: # @param A, B: Two lists of integer # @return: An integer def smallestDifference(self, A, B): if not A or not B: return 0 A.sort() B.sort() ans, i, j = sys.maxint, 0, 0 while i < len(A) and j < len(B): ans = min(ans, abs(A[i] -...
[ "jwyx88003@gmail.com" ]
jwyx88003@gmail.com
ce52479aabd6e20b52df5c7fbdf37336890ce438
22bf910b64283b3c15cc4d80542e83fa89e9f09d
/monero_glue/messages/MoneroLiveRefreshStartRequest.py
0eb390c55bdb9459cf9f21e2c41030849215292a
[ "MIT" ]
permissive
ph4r05/monero-agent
24ed1aa17d6616b2ae6bcdb7b9997f982f8b7b5d
0bac0e6f33142b2bb885565bfd1ef8ac04559280
refs/heads/master
2022-10-18T06:30:43.550133
2021-07-01T16:27:56
2021-07-01T16:27:56
126,215,119
24
5
MIT
2022-09-23T22:53:44
2018-03-21T17:18:21
Python
UTF-8
Python
false
false
749
py
# Automatically generated by pb2py # fmt: off from .. import protobuf as p if __debug__: try: from typing import Dict, List # noqa: F401 from typing_extensions import Literal # noqa: F401 except ImportError: pass class MoneroLiveRefreshStartRequest(p.MessageType): MESSAGE_WIRE_T...
[ "dusan.klinec@gmail.com" ]
dusan.klinec@gmail.com
5a3ee5ed640ba710ffe38a5746b3e570c452e4ca
01733042e84a768b77f64ec24118d0242b2f13b8
/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dceoutsidelinks_448ca86781afc72591d4b730ba434c0d.py
12fd2081a098327c0db3dfea316a4f8450230db0
[ "MIT" ]
permissive
slieberth/ixnetwork_restpy
e95673905854bc57e56177911cb3853c7e4c5e26
23eeb24b21568a23d3f31bbd72814ff55eb1af44
refs/heads/master
2023-01-04T06:57:17.513612
2020-10-16T22:30:55
2020-10-16T22:30:55
311,959,027
0
0
NOASSERTION
2020-11-11T12:15:34
2020-11-11T12:06:00
null
UTF-8
Python
false
false
7,444
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
[ "andy.balogh@keysight.com" ]
andy.balogh@keysight.com
cf8e643565af9d06ff36be78da64546ab32f5b7a
37c3b81ad127c9e3cc26fa9168fda82460ca9bda
/SW_expert/sw_5251_최소이동거리.py
6aaf7bd444ca9f72c51b010877473be145ecfb42
[]
no_license
potomatoo/TIL
5d85b69fdaed68966db7cfe2a565b7c64ed3e816
395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c
refs/heads/master
2021-07-08T16:19:40.410097
2021-04-19T02:33:40
2021-04-19T02:33:40
238,872,774
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
import sys sys.stdin = open('./input/input_5251.txt', 'r') TC = int(input()) for tc in range(TC): V, E = map(int,input().split()) G = {i : [] for i in range(V+1)} for _ in range(E): s,e,c = map(int,input().split()) G[s].append([e,c]) INF = float('inf') dist = [INF] * (V+1) sele...
[ "duseh73@gmail.com" ]
duseh73@gmail.com
a85397f986fc41dbd4131d63801657f033fe2a51
71c7683331a9037fda7254b3a7b1ffddd6a4c4c8
/Phys/BsJPsiKst/ganga/gangaSubmit_2012_down.py
6e78be884e4f3cbab5fdf4716218c292a3b22fb3
[]
no_license
pseyfert-cern-gitlab-backup/Urania
edc58ba4271089e55900f8bb4a5909e9e9c12d35
1b1c353ed5f1b45b3605990f60f49881b9785efd
refs/heads/master
2021-05-18T13:33:22.732970
2017-12-15T14:42:04
2017-12-15T14:42:04
251,259,622
0
1
null
null
null
null
UTF-8
Python
false
false
1,094
py
print "Create job" job=Job(application=DaVinci(version='v33r0p1') , name ='downDimuon' ) print "Specify option files" job.application.optsfile = ['/lhcb/users/oleroy/public/walaa/code/20121010/BuBdBs_NTUPLE_maker.py'] job.outputsandbox = ['DTT.root'] # Use #job.outputdata = ['DTT.root'] # if no enough space on lxplu...
[ "liblhcb@cern.ch" ]
liblhcb@cern.ch
3402e838681f12c4ee7a8e806f0293928f417335
696c1a00fbf09da67c37de2406c5394a5edcb166
/scripts/subset_data/create_subsetData.py
de7d9738bd36d77f91503ee690bba0efc0348945
[]
no_license
mengyx-work/xgboost_hyperopt
7f52c5aa3fff81d029e3879630b373d79c4155bb
bbd80c489cb308309d45f1de1cc2676b13e29b6b
refs/heads/master
2021-01-15T15:41:38.622028
2017-05-14T21:05:46
2017-05-14T21:05:46
55,736,994
6
1
null
null
null
null
UTF-8
Python
false
false
2,327
py
import os, sys import pandas as pd import numpy as np from os.path import join, isfile fea_data_path = '/home/ymm/kaggle/bosch/full_data_FE_cross_fit_xgb_models/final_xgb_models/combined_xgb_models_038' data_path = '/home/ymm/kaggle/bosch_data/bosch_processed_data' #train_file_name = 'bosch_combined_train_data.csv' te...
[ "ymeng.ucla@gmail.com" ]
ymeng.ucla@gmail.com
774414744ded843d5dabcd05e4ce975928733f74
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/classification/FixRes/main_resnet50_scratch.py
30157dca585775f8305a1d1e1426f2c48c4889f2
[ "CC-BY-NC-4.0", "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
4,394
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
320f0ec7ae7cb35dfc7c5ecb56278629595bc6d5
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_203/535.py
129e697e39731d6156e73e870f727978442875a8
[]
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
2,116
py
import os from copy import deepcopy def reader(file): f_out = file[:-2] + "out" if os.path.isfile(f_out): with open(f_out, 'w') as f: # clear the output file f.write('') with open(file, 'r') as f: T = int(f.readline()) for t in range(T): r, c = ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
0215b5462d595ce26493b4dfdd7b2aad12a5e63f
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/sharepoint/tenant/administration/theme_properties.py
70c20753be3eb155555547f3ac2b0315cc21460c
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
218
py
from office365.sharepoint.base_entity import BaseEntity class ThemeProperties(BaseEntity): @property def entity_type_name(self): return "Microsoft.Online.SharePoint.TenantManagement.ThemeProperties"
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
9b5d4b865b75ab27c41e1d4ef340162cf0344e9e
159aed4755e47623d0aa7b652e178296be5c9604
/data/scripts/templates/object/draft_schematic/space/weapon/shared_wpn_light_blaster_green.py
1fc08a9e541404dc65e34379da7575a46a60bdf7
[ "MIT" ]
permissive
anhstudios/swganh
fb67d42776864b1371e95f769f6864d0784061a3
41c519f6cdef5a1c68b369e760781652ece7fec9
refs/heads/develop
2020-12-24T16:15:31.813207
2016-03-08T03:54:32
2016-03-08T03:54:32
1,380,891
33
44
null
2016-03-08T03:54:32
2011-02-18T02:32:45
Python
UTF-8
Python
false
false
465
py
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/space/weapon/shared_wpn_light_blaster_green.iff" result.at...
[ "rwl3564@rit.edu" ]
rwl3564@rit.edu
d4f5d054080a30e70568442bdbcae109bba99782
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/HDGiiCmSgJeeu3388_9.py
04989698fe4da04199cd4ef98af5c421cca53cd4
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
""" A fuse melts when a current in an electrical device exceeds the fuse's rating, breaking the circuit and preventing the heat from building up too much (which can cause a fire). The ideal fuse to choose is **higher** than the device's current output, yet **as close as possible** to it as well. Given a list of _fu...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c9676837eb6a69c69a606bee153b8348c3fb095e
9472c7d1608e318e46214f231773fbb3f33de0f1
/kats/models/reconciliation/__init__.py
74d6fc7a80ed76d3942fcf2dc71cac0234491686
[ "MIT" ]
permissive
facebookresearch/Kats
16eee984bc1c482bd709cb5d62c226d4ad85f216
00ab9a3db27218b4817eae2e05dc602e437f634f
refs/heads/main
2023-08-30T23:33:12.654847
2023-08-25T16:02:04
2023-08-25T16:02:04
342,388,745
4,514
517
MIT
2023-09-14T15:28:43
2021-02-25T21:51:06
Python
UTF-8
Python
false
false
227
py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from . import base_models, thm # noqa # noqa
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
3d8d30c470b0030e773b0d49c6fb531e5397baa3
aca4f00c884e1d0e6b2978512e4e08e52eebd6e9
/2021/atcoder.jp/abc/191/proa.py
48e78f20bdb0006388ba2435b15d45f960f637d7
[]
no_license
jki14/competitive-programming
2d28f1ac8c7de62e5e82105ae1eac2b62434e2a4
ba80bee7827521520eb16a2d151fc0c3ca1f7454
refs/heads/master
2023-08-07T19:07:22.894480
2023-07-30T12:18:36
2023-07-30T12:18:36
166,743,930
2
0
null
2021-09-04T09:25:40
2019-01-21T03:40:47
C++
UTF-8
Python
false
false
405
py
def solution(v, t, s, d): p, q = t * v, s * v if d >= p and d <= q: print('No') else: print('Yes') def main(): while True: try: v, t, s, d = [int(i) for i in raw_input().strip().split()] solution(v, t, s, d) except EOFError: break ...
[ "jki14wz@gmail.com" ]
jki14wz@gmail.com
642909a9851975cb54efa38307347fa31981e23b
8d9318a33afc2c3b5ca8ac99fce0d8544478c94a
/Books/Casandra DB/opscenter-5.1.0/lib/py-unpure/twisted/plugins/twisted_web.py
c8d9f92c59701616cb6bfd50c7dd169a7101c2ea
[]
no_license
tushar239/git-large-repo
e30aa7b1894454bf00546312a3fb595f6dad0ed6
9ee51112596e5fc3a7ab2ea97a86ec6adc677162
refs/heads/master
2021-01-12T13:48:43.280111
2016-11-01T22:14:51
2016-11-01T22:14:51
69,609,373
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:a9b03d5b05d9392edc279c254a182a50f25ba22f9bbc4f17429dbdf5207ae99f size 322
[ "tushar239@gmail.com" ]
tushar239@gmail.com
97cd2e76d2c24bbc051a61d9cef4ac3fdb3bd03a
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/pygments/lexers/boa.py
ce5e09be026e23b5b5a6b8c669421eb7bef82fee
[ "MIT" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
3,963
py
""" pygments.lexers.boa ~~~~~~~~~~~~~~~~~~~ Lexers for the Boa language. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, words from pygments.token import String, Comment, Keyword, Name...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
039ca11352d6dc3aebe761266a2772f69d0e975c
08de348b667e45225a09c76e32fc61581a657ee1
/prescriptions/backend/migrations/0005_patient_allergies.py
b035180e5f0cc763244d6662a06647d881c574d4
[]
no_license
JoeTanto2/SimpleOrder1
d676d34028642ccd38036d01194095029e19ff53
9a813c11292af755b560235cda0779d385a2c768
refs/heads/main
2023-07-24T02:24:38.309233
2021-09-04T16:51:50
2021-09-04T16:51:50
403,098,899
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# Generated by Django 3.2.6 on 2021-08-29 19:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('backend', '0004_auto_20210829_1527'), ] operations = [ migrations.AddField( model_name='patient', name='allergies', ...
[ "77851879+JoeTanto2@users.noreply.github.com" ]
77851879+JoeTanto2@users.noreply.github.com
ec6b00e84829935e4254749fdb2ea9a5e9faf241
e42795111492d7a2e01e04a476935e40dcde0129
/tensorflow_probability/python/bijectors/affine_linear_operator_test.py
e7c616f8dec203d4955f8bcb26e40c0f225d4a41
[ "Apache-2.0" ]
permissive
khaychuk/probability
e804a796394fc2d558ff0e69f93c26b0f2008f10
862c005e23c2b2a39c9e20213ca9c290588e14b6
refs/heads/master
2020-05-19T23:21:08.093243
2018-10-02T20:34:23
2018-10-02T20:34:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,859
py
# Copyright 2018 The TensorFlow Probability 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 law o...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
a9aa576e842ea6270e72021759749caaeed0c17d
bde6ed092b7b29703737e11c5a5ff90934af3d74
/AtCoder/ABC/151/a.py
c1233a36b04f00b264f640bf84308fe1b5510d20
[]
no_license
takecian/ProgrammingStudyLog
2ab7ea601e0996b3fa502b81ec141bc3772442b6
94485d131c0cc9842f1f4799da2d861dbf09b12a
refs/heads/master
2023-04-28T16:56:18.943574
2023-04-18T06:34:58
2023-04-18T06:34:58
128,525,713
4
0
null
2022-12-09T06:15:19
2018-04-07T12:21:29
Python
UTF-8
Python
false
false
304
py
import sys sys.setrecursionlimit(12345678) import itertools from collections import Counter from collections import defaultdict from collections import deque import bisect from heapq import heappush, heappop def main(): c = input() print(chr(ord(c) + 1)) if __name__ == '__main__': main()
[ "takecian@gmail.com" ]
takecian@gmail.com
165afb56267dc7cd06ff76ef3845fd9cfcb28428
036a41c913b3a4e7ae265e22a672dd89302d3200
/0201-0300/0230/0230_Python_1.py
7c016e2186160e9a3cee8d988c24d8091cbfa39d
[]
no_license
ChangxingJiang/LeetCode
e76f96ebda68d7ade53575354479cfc33ad4f627
a2209206cdd7229dd33e416f611e71a984a8dd9e
refs/heads/master
2023-04-13T15:23:35.174390
2021-04-24T05:54:14
2021-04-24T05:54:14
272,088,506
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
from toolkit import TreeNode from toolkit import build_TreeNode class Solution: def kthSmallest(self, root: TreeNode, k: int) -> int: stack = [root] while stack: if node := stack[-1]: stack.append(node.left) else: stack.pop() ...
[ "1278729001@qq.com" ]
1278729001@qq.com
d5cfca24696eefcf3836be8d03ec5fbf1732f433
7932946fbd09ea709cdb806082de1d1f08500710
/rec_demo/banking/tests/factories.py
36fced7324d5b3bee46dfee6378c61de8c0848b7
[]
no_license
luiscberrocal/rec_demo
f5768756df2c25e3e97df74f5bb034c333fd1b71
73aadd361194898ea5d45eedccce8a758d5697ea
refs/heads/master
2023-03-03T14:41:26.058510
2021-02-06T21:24:49
2021-02-06T21:24:49
326,741,305
0
0
null
null
null
null
UTF-8
Python
false
false
2,908
py
from datetime import timedelta from decimal import Decimal from django.utils import timezone from ..forms import AccountForm from ..models import TransactionType, Account from ..utils import get_or_create_transaction_types, divide_in_payments_with_dates from ...core.utils import clean_dict class AccountFactory(obje...
[ "luis.berrocal.1942@gmail.com" ]
luis.berrocal.1942@gmail.com
de39d20267e19716619876c13ae6a9e8d1bc6344
16516732031deb7f7e074be9fe757897557eee2d
/AtCoder/CODE FESTIVAL 2016 qual B/B - Qualification simulator.py
26331e7b1bbd9a4645914e27aa3e8cd2b8485e98
[]
no_license
cale-i/atcoder
90a04d3228864201cf63c8f8fae62100a19aefa5
c21232d012191ede866ee4b9b14ba97eaab47ea9
refs/heads/master
2021-06-24T13:10:37.006328
2021-03-31T11:41:59
2021-03-31T11:41:59
196,288,266
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
# 2019/12/09 n,a,b=map(int,input().split()) s=input() cnt=0 cnt_b=0 for i in range(n): if cnt>=(a+b): print('No') continue else: if s[i]=='c' or cnt>a+b: print('No') continue else: if s[i]=='b': cnt_b+=1 ...
[ "calei078029@gmail.com" ]
calei078029@gmail.com
90958ba5bc5c0548da5e668bd426f69d135c4361
de64b143a346585f51590bd674e8d13bbc672386
/algorithm/2020/0306/youngjun.py
0ba0cecdd10fdc6aee2e95bc5464cd303686f525
[]
no_license
ai-kmu/etc
304ec20f59e4026025abdcbcae21863c80630dcb
9c29941e19b7dd2a2037b110dd6e16690e9a0cc2
refs/heads/master
2023-08-21T16:30:31.149956
2023-08-21T16:26:19
2023-08-21T16:26:19
199,843,899
3
24
null
2023-05-31T09:56:59
2019-07-31T11:36:16
Jupyter Notebook
UTF-8
Python
false
false
1,646
py
#괄호 변환(프로그래머스) #10:50~11:10 #11:10~12:36 input="()))((()" def check_balancing(str): left_parenthesis_count=0 right_parenthesis_count=0 u="" v="" for i in range(0, len(str)): if str[i]=="(": left_parenthesis_count+=1 elif str[i]==")": right...
[ "noreply@github.com" ]
ai-kmu.noreply@github.com
71b42802b2f815600531fa657b90704a7262b890
75dcb56e318688499bdab789262839e7f58bd4f6
/Cracking Coding Interviews - Mastering Algorithms/exercise/Section 2 Arrays and Strings/unique-characters.py
2108807e3c9ce9359b89a28b6cb4033f054aef49
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
489
py
# Implement an algorithm to determine if a string has all unique characters. # "abc" -> True # "" -> True # "aabc" -> False # Brute Force - O(n^2) # Sorting - O(nlogn + n) -> O(nlogn) # Hashset - O(n) def unique_characters(word): visited_chars = set() for i in range(len(word)): letter = word[i] if letter in ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
4f564119a1c7e4d57181ae5abd65b6a366ffb093
07ba82fc48603c75aa7ad20f1f474df96c712765
/experiments/train_wgan_cnn.py
f3a81c9d3f8fda730c8e9b79faee5e2dc797fa78
[]
no_license
bstriner/text-aae
8b7b898142c18a2a112388d0c511c5975e493251
4591384d558ad0a480d9ed3ccd1df0de07e87a5c
refs/heads/master
2020-03-26T13:46:42.492094
2018-09-22T02:20:21
2018-09-22T02:20:21
144,956,280
0
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
import tensorflow as tf import text_aae.trainer from text_aae.gan.losses import wgan_losses from text_aae.model_gan import make_model_gan_fn from text_aae.networks.cnn.decoder import make_decoder_cnn_fn from text_aae.networks.cnn.discriminator_gan import make_discriminator_gan_cnn_fn from text_aae.text_config import T...
[ "bstriner@gmail.com" ]
bstriner@gmail.com
1ce8b271797d503080083a77a5ce6b1cb9a6a306
670c844e5cfa1cdf11212cc53972ecd8f7a25949
/python/test/test_MinProductSumOfArray.py
07babee6a5fe2262c848910a9c01117dba43a040
[]
no_license
IamConstantine/LeetCodeFiddle
74d580a0741e40397f1283beadd023f9b9323abd
5ec509505a394d53517fb005bbeb36745f06596a
refs/heads/master
2022-05-31T05:25:14.273605
2022-05-23T02:46:47
2022-05-23T02:46:47
100,910,327
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
from unittest import TestCase from MinProductSumOfArray import minProductSum class Test(TestCase): def test_min_product_sum(self): self.assertEqual(40, minProductSum([5, 3, 4, 2], [4, 2, 2, 5])) self.assertEqual(65, minProductSum([2, 1, 4, 5, 7], [3, 2, 4, 8, 6]))
[ "vishalskumar12@gmail.com" ]
vishalskumar12@gmail.com
0d776c224fbc60d2e94c4dcc5be5184c3ec5c1f3
ab79f8297105a7d412303a8b33eaa25038f38c0b
/farmasi/vit_pharmacy_wo_hour/wo_machine_hour.py
69a32deb777f81a3ece47468f2a62e4f8ce0ecc8
[]
no_license
adahra/addons
41a23cbea1e35079f7a9864ade3c32851ee2fb09
c5a5678379649ccdf57a9d55b09b30436428b430
refs/heads/master
2022-06-17T21:22:22.306787
2020-05-15T10:51:14
2020-05-15T10:51:14
264,167,002
1
0
null
2020-05-15T10:39:26
2020-05-15T10:39:26
null
UTF-8
Python
false
false
1,575
py
import time import math import datetime import calendar from openerp.osv import osv, fields from openerp import api import os import csv import re """ wo_machine_hour """ class wo_machine_hour(osv.osv): _name = 'vit_pharmacy_wo_hour.wo_machine_hour' _description = 'Wo Machine Hour' _columns = { ...
[ "prog1@381544ba-743e-41a5-bf0d-221725b9d5af" ]
prog1@381544ba-743e-41a5-bf0d-221725b9d5af
8b8583ba49a425ba4b526a96d6a53f25d3ef26d9
77281755e98af299de29928fd08b362759a1ab7c
/0x01-python-if_else_loops_functions/100-print_tebahpla.py
b68eaef84707cc25c3280116ebf7c04168348b97
[]
no_license
santiagopemo/holbertonschool-higher_level_programming
6a4067ac698194047d19275e41eeaf1e8880e324
e1966c1d3a5589708957d4c679a44d0024a63793
refs/heads/master
2023-06-13T23:48:15.135752
2021-06-29T22:08:10
2021-06-29T22:08:10
259,416,625
0
1
null
null
null
null
UTF-8
Python
false
false
149
py
#!/usr/bin/python3 for i in range(122, 96, -1): if i % 2 != 0: t = i - 32 else: t = i print("{}".format(chr(t)), end="")
[ "santiagopemo@gmail.com" ]
santiagopemo@gmail.com
432c84cd0927e5e35452114fe0b1f01bf7a1cf10
60ed4090ae4b1975538787407c0a835ee65c1356
/from_cpython/Lib/test/test_stat.py
9f5f011f54e884b5f4c1b49355c6fb7d24fb00e1
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
lameiro/pyston
ab28d54ad8221156ff4d6b2c5d8b719d29a58ddc
838e0ac98d5926ba942224951cd1e8bad5483b5e
refs/heads/master
2020-04-06T04:40:16.643425
2015-06-24T19:30:26
2015-06-24T19:30:26
19,595,171
0
0
null
null
null
null
UTF-8
Python
false
false
5,713
py
# expected: fail import unittest import os from test.test_support import TESTFN, run_unittest import stat class TestFilemode(unittest.TestCase): file_flags = {'SF_APPEND', 'SF_ARCHIVED', 'SF_IMMUTABLE', 'SF_NOUNLINK', 'SF_SNAPSHOT', 'UF_APPEND', 'UF_COMPRESSED', 'UF_HIDDEN', 'UF...
[ "daekharel@gmail.com" ]
daekharel@gmail.com
3a5aa17416fd7cfd9a31183918ea3e8a952f2066
6bc9c5b6f06e591bc0826bea441eba216c69c791
/src/xpose.seodash/xpose/seodash/datacollector.py
def55830ac2f60fd5f11582963cf4e352862589a
[ "MIT" ]
permissive
potzenheimer/xdash
e2d128028472824238e8acf64982cc9e64002eec
6810c8fb58d88fd2687b183a59aa5d4bf4a12474
refs/heads/master
2021-03-12T20:36:16.480446
2014-11-06T19:50:50
2014-11-06T19:50:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,160
py
# -*- coding: utf-8 -*- """Module processing data collection for reports""" import json import time from Acquisition import aq_inner from five import grok from plone import api from plone.keyring import django_random from zope.component import getUtility from zope.lifecycleevent import modified from plone.app.conten...
[ "cb@vorwaerts-werbung.de" ]
cb@vorwaerts-werbung.de
ebf2ce3f489ff03ffeccf076687bb89febadea4b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2355/60670/292593.py
b9f06d7a46287e4d958d9b7e1d886ba10a55c2bd
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
866
py
def getsum(x): global sumn,visited,edge,node,n visited[x]=True sumn[x]=node[x] for i in range(0,n): if edge[x][i]==1 and (not visited[i]): sumn[x]+=getsum(i) visited[x]=False return sumn[x] n,m=map(int,input().split()) node=[] edge=[] cnt=0 while n!=0 and m!=0: cnt+=1 ...
[ "1069583789@qq.com" ]
1069583789@qq.com
9c5cc792228d4303120298664c0996fb7e0568da
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_embellishing.py
57272fbf229ae92be36993d2e24ffecd5257e598
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from xai.brain.wordbase.verbs._embellish import _EMBELLISH #calss header class _EMBELLISHING(_EMBELLISH, ): def __init__(self,): _EMBELLISH.__init__(self) self.name = "EMBELLISHING" self.specie = 'verbs' self.basic = "embellish" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
eadbc784f9a39f297917deef32c15b794a40a9b5
7ad8581dc9c8aca53ae01441ee2db3acf46e9dbe
/hw3b_2016/plot/plotQ55.py
53b35bd9af727684be6f3e2f100e41b7dd517176
[]
no_license
jasonlingo/Machine_Learning-Data_to_Models
0a8ab2748bb9b9a31455162b9dee877635f57d2f
aa5de9f6ead54449695e46c9a1dfb5dd6a83717a
refs/heads/master
2021-03-27T13:44:51.445304
2016-05-13T04:44:17
2016-05-13T04:44:17
51,721,497
0
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np def main(data, title, filename): def autolabel(rects): # attach some text labels for rect in rects: height = rect.get_height() ax.text(rect.get_x() + rect.get_width()/2., 1.05*height, ...
[ "jasonlingo@gmail.com" ]
jasonlingo@gmail.com
90e48cf5e2424252927d0d018a7a380572bc1958
36374d94f58f62f5cee1cd6079cda92d7e70b99c
/mrjob_multi_ex.py
f86e06fa2de864052c932754e3d86be850479c71
[]
no_license
nyghtowl/MRJob_Practice
ee277f4be99b36075340f20cfdcc6987bba8566b
6fc649ccef4ab7beaae60649456def05e9ff7474
refs/heads/master
2020-04-26T17:29:08.247012
2014-07-11T06:44:24
2014-07-11T06:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
''' Example code pulled from pythonhosted.org Run a word file like README to see output of the word that appears most frequently ''' from mrjob.job import MRJob import re WORD_RE = re.compile(r"[\w']+") class MRMostUsedWord(MRJob): def mapper_get_words(self, _, line): # yield each word in the line ...
[ "warrick.melanie@gmail.com" ]
warrick.melanie@gmail.com
0dc5145e12da4cc696390e8a29d476637dddbeed
913fb9ec1e709a5140676ba7b2371b1976afca72
/endoClip/pipeline.runLinkFiltered.py
e78f41ef4c0040feb4f0ead937d4494927df951a
[]
no_license
cgreer/ResearchScripts
171cfe9555ea06fdeb91084c12d07d1b45a2335c
1107803bb1459d6b6e1dfb1a89679d2b6fd49062
refs/heads/master
2016-09-05T10:43:19.090247
2012-04-12T21:38:11
2012-04-12T21:38:11
1,673,080
0
3
null
null
null
null
UTF-8
Python
false
false
428
py
import bioLibCG import sys from parRun import parRun from checkExit import parClean import subprocess #fN and Init oFN = sys.argv[1] aFN = sys.argv[2] #this is the filtered ONE! timer = bioLibCG.cgTimer() timer.start() #link oRNA to filteredTargets print 'linking oRNA to filtered targets' parRun(1, 'LOCAL', '/home...
[ "chrisgreer88@gmail.com" ]
chrisgreer88@gmail.com
e01d01f67b652f4105f77f96e645e2c4b88b6ae2
fcf3041051c01d3110b6225f8796dc8c79420dc2
/SoftLayer/CLI/config/show.py
a3f7119af889919129e2441e754fd7fde4048142
[ "MIT" ]
permissive
marvelousNinja/softlayer-python
c4d28cb86e6fd832c04b770c24ae46c4f770c3e1
6bca8374a3561a113769b2aba3938d19aba071e4
refs/heads/master
2020-12-28T19:23:35.807752
2014-10-27T17:21:28
2014-10-27T17:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
"""Show current CLI configuration.""" # :license: MIT, see LICENSE for more details. from SoftLayer.CLI import config from SoftLayer.CLI import environment import click @click.command() @environment.pass_env def cli(env): """Show current configuration.""" settings = config.get_settings_from_client(env.clie...
[ "k3vinmcdonald@gmail.com" ]
k3vinmcdonald@gmail.com
1a893e71d36f75b80356370af378f94fb6b3135d
5063faf298a36466cdb90f1cbd0a4f4e855b5d3b
/pollination_sdk/models/repository_access_policy.py
f91d129360df3eeec6e0ff675dfb74131f40b31e
[]
no_license
pollination/python-sdk
d4eb4efbcbe3a76cc170cf8e71ad5bc6ca6c3011
e4a94b236534658b150961795256224fe8dd93c2
refs/heads/master
2023-08-04T15:19:29.126613
2022-03-06T10:43:21
2022-03-06T10:51:08
224,588,062
3
1
null
2023-09-05T20:52:35
2019-11-28T06:48:40
Python
UTF-8
Python
false
false
4,767
py
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.27.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from pollination_sdk.configu...
[ "antoinedao1@gmail.com" ]
antoinedao1@gmail.com
c6e7f3b5174c4473de35c41157f690e8cb7a12a4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/298/70527/submittedfiles/testes.py
1b5c88e6091bd08f1ca46cb1de61d72ed32ce2d2
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
#lista 1, questao 12 h = float(input('Digite sua altura, em metros: ')) sexo = str(input('Digite H se for homem ou M se for mulher: ')) if sexo = H: peso = float((72.7*h) - 58) else: peso = float((62.1*h) - 44.7) print('Seu peso ideal eh %.2fkg' % peso) #lista 2, questao 13 n1 = float(input('D...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
73dd6515e53c4da0b20388adf20c4a054862f6a8
350d6b7246d6ef8161bdfccfb565b8671cc4d701
/Find Median from Data Stream.py
67bc97c9a083c30a017eb10ec6954f09fd23691e
[]
no_license
YihaoGuo2018/leetcode_python_2
145d5fbe7711c51752b2ab47a057b37071d2fbf7
2065355198fd882ab90bac6041c1d92d1aff5c65
refs/heads/main
2023-02-14T14:25:58.457991
2021-01-14T15:57:10
2021-01-14T15:57:10
329,661,893
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
from heapq import * class MedianFinder: def __init__(self): self.small = [] # the smaller half of the list, max heap (invert min-heap) self.large = [] # the larger half of the list, min heap def addNum(self, num): if len(self.small) == len(self.large): heappush(self.larg...
[ "yihao_guo@gwmail.gwu.edu" ]
yihao_guo@gwmail.gwu.edu
bfd72fe1cb3e92cbb8ba0579d32c807ba346e16d
ea6b3b74c8f1ff9333c5d4b06a0e4dd9bbdb3bba
/venom/rpc/context.py
b6a76888935a7546622f481d2a2ca3c24253e248
[ "MIT" ]
permissive
sgalkina/venom
d495d296a388afcb25525491bbbe590bfd258a05
e372ab9002e71ba4e2422aabd02143e4f1247dba
refs/heads/master
2021-01-23T03:27:17.239289
2017-03-24T15:05:56
2017-03-24T15:05:56
86,077,951
0
0
null
2017-03-24T14:40:46
2017-03-24T14:40:46
null
UTF-8
Python
false
false
1,697
py
import asyncio from typing import Optional, MutableMapping from venom.rpc.resolver import Resolver from weakref import WeakKeyDictionary class RequestContext(object): __contexts: MutableMapping[asyncio.Task, 'RequestContext'] = WeakKeyDictionary() _context_task: asyncio.Task = None def __init__(self, ve...
[ "lars@lyschoening.de" ]
lars@lyschoening.de
19e6e87dc80aced0f325fef644e9bcd089924da0
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/goodweather/testcase/firstcases/testcase10_015.py
296b592daf6181ec9ba75985f5f16404193f9aff
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
5,040
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
86ea7ad763972639175e91765a9fbea0af24d25e
51f557698b4c400d3492542d769c8a9663481ef1
/com/abc/geometry/play_shapes.py
f2c4b353733d71fd702a34da9e7b7cdd49b5d56f
[]
no_license
mehulchopradev/ava-python-core
984941f9cfa202f342f5c0e4cca4a23b2a6c57bf
0b9e2cc6e3565f5ebee5df3e9b55baeed023e9ed
refs/heads/master
2020-04-12T01:18:00.440680
2019-01-03T03:55:50
2019-01-03T03:55:50
162,227,934
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
import rectangle import shape_stats import square r = rectangle.Rectangle(5, 3) shape_stats.ShapeStatistics.calc_stats(r) s = square.Square(5) shape_stats.ShapeStatistics.calc_stats(s)
[ "mehul.chopra.dev@gmail.com" ]
mehul.chopra.dev@gmail.com
4cd3823a5b26fef93b03be6c49d85e824f30bf91
0e215b6cfcb5f5d3aefb6c12e2c91e6687609736
/novice/09-03/kelompok/olshop/migrations/0001_initial.py
5380bea423902f829481a655ec1ab2a5f438ec96
[]
no_license
Idfa001/praxis-academy
e266963db45d5b2c623f51afd9893861db7c357f
13da3b696b8575f961ea787f21e59e17c802f920
refs/heads/master
2023-01-22T15:13:45.497082
2020-11-17T13:50:12
2020-11-17T13:50:12
287,203,217
1
1
null
null
null
null
UTF-8
Python
false
false
8,080
py
# Generated by Django 3.1.2 on 2020-10-15 03:09 import datetime 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)...
[ "idfa001@gmail.com" ]
idfa001@gmail.com
ef2b1ac51c7ddcc2ed86fc34c18b2027ec819430
615622849d5e7ffbc4ea9c537edfc0d8fb3a02a4
/submits/10_54_53_SB2_C_9518.py
f7bda53835f02a577e4b939e53edc5dc34cb0b3f
[]
no_license
lisiynos/train
f714d11e9e71f27472ca3f6fbfd576c849c07c5f
a3b9f9babf9587eabde8d94b76a52f8ae9d5addc
refs/heads/master
2020-12-13T15:32:29.862614
2016-08-29T09:35:00
2016-08-29T09:35:00
28,248,330
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
with open('eq.in', 'r') as infile: a, b, c = map(float, infile.readline().split()) if a + b - c <= 1e-7: res = 'YES' else: res = 'NO' with open('eq.out', 'w') as outfile: outfile.write(res)
[ "super.denis@gmail.com" ]
super.denis@gmail.com
4aa3fe16bb8b5d673f3ade8b237346e3ea778ef5
26ecc372f626ed009a2563d798061e94fd9b59ad
/api/word/serializers.py
7cd428549d18090b7a4e55a7456d10403d36db61
[]
no_license
shinkeonkim/straw_words_api
4f530cd0fb0498a28e09c1bf22e68b689fdf1e41
14e048ade06c51ccd5189a73c2510a95c25f208d
refs/heads/main
2023-08-19T20:56:33.175889
2021-10-27T11:13:30
2021-10-27T11:13:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
"""Word App Serializers""" from rest_framework.serializers import ModelSerializer class WordSerializer(ModelSerializer): """Serializer definition for Word Model""" class Meta: """Meta definition for WordSerializer.""" fields = [ "content", "type", ]
[ "singun11@kookmin.ac.kr" ]
singun11@kookmin.ac.kr
b1d94f9f896a083dbf7d8bcdf7ac7283311f12fe
eb1a2e24ecdbe9be8a6aac153fe1980b19dcbe4a
/matrixsum.py
fda9f3594020bfe93a8c8861bd17067bd2bfc3c7
[]
no_license
sushmithasushi/playerlevel
1e7363e63bd75deba79b96a659db7736c93ed6a2
612ea4483a5c5d7c3c3a8564e0b7ce0df08a686a
refs/heads/master
2020-06-19T07:03:06.457910
2019-07-24T04:28:31
2019-07-24T04:28:31
196,608,802
0
0
null
2019-07-12T16:08:51
2019-07-12T16:08:51
null
UTF-8
Python
false
false
185
py
num1=int(input()) arr=[list(map(int,input().split(" "))) for i in range(num1)] i,j=0,len(arr)-1 a,b=1,1 while i<len(arr): a*=arr[i][i] b*=arr[i][j] i+=1 j-=1 print(a+b)
[ "noreply@github.com" ]
sushmithasushi.noreply@github.com
9b50bfb30113784f5b0326dc9c51a2b9f313cdc4
fff54b01b46cef0bbc70a6469c88c01c82af5a57
/x11/wm/openbox/actions.py
60627b14566e45979ad1169013c92e0989f28458
[]
no_license
LimeLinux/Packages
e51deae6c0d1406e31f06caa5aaa7749466bef0b
d492e075d8b051df68b98c315ad0628e33a8fac4
refs/heads/master
2021-01-11T12:37:22.150638
2018-08-30T18:24:32
2018-08-30T18:24:32
77,054,292
5
19
null
2018-02-02T17:24:06
2016-12-21T13:33:45
Python
UTF-8
Python
false
false
1,156
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get from pisi.actionsapi import shelltools def setup(): ...
[ "zirkovandersen@gmail.com" ]
zirkovandersen@gmail.com
10fda81a4b4e943439493d1bce221a023057f1a5
5f9e0c226c6f99f04446d60cd21282e7e6b05d2c
/wizardofodds.py
c31ce2746fa4f8d7da7dbdeae60f4c73a7056c42
[]
no_license
JONNY-ME/my-kattis-solution
867ac267dbb5faa6f7c2af35b435498a22ae269d
51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e
refs/heads/main
2023-06-17T20:04:04.701038
2021-07-16T09:35:35
2021-07-16T09:35:35
386,583,581
0
1
null
null
null
null
UTF-8
Python
false
false
146
py
from math import log l = ['Your wish is granted!', 'You will become a flying monkey!'] a, b = map(int, input().split()) print(l[b < log(a, 2)])
[ "yohannesmelese4@gmail.com" ]
yohannesmelese4@gmail.com
2e7f93939f9b2a86c4cfc599bffc890c57a93441
2e2a54e30f8c8018fe0d163a5fd4b0d854ef165d
/src/gluonts/dataset/hierarchical.py
008228f3bc2143cbf4f6980833353f17fe62872c
[ "Apache-2.0" ]
permissive
kashif/gluon-ts
b742021ca0292ca2885b3b079150f24cdf3e6dec
a818f69dc049c1c1d57e09d2ccb8b5f7a0cff656
refs/heads/master
2023-09-05T00:00:22.861992
2023-08-09T15:47:28
2023-08-09T15:47:28
222,552,468
5
0
null
2019-11-18T21:56:52
2019-11-18T21:56:52
null
UTF-8
Python
false
false
7,596
py
# Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ "noreply@github.com" ]
kashif.noreply@github.com
4f7e21ced51b919983f3b3c29571054c294dcf7f
d9c1646b7608a84416028fbbc08a05b9fd76d11b
/lite/urls.py
c064d0bb62f615586e90f95b9f0b742f347431b4
[]
no_license
bushitan/emoji_server
b68e7af9ee937203d25faf48bcffbffcedba0b9c
655dea8bbc7bf97d9b84739b8e4b75fca861f3b4
refs/heads/master
2021-04-28T08:11:52.118222
2018-11-01T03:48:13
2018-11-01T03:48:13
122,243,266
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
# -*- coding: utf-8 -*- from django.conf.urls import url from lite.views import * urlpatterns = [ url(r'^user/login/$', Login.as_view()), url(r'^wx/create/$', WXCreate.as_view()), url(r'^wx/callback/$', WXCallback.as_view()), url(r'^image/get_list/$', ImageGetList.as_view()), url(r'^upload/ge...
[ "373514952@qq.com" ]
373514952@qq.com