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
88604d9ea2e04d2cbbda3eeb010b376700e444ff
a3e86193eb50d90b01135a8a1f51330e10624d7d
/Quadrupole/computeHausdorff.py
eda5b6dab99e327de6f6bb4053d4121ee3a71399
[]
no_license
yangyutu/Diffusion-mapping
b1f461b5c3d37e4b07a733eb28674b7dde140fa4
2e6b151dc7ced1c66589b4e56383a08764e52319
refs/heads/master
2021-01-11T03:05:47.610753
2019-08-23T12:23:13
2019-08-23T12:23:13
71,095,710
1
0
null
null
null
null
UTF-8
Python
false
false
887
py
# -*- coding: utf-8 -*- """ Created on Fri Oct 23 13:09:18 2015 @author: yuugangyang """ import numpy as np def compute_dist(A, B): dim= A.shape[1] dist = [] for k in range(A.shape[0]): C = np.dot(np.ones((B.shape[0], 1)), A[k,:].reshape(1,A.shape[1])) D = (C-B) * (C-B) D = np....
[ "yangyutu123@gmail.com" ]
yangyutu123@gmail.com
25960eafa19a79c0bf57da6562c5779f6f27e566
d74913eda69ee1799c887a645c574fa5a4da8fba
/code/daymet/daymet_download.py
fdb08ec202d56e76ce15de51cf4e66b91bdb7643
[ "Apache-2.0" ]
permissive
Fweek/pyMETRIC
efd6fe8c6ea74f5c87d19ecbb6653549fb3ba943
0e7eec57fedd33b81e6e7efe58290f50ebbebfab
refs/heads/master
2021-05-03T10:23:15.066106
2018-02-06T19:32:36
2018-02-06T19:32:36
120,534,046
1
0
null
2018-02-06T23:00:49
2018-02-06T23:00:48
null
UTF-8
Python
false
false
6,295
py
#-------------------------------- # Name: daymet_download.py # Purpose: Download DAYMET data # Python: 2.7, 3.5, 3.6 #-------------------------------- import argparse import datetime as dt import logging import os import sys from python_common import date_range, valid_date, url_download def main(...
[ "dgketchum@gmail.com" ]
dgketchum@gmail.com
806abcf8960a76c7d2f3f8225378822b2c9cef55
edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81
/Review/Chapter09/Exercise/9-11.py
39c21f92bd2548e0601a8b682936e4b6b46c8f1c
[]
no_license
narinn-star/Python
575cba200de35b9edf3832c4e41ccce657075751
14eba211cd3a9e9708a30073ba5b31d21d39eeef
refs/heads/master
2023-05-25T22:57:26.079294
2021-06-07T15:29:39
2021-06-07T15:29:39
331,647,462
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from tkinter import* from time import* from tkinter.messagebox import showinfo top = Tk() def click1(): time = strftime('Day: %d %b %Y\nTime: %H:%M:%S %p\n', localtime()) showinfo(message=time, title='Local time') def click2(): time = strftime('Day: %d %b %Y\nTime: %H:%M:%S %p\n', gmtime()) showinfo(...
[ "skfls2618@naver.com" ]
skfls2618@naver.com
5fda3e1957ac5344f2d3517ed513d8eb6aa40ab4
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_052/ch6_2020_03_03_19_25_47_813131.py
6c5eb200cb8ea6c74259dab2fa5f6e92a7835e0f
[]
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
68
py
def celsius_para_fahrenheit (f): c=(5(f)-160)/(9) return c
[ "you@example.com" ]
you@example.com
b8b2b3ab91eca94d428151711819f43ea0321bb1
6b33a54d14424bb155a4dd307b19cfb2aacbde43
/bioinformatics/analysis/rnaseq/circRNA/circ_repeat_analysis.py
58810b979f0684734ac01601eef30c8fe257c6ff
[ "MIT" ]
permissive
bioShaun/omsCabinet
4905ab022dea1ec13df5982877dafbed415ee3d2
741179a06cbd5200662cd03bc2e0115f4ad06917
refs/heads/master
2021-01-25T11:56:38.524299
2020-02-09T09:12:30
2020-02-09T09:12:30
123,445,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
import os import click import pandas as pd REPEAT_HEADER = [ 'chrom', 'start', 'end', 'circRNAID', 'score', 'strand', 'region', 'repeat_chrom', 'repeat_start', 'repeat_end', 'repeat_id', 'repeat_score', 'repeat_strand', 'repeat_type', 'repeat_class', 'ov...
[ "ricekent@163.com" ]
ricekent@163.com
f6f602813e8d149331f616953fcebe2f7c6aa15e
6cfc842b7dc1c2628d9e7ef69cdd52b7279a409d
/business/member/member_notice.py
4bbeabd761e742387154dd80e2953e90aa965e53
[]
no_license
vothin/requsets_test
6fbf4ec2206b54d150d253700ba62bfa51c32e7f
235200a67c1fb125f75f9771808f6655a7b14202
refs/heads/master
2021-07-07T06:48:50.528885
2020-12-25T04:19:12
2020-12-25T04:19:12
218,724,714
0
0
null
2020-06-23T08:04:36
2019-10-31T09:02:12
Python
UTF-8
Python
false
false
2,683
py
# -*- coding:utf-8 -*- ''' @author: Vothin @software: 自动化测试 @file: member_notice.py @time: 2019/11/19 15:21 @desc: ''' # ******************************************************** from common.requests_test import Requests_Test from common.change_param import Change_Param from common.recordlog impor...
[ "zy757161350@qq.com" ]
zy757161350@qq.com
cdd207b1b203db6293e2bffe6d148972ae6eb6b2
f8c3c677ba536fbf5a37ac4343c1f3f3acd4d9b6
/ICA_SDK/ICA_SDK/models/genome_compact.py
ebf10891bd98241b7ae2eae4b10552dcbac2035c
[]
no_license
jsialar/integrated_IAP_SDK
5e6999b0a9beabe4dfc4f2b6c8b0f45b1b2f33eb
c9ff7685ef0a27dc4af512adcff914f55ead0edd
refs/heads/main
2023-08-25T04:16:27.219027
2021-10-26T16:06:09
2021-10-26T16:06:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,866
py
# coding: utf-8 """ IAP Services No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from ...
[ "siajunren@gmail.com" ]
siajunren@gmail.com
859b6517dab3dc3b24d760ab570d441a360b391c
cd3df53a432d35e2fe7b4e4f9bbe62222235a85b
/tests/port_tests/point_node_tests/test_equals.py
74729bb6e9f0675b7ea2ee6c8009062e680cbf6a
[ "MIT" ]
permissive
vincentsarago/wagyu
00ccbe6c9d101724483bde00e10ef512d2c95f9a
f6dce8d119fafa190d07f042ff6c4d5729a4c1e6
refs/heads/master
2023-01-20T06:26:27.475502
2020-11-21T04:57:01
2020-11-21T04:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
from hypothesis import given from tests.utils import (equivalence, implication) from wagyu.point_node import PointNode from . import strategies @given(strategies.points_nodes) def test_reflexivity(point_node: PointNode) -> None: assert point_node == point_node @given(strategies.points_...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
a3f03b04f4becf6a714e2d02f43d566d360beac1
32a1802dccb8a143532f8ef419a95fd7f1973bc4
/movies_order/test_api/movies_tickets/urls.py
d2e23ac0a4e0c8be41adff958ff2f262b3e085ab
[]
no_license
zhmaoli/Django
b8171ba1f1612dc7ae61b58b718965a64db81c69
45586e782a741ba3bf64c9023e805f6f4e6496f8
refs/heads/master
2021-02-27T08:57:41.193488
2019-08-01T09:17:07
2019-08-01T09:17:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
#coding=utf8 from django.urls import path from movies_tickets.views import MovieBaseAPI, MovieDetailAPI, CinemasApi, CinemaDetailAPI, MovieSessionsAPI, ALLCinemasApi, MovieSessionByDateAPI, CinemaSessionByMovieAPI, OrderApi urlpatterns = [ path('movies', MovieBaseAPI.as_view()), path('movies/<int:movie...
[ "1278077260@qq.com" ]
1278077260@qq.com
0fdd0f8836f3da67eac1ebb538065344528441e7
55afd3bbe5187dba96be169a7c068c7cf7543447
/article17/habitatsummary/attrs_conclusion/td_coverage_conclusion.py
af658f6bc3618ee5d27b1851f38e0c04ed2d6749
[]
no_license
eaudeweb/art17-2006
6d9413439e10f4db0b72fc49c80b7c50ee1ef59e
4bc61cd2972f94769dae97b95ccb55f2a0952cf1
refs/heads/master
2016-09-05T13:33:19.280952
2014-01-30T09:54:27
2014-01-30T09:54:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
# Script (Python) # /article17/habitatsummary/attrs_conclusion/td_coverage_conclusion # params: 'habitat, region, record, conclusions' ## Script (Python) "td_coverage_conclusion" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=habitat...
[ "cornel.nitu@eaudeweb.ro" ]
cornel.nitu@eaudeweb.ro
ee7dfa406cafdde059c7ddd7449459805f72d265
2d191eb46ed804c9029801832ff4016aeaf8d31c
/configs/ssl/ssl_deeplabv3plus_r101-d8_512x1024_40k_b16_cityscapes_baseline_only_label.py
b4650b59ec2408b9e04a69cbca6f0c5e150fbcdf
[ "Apache-2.0" ]
permissive
openseg-group/mmsegmentation
df99ac2c3510b7f2dff92405aae25026d1023d98
23939f09d2b0bd30fc26eb7f8af974f1f5441210
refs/heads/master
2023-03-02T07:49:23.652558
2021-02-15T04:16:28
2021-02-15T04:16:28
278,537,243
2
2
null
2020-07-10T04:24:16
2020-07-10T04:24:15
null
UTF-8
Python
false
false
2,192
py
_base_ = [ '../_base_/models/deeplabv3plus_r50-d8.py', '../_base_/datasets/cityscapes.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained='open-mmlab://resnet101_v1c', ...
[ "yhyuan@pku.edu.cn" ]
yhyuan@pku.edu.cn
c23c0f133424dd917a442b5d3bd88d54f5055ec4
9905901a2beae3ff4885fbc29842b3c34546ffd7
/nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/gslb/gslbservice_lbmonitor_binding.py
0531ba8a900ab4a3cddc2f0bc93111891039efcb
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
culbertm/NSttyPython
f354ebb3dbf445884dbddb474b34eb9246261c19
ff9f6aedae3fb8495342cd0fc4247c819cf47397
refs/heads/master
2020-04-22T17:07:39.654614
2019-02-13T19:07:23
2019-02-13T19:07:23
170,530,223
0
0
null
null
null
null
UTF-8
Python
false
false
10,895
py
# # Copyright (c) 2008-2016 Citrix Systems, Inc. # # 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 l...
[ "mdculbert@marathonpetroleum.com" ]
mdculbert@marathonpetroleum.com
5edaba7942ac75ed050287e21a95ae915c14c6fe
b5698c259c80c9dc9b1cbca9dd82eb7f4d799f61
/tests/packages/sub_package/kitty/speak/__init__.py
27ea88036f0046e8dae40761376ff0ae576320e0
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
4O4/Nuitka
431998d4d424f520d2887e9195ad7d7c61691b40
e37d483b05c6b2ff081f3cedaee7aaff5c2ea397
refs/heads/master
2020-04-02T04:06:10.826960
2018-10-18T21:13:16
2018-10-18T21:13:16
154,000,090
0
0
Apache-2.0
2018-10-21T11:17:44
2018-10-21T11:17:44
null
UTF-8
Python
false
false
1,024
py
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Software where # it's copied from other people. In these cases, that will normally be # indicated. # # L...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
2f44b8960358415ccf0ac1520c6e6b2c9cdfdf93
271c7959a39f3d7ff63dddf285004fd5badee4d9
/venv/Lib/site-packages/netaddr/strategy/eui48.py
b3411fea1c0278a12f1011afc1bd3c08c7f8a3e9
[ "MIT" ]
permissive
natemellendorf/configpy
b6b01ea4db1f2b9109fd4ddb860e9977316ed964
750da5eaef33cede9f3ef532453d63e507f34a2c
refs/heads/master
2022-12-11T05:22:54.289720
2019-07-22T05:26:09
2019-07-22T05:26:09
176,197,442
4
1
MIT
2022-12-08T02:48:51
2019-03-18T03:24:12
Python
UTF-8
Python
false
false
8,630
py
#----------------------------------------------------------------------------- # Copyright (c) 2008 by David P. D. Moss. All rights reserved. # # Released under the BSD license. See the LICENSE file for details. #----------------------------------------------------------------------------- """ IEEE 48-bit EUI (MAC ...
[ "nate.mellendorf@gmail.com" ]
nate.mellendorf@gmail.com
0e53dcd8e4f627c22c5c0f8ce783e14019cf28ba
3adce822439943250c1a1578cb9edd285bfaf0ce
/django/generate_fixtures.py
5861886990481ab9436326744166931eae82fd3a
[ "MIT", "Apache-2.0" ]
permissive
resilientred/skaffold
feceb71acfa9183db2866f0c00904f4c6e00b38b
0d705d3907bc05e781141f62002a981683813658
refs/heads/master
2021-05-02T01:42:43.529831
2015-07-14T05:34:36
2015-07-14T05:34:36
120,873,685
1
0
null
2018-02-09T07:40:31
2018-02-09T07:40:31
null
UTF-8
Python
false
false
473
py
from django.core.management.base import BaseCommand, CommandError from {{{ project }}}.{{{ app_name }}} import model_factories MAX_RECORDS = 10 class Command(BaseCommand): help = 'Adds all fixture data.' def handle(self, *args, **options): for _ in xrange(MAX_RECORDS): {%% for model_name in ...
[ "dxdstudio@gmail.com" ]
dxdstudio@gmail.com
e30b2915f9c4592a949d08e8cd4cd02350fe10d1
e1103b8818d071e313a4d8e4bc60e3649d0890b6
/becausethenight/settings.py
cb6405b79ee7b4294ba6f15da343028303e9b7f8
[]
no_license
programiranje3/2018
ddab506f2a26039b365483ab33177951d5e15fbb
2baf17741d77630199b377da59b5339fd9bfb2ca
refs/heads/master
2020-03-28T22:01:16.724380
2018-12-12T16:23:51
2018-12-12T16:23:51
149,199,466
1
1
null
null
null
null
UTF-8
Python
false
false
265
py
"""Project configuration settings (PROJECT_DIR etc.) """ import os # print(__file__) # print(os.path.abspath(__file__)) # print(os.path.dirname(__file__)) PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) # print(PROJECT_DIR) # print(type(PROJECT_DIR))
[ "devedzic@gmail.com" ]
devedzic@gmail.com
63622122aa5f11b9e93809e26314da2b4c47f028
beba26fc9dca330a5d4b92ef22803c4d861209e7
/app.py
2c75511d8d5dea50b343deb5890ee03f39f6d2b6
[]
no_license
Jrius4/ovc_problem_solver
35df08bf357be3309cddd1b403acfdcb41a0697d
c4384c48d68ef8b18418230f9647d8af77cef537
refs/heads/main
2023-08-30T04:56:26.134183
2021-10-24T21:43:54
2021-10-24T21:43:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,214
py
from openpyxl import load_workbook wb = load_workbook("input/input.xlsx") ws = wb.active data = [] def getcolumns(a:str,b:str): a = str(a).lower() b = str(b).lower() if a == "": return ((26*(0))+int(ord(b)-97)) else: return ((26*(int(ord(a)-97)+1))+int(ord(b)-97)) for row in ws...
[ "kazibwejuliusjunior@gmail.com" ]
kazibwejuliusjunior@gmail.com
eca3fd53f2770dc746e44c275bcfef7f48bacb76
b6df7cda5c23cda304fcc0af1450ac3c27a224c1
/data/codes/WarrenWeckesser_setup.py
653d236fcb58a7bda9055af9a1a34b66747f8ce3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
vieira-rafael/py-search
88ee167fa1949414cc4f3c98d33f8ecec1ce756d
b8c6dccc58d72af35e4d4631f21178296f610b8a
refs/heads/master
2021-01-21T04:59:36.220510
2016-06-20T01:45:34
2016-06-20T01:45:34
54,433,313
2
4
null
null
null
null
UTF-8
Python
false
false
1,347
py
from setuptools import setupfrom os import path def get_wavio_version(): """ Find the value assigned to __version__ in wavio.py. This function assumes that there is a line of the form __version__ = "version-string" in wavio.py. It returns the string version-string, or None if such a line is not fou...
[ "thaisnviana@gmail.com" ]
thaisnviana@gmail.com
e9f1dbf7ffe89c3abe4b0a7736744c5fe30fbc5c
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/xia2/Schema/XSample.py
fcc4a0ae567f8ccbd030bab4850f9d9af13a6299
[ "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
3,748
py
#!/usr/bin/env python # XSample.py # Copyright (C) 2015 Diamond Light Source, Richard Gildea # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function class XSample(object): """An o...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
6ae91e2b8f53229d6c371a8f235392667d79ab8a
12258001571bd504223fbf4587870960fa93a46d
/mud/django-haystack-2.3.2/haystack/admin.py
6b0b0988dfc87447577e3757ac8592a3289d131f
[ "BSD-3-Clause", "MIT" ]
permissive
Nik0las1984/mud-obj
0bd71e71855a9b0f0d3244dec2c877bd212cdbd2
5d74280724ff6c6ac1b2d3a7c86b382e512ecf4d
refs/heads/master
2023-01-07T04:12:33.472377
2019-10-11T09:10:14
2019-10-11T09:10:14
69,223,190
2
0
null
2022-12-26T20:15:20
2016-09-26T07:11:49
Python
UTF-8
Python
false
false
6,639
py
from __future__ import unicode_literals from django import template from django.contrib.admin.options import csrf_protect_m, ModelAdmin from django.contrib.admin.views.main import ChangeList, SEARCH_VAR from django.core.exceptions import PermissionDenied from django.core.paginator import InvalidPage, Paginator from dj...
[ "kolya.khokhlov@gmail.com" ]
kolya.khokhlov@gmail.com
8bc29b5636fd7970d731f56428ec9f29064104af
7caa438706a423dd9779a81f8345fcf1ec11e921
/timeit/28_02/genetation_test_fix.py
bc470b672816ae1dc444d5d948b1b4ee741c916a
[]
no_license
tamarinvs19/python-learning
5dd2582f5dc504e19a53e9176677adc5170778b0
1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9
refs/heads/master
2021-07-15T13:23:24.238594
2021-07-08T07:07:21
2021-07-08T07:07:21
120,604,826
3
0
null
null
null
null
UTF-8
Python
false
false
315
py
from random import randint, seed m = 10000 def one_rf(): length = randint(0, m) #print(1, length) xs = [] for _ in range(length): r = randint(0, m) xs.append(r) def two_rf(): length = randint(0, m) #print(2, length) xs = [randint(0, m) for _ in range(length)]
[ "slavabarsuk@ya.ru" ]
slavabarsuk@ya.ru
b1b324f15896af52e3931b8c9a40ca74708e660a
68e26b931893d25f88981a7a7dd4b7de775add6d
/assignment2/cs231n/classifiers/fc_net.py
4a98a2e609603d2295fb044ff69f0d86c0d627bd
[]
no_license
mshtang/CS231n
0f19b1500d8077386d988925d4f94479fa32382f
9643336ca382be0171507ffd05653e042af63b92
refs/heads/master
2020-03-10T12:18:58.347825
2018-04-23T11:02:08
2018-04-23T11:02:08
129,374,872
0
0
null
null
null
null
UTF-8
Python
false
false
20,577
py
from builtins import range from builtins import object import numpy as np from cs231n.layers import * from cs231n.layer_utils import * class TwoLayerNet(object): """ A two-layer fully-connected neural network with ReLU nonlinearity and softmax loss that uses a modular layer design. We assume an input dim...
[ "you@example.com" ]
you@example.com
bb7f5783d40bb042630bb35a9e3b2378d09b7311
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/E9Wkppxyo763XywBe_24.py
c54745b649c7618965decf030eb38c9d949ece2e
[]
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
2,866
py
""" A binary clock displays the time of day in binary format. Modern binary clocks have six columns of lights; two for each of the hours, minutes and seconds. The photo below shows a binary clock displaying the time "12:15:45": ![](https://edabit-challenges.s3.amazonaws.com/220px-Digital-BCD-clock.jpg) The binary ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
cc27b3e8dda70c767e42c23c01a79250f519e1ce
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/nltk/tbl/rule.py
02d8ea770a571834e94ce4cd3a93cd92c933ef34
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
11,508
py
# Natural Language Toolkit: Transformation-based learning # # Copyright (C) 2001-2021 NLTK Project # Author: Marcus Uneson <marcus.uneson@gmail.com> # based on previous (nltk2) version by # Christopher Maloof, Edward Loper, Steven Bird # URL: <http://nltk.org/> # For license information, see LICENSE.TXT ...
[ "msaineti@icloud.com" ]
msaineti@icloud.com
900e50e59fb5433d6619c32f3da0a9dd104ca7d8
5ff8d66901ae1368a012bfe270a7e76672efcde8
/torrenttools.py
2a6b3cd15babe2ca91a1b6830d7f0ea684684d2b
[]
no_license
SUNET/lobo2a
3ed55fc398b461ac1d9910364ac241c481001d7e
4c7c3f701d43a349ba3f4b4414dbe122308e46a1
refs/heads/master
2023-09-02T13:13:06.363012
2014-07-07T21:20:23
2014-07-07T21:20:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,317
py
# -*- coding: utf-8 -*- # The contents of this file are subject to the Python Software Foundation # License Version 2.3 (the License). You may not copy or use this file, in # either source code or executable form, except in compliance with the License. # You may obtain a copy of the License at http://www.python.org/l...
[ "leifj@sunet.se" ]
leifj@sunet.se
795bc5ac4bfbb332f76a5e289c2b64859aecc897
52aca246e91ad6ff611a1db31893089db1782344
/fluent_contents/tests/utils.py
9eab0a404cb280c88311b7a29fea19af132145cd
[ "Apache-2.0" ]
permissive
si14/django-fluent-contents
a2b53ca09997ae2ba20c42e2bb706c177c38c3cc
12d98390b8799d8568d90ca9359b30f49ed2eade
refs/heads/master
2021-01-20T03:11:39.067625
2017-04-26T16:52:22
2017-04-26T16:52:22
89,505,219
0
0
null
2017-04-26T16:49:28
2017-04-26T16:49:28
null
UTF-8
Python
false
false
3,997
py
""" Utils for internal tests, and utils for testing third party plugins. """ from __future__ import print_function import django from future.builtins import str from django.conf import settings from django.core.management import call_command from django.contrib.sites.models import Site from django.test import TestCase ...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
b40fa846aa398e8e39aadf0971b887251b2a9952
8f6ebd257d7e0d3a71c3e173dbee65e32973a526
/binaryS.py
c6b94c8de340bdf3cb481ccd9326851a5528b86c
[]
no_license
jennyChing/mit-handout_practice
e27839e72a6f36a3dde1e72021c493d2ed97898a
ca1f217fe97a76c2ebe55268ea812715a6b79503
refs/heads/master
2021-01-10T09:06:35.245013
2016-03-24T08:07:05
2016-03-24T08:07:05
54,456,604
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
def biSearch (a, n): left = 0 right = len(a) while right > left: middle = int((right+left)/2) print(left,right,middle,a[middle],n) if n == a[middle]: return middle print(middle) elif n > a[middle]: left = middle+1 else: ...
[ "jklife3@gmail.com" ]
jklife3@gmail.com
2d2faa48a176471eb9914d9d4d9a4c0fe96dfdb5
7a4a934ab01fe76243cfc1075af837d8a4659b96
/makingQueries/wsgi.py
67804b38c693a877cf8796983061b044b06cb3d2
[]
no_license
ephremworkeye/makingQueries
2cc464be56c1626425862aec3f191aedc054fa84
95f897690f05b918f54bc49c4667fc2952e7fd34
refs/heads/master
2023-07-03T13:40:53.538436
2021-08-01T08:01:55
2021-08-01T08:01:55
391,565,969
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for makingQueries project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "ephremworkeye@gmail.com" ]
ephremworkeye@gmail.com
3b28b0eb18f4e471ce30f37864a27ccf145b8896
21a92e72448715510d509ab0ec07af37f388013a
/camouflage.py
1c778ab4060a0a0105fd08ae3b58b681a0fd37b6
[]
no_license
chlee1252/dailyLeetCode
9758ad5a74997672129c91fb78ecc00092e1cf2a
71b9e3d82d4fbb58e8c86f60f3741db6691bf2f3
refs/heads/master
2023-01-22T02:40:55.779267
2020-12-03T15:01:07
2020-12-03T15:01:07
265,159,944
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
from collections import defaultdict, Counter from functools import reduce def solution(clothes): # Approach 1: use defaultdict answer = 1 # Set init answer value as 1 hash = defaultdict(int) for cloth in clothes: hash[cloth[1]] += 1 for key, value in hash.items(): answer *= value + 1...
[ "chlee1252@gmail.com" ]
chlee1252@gmail.com
0073eba180930fa02f31ad4bad81cc9fdd6be234
8830831a87f35ff2628f379d8230928ec6b5641a
/BNPParibas/code/xgb_naive_bayes.py
550126dd6fde9b812eb51b8bd8c481cbbb2f4145
[]
no_license
nickmcadden/Kaggle
e5882c9d68a81700d8d969328d91c059a0643868
cbc5347dec90e4bf64d4dbaf28b8ffb362efc64f
refs/heads/master
2019-07-18T08:09:40.683168
2018-01-26T14:35:38
2018-01-26T14:35:38
40,735,982
0
0
null
null
null
null
UTF-8
Python
false
false
3,490
py
import sys import pandas as pd import numpy as np import scipy as sp import xgboost as xgb import data_naive_bayes as data import argparse import pickle as pkl from scipy import stats from sklearn.utils import shuffle from sklearn.cross_validation import StratifiedShuffleSplit, KFold def log_loss(act, pred): """ V...
[ "nmcadden@globalpersonals.co.uk" ]
nmcadden@globalpersonals.co.uk
6ade2b1fbe60d8188804988229f7f4671350eb1c
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_0/ar_/test_artificial_32_Fisher_Lag1Trend_0__20.py
5207f3b5c001ec81a647c5bcb91b30deaaa7fbae
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
265
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
35a84d93d7da4a1fe22aa258dc364462324cfd8a
49fa43ae11cd06f68efb65a9f59add168b205f29
/python/132_palindrome-partitioning-II/palindromePartitioningII.py
1431ee00dc62b2bbd014b72c2d5902c94368dd4c
[]
no_license
kfrancischen/leetcode
634510672df826a2e2c3d7cf0b2d00f7fc003973
08500c39e14f3bf140db82a3dd2df4ca18705845
refs/heads/master
2021-01-23T13:09:02.410336
2019-04-17T06:01:28
2019-04-17T06:01:28
56,357,131
2
1
null
null
null
null
UTF-8
Python
false
false
431
py
class Solution(object): def minCut(self, s): """ :type s: str :rtype: int """ n = len(s) dp = [i-1 for i in range(n + 1)] for i in range(1, n+1): for j in range(i): temp = s[j:i] if temp == temp[::-1]: ...
[ "kfrancischen@gmail.com" ]
kfrancischen@gmail.com
c234b625d8e66574a7385270d8c8c600741f636b
02fd239748a57ddd163ab411ce28a2b34e0182a9
/tests/components/bluetooth/test_config_flow.py
4c1e8f660b327eb4d35f96dfcd9af2cadf3af1a4
[ "Apache-2.0" ]
permissive
fredrike/home-assistant
77d05be0d2fd35dd862c56c7fb1ddde46d61ed05
e852c9b012f2f949cc08e9498b8a051f362669e9
refs/heads/dev
2023-03-05T12:38:26.034307
2022-10-13T15:34:45
2022-10-13T15:34:45
107,095,841
2
0
Apache-2.0
2023-02-22T06:14:52
2017-10-16T07:55:03
Python
UTF-8
Python
false
false
13,332
py
"""Test the bluetooth config flow.""" from unittest.mock import patch from homeassistant import config_entries from homeassistant.components.bluetooth.const import ( CONF_ADAPTER, CONF_DETAILS, CONF_PASSIVE, DEFAULT_ADDRESS, DOMAIN, AdapterDetails, ) from homeassistant.data_entry_flow import F...
[ "noreply@github.com" ]
fredrike.noreply@github.com
2a05d7369414945fbe92cb2a7446a8b241ae08e3
2c95e0f7bb3f977306f479d5c99601ab1d5c61f2
/olive/full_node/mempool_check_conditions.py
8bdc56ca5a2665a2e9cd9a91923e25d9c493333d
[ "Apache-2.0" ]
permissive
Olive-blockchain/Olive-blockchain-CLI
d62444f8456467f8105531178d2ae53d6e92087d
8c4a9a382d68fc1d71c5b6c1da858922a8bb8808
refs/heads/main
2023-07-19T03:51:08.700834
2021-09-19T16:05:10
2021-09-19T16:05:10
406,045,499
0
0
Apache-2.0
2021-09-19T16:05:10
2021-09-13T16:20:38
Python
UTF-8
Python
false
false
17,492
py
import logging import time from typing import Tuple, Dict, List, Optional, Set from clvm import SExp from olive.consensus.cost_calculator import NPCResult from olive.consensus.condition_costs import ConditionCost from olive.full_node.generator import create_generator_args, setup_generator_args from olive.types.blockch...
[ "87711356+Olive-blockchain@users.noreply.github.com" ]
87711356+Olive-blockchain@users.noreply.github.com
84ec594f8624640b12420b289697b98165eb129d
f0a62605171bc62eb68dd884c77cf146657ec5cb
/library/f5bigip_ltm_monitor_soap.py
82c1972e1d3fdc6839c472d393fc326641e76ce1
[ "Apache-2.0" ]
permissive
erjac77/ansible-role-f5
dd5cc32c4cc4c79d6eba669269e0d6e978314d66
c45b5d9d5f34a8ac6d19ded836d0a6b7ee7f8056
refs/heads/master
2020-04-06T08:13:14.095083
2020-02-16T23:44:13
2020-02-16T23:44:13
240,129,047
3
1
null
null
null
null
UTF-8
Python
false
false
7,822
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2016 Eric Jacob <erjac77@gmail.com> # # 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 #...
[ "erjac77@gmail.com" ]
erjac77@gmail.com
84c3509be2e56001daedb1739428049bbe0fb6a3
441b9d601c5e6b860a11bf579f97406bf6c2a2b9
/tests/testServerManager.py
e4ace767c7e6e9a3c60aaf1ecb282ca7e9c24f3d
[ "MIT" ]
permissive
YunjeongLee/SBstoat
7885d5604dbfd10efa79ad71823a6835e19c53c4
31b184176a7f19074c905db76e6e6ac8e4fc36a8
refs/heads/master
2023-04-14T21:48:41.499046
2021-04-15T18:48:00
2021-04-15T18:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,303
py
# -*- coding: utf-8 -*- """ Created on March 23, 2021 @author: joseph-hellerstein """ import SBstoat._serverManager as sm from SBstoat.logs import Logger import multiprocessing import numpy as np import unittest IGNORE_TEST = False IS_PLOT = False SIZE = 10 PRIME_SIZES = [5, 10, 15] class PrimeFinder(sm.Abstract...
[ "jlheller@uw.edu" ]
jlheller@uw.edu
ddd615787593b009450780201e0cdfe624fdb6ad
3d4318396b8433e36a144ea583158eb22807577a
/draft_sport/errors/error.py
ebe483be371232aa6ac701926151609590875d0f
[]
no_license
draft-sport/draft-sport-py
245ee567a3ddaf41bbb99d03f043f90ad5b6a49c
177fd438bc095cebcff5374bc6b1e815846617bb
refs/heads/master
2023-03-11T16:56:29.415427
2021-03-01T09:59:46
2021-03-01T09:59:46
233,480,373
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
""" Draft Sport Error Module author: hugh@blinkybeach.com """ class DraftSportError(Exception): def __init__(self, description: str) -> None: self._description = description super().__init__(self) return
[ "hugh.jeremy@gmail.com" ]
hugh.jeremy@gmail.com
e04d8140783f99b3785e3582764225a6bec4efbc
764d00352d9ec82146c1e5c99d52c25e4a509493
/contacts/urls.py
fe867bf3f0b98021a004addcfe340b169b84091e
[]
no_license
RedSnip8/Premier_Properties
af0e60545138e28deb71430cbc93a53b32466383
c0f4058eb7a965f20c7c585d62da0dff98e2ba25
refs/heads/master
2020-07-04T23:11:40.154958
2019-10-03T01:14:29
2019-10-03T01:14:29
202,452,788
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
from django.urls import path from . import views urlpatterns = [ path('contact', views.contact, name='contact') ]
[ "FCipolone@gmail.com" ]
FCipolone@gmail.com
890e70bce6655c521ab1f813287934355db57ca2
65b087722e7824abbb134e56ab0dad1982369a4d
/server/start_consuming.py
c05f39eee6e5e81844cd2eb01df3e97330585756
[]
no_license
BabyCakes13/SMS
3c35abf2aea7619a579af2bb708819676068f918
db8b8cd05bd47ee99abcc8660453edf7fce1c7a1
refs/heads/master
2020-03-26T15:13:05.380050
2018-08-23T16:48:46
2018-08-23T16:48:46
145,028,793
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
"""Module which takes the packets from the RabbitMQ and stores them in the database.""" import json import threading import pika from util import reader, strings from server import database class RabbitThread(threading.Thread): """Class which handles the packets fromm the RabbitMQ queue.""" def __init__(self...
[ "you@example.com" ]
you@example.com
8baa1d5b6b25d9c56f6939f1e56070b151d51539
8f3336bbf7cd12485a4c52daa831b5d39749cf9b
/Python/total-hamming-distance.py
c67638d43a8288635242506fcc0908db31353a52
[]
no_license
black-shadows/LeetCode-Topicwise-Solutions
9487de1f9a1da79558287b2bc2c6b28d3d27db07
b1692583f7b710943ffb19b392b8bf64845b5d7a
refs/heads/master
2022-05-30T22:16:38.536678
2022-05-18T09:18:32
2022-05-18T09:18:32
188,701,704
240
110
null
2020-05-08T13:04:36
2019-05-26T15:41:03
C++
UTF-8
Python
false
false
405
py
# Time: O(n) # Space: O(1) class Solution(object): def totalHammingDistance(self, nums): """ :type nums: List[int] :rtype: int """ result = 0 for i in xrange(32): counts = [0] * 2 for num in nums: counts[(num >> i...
[ "noreply@github.com" ]
black-shadows.noreply@github.com
9d6a5a5dcd5c8a9cf43c18f8cebde2d13d895a4d
6d91104de3e00649659774e9ea27a6e01ddc1aae
/supervised_learning/0x0F-word_embeddings/0-bag_of_words.py
1689de9bb859099c2fda01c1afea7a429c1a9197
[ "MIT" ]
permissive
linkem97/holbertonschool-machine_learning
07794bdd318323395f541d3568946ec52e7632da
58c367f3014919f95157426121093b9fe14d4035
refs/heads/master
2023-01-24T13:04:54.642014
2020-11-24T00:37:58
2020-11-24T00:37:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
#!/usr/bin/env python3 """This module has the function bag_of_words""" from sklearn.feature_extraction.text import CountVectorizer def bag_of_words(sentences, vocab=None): """ This function creates a bag of words sentences is a list of sentences to analyze vocab is a list of the vocabulary words to us...
[ "pauloan@hotmail.com" ]
pauloan@hotmail.com
4622d9ee12f9a207db4e0ef4ad15d1eba124b5a7
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5640146288377856_1/Python/xyang/A.py
7020507bdf0be002df2ee122f2d27c345aa2b207
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
756
py
import os import math import copy import sys from collections import * os.chdir('/Users/Dana/Documents/0502') f = open('A-large.in','r') fo = open('A.out','w') T = int(f.readline()) for ite in range(T): temp = str.split(f.readline()) r,c,w = int(temp[0]),int(temp[1]),int(temp[2]) #print(r,c,...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
c6cd28474478f73a3bc51fcb68b3d5beb42c4047
f4e45e2f6a6c42571eefdc64773ca83c6b9c2b98
/plugin/ffmpeg/__init__.py
26a6e7be616deec5bdf3aa9046fff3a7812e6609
[]
no_license
soju6jan2/sjva2_src_obfuscate
83659707ca16d94378b7eff4d20e5e7ccf224007
e2dd6c733bbf34b444362011f11b5aca2053aa34
refs/heads/master
2023-04-21T12:27:01.132955
2021-05-06T17:35:03
2021-05-06T17:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
from.plugin import blueprint,menu,plugin_load,plugin_unload,streaming_kill,get_video_info from.logic import Status,Logic from.interface_program_ffmpeg import Ffmpeg # Created by pyminifier (https://github.com/liftoff/pyminifier)
[ "cybersol@naver.com" ]
cybersol@naver.com
962181b4585ccce20349fd97c09591929722e74b
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/Nortel-MsCarrier-MscPassport-ModDprsQosMIB.py
4db37ebcc3f7b2f7c7201df8a7bd84cc25eefe6a
[ "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
9,822
py
# # PySNMP MIB module Nortel-MsCarrier-MscPassport-ModDprsQosMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-ModDprsQosMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:21:32 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user ...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
b0ea77467887d4c25a35a86d4536ec139fb5ce6d
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.4/tests/regressiontests/localflavor/id/tests.py
9ccf273a42571ec3e4d4b1a432a04ce08596c051
[]
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
111
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/localflavor/id/tests.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
7334b7f22281ae1338b4f47133b91bc70411827e
a7fa51726bae15b197b7bb6829acd5139b6e3073
/feature_engineering/bl/steps/BackwardStepsDialogueFeatureEngineerImpl.py
1c7b054857e9458e86ecca93b5dd0640eaf34b8b
[]
no_license
Rmsharks4/NLPEngine-opensource
ae375dc9ea364de793d78ab1c9d950718a11d54a
7e384f6e13377723bb651130733a16ed53fe31d1
refs/heads/master
2023-02-27T17:45:38.592126
2021-02-01T20:59:16
2021-02-01T20:59:16
209,055,714
0
0
null
null
null
null
UTF-8
Python
false
false
2,059
py
from feature_engineering.utils.ActsUtils import ActsUtils from feature_engineering.bl.steps.StepsDialogueFeatureEngineerImpl import StepsDialogueFeatureEngineerImpl from feature_engineering.bl.intents import * from feature_engineering.bl.intents.AbstractDialogueIntent import AbstractDialogueIntent class BackwardSteps...
[ "Github12" ]
Github12
2bb7a17bad94a40501802812427b35990374e9f6
63bcca68dc75b77b737542925062effe37bc13c8
/fabfile/common.py
2e96fa7881425042dc6fc5ef658c350dcb0d0d33
[]
no_license
bekbossyn/dictionary
35b48b4a7b000156a52b8039917299fed0ac9284
1a9824ca9b450086a1c348c5f9fff0f967e9a282
refs/heads/master
2020-05-20T00:35:26.802693
2019-05-11T09:40:37
2019-05-11T09:40:37
185,290,434
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
from fabric.decorators import task from fabric.operations import sudo, run @task def git_pull(): """ Updates the repository """ run("cd /home/development/dictionary && git pull origin master") # @task # def celery_logs(): # """ # Updates the repository # """ # sudo("...
[ "bekbossyn.kassymkhan@gmail.com" ]
bekbossyn.kassymkhan@gmail.com
48f6953f51bce07b48d04d081601460c628880bf
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/dexy/commands/parsers.py
2ee73bab171b219f6839db2ac0a1c9c5dc0e2b59
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
990
py
from dexy.utils import defaults from dexy.commands.utils import dummy_wrapper from dexy.parser import AbstractSyntaxTree from dexy.parser import Parser def parsers_command(): wrapper = dummy_wrapper() ast = AbstractSyntaxTree(wrapper) processed_aliases = set() for alias in sorted(Parser.plugins): ...
[ "ana@ananelson.com" ]
ana@ananelson.com
7aa5c514d67bb18d16bfb52d70201a5b865b859b
00e82f0a744915630d0493b74af5c3ad03169bb6
/python/smqtk/web/search_app/modules/iqr/iqr_search.py
7145e39dab4622a8c8ec3418e57dd5f420c49818
[]
no_license
thezedwards/SMQTK
4f80dc1516e337ba572362302ee325f27ff127ab
f2ed51b41f61b62004a3e55d38f854427bc2d54a
refs/heads/master
2021-07-17T08:36:22.669270
2017-10-25T13:57:59
2017-10-25T13:57:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,511
py
""" IQR Search blueprint module """ import json import os import os.path as osp import random import shutil from StringIO import StringIO import zipfile import flask import PIL.Image from smqtk.algorithms.descriptor_generator import \ get_descriptor_generator_impls from smqtk.algorithms.nn_index import get_nn_in...
[ "paul.tunison@kitware.com" ]
paul.tunison@kitware.com
61236e4737fd1d3b8da61d4625c10e8b243ee089
d491b5e3f258c7b0bd503ee977ac74f4fb8f9812
/60.py
dcfa559f9a5a005756ee703fcfe2ffaf191735b6
[]
no_license
AishwaryaKaminiRajendran/Aishu
89280c987fdcb55537acd9311894950912f713f0
c27c82e30a82ffa20abbad9a4333388b3d14587e
refs/heads/master
2020-04-15T05:10:43.450336
2019-05-20T09:47:44
2019-05-20T09:47:44
164,411,791
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
k=int(input()) s=0 for i in range(1,k+1): s=s+i print(s)
[ "noreply@github.com" ]
AishwaryaKaminiRajendran.noreply@github.com
f5ee7e5132c1a686ff3d2503c9dadfdd7382a6fc
eb5857487dff2655a0228a9ca7024b54e6b1e061
/solutions/2022/kws/aoc_2022_kws/day_14.py
7dc12f45d0103d2220c1646b839de1e1b3b41af8
[ "MIT" ]
permissive
SocialFinanceDigitalLabs/AdventOfCode
8690db87dedb2898db37704c6fcf8526f7ea8d2e
4af7c27f1eb514ed805a402dc4635555e495bd1c
refs/heads/main
2023-02-19T16:23:12.195354
2022-12-28T09:54:50
2022-12-28T09:54:50
159,806,963
2
4
MIT
2023-08-30T00:02:24
2018-11-30T10:25:06
Jupyter Notebook
UTF-8
Python
false
false
5,379
py
from contextlib import contextmanager from enum import Enum from typing import Generator, List, Text import click from aoc_2022_kws.cli import main from aoc_2022_kws.config import config from rich.live import Live class CoordinateType(Enum): ROCK = "#" SAND = "o" UNREACHABLE = "-" class Coordinate: ...
[ "kaj@k-si.com" ]
kaj@k-si.com
af46777b4d6e2311448c22027c268d417315ad5e
d897c2bc4ba9a84e7e8a2fe3e998d78cd116f920
/conta_multipli/att/conta_multipli_template_sol.py
ec1a507bb856a8d52ddd89b12cfcc45080cbd11a
[]
no_license
romeorizzi/problemsCMS_for_LaboProg
8907622744bc89752391024f24025a7e9706501b
027b1b204efe602461e93d8b1c194a09eb6526cd
refs/heads/master
2020-04-03T17:33:52.384915
2020-03-25T07:10:17
2020-03-25T07:10:17
155,449,755
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
# -*- coding: utf-8 -*- # Template di soluzione per il problema conta_multipli from __future__ import print_function import sys if sys.version_info < (3, 0): input = raw_input # in python2, l'equivalente di input è raw_input # INIZIO area entro la quale ti consigliamo di operare. # Ecco la funzione che spetta a...
[ "romeo.rizzi@univr.it" ]
romeo.rizzi@univr.it
bdf57ae8440dbf93e1bc6eddc1f9701310ee943d
ac56934de4f66f5ad56193209f5fd669e1d34167
/holecard_handicapper/model/sample_sin_fitting/data_reader.py
1042c1c482cb3b23c983288c670e8e4550bc0ded
[]
no_license
ishikota/_HoleCardHandicapper
54a4310c32956baecfa21bee6c72007da091c25b
6a0674404698f22e208ca0e4c0a870ff0f34f2dd
refs/heads/master
2021-05-03T07:52:18.077756
2016-06-27T07:21:07
2016-06-27T07:21:07
60,923,502
1
0
null
null
null
null
UTF-8
Python
false
false
470
py
import numpy as np def load_data(file_path, test_ratio): num_training, num_testing, sigma, seed = 400, 100, 0.3, 0 def sin(x): return np.sin(x)*3+1 N = num_training + num_testing tau=4*np.pi np.random.seed(seed) X = np.random.random((N,1))*tau Y = sin(X)+np.random.normal(0,sigma,(N,1)) I = np.ara...
[ "ishikota086@gmail.com" ]
ishikota086@gmail.com
2f5f17015373e413acca75e653c2af857f16dd4d
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res_bw/scripts/common/lib/json/tests/test_fail.py
62e191830eb6c23db772e05ba90fd4cca92e450c
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,304
py
# 2015.11.10 21:36:30 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/json/tests/test_fail.py from json.tests import PyTest, CTest JSONDOCS = ['"A JSON payload should be an object or array, not a string."', '["Unclosed array"', '{unquoted_key: "keys must be quoted"}', '["extra comma",]', '["doub...
[ "info@webium.sk" ]
info@webium.sk
6c2ffeac03adb70f34b7c11bb93bedc336920023
0822d36728e9ed1d4e91d8ee8b5ea39010ac9371
/robo/pages/acre/pagina20_politica.py
03057626a23722d2c1352c9539c8933c4e907622
[]
no_license
diegothuran/blog
11161e6f425d08bf7689190eac0ca5bd7cb65dd7
233135a1db24541de98a7aeffd840cf51e5e462e
refs/heads/master
2022-12-08T14:03:02.876353
2019-06-05T17:57:55
2019-06-05T17:57:55
176,329,704
0
0
null
2022-12-08T04:53:02
2019-03-18T16:46:43
Python
UTF-8
Python
false
false
911
py
# coding: utf-8 import sys sys.path.insert(0, '../../../blog') from bs4 import BeautifulSoup import requests from robo.pages.util.constantes import PAGE_LIMIT GLOBAL_RANK = 1306322 RANK_BRAZIL = None NAME = 'pagina20.net' def get_urls(): try: urls = [] for i in range(1,PAGE_LIMIT): i...
[ "diego.thuran@gmail.com" ]
diego.thuran@gmail.com
8194dad6dd0e415b6afedc496cab4a6f3c488433
924763dfaa833a898a120c411a5ed3b2d9b2f8c7
/compiled/python/zlib_with_header_78.py
8eef421ed619a14bff098297e52e60abc6bd9cd0
[ "MIT" ]
permissive
kaitai-io/ci_targets
31257dfdf77044d32a659ab7b8ec7da083f12d25
2f06d144c5789ae909225583df32e2ceb41483a3
refs/heads/master
2023-08-25T02:27:30.233334
2023-08-04T18:54:45
2023-08-04T18:54:45
87,530,818
4
6
MIT
2023-07-28T22:12:01
2017-04-07T09:44:44
C++
UTF-8
Python
false
false
744
py
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild # type: ignore import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO import zlib if getattr(kaitaistruct, 'API_VERSION', (0, 9)) < (0, 9): raise Exception("Incompatible Kaitai Struct Pyth...
[ "kaitai-bot@kaitai.io" ]
kaitai-bot@kaitai.io
3b7bce198346d439703494bd74c2c46bef4a5270
d488f052805a87b5c4b124ca93494bc9b78620f7
/google-cloud-sdk/lib/googlecloudsdk/command_lib/deployment_manager/flags.py
d4cbf34227cc379f368deb83d40bbb690841c6b0
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
PacktPublishing/DevOps-Fundamentals
5ce1fc938db66b420691aa8106ecfb3f9ceb1ace
60597e831e08325c7e51e8557591917f7c417275
refs/heads/master
2023-02-02T04:48:15.346907
2023-01-30T08:33:35
2023-01-30T08:33:35
131,293,311
13
19
null
null
null
null
UTF-8
Python
false
false
4,189
py
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "saneetk@packtpub.com" ]
saneetk@packtpub.com
4bbf5176a2819bc143b1ee92a6c2f72dd3b570b1
d6bf3302b826127a9d2f08bbd05947cbb9d342c6
/symmetry_1/encrypt.py
b2978c73f33e432efc322710c5513fbf23979a6f
[]
no_license
velocitystorm/ctf-crypto-tasks
03add82d00bbf28f45955e153d4c5585e1a2647a
50a2ea2019bc7798a85d5bcbb6e04ebd91f9a51b
refs/heads/master
2021-01-19T07:10:34.714655
2014-04-16T19:57:08
2014-04-16T19:57:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
#!/usr/bin/env python3 def encrypt(data, key): return bytes([octet ^ key for octet in data]) print('Enter a key: ') key = input() key = ord(key[0]) print('Enter a message: ') message = input().strip().encode('ascii') # convert from str to bytes encrypted = encrypt(message, key) fout = open('message.encrypted'...
[ "cxielamiko@gmail.com" ]
cxielamiko@gmail.com
b3d6568aadebae72d49ae2424c19d1cd3db5d59f
c46fba793dc4c2eb4aa7886ca1b29d2c444dddb9
/tests/test_config_validators.py
b18d531cd0c58283a79c08ca805a7ab26ac0a973
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
digideskio/vodka
7ffcc408df3571db9bb143674db51554ddd34674
86a4efa0e1666902771459c8727680888026eac5
refs/heads/master
2021-01-12T17:49:58.576348
2016-10-11T09:36:40
2016-10-11T09:36:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
import unittest import vodka.config.validators class TestConfigValidators(unittest.TestCase): def test_path_validator(self): b,d = vodka.config.validators.path(__file__) self.assertEqual(b, True) def test_host_validator(self): b,d = vodka.config.validators.host("host:1") ...
[ "stefan@20c.com" ]
stefan@20c.com
cd7c4627c1549a2026c52188d64d165e6a522a59
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_inspirational.py
99cfc99ffa1a858152258d1937a20cad880aa545
[ "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
416
py
#calss header class _INSPIRATIONAL(): def __init__(self,): self.name = "INSPIRATIONAL" self.definitions = [u'making you feel full of hope or encouraged: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jso...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
6856f767fdb17749139555eee6cacdc1dc9e16fe
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/pronouns/_one.py
f591a8a6acc6b3fb2f2a28d9dd49ebe3efe3e975
[ "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
645
py
#calss header class _ONE(): def __init__(self,): self.name = "ONE" self.definitions = [u'used to refer to a particular thing or person within a group or range of things or people that are possible or available: ', u'to never do something: ', u'to like something very much: ', u'used to talk about one person or t...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
25f3d296f6e6657fadb469b39bcae1f882399891
8fd11d010b550144c62e2cf0ead5a89433ba56e9
/bin/switch_kerasbackend
24a63df2ae7d764d28adf5073bf310ea7ddd30ab
[]
no_license
Shaar68/PyShortTextCategorization
3d47d4fc1996eab61fc8cf2ce8d37c0ef9188931
189a57da34c52aab1dbd8dcf4145c2dbb120f5af
refs/heads/master
2021-04-15T18:46:47.014156
2017-06-16T20:59:15
2017-06-16T20:59:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
701
#!/usr/bin/env python # Secret code. Welcome for those who find this code. # argument parsing import argparse def getargparser(): parser = argparse.ArgumentParser(description='Switch Keras backend') parser.add_argument('backend', help="Backend ('theano' or 'tensorflow')") return parser parser = getargpa...
[ "stephenhky@yahoo.com.hk" ]
stephenhky@yahoo.com.hk
d4c9d97370dc85989351e566c68172584c50c648
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/proc/applicationcpuhist1d.py
6a2802b96d01809c6eafddd1912732742c234f2a
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
10,887
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
85904490e01b299c684985a2b352b9b0ad3e7072
8f588e8c1502d468689732969c744ccca2055106
/Python/Programmers/Lv2/n진수게임.py
cf3b9d5062511cb56acb7c560b8dec42a700682d
[]
no_license
5d5ng/ForCodingTest
96751c969c2f64d547fe28fa3e14c47c2943947b
3742c1b38bf00dd4768a9c7ea67eca68844b4a14
refs/heads/master
2023-01-04T14:18:40.874764
2020-11-02T06:15:05
2020-11-02T06:15:05
222,054,009
2
0
null
null
null
null
UTF-8
Python
false
false
793
py
def solution(n,t,m,p): answer = replace(n,m*t) res = "" for i in range(p-1,len(answer),m): res+=answer[i] if len(res)==t:return res def replace(n,size): # size까지 num = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'] lst = ['0','1'] start = 2 while(len(lst)...
[ "deo1915@gmail.com" ]
deo1915@gmail.com
46fd526660dbfc019853fabd462a7d73dbe53b03
07c75f8717683b9c84864c446a460681150fb6a9
/3.Flask_cursor/days01快速入门/demo01.py
329e98f279655b1c6e44cf5da068fc75cba4249c
[]
no_license
laomu/py_1709
987d9307d9025001bd4386381899eb3778f9ccd6
80630e6ac3ed348a2a6445e90754bb6198cfe65a
refs/heads/master
2021-05-11T09:56:45.382526
2018-01-19T07:08:00
2018-01-19T07:08:00
118,088,974
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
''' Flask继承了Django和Tornado的部分优点 在高并发处理上,类似于Django通过多线程的方式实现 在编程处理上,类似于Tornado通过手工编码的方式实现web application ''' # 引入需要的模块 from flask import Flask # 核心处理模块 # 通过当前文件构建一个app应用 ~~ 当前文件就是 web app程序的入口 app = Flask(__name__) # 定义视图处理函数~路由+视图函数->加载到 app 中 @app.route("/") # 访问路由 def index(): # 绑定的视图函数 return "<h1>h...
[ "1007821300@qq.com" ]
1007821300@qq.com
b887636efed3ae71e7e0660b52fbac0e6d3d6873
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/65/usersdata/219/38632/submittedfiles/investimento.py
3a87d2cb906049101a01605e976893fc0fa25aca
[]
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
327
py
# -*- coding: utf-8 -*- from __future__ import division #COMECE SEU CODIGO AQUI deposito=float(input('Digite o deposito:')) taxa=float(input('Digite a taxa:')) investimento=float(input('Digite o investimento:')) mês=1 while mes <= 10: investimento=investimento+taxa*investimento print('%d/%d/%d/%d/%d/%d/%d/%d/%...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
7ad96ac8ed482fde22e8b199d879255e63f17260
b1d92172726262fc89f9a0c4a9e4888ebc91009e
/leetcode/easy/Interleave.py
1c493d3f57046482b48177ea177b563573da49bb
[]
no_license
SuperMartinYang/learning_algorithm
0c5807be26ef0b7a1fe4e09832f3ce640cd3172b
e16702d2b3ec4e5054baad56f4320bc3b31676ad
refs/heads/master
2021-06-27T14:00:18.920903
2019-05-05T23:25:29
2019-05-05T23:25:29
109,798,522
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
def isInterleave(word1, word2, word3): ''' word1= 'asdf' word2 = 'sadfa' word3 = 'assaddffa' :param word1: str :param word2: str :param word3: str :return: bool ''' if word3 == '': if word1 == word2 == '': return True else: return False ...
[ "shy58@pitt.edu" ]
shy58@pitt.edu
f1409870e136171b9f35c5745ceba8d628968f1d
b27b26462524984951bfbab9250abd145ecfd4c8
/Demoing/stage_two/hawaii/craigslist_sample/craigslist_sample/spiders/craigslist_spider.py
4a8ff1b9c951d8f06a9a0049a23b24525323045a
[]
no_license
afcarl/fastTraffickingGrab
cb813d066f1f69f359598e0b55e632dafd273c89
9ff274cb7c9b6c7b60d1436c209b2bfc5907267d
refs/heads/master
2020-03-26T06:21:21.404931
2014-08-16T12:38:29
2014-08-16T12:38:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,648
py
from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from craigslist_sample.items import CraigslistSampleItem class CraigslistSpider(CrawlSpider): name = "craigslist" allowed_domains = ["craigslist....
[ "ericschles@gmail.com" ]
ericschles@gmail.com
e1e57f455f8052ec8a259620b247dbb9611debba
71d4fafdf7261a7da96404f294feed13f6c771a0
/mainwebsiteenv/bin/python-config
34a5b39d2ea832da34c02d5012684422e32075af
[]
no_license
avravikiran/mainwebsite
53f80108caf6fb536ba598967d417395aa2d9604
65bb5e85618aed89bfc1ee2719bd86d0ba0c8acd
refs/heads/master
2021-09-17T02:26:09.689217
2018-06-26T16:09:57
2018-06-26T16:09:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,434
#!/home/kiran/mainwebsite/mainwebsiteenv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags')...
[ "me15btech11039@iith.ac.in.com" ]
me15btech11039@iith.ac.in.com
4b5c8b490bfaa7cd67402657c4020db410bde51b
fb7b6a0d43c524761f5251273d14f317e779c5f0
/rxbp/observables/fromiteratorobservable.py
bd223651a12680dd7c80c263f7fb1e32727ef164
[ "Apache-2.0" ]
permissive
MichaelSchneeberger/rxbackpressure
e7396b958d13e20377375f4b45a91a01f600595a
470d36f729ef9dc001d0099cee45603d9c7f86a3
refs/heads/master
2022-08-26T10:12:05.164182
2022-08-21T12:21:15
2022-08-21T12:21:15
109,152,799
32
1
Apache-2.0
2021-03-09T12:47:23
2017-11-01T16:05:20
Python
UTF-8
Python
false
false
4,732
py
from typing import Iterator, Any, Optional from rx.disposable import Disposable, BooleanDisposable, CompositeDisposable from rxbp.acknowledgement.continueack import ContinueAck from rxbp.acknowledgement.operators.observeon import _observe_on from rxbp.acknowledgement.single import Single from rxbp.acknowledgement.sto...
[ "michael.schneeb@gmail.com" ]
michael.schneeb@gmail.com
4355cddb4a6bf72e8a7bb7c5cbf43fd7937c39d7
52c705205b243016c90757ed9d7332840277ce11
/atracoes/migrations/0003_atracao_observacoes.py
ab7a3c8d0152bbe7326dde69447851f31aebcec9
[]
no_license
lssdeveloper/pontos_turisticos
eb943549cb18561205818dcfb8c624bba32c7100
24852ca1b35795db876219a7a3439f496866d3d5
refs/heads/main
2023-04-03T10:24:22.000414
2021-04-15T20:13:02
2021-04-15T20:13:02
355,312,899
1
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 3.1.7 on 2021-04-15 17:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('atracoes', '0002_atracao_foto'), ] operations = [ migrations.AddField( model_name='atracao', name='observacoes', ...
[ "leandro.serra.10@gmail.com" ]
leandro.serra.10@gmail.com
d9a18dc79e3f78292de7283cc85150a6221a6818
07841826ed64a7c6a21b79728f73748ac70dbbc1
/1.2.2.py
32cd6c3c38b89f023dcf0a64b287b3421998c263
[]
no_license
riley-csp-2019-20/1-2-2-catch-a-turtle-leaderboard-illegal-Loli
772859d28ae3b7b8d003febd1c57fd79b55907dc
8648a790e039044b3ce722a53a8ec42e45d42488
refs/heads/master
2020-09-06T01:58:27.621209
2019-12-12T16:11:22
2019-12-12T16:11:22
220,279,845
0
0
null
null
null
null
UTF-8
Python
false
false
2,622
py
# a121_catch_a_turtle.py #-----import statements----- import turtle as trtl import random import leaderboard as lb #-----game configuration---- shape = "square" size = 2 color = "brown" score = 0 font_setup = ("Arial", 20, "normal") timer = 10 counter_interval = 1000 #1000 represents 1 second timer_up ...
[ "noreply@github.com" ]
riley-csp-2019-20.noreply@github.com
fffaea4b5fab14b8a13db2f9f03a3f89301b5981
6f2d5600b65b062151bab88c592796b878de7465
/Week_3/Class_0226/Function_2_tuple.py
7e1d6989619b585a1d0dc0ad18f1c32533c6f469
[]
no_license
zhouyanmeng/python_api_test
1e6549321c20ee9a71beffac2533c917b5ecc157
7303352c9b5baacba5296b088f89ba4c702fb485
refs/heads/master
2022-12-17T14:34:26.351566
2019-03-01T13:02:06
2019-03-01T13:02:06
185,185,856
0
0
null
2022-12-08T01:45:15
2019-05-06T11:45:55
Python
UTF-8
Python
false
false
420
py
#####元组的内置函数 不可变元素,所有方法特别少 t=('rigth','sadness','灰灰的','柠檬','sadness','sadness') ####count统计数量的作用 res=t.count('A')###寻找元素出现的次数,在元组里面去找 print(res) ####index 找某个元素索引(位置) 找不到报错 默认1开始,可以指定个数 res=t.index("rigth") print(res)###0 res=t.index("sadness",3) print(res)###4
[ "2440269710@qq.com" ]
2440269710@qq.com
0dce4ec9766df4f4af8856792758ec7b7d60a045
adcbefa6cba639ec8c8eb74766b7f6cd5301d041
/coffeehouse_nlpfr/classify/textcat.py
32480de52dcff8dc955f48ed7948bedbc781b998
[]
no_license
intellivoid/CoffeeHouse-NLPFR
b39ae1eaeb8936c5c5634f39e0a30d1feece6705
8ad1b988ddba086478c320f638d10d0c0cacca4c
refs/heads/master
2022-11-28T02:13:40.670494
2020-06-07T04:02:00
2020-06-07T04:02:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,110
py
# -*- coding: utf-8 -*- # Natural Language Toolkit: Language ID module using TextCat algorithm # # Copyright (C) 2001-2019 NLTK Project # Author: Avital Pekker <avital.pekker@utoronto.ca> # # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ A module for language identification using the TextCat a...
[ "netkas@intellivoid.info" ]
netkas@intellivoid.info
29ac8c23f48db7c332612e98d5278bc97525532b
f462679e25ee5dbae2a761f0222bc547f7b9da65
/srcPython/find_in_read_input_order_variables.py
eef10b72dc50717672eed015c118913b304cf040
[ "Apache-2.0" ]
permissive
FengYongQ/spock
f31a2f9cac58fbb1912f8e7b066b5318e0223835
08c01c01521429a70b5387e8769558e788f7cd3e
refs/heads/master
2021-06-13T03:09:23.903196
2020-01-25T03:32:41
2020-01-25T03:32:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
992
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "bussyvirat@gmail.com" ]
bussyvirat@gmail.com
a60f708732cd173bb315e5f8aac3373e5d378180
31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6
/language/python_27/built_in_functions/xrange_.py
7bdc6a3472b618b41017ab38268da7e639255b1c
[]
no_license
tpt5cu/python-tutorial
6e25cf0b346b8182ebc8a921efb25db65f16c144
5998e86165a52889faf14133b5b0d7588d637be1
refs/heads/master
2022-11-28T16:58:51.648259
2020-07-23T02:20:37
2020-07-23T02:20:37
269,521,394
0
0
null
2020-06-05T03:23:51
2020-06-05T03:23:50
null
UTF-8
Python
false
false
713
py
# https://docs.python.org/2/library/functions.html#xrange def use_xrange(): ''' The xrange() function is totally different from the range() function. It does not return a list. I can think of it as a generator. It has the same method signature as range() ''' x = xrange(1, 10) print(x) # xrange...
[ "uif93194@gmail.com" ]
uif93194@gmail.com
d3205bd4ff23c60c90c8e9f539e38a4470e037fe
e77c683da89f4705b015e76f02486e7001d82697
/kubernetes/client/models/v2_hpa_scaling_rules.py
c045f5d4dc20f9d483698b3f271d1b66d608fde0
[ "Apache-2.0" ]
permissive
Sandello76/python-2
4027901d7a9a7d451146fafb844f242708784999
e5f4520522681a8ec50052991d6226296dc0fb5e
refs/heads/master
2023-01-21T11:17:31.697036
2022-04-12T11:43:35
2022-04-12T11:43:35
169,290,597
0
0
Apache-2.0
2023-01-13T03:11:56
2019-02-05T18:29:08
Python
UTF-8
Python
false
false
6,818
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.23 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
[ "yliao@google.com" ]
yliao@google.com
cc31a73155bf7a1396a114b82259e779537e8ff9
9c63f6d39a6085674ab42d1488476d0299f39ec9
/Python/LC_Kth_Largest_Element_in_an_Array.py
7c993647bd88be65ae4b55dc5b44039e08b71761
[]
no_license
vijayjag-repo/LeetCode
2237e3117e7e902f5ac5c02bfb5fbe45af7242d4
0a5f47e272f6ba31e3f0ff4d78bf6e3f4063c789
refs/heads/master
2022-11-14T17:46:10.847858
2022-11-08T10:28:30
2022-11-08T10:28:30
163,639,628
1
0
null
null
null
null
UTF-8
Python
false
false
474
py
class Solution(object): def findKthLargest(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ # Solution 1 # There are different variations which you can do with heap. This is one of the smallest along with heapq.nlargest() ...
[ "noreply@github.com" ]
vijayjag-repo.noreply@github.com
a277e9f184cbf53ef869869269365cfe9e69fd90
fa51b088ea761b78cf0c85837fabaa0b7035b105
/automl/snippets/language_sentiment_analysis_create_model.py
40262aa4f637ba15df8f0e51fd488a2a48593cab
[ "Apache-2.0" ]
permissive
manavgarg/python-docs-samples
f27307022092bc35358b8ddbd0f73d56787934d1
54b9cd6740b4dbc64db4d43a16de13c702b2364b
refs/heads/master
2023-02-07T21:18:15.997414
2023-01-28T18:44:11
2023-01-28T18:44:11
245,290,674
0
0
Apache-2.0
2020-03-05T23:44:17
2020-03-05T23:44:16
null
UTF-8
Python
false
false
1,697
py
# Copyright 2020 Google LLC # # 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 in writing, so...
[ "71398022+dandhlee@users.noreply.github.com" ]
71398022+dandhlee@users.noreply.github.com
15abe88a6ca070e5627b56fbc2a2561be4740ffb
1bfb4df83565da98e0b7a2d25915370732b94b6a
/atcoder/abc188/e.py
99f51f748eedd29f80e5a5a8462729e68334a149
[ "MIT" ]
permissive
sugitanishi/competitive-programming
e8067090fc5a2a519ef091496d78d3154be98a2b
51af65fdce514ece12f8afbf142b809d63eefb5d
refs/heads/main
2023-08-11T02:48:38.404901
2021-10-14T14:57:21
2021-10-14T14:57:21
324,516,654
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
import sys sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() n,m=map(int,input().split()) a=list(map(int,input().split())) dic=[ [[],-999999999999] for i in range(n)] for i in range(m): x,y=map(int,input().split()) x-=1 y-=1 dic[x][0].append(y) ans = -999999999999 for i in...
[ "keita.abi.114@gmail.com" ]
keita.abi.114@gmail.com
30b3686a98f972e2165cd478547a8747479f63d1
8100f7895b257d15f19ca41f3ace9849647e49f8
/kademlia/tests/test_routing.py
ecaf1ae63b4f57035578d0f86aa3bba57fb66c94
[ "MIT" ]
permissive
bmcorser/kademlia
90cac70a2853a759cf55d0651fbb125c50a5f5f5
c6f1062082d7e3cb8b5af53bcc672b138848b337
refs/heads/master
2021-01-17T04:51:37.439919
2014-12-26T19:57:43
2014-12-26T19:57:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,856
py
from twisted.trial import unittest from kademlia.routing import KBucket, RoutingTable from kademlia.protocol import KademliaProtocol from kademlia.tests.utils import mknode, FakeProtocol class KBucketTest(unittest.TestCase): def test_split(self): bucket = KBucket(0, 10, 5) bucket.addNode(mknode(i...
[ "bamuller@gmail.com" ]
bamuller@gmail.com
3925169a07bd92641cd6ea6064b96ecd6c232bde
d93c91e904470b46e04a4eadb8c459f9c245bb5a
/banglore_scrape/acresrent/acresrent/items.py
a1fc474292c3702617c42d5875f953929b5aaf90
[]
no_license
nbourses/scrappers
3de3cd8a5408349b0ac683846b9b7276156fb08a
cde168a914f83cd491dffe85ea24aa48f5840a08
refs/heads/master
2021-03-30T15:38:29.096213
2020-03-25T03:23:56
2020-03-25T03:23:56
63,677,541
0
1
null
null
null
null
UTF-8
Python
false
false
1,429
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class AcresrentItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() carpet_area = scrapy.Field() upda...
[ "karanchudasama1@gmail.com" ]
karanchudasama1@gmail.com
3a1be8b5f004ecaa5b1073b7bea1ccae15e324b7
40c4b8e9ac9074869bfb0dc1d3c3f566371f1764
/Hangman1/rectangle3.py
7082113cadbd1e910a7297d1e81a0b0631f390f4
[]
no_license
katuhito/Hangman001
870a8827e69cbd9a8b01ffb55f5c499c71861b76
710a201c6ad8284e164ea8ad26cd061486c50849
refs/heads/master
2022-12-06T16:30:24.613288
2020-08-22T10:19:27
2020-08-22T10:19:27
285,448,433
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
class Rectangle: def __init__(self, w, l): self.width = w self.len = l def print_size(self): print("{} by {}".format(self.width, self.len)) my_rectangle = Rectangle(10, 24) my_rectangle.print_size()
[ "katuhitohara@gmail.com" ]
katuhitohara@gmail.com
a2b1d622e04da9f379ad7dec5d7160a7df4cb382
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/5220.py
3953bab56b760965dae521faab27b88c6280402e
[]
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
287
py
f = open("test.txt") o = open("final.txt", 'w') t = int(f.readline()) for i in range(t): n = int(f.readline()) while n>0: if int(''.join(sorted(list(str(n))))) == n: o.write("Case #{}: {}\n".format(i+1,n)) break else: n -= 1
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
bbf1b8bfc58b8fa0bb3231f35c168ee5235006e9
0fea8a6421fe5f5967f2202910022c2bfd277b4d
/190.生成字典.py
51461ae593ab4ecd836413dd315ba3b0b9c3f9a8
[]
no_license
maohaoyang369/Python_exercise
4dc10ec061aa0de2bcfe59c86be115e135fb3fab
8fbee8854db76d09e2b1f9365ff55198ddabd595
refs/heads/master
2020-04-09T23:04:02.327118
2019-09-05T14:49:07
2019-09-05T14:49:07
160,646,057
0
2
null
2019-03-21T14:44:13
2018-12-06T08:50:19
Python
UTF-8
Python
false
false
498
py
# !/usr/bin/env python # -*- coding: utf-8 -*- # 生成字典{“a”:1,”c”:3,”e”:5,”g”:7,”i”:9} import string letters = string.ascii_letters[0:9] result = {} for i in range(0, len(letters), 2): result[letters[i]] = i+1 print(result) # 将以上字典的key和value拼接成字符串,不能使用字符串连接符(+) sentence = {'a': 1, 'c': 3, 'e': 5, 'g': 7, 'i': ...
[ "372713573@qq.com" ]
372713573@qq.com
9848f1253781378294034070b41e90cb3b18980e
524b2ef7ace38954af92a8ed33e27696f4f69ece
/montecarlo4fms/utils/mctsstats_its.py
9a7cf4b70cb928340f7e17db07c8bbccd33a7734
[]
no_license
jmhorcas/montecarlo_analysis
ebf9357b0ede63aa9bcdadb6a5a30a50ad7460eb
2319838afb0f738125afc081fc4b58a0d8e2faee
refs/heads/main
2023-06-24T19:05:36.485241
2021-07-20T08:24:06
2021-07-20T08:24:06
363,059,338
0
0
null
null
null
null
UTF-8
Python
false
false
1,978
py
from montecarlo4fms.models import State class MCTSStatsIts(): """Iterations stats""" ROUND_DECIMALS = 2 METHOD_STR = 'Method' ITERATIONS_STR = 'Iterations' STEPS_STR = 'Decisions' SIMULATIONS_STR = 'Simulations' EVALUATIONS_STR = 'Evaluations' POSITIVE_EVALUATIONS_STR = 'PositiveEval...
[ "jhorcas@us.es" ]
jhorcas@us.es
7e2aca3f77a73d466a4da4a18a7e0bc5683a0fe4
3c30d27bf5856dcdbc689dd01ed12ae007fc5b07
/dorandoran/config/settings/__init__.py
02f06ea5d084ca462743c9fabf93e6fe6b7766ef
[]
no_license
Doran-Doran-development/DoranDoran-Server-2
047ff79a6cc472364b2bf6507d89617832e1571c
6340af1b887e08270bee0e13029ee41df7dfeb1e
refs/heads/master
2023-06-06T14:44:27.891110
2021-05-19T15:05:14
2021-05-19T15:05:14
346,971,795
11
0
null
2021-06-11T01:00:18
2021-03-12T06:58:34
Python
UTF-8
Python
false
false
160
py
import os SETTINGS_MODULE = os.environ.get("DJANGO_SETTINGS_MODULE") if not SETTINGS_MODULE or SETTINGS_MODULE == "config.settings": from .local import *
[ "hanbin8269@gmail.com" ]
hanbin8269@gmail.com
3dbbc772a56fbcb69c3df9317f21fe380939b860
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/02_preprocessing/merraLagScripts/392-tideGauge.py
bf4ff8cf2ba0191d209994b7caa2338c79b66107
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
3,772
py
# -*- coding: utf-8 -*- """ Created on Tue Mar 31 17:12:23 2020 **************************************************** Load predictors & predictands + predictor importance **************************************************** @author: Michael Tadesse """ #import packages import os import pandas as pd import datetime a...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
415734380444d4ca699f0a861cd5aedd158602cc
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/577484_PRNG_Test/recipe-577484.py
5f08e97722809089c21f45f274f0c10b6d28c1c0
[ "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
1,669
py
# PRNG (Pseudo-Random Number Generator) Test # PRNG info: # http://en.wikipedia.org/wiki/Pseudorandom_number_generator # FB - 201012046 # Compares output distribution of any given PRNG # w/ an hypothetical True-Random Number Generator (TRNG) import math import time global x x = time.clock() # seed for the PRNG # PRNG ...
[ "betty@qburst.com" ]
betty@qburst.com
5bc210ee26a211924bd98164a908ca4bc641f7d4
53581b69990f5bab64ffb674a2a345a88add9313
/gen.py
9984c358a5c3c139e51a15c7d1b37316a23f564c
[ "MIT" ]
permissive
Dariusz1989/photoshop-docs
5fd79d004109970f71e392e94a3dd7de1884c1b4
02a26d36acfe158f6ca638c9f36d3e96bf3631f0
refs/heads/master
2021-09-22T11:33:52.674810
2018-09-09T23:18:12
2018-09-09T23:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,897
py
#!/usr/bin/python # -*- coding: utf8 -*- from __future__ import unicode_literals import os import re from operator import itemgetter from xml.etree import cElementTree as ET import pathlib2 import jinja2 import tabulate SOURCE = pathlib2.Path(os.getcwd()) / 'source' env = jinja2.Environment( loader=jinja2.FileS...
[ "theiviaxx@gmail.com" ]
theiviaxx@gmail.com
c3cb877e4a914b3e92f3fc6e05594d2242f19825
f30f5024e2e9ce0dc5e550f7125bb7072fe96207
/2019/r1a/prob2.py
1baf96bf5ed1273a8b2431b64dcf1965199fdc76
[]
no_license
RZachLamberty/google_code_jam
fcb14efed46c93cdc655ed932b6e3076bbe5b3ca
0e1541db004ac47df5b63dd88f3e182a7a35e768
refs/heads/master
2021-12-01T02:04:32.506653
2021-11-16T20:33:04
2021-11-16T20:33:04
253,242,456
0
0
null
null
null
null
UTF-8
Python
false
false
1,173
py
import sys def main(): T, N, M = [int(_) for _ in input().split(' ')] for i_test_case in range(T): options = None lower_bound = 0 answer = '-1' for n in [17, 16, 13, 11, 7, 5, 3]: print(' '.join([str(n) for i in range(18)])) sys.stdout.flush() ...
[ "r.zach.lamberty@gmail.com" ]
r.zach.lamberty@gmail.com
bd2fa3b79635cd0faaad4f4d5d91b1a3ef8a1978
c5385f8c429ec4f3885a2331f12affbbf1673b2f
/research/deeplab/core/feature_extractor.py
e048c3ab2535220f67a97b82bfbcae064c9026c5
[ "Apache-2.0" ]
permissive
abhineet123/tf_models
231dffac69c3029b55afd12bb96eceac11fa0b15
426b6d37f198e0408d56148a33beb32e7f04dc5c
refs/heads/master
2022-12-12T03:29:08.355203
2018-07-29T22:22:34
2018-07-29T22:22:34
137,686,565
0
2
Apache-2.0
2022-11-25T14:57:27
2018-06-17T20:57:23
Python
UTF-8
Python
false
false
9,511
py
# Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "asingh1@ualberta.ca" ]
asingh1@ualberta.ca
e3bc4f76cf3ffb6a5b4786f53d8ebd7ebc637a52
e6328c5076fe0f1b6819c3eacca08e1c4791199b
/062. Unique Paths/62. Unique Paths.py
959174bdcbc2488be43001c17cf9725c173b9ad9
[]
no_license
603lzy/LeetCode
16e818d94282b34ac153271697b512c79fc95ef5
9752533bc76ce5ecb881f61e33a3bc4b20dcf666
refs/heads/master
2020-06-14T03:07:03.148542
2018-10-22T14:10:33
2018-10-22T14:10:33
75,514,162
3
0
null
null
null
null
UTF-8
Python
false
false
781
py
class Solution(object): def uniquePaths(self, m, n): """ :type m: int :type n: int :rtype: int https://discuss.leetcode.com/topic/67900/dp-solution-in-python # basic dynamic programming """ if m > 1 and n > 1: grid = [[0 for col in xrange(n...
[ "noreply@github.com" ]
603lzy.noreply@github.com
6fd670ab5d1d479388517eba0c9275c274d3df7a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_implemented.py
c8115b06a1c54a5a564f83c1619336ef47f28f30
[ "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
236
py
#calss header class _IMPLEMENTED(): def __init__(self,): self.name = "IMPLEMENTED" self.definitions = implement self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['implement']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4606de08215d1e56e7f12b7187c4aec33337463e
35f9def6e6d327d3a4a4f2959024eab96f199f09
/developer/lab/ipython/tools/strassen_matrix_multiplication.py
67c5a531feb4fea827e9edaf8764fa85bfef969d
[ "CAL-1.0-Combined-Work-Exception", "CAL-1.0", "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-free-unknown" ]
permissive
arXiv-research/DevLab-III-1
ec10aef27e1ca75f206fea11014da8784752e454
c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2
refs/heads/main
2023-04-16T19:24:58.758519
2021-04-28T20:21:23
2021-04-28T20:21:23
362,599,929
2
0
MIT
2021-04-28T20:36:11
2021-04-28T20:36:11
null
UTF-8
Python
false
false
6,011
py
from __future__ import annotations import math def default_matrix_multiplication(a: list, b: list) -> list: """ Multiplication only for 2x2 matrices """ if len(a) != 2 or len(a[0]) != 2 or len(b) != 2 or len(b[0]) != 2: raise Exception("Matrices are not 2x2") new_matrix = [ [a[0][...
[ "noreply@github.com" ]
arXiv-research.noreply@github.com
3da2e978d6f8ed81073a06f3334968ced80d3fa2
2b42b40ae2e84b438146003bf231532973f1081d
/spec/mgm4456102.3.spec
6f5e791cee9d238f143493b4e8bed6423c90e578
[]
no_license
MG-RAST/mtf
0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a
e2ddb3b145068f22808ef43e2bbbbaeec7abccff
refs/heads/master
2020-05-20T15:32:04.334532
2012-03-05T09:51:49
2012-03-05T09:51:49
3,625,755
0
1
null
null
null
null
UTF-8
Python
false
false
13,947
spec
{ "id": "mgm4456102.3", "metadata": { "mgm4456102.3.metadata.json": { "format": "json", "provider": "metagenomics.anl.gov" } }, "providers": { "metagenomics.anl.gov": { "files": { "100.preprocess.info": { ...
[ "jared.wilkening@gmail.com" ]
jared.wilkening@gmail.com
cb5bd12ced8e3fde3e7611f283a940a293a4b659
0c8214d0d7827a42225b629b7ebcb5d2b57904b0
/practice/P009_Fibonacci/main.py
1b7ef28e71516019aa48df1f633f869dc72b79a3
[]
no_license
mertturkmenoglu/python-examples
831b54314410762c73fe2b9e77aee76fe32e24da
394072e1ca3e62b882d0d793394c135e9eb7a56e
refs/heads/master
2020-05-04T15:42:03.816771
2020-01-06T19:37:05
2020-01-06T19:37:05
179,252,826
1
0
null
null
null
null
UTF-8
Python
false
false
253
py
# Dynamic programming example fib_numbers = {1: 1, 2: 1, 3: 2} def fibonacci(n: int) -> int: if n not in fib_numbers: fib_numbers[n] = fibonacci(n - 1) + fibonacci(n - 2) return fib_numbers[n] print(fibonacci(7)) print(fibonacci(5))
[ "mertturkmenoglu99@gmail.com" ]
mertturkmenoglu99@gmail.com
d669bec0e43de88d1d1a0659b251032840574b22
4388363ba45b95910c25bae3d9c02ad78f4a75d6
/python/anaconda/lib/python2.7/site-packages/numba/tests/npyufunc/test_parallel_ufunc_issues.py
da86964467145527252c07a10e6ad5b9f1969a73
[ "Python-2.0" ]
permissive
locolucco209/MongoScraper
d494e02531f4f165b1e821633dc9661c579337b5
74476c9f00ee43338af696da7e9cd02b273f9005
refs/heads/master
2022-11-25T19:09:27.248747
2018-07-10T03:54:06
2018-07-10T03:54:06
137,553,786
3
1
null
2022-11-16T04:32:26
2018-06-16T04:49:22
null
UTF-8
Python
false
false
2,600
py
from __future__ import print_function, absolute_import, division import time import ctypes import numpy as np from numba import unittest_support as unittest from numba.tests.support import captured_stdout from numba import vectorize class TestParUfuncIssues(unittest.TestCase): def test_thread_response(self): ...
[ "lukemassetti@WestSide-Luke.local" ]
lukemassetti@WestSide-Luke.local
4c8cb75900b6afaeafb66fec408097baedf5d1cc
33f32d78087491e989289c46e5d2df5400e23946
/leetcode/Unsorted_Algorthm_Problems/Two_Sum_III _Data_structure_design.py
ab9d7045ac0bbbde6e34441cdc36885146a1b6d5
[]
no_license
xulleon/algorithm
1b421989423640a44339e6edb21c054b6eb47a30
b1f93854006a9b1e1afa4aadf80006551d492f8a
refs/heads/master
2022-10-08T19:54:18.123628
2022-09-29T05:05:23
2022-09-29T05:05:23
146,042,161
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
# https://leetcode.com/problems/two-sum-iii-data-structure-design/ class TwoSum: def __init__(self): """ Initialize your data structure here. """ self.numbers = {} def add(self, number: int) -> None: """ Add the number to an internal data structure.. ""...
[ "leonxu@yahoo.com" ]
leonxu@yahoo.com
d9cb29925147bcc00f6eeef81143924403f0db3e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03288/s528258523.py
e21295af8dcf6d86de0facff0a4bceaed3804dab
[]
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
280
py
import sys import os MOD = 10 ** 9 + 7 def main(): if os.getenv("LOCAL"): sys.stdin = open("input.txt", "r") N = int(sys.stdin.buffer.readline().rstrip()) print('AGC' if N >= 2800 else 'ARC' if N >= 1200 else 'ABC') if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com