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
3c01565ab29a50b5e2ab3b2e0ebc8671fa00fa1d
84fbca1dd86aa1d7d65afd65bc65a71420513fb8
/queriesapp/migrations/0002_auto_20200313_1226.py
4fc15376311aefa9eef66940a093094bb9bb41e9
[]
no_license
corri-golden/queries
40a7415868149014dcf9d20dedd17801b4552f0b
fc7a4f26f185e3a6018cd257a12abe74019db531
refs/heads/master
2021-09-26T16:47:14.470875
2021-03-20T04:23:57
2021-03-20T04:23:57
245,893,279
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
# Generated by Django 3.0.4 on 2020-03-13 12:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('queriesapp', '0001_initial'), ] operations = [ migrations.CreateModel( name='Status', ...
[ "corri.golden@gmail.com" ]
corri.golden@gmail.com
a65d310a45773ea11f0818aa6af806ea9d490511
3de1e940512394a6aebe499a9ce07a33a427ea7b
/tools/stats/monitor.py
972d0dbea038bda843c1db9f7728bd4e8bbd1fa5
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
shinh/pytorch
3719d1a6129db16e932452bec9b6646edf153226
c6b7c33885eeff9dc125f87c7134772d59d0ba21
refs/heads/master
2022-10-21T22:03:14.775982
2022-10-10T05:47:11
2022-10-10T05:47:11
220,897,452
1
0
NOASSERTION
2019-11-11T03:56:40
2019-11-11T03:56:39
null
UTF-8
Python
false
false
2,871
py
#!/usr/bin/env python3 import datetime import json import signal import time from typing import Any, Dict, List import psutil # type: ignore[import] import pynvml # type: ignore[import] def get_processes_running_python_tests() -> List[Any]: python_processes = [] for process in psutil.process_iter(): ...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
fc15825c91764aeef1e3c0d91ecb2bc9384037cb
d5fc28473e41a11e3ee793362e80f2db83b1d386
/tests/unit/cli.py
1f4810cb82091b028bc3a6c0ceb35d0071fb39b7
[ "Apache-2.0" ]
permissive
starbops/haas
71335ea29dbf06579381c7745176ee9f7c86d423
751d4fc27732ac7d660886b7c47948300c606460
refs/heads/master
2020-05-29T11:37:40.484664
2016-03-17T03:04:11
2016-03-17T03:04:11
53,773,276
0
0
null
2016-03-13T07:41:34
2016-03-13T07:41:34
null
UTF-8
Python
false
false
1,877
py
import pytest import tempfile import os import signal from subprocess import check_call, Popen from time import sleep config = """ [headnode] base_imgs = base-headnode, img1, img2, img3, img4 [database] uri = sqlite:///haas.db [extensions] haas.ext.auth.null = haas.ext.network_allocators.null = """ @pytest.fixture(a...
[ "ian@zenhack.net" ]
ian@zenhack.net
dd1c933da5c0589e147cfac927c95849c3d02401
07c75f8717683b9c84864c446a460681150fb6a9
/back_cursor/S-scrapy/zhilian/zhilian/pipelines.py
ce305e87f0e027bad9b1bb740e708506227f2072
[]
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
1,236
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html # 引入sqlalchemy模块 from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker # 进入pymysql模块,用于替代sqlalchemy底层的my...
[ "1007821300@qq.com" ]
1007821300@qq.com
7f5466358e1afe8affcb50531035a634f09d47f2
3e3bf98840d133e56f0d0eb16ba85678ddd6ca45
/.history/iss_20200102114952.py
b10444b89fa1b6c3096e6c74cc748aa78096e84a
[]
no_license
Imraj423/backend-iss-location-assessment
a05d3cc229a5fc4857483ae466348c1f8c23c234
b0565c089a445ccffcb8d0aab3c0be3bb0c1d5b8
refs/heads/master
2020-12-03T17:04:58.512124
2020-06-24T16:02:02
2020-06-24T16:02:02
231,400,854
0
0
null
2020-06-24T16:02:04
2020-01-02T14:43:44
null
UTF-8
Python
false
false
920
py
import requests import turtle import time screen = turtle.Screen() image = "iss.gif" screen.addshape(image) raf = turtle.Turtle() raf.shape(image) raf.setheading(90) raf.penup() screen.bgpic("map.gif") screen.screensize(4000, 3000) screen.setup(width=800, height=600, startx=0, starty=0) screen.exitonclick() while Tru...
[ "dahqniss@gmail.com" ]
dahqniss@gmail.com
a802808f5187909756b07ccfd2d5e6956da34179
866b7169c069c153bacfa7961dce8909aa391faa
/blog/admin.py
e7b63a18af39c397f3075c4067021ab8e245f26b
[]
no_license
nikolasribeiro/pagina-jovenes-40
d2502b5d1569000eb7dc059f62b66978ea8642ab
5618cbc1ac03f6dd47eba6360dbdbb2ead70f268
refs/heads/main
2023-03-08T18:45:08.323432
2021-02-27T22:36:47
2021-02-27T22:36:47
336,833,170
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
from django.contrib import admin from .models import Blog, Categoria # Import Export para guardar datos from import_export import resources from import_export.admin import ImportExportModelAdmin # Clases del import Export class BlogResource(resources.ModelResource): class Meta: model = Blog class Blog...
[ "nikolasribeiro2@outlook.com" ]
nikolasribeiro2@outlook.com
cf43f252196aa5e91466d9092828816745be5ca3
3851d5eafcc5fd240a06a7d95a925518412cafa0
/Django_Code/gs25/gs25/asgi.py
cb53a37a73a74e22db638ccc220b4e981d1b6bca
[]
no_license
Ikshansaleem/DjangoandRest
c0fafaecde13570ffd1d5f08019e04e1212cc2f3
0ccc620ca609b4ab99a9efa650b5893ba65de3c5
refs/heads/master
2023-01-31T04:37:57.746016
2020-12-10T06:27:24
2020-12-10T06:27:24
320,180,735
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for gs25 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
[ "ikshan3108@gmail.com" ]
ikshan3108@gmail.com
c67b2260e2dab5a6ed7a5447cb5d23fbae2047c7
07131e91dcf2529e9c7058f8a8f239d419c8f7e0
/1447.simplified-fractions.py
240c2196f222b390151a2ea343df329835207f3d
[]
no_license
Code-Wen/LeetCode_Notes
5194c5c5306cb9f4a0fac85e06fefe6c02d65d44
791fc1b43beef89d668788de6d12f5c643431b8f
refs/heads/master
2021-07-04T14:41:00.830723
2020-09-27T16:31:22
2020-09-27T16:31:22
178,456,323
1
0
null
null
null
null
UTF-8
Python
false
false
1,492
py
# # @lc app=leetcode id=1447 lang=python3 # # [1447] Simplified Fractions # # https://leetcode.com/problems/simplified-fractions/description/ # # algorithms # Medium (59.85%) # Likes: 50 # Dislikes: 6 # Total Accepted: 7.5K # Total Submissions: 12.5K # Testcase Example: '2\r' # # Given an integer n, return a lis...
[ "chenxu.wen.math@gmail.com" ]
chenxu.wen.math@gmail.com
6924ccab05426697554fea2c956596a548469849
4d2475135f5fc9cea73572b16f59bfdc7232e407
/prob130_surrounded_regions.py
cbb05c421a1740056d03c472983e5335f0f064ce
[]
no_license
Hu-Wenchao/leetcode
5fa0ae474aadaba372756d234bc5ec397c8dba50
31b2b4dc1e5c3b1c53b333fe30b98ed04b0bdacc
refs/heads/master
2021-06-24T04:57:45.340001
2017-06-17T02:33:09
2017-06-17T02:33:09
45,328,724
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
""" Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region. For example, X X X X X O O X X X O X X O X X After running your function, the board should be: X X X X X X X X X X X X X O X X """ class Solution(objec...
[ "huwcbill@gmail.com" ]
huwcbill@gmail.com
73e6a2ec930cc79de0a569f1fe7e1d0881098d19
4a52362d2a46c747af74e3c321b1bd9d73bd0116
/virtual/bin/static
fcf01443e92188fc7d4641feefe749e4664b5659
[ "MIT" ]
permissive
TonyKioko/PichaZa
1420242b48c204637a166778084aaa4cb3776938
8e2e8f3d002a624fe64ce089e4581265080975d6
refs/heads/master
2020-03-30T01:31:53.034302
2018-10-03T07:35:30
2018-10-03T07:35:30
150,580,180
0
0
null
null
null
null
UTF-8
Python
false
false
244
#!/home/tony/Desktop/PichaZa/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from static import command if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(command())
[ "tonykioko384@gmail.com" ]
tonykioko384@gmail.com
a754658047ec2d9bd7b8997aa6df168e5080f297
0fc2b99fd8414dbce5f1f6057b9b800c968d5d05
/tests/pysge/test_pysge.py
a54c3b00256e1b2b635b0b89ce3728218a840e3b
[ "MIT" ]
permissive
widdowquinn/lpbio
9df898cb9580f62da1f66d5736cbf7a984633561
8b95642396d05a56c1c54389e3de6d88d7cbffb5
refs/heads/master
2020-03-29T02:08:56.675473
2019-11-07T14:27:44
2019-11-07T14:27:44
149,422,654
0
0
null
null
null
null
UTF-8
Python
false
false
4,938
py
# -*- coding: utf-8 -*- """Tests of SGE job submission""" import shutil import time import unittest import pytest from lpbio import pysge class TestPysge(unittest.TestCase): """Class collecting tests for pysge""" @staticmethod def test_create_job(): """Create Job for SGE-like scheduler""" ...
[ "leighton.pritchard@hutton.ac.uk" ]
leighton.pritchard@hutton.ac.uk
d2297f166ccb241eecdd47f1c9b46e9d9faad85c
11a246743073e9d2cb550f9144f59b95afebf195
/kattis/chopin.py
67513e777cb40682ed9aa5468bad04aa7e93f38a
[]
no_license
ankitpriyarup/online-judge
b5b779c26439369cedc05c045af5511cbc3c980f
8a00ec141142c129bfa13a68dbf704091eae9588
refs/heads/master
2020-09-05T02:46:56.377213
2019-10-27T20:12:25
2019-10-27T20:12:25
219,959,932
0
1
null
2019-11-06T09:30:58
2019-11-06T09:30:57
null
UTF-8
Python
false
false
538
py
import sys def main(): tc = 1 flip = {'major': {}, 'minor': {}} flip['A#'] = 'Bb' flip['Bb'] = 'A#' flip['C#'] = 'Db' flip['Db'] = 'C#' flip['D#'] = 'Eb' flip['Eb'] = 'D#' flip['F#'] = 'Gb' flip['Gb'] = 'F#' flip['G#'] = 'Ab' flip['Ab'] = 'G#' for line in sys.stdin: ...
[ "arnavsastry@gmail.com" ]
arnavsastry@gmail.com
e0049f98e7e82d3f7e4ed64035a39d25d6443025
d1c67f2031d657902acef4411877d75b992eab91
/swagger_client/models/list_escalations_response.py
f2b5efd0d2aa78275881ff42e8022c09b496ba2d
[]
no_license
Certn/opsgenie-python
c6e6a7f42394499e5224d679cc9a449042fcf9c3
bd5f402f97d591e4082b38c938cbabca4cf29787
refs/heads/master
2023-01-01T10:45:13.132455
2020-10-27T17:40:01
2020-10-27T17:40:01
307,769,432
0
0
null
null
null
null
UTF-8
Python
false
false
4,621
py
# coding: utf-8 """ Opsgenie REST API Opsgenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ListEscalationsResponse(object): """NOTE: This class...
[ "john@oram.ca" ]
john@oram.ca
8fde5030c14e3eb60ee0aae8b332acfc19a8dc8b
758bf41e46a3093f4923af603f1f7f8063408b9c
/website/testFromRemoteRepo/_bsch3398/museum/python/user.py
719bf82b3ee747cef3765681b6702717b4d1b1a9
[]
no_license
mpetyx/mpetyx.com
4033d97b21c9227a6ba505980fd0c1b57254e8fb
d50c379b4fe09e0135656573f7049225fc90ae36
refs/heads/master
2021-01-10T19:50:15.488371
2014-01-22T09:04:14
2014-01-22T09:04:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,103
py
#!/usr/local/bin/python from util import * import connect import sessions #django for templates only from django.conf import settings from django.template import Template, Context methods = ("login", "logout", "add", "delete", "view", "update") def login(fields, cookie): if fields.has_key('user') and fields.ha...
[ "mpetyx@gmail.com" ]
mpetyx@gmail.com
49ef083dd7476bf8ff926498dd04773df7b9d6f1
f7c4084ddb4b26ac6005e569c907e94ce63f9993
/项目/api_sh/data_01/migrations/0001_initial.py
991a987ed1f657a88f79ba7cc71819dc786de534
[]
no_license
LDZ-RGZN/-
01caeb008bab16e1f7dd1c02137def2e030e1636
696be7f7a33f009eac92dff504365eb386060df1
refs/heads/master
2020-04-13T14:56:43.565470
2019-01-13T11:19:28
2019-01-13T11:19:28
162,986,641
0
0
null
null
null
null
UTF-8
Python
false
false
3,352
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-01-08 11:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
[ "2654213432@qq.com" ]
2654213432@qq.com
a448f9c388862144f132bcfef5eeb24bb2bad601
638af6b8c580eeae23fc1034882c4b514195137a
/Packages/vcs_legacy/Test/test_ps_hatching.py
4716cae2fa5f0c4e53cb057cd6ace51ee97ef4e6
[]
no_license
doutriaux1/uvcdat
83684a86b514b8cac4d8900a503fc13d557fc4d2
37e9635f988696c346b4c3cdb49144d1e21dab5d
refs/heads/master
2021-01-17T07:57:22.897539
2015-02-02T22:52:12
2015-02-02T22:52:12
14,878,320
1
0
null
2015-02-19T20:54:25
2013-12-02T23:44:46
C
UTF-8
Python
false
false
792
py
# Adapted for numpy/ma/cdms2 by convertcdms.py import cdms2 as cdms,vcs_legacy,sys,time,support,os bg=support.bg x=vcs_legacy.init() x.portrait() #x.setdefaultfont(2) f=cdms.open(os.path.join(cdms.__path__[0],'..','..','..','..','sample_data','clt.nc')) s=f('clt') iso = x.createisofill('my') levs = range(0,95,5) #pri...
[ "doutriaux1@llnl.gov" ]
doutriaux1@llnl.gov
c3fc957bd8157028fc72a63f5e48786b003b968b
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/77/77.combinations.664188670.Wrong-Answer.leetcode.python3.py
f9d4b9c263f19faa1a2c5bbe5831661b9d091441
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
353
py
class Solution(object): def combine(self, n, k): res = [] self.get_combine(res, [], n, k, 1) return res def get_combine(self, res, prefix, n, k, start): if k == 0: res.append(list(prefix)) for idx in range(start, n + 1): self.get_combine(res, pref...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
35651e65aea695ef813cc1faf53c12e1c4efeff5
cbe264842df4eae3569b28ed4aae9489014ed23c
/codeit/algorithm/greedy_min_fee.py
cc107882b08662f5008275ceceac29457af32609
[ "MIT" ]
permissive
zeroam/TIL
31e176c2f4c3e1ef72b1155353690cc2f7160f96
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
refs/heads/master
2021-07-23T01:43:34.135033
2021-07-10T06:47:17
2021-07-10T06:47:17
167,952,375
1
0
null
null
null
null
UTF-8
Python
false
false
521
py
def min_fee(pages_to_print): sorted_pages_to_print = sorted(pages_to_print) total_fee = 0 while sorted_pages_to_print: size = len(sorted_pages_to_print) minute = sorted_pages_to_print.pop(0) total_fee += size * minute return total_fee if __name__ == '__main__': from util ...
[ "imdff0803@gmail.com" ]
imdff0803@gmail.com
df3c79870df90f3021b5a630eb28b3efd6fa07c0
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/numenta_nupic/nupic-master/tests/unit/nupic/algorithms/sp_overlap_test.py
1ca3af5d62178bc471696f4ea91f01904d2a56cf
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
7,048
py
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
[ "659338505@qq.com" ]
659338505@qq.com
d56407a6b0db2c1f4b194d83c021e874ad9414d2
4e7db10524c938c8c6e687521def2889e20ec646
/P16/1-7.py
62f18ba79452ebca3058388918cdc5cc264b5f6c
[]
no_license
mpigrobot/python
e5cf60ca438e0d5e63a1e87a266a9e255bc07271
bf9262657a7401f37de38318db768e630fab97a9
refs/heads/master
2020-03-15T15:37:03.228080
2018-03-31T07:33:07
2018-03-31T07:33:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
#!/usr/bin/env python # coding:utf-8 import sys sys.path.append("../") import jieba print ", ".join(jieba.cut("大连美容美发学校中君意是你值得信赖的选择")) jieba.load_userdict( 'C:\Users\Administrator\Desktop\dir1.txt') print ", ".join(jieba.cut("大连美容美发学校中君意是你值得信赖的选择")) # jieba.suggest_freq('君意', True) jieba.add_word("君意", freq ...
[ "noreply@github.com" ]
mpigrobot.noreply@github.com
eda674ee22d94b233e6ae2676f25b8efc5cdcd5b
ca5e3595a9949abba08c642842166f82d768c153
/modulation.py
f70357fbf07fdbf03eccb00b5de4dd5781fa470c
[]
no_license
MaksimKulya/PromaX
f36980300ec564a0c8d523f3e07ebf9ed2a9b262
e723cf4390f9cdcc4bbda627dff90a2185322a54
refs/heads/master
2023-06-25T13:13:09.968726
2021-07-13T15:09:37
2021-07-13T15:09:37
385,638,675
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
import matplotlib.pyplot as plt import math import cmath import pylab from matplotlib import mlab from PIL import Image import numpy as np import scipy.constants import numba as nb pi=math.pi @nb.njit def modulation(Nx,Ny,am,ph,nu,n,c,h): AM = np.zeros(shape=(nu.shape[0], Nx, Ny)) PH = np.zeros(shape=(nu.sha...
[ "maxk2350@yandex.ru" ]
maxk2350@yandex.ru
182d7ea8a9a297586f8be5758698b81f665b8e65
5c7da7dabdc076ad7113ccd20561a8bbf5f9a70e
/portfolios/migrations/0007_auto_20200215_1347.py
9bae61e5b98ca60a0561156c6c192a93b6cb9cd2
[]
no_license
aqcloudacio/cloudaciofeez
2499fb5fc5334fa871daab2abea6c34bfa8c7667
8399560ece9aa10a6d6801f42c027dca26a65936
refs/heads/master
2023-02-27T22:36:20.501159
2021-02-11T00:03:46
2021-02-11T00:03:46
337,887,413
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
# Generated by Django 2.2.7 on 2020-02-15 02:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('portfolios', '0006_auto_20200215_1344'), ] operations = [ migrations.AlterField( model_name='po...
[ "alejandro.quintero@clouxter.com" ]
alejandro.quintero@clouxter.com
855afa2e49764022f6489b06d28787448896f33d
84a96dbd96e926ebb5c658e3cb897db276c32d6c
/tensorflow/python/keras/optimizer_v2/adamax.py
9166f637c1e9a7f1cefb35436a6db667ff59ab84
[ "Apache-2.0" ]
permissive
MothCreations/gavlanWheels
bc9189092847369ad291d1c7d3f4144dd2239359
01d8a43b45a26afec27b971f686f79c108fe08f9
refs/heads/master
2022-12-06T09:27:49.458800
2020-10-13T21:56:40
2020-10-13T21:56:40
249,206,716
6
5
Apache-2.0
2022-11-21T22:39:47
2020-03-22T14:57:45
C++
UTF-8
Python
false
false
8,043
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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
5e873a127a5b816d0d8b4e502262fb066ca2608d
2d82d4c6574bd6d32f2cf1c781615f7951f55f66
/muntjac/demo/sampler/features/trees/TreeSingleSelect.py
d07a2e355077b83ac72f563a77bb096ebf2612c1
[ "Apache-2.0" ]
permissive
metaperl/muntjac
f83f745ee03942a61af92ee7fba7285aa9c46f3c
8db97712edd81b4d25deaaa48587d2a08010f2c8
refs/heads/master
2021-01-15T22:04:25.057862
2012-11-09T03:52:59
2012-11-09T03:52:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
from muntjac.ui.tree import Tree from muntjac.demo.sampler.features.trees.TreeMultiSelect import TreeMultiSelect from muntjac.demo.sampler.features.trees.TreeActions import TreeActions from muntjac.demo.sampler.APIResource import APIResource from muntjac.demo.sampler.Feature import Feature, Version class TreeSingle...
[ "r.w.lincoln@gmail.com" ]
r.w.lincoln@gmail.com
3fb6faabd50d6e4fec8f682bbab921a976447f7b
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/Autodesk/Revit/UI/__init___parts/TaskDialogResult.py
6464317c49a8ed24e79672214c635e272cf50cb8
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
1,153
py
class TaskDialogResult(Enum,IComparable,IFormattable,IConvertible): """ Enum to specify the task dialog result. enum TaskDialogResult,values: Cancel (2),Close (8),CommandLink1 (1001),CommandLink2 (1002),CommandLink3 (1003),CommandLink4 (1004),No (7),None (0),Ok (1),Retry (4),Yes (6) """ def __eq__(self,*args):...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com
a6a2cdc64be78791ddd99b63741b386489d36ecf
5746d26f891270c1bb407a244d9a942534298d96
/fastreid/data/build.py
e7005a90fcb391336d9acc7f3280546059c9cbf6
[ "Apache-2.0" ]
permissive
winterxx/fast-reid
1463253c43876249dd55a3adb0a3e71fa8037aa3
727a7468311949efbbc7be360c2c1afaf440bb22
refs/heads/master
2022-10-20T17:50:39.245472
2020-06-16T03:46:22
2020-06-16T03:46:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,131
py
# encoding: utf-8 """ @author: l1aoxingyu @contact: sherlockliao01@gmail.com """ import torch from torch._six import container_abcs, string_classes, int_classes from torch.utils.data import DataLoader from . import samplers from .common import CommDataset from .datasets import DATASET_REGISTRY from .transforms impor...
[ "sherlockliao01@gmail.com" ]
sherlockliao01@gmail.com
5350c7e34a18d8cebb9c9bcc45be9ec798fde418
684a7d56589f7b96002646dfc26ba2de52eb7d80
/source/callback/eval_mscoco.py
ecc1b5db5b7e1be53cffa13367cc079c536f8f70
[ "Apache-2.0" ]
permissive
adewin/lambda-deep-learning-demo
7a42b935ca1ab1e92a0170bf28c7e526cffa5cb6
ebbbd63c0abf87a1a4155b17cef145039b7a1ef7
refs/heads/master
2020-07-08T13:15:51.476791
2019-04-26T21:25:44
2019-04-26T21:25:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,269
py
""" Copyright 2018 Lambda Labs. All Rights Reserved. Licensed under ========================================================================== """ import os import numpy as np from scipy import misc import tensorflow as tf from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval from .callback imp...
[ "cl.chuanli@gmail.com" ]
cl.chuanli@gmail.com
d7a7d2dea431fd8d3dc35b48022975e66ec20183
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY46-BOJ2533-사회망 서비스(SNS)/younghoon.py
38fcc0c3116cb0e7f54d7a6dd1b9073362b4c486
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
634
py
''' 이해못했습니당 ㅠ dp공부를 더하고 봐야겠어요 ''' import sys sys.setrecursionlimit(10**9) N=int(sys.stdin.readline()) Tree=[[] for _ in range(N+1)] check=[0 for _ in range(N+1)] for _ in range(N-1): u,v=map(int,sys.stdin.readline().split()) Tree[u].append(v) Tree[v].append(u) DP=[[0,0] for _ in range(N+1)] check=[True...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
9a74952d6bcbbe9d6c9c34e92a33ccbe56808a6b
70e9a7da3d4e2a41b30544516e166dab2495253c
/payment_trustcode/controllers/main.py
050edccfc195b6c8248b0c16dcd7b39d3caf7dfa
[ "MIT" ]
permissive
Trust-Code/odoo-brasil
bf06ea58a4e0376cb5c297c18bf48eaf97104e54
d456a10e32f56e259061afbd989942ea1aae2c2d
refs/heads/16.0
2023-08-31T16:06:21.038792
2023-01-26T19:31:31
2023-01-26T19:31:31
72,882,959
206
253
MIT
2023-08-18T17:05:49
2016-11-04T20:28:03
Python
UTF-8
Python
false
false
757
py
import logging from odoo import http from odoo.http import request from werkzeug.utils import redirect _logger = logging.getLogger(__name__) class IuguController(http.Controller): _notify_url = '/iugu/notificacao/' @http.route( '/iugu/notificacao/', type='http', auth="none", methods=['GET', ...
[ "danimaribeiro@gmail.com" ]
danimaribeiro@gmail.com
18480acf2489cd737fa1a54137dc34a18873c149
fc43470de13ff8f03105efc2a3660a1ed6a1a553
/LeetCode/207_CourseSchedule.py
168da2eb51e923ae31c007d923cd1b462ab06a0c
[]
no_license
youseop/Problem_solutions
5a05597f188b4ef8f7d8483b46bf05fbf2158d01
1fba638d9520bca4354bca01f194f80b159e26aa
refs/heads/master
2023-06-24T05:12:45.060086
2021-07-24T14:22:33
2021-07-24T14:22:33
298,317,735
1
0
null
null
null
null
UTF-8
Python
false
false
841
py
class Solution: def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: from collections import deque as dq course = list(0 for _ in range(numCourses)) need = dict() for i in range(numCourses): need[i] = [] for a, b in prerequisites: ...
[ "66366941+youseop@users.noreply.github.com" ]
66366941+youseop@users.noreply.github.com
aa316048e3e95c342aba666bf410bbb7cf9b543b
a667b52cb8d2ec857c55d33f04fc0e81d36dc681
/options/data/real/Reco16_Run179101_DV.py
4672a9ee45d24e2d7f95dfea3e8b6b5847ee3163
[]
no_license
wenyanyin/CP_violation_simulation
639d73333a3795654275cb43cc7dad7c742d1be1
7b93b2fe1050fb30d0b809b758cd5a3b2824b875
refs/heads/master
2022-04-29T14:19:23.744004
2022-04-01T13:05:18
2022-04-01T13:05:18
168,570,282
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
from Configurables import DaVinci from Gaudi.Configuration import importOptions DaVinci().DataType = '2016' DaVinci().InputType = 'RDST' DaVinci().DDDBtag = 'dddb-20150724' DaVinci().CondDBtag = 'cond-20170325' importOptions('$APPCONFIGOPTS/DaVinci/DV-RawEventJuggler-0_3-to-4_2.py')
[ "Michael.Alexander@glasgow.ac.uk" ]
Michael.Alexander@glasgow.ac.uk
65b74da4eede267474cc9a56a3e2901994358f6a
06c367fe2d2233c6efb64f323e15bebd7f48c625
/saleor/product/urls.py
c3159a1923f41052ea09b230dba75e681991402d
[ "BSD-3-Clause" ]
permissive
AkioSky/FishMart
ce630bc4addf63bc105e4f3e13e92c15b119b558
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
refs/heads/master
2022-12-11T16:13:38.277080
2019-04-22T03:44:22
2019-04-22T03:44:22
182,615,627
0
0
BSD-3-Clause
2022-12-08T01:44:37
2019-04-22T03:20:03
Python
UTF-8
Python
false
false
585
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.product_list, name='list'), url(r'^(?P<slug>[a-z0-9-_]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[a-z0-9-_]+?)-(?P<category_id>[0-9]+)/$', views.catego...
[ "whitebirdinbluesky1990@gmail.com" ]
whitebirdinbluesky1990@gmail.com
5221a3cd94c2ccee498f920816799911eaf1cb15
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/277/103384/submittedfiles/principal.py
e2edee6fa3b2efd552caa85372bac86a66d41972
[]
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
522
py
# 1. Ler uma matriz m,n de inteiros while(True): m = int(input('Digite a quantidade de linhas: ')) if m >= 1 and m <= 100: break else: print('Numero invalido. Digite entre 1 e 100 (inclusive)') while(True): n = int(input('Digite a quantidade de colunas: ')) if n >= 1 and n <= 100: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3aacfc56559b1cc3148120eb9b169bee48276dd4
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_1536+690/sdB_pg_1536+690_lc.py
110380af2de8d87ee8d50b1b95d32ee08d79b9b4
[]
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
345
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[234.203458,68.869067], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1536+690/sdB_pg_1536+690_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __name_...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
ea3a6a6002d4c5c1dd9374b6e70e4f7feb25bf0a
41f39d013ae3cb2b3ca4230c77b9037cc9c894f6
/gym/gym/envs/tests/spec_list.py
b9596408afb70ecdad341bf20530ecc72bf0ef7c
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
sokol1412/rllab_hierarchical_rl
162aec9bb06e271d12333fa072fb44d692c26301
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
refs/heads/master
2020-03-07T07:37:39.510301
2018-08-19T11:54:56
2018-08-19T11:54:56
127,353,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
from gym.gym import envs import os import logging logger = logging.getLogger(__name__) def should_skip_env_spec_for_tests(spec): # We skip tests for envs that require dependencies or are otherwise # troublesome to run frequently ep = spec._entry_point # Skip mujoco tests for pull request CI ...
[ "wlasek1412@gmail.com" ]
wlasek1412@gmail.com
e279ab7f4f8a7694db03f67ed2b49a5684138c0b
70bee1e4e770398ae7ad9323bd9ea06f279e2796
/openapi_client/models/types_console_certificate_settings.py
ce30f655952ee5e232890ddeccf76d3bd9a86194
[]
no_license
hi-artem/twistlock-py
c84b420b1e582b3c4cf3631eb72dac6d659d4746
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
refs/heads/main
2023-07-18T07:57:57.705014
2021-08-22T04:36:33
2021-08-22T04:36:33
398,637,698
0
0
null
null
null
null
UTF-8
Python
false
false
6,974
py
# coding: utf-8 """ Prisma Cloud Compute API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 21.04.439 Generated by: https://openapi-generator.tech """ try: from inspect import getfulla...
[ "aakatev@virtru.com" ]
aakatev@virtru.com
bf08004a8dc519aed4684436e2e47168caab9220
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L37/37-67_wat_20Abox/set_1ns_equi_m.py
9a30abf2ff76750baf8c5f509e5e70f035965f6b
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L37/wat_20Abox/ti_one-step/37_67/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_m.in' temp_pbs = filesdir + 'temp_1ns_equi_m.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
1055636efad751d50373b46a2e7170cabd726762
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_124/121.py
1ee579e02a9298b03bc8eb97a5888b8339bc66a9
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
import math def test(rank, left, right, n, x, y) : if n == 0 : if x > 0 : if right > y : return 1.0 else : return 0.0 else : if left > y : return 1.0 else : return 0.0 #...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
73e9576f7c22061ccd62f5111e442fa156109f2d
38cacbe9ec2f8ea4540f5aed31da60ac3595c08b
/tests/utils.py
b2b5b9aa0b054a7399086693022be53f9da50f24
[ "Apache-2.0" ]
permissive
naure/YaP
14bac663cdf31bda58dd5288f1f297ffa164a742
e4f9c8b00a463b4fedceb6d9241dd9c723607562
refs/heads/master
2020-04-06T06:56:17.027479
2016-08-23T19:34:15
2016-08-23T19:34:15
24,347,882
6
1
null
null
null
null
UTF-8
Python
false
false
968
py
import difflib def red(s): return '\033[91m' + s + '\033[0m' def green(s): return '\033[92m' + s + '\033[0m' def color_diffline(line): if line.startswith('-'): # Red return red(line) if line.startswith('+'): # Green return green(line) return line def diff(a, b, **kwargs): ...
[ "devnull@localhost" ]
devnull@localhost
60112dc2b60f73bf2d1353313923ac3433aa5be3
30cffb7452220c2ac2961dd2e0f42e3b359a59c0
/simscale_sdk/models/ground_relative.py
9f70ec5cb7f1b769bb77f048419ec92fffa6e3f3
[ "MIT" ]
permissive
vpurcarea/simscale-python-sdk
0bf892d8824f8d4599caa0f345d5ba28e038f5eb
6f2d12b2d21142bd854042c0fb402c2c797629e4
refs/heads/master
2023-03-14T04:31:06.226337
2021-03-03T16:20:01
2021-03-03T16:20:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,290
py
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class GroundRelative(object): """NOTE: This class is auto generated b...
[ "simscale" ]
simscale
6e14b31178f64e5288bfaa4ef92323615e3ab96c
ed6cb6f58b36f16d38e0f7909173c67c15575a3f
/smart_compress/models/base.py
a381b2ad5ac4abdb3dfa1faf51075fcd05ebbe9f
[]
no_license
gthparch/etri-quant
4698e50ed1f835ced5b69f928cda5bc2e357657f
36cfb72f50937b65762fac0f12f044714b755a66
refs/heads/main
2023-08-14T21:42:10.007259
2021-10-09T01:28:40
2021-10-09T01:28:40
415,169,674
0
0
null
null
null
null
UTF-8
Python
false
false
5,904
py
from abc import abstractmethod from argparse import ArgumentParser, Namespace from typing import Iterator, Type, Union import pytorch_lightning as pl import torch import torch.nn.functional as F from argparse_utils.mapping import mapping_action from smart_compress.util.pytorch.hooks import wrap_optimizer from torch im...
[ "caojiashen24@gmail.com" ]
caojiashen24@gmail.com
4e7a822623cae02b8a770d73d3e214da5a0056c0
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/networks1216.py
05847acaccb6e806629fb44d584e05d7924634a3
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
7,579
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __version__ = 205 # Number of continuous features (E, t, dca) n_features = 3 geom_dim = 3 class SelfAttn(nn.Module): """ Self attention Layer""" def __init__(self, dim): super().__init__() self.query_conv =...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
bc0fa8f250c68c7f999971227b923c04b645ab61
4768e4ad67416e8b93344ccf647954398fd69561
/microblog/db_helpers.py
3a122e3cead9c5f0c55ae35f8a93a6433a264d6e
[]
no_license
cleartext/Enterprise-Microblogging-Server
ee0624c004faa8c6ade282a28949fe9a17438e89
befff4b9ec64b395a9ef55b52ed563a4168bc07f
refs/heads/master
2016-09-06T16:23:39.454558
2011-01-25T21:56:46
2011-01-25T21:56:46
1,288,330
3
2
null
null
null
null
UTF-8
Python
false
false
678
py
""" Different database helpers, to retrive information about users. """ from microblog.models import User from microblog.exceptions import UserNotFound def get_user_by_jid(jid, session): jid = jid.split('/', 1)[0] user = session.query(User).filter(User.jid==jid).scalar() if user is None: raise User...
[ "svetlyak.40wt@gmail.com" ]
svetlyak.40wt@gmail.com
a4de822d452f9b30465f5be889f1f3b10fb5bd39
6c10c6e229014dc3bf14efaec2ea8bf07c406752
/AILearning/ComputerVision/ImageClassification.py
5ddaebaa3e190d8957c87cd97df64729df342429
[]
no_license
GuyRobot/AIPythonExamples
e59c6edb355d9cadee2b3f19a087b1b656956262
4acdd0d4966e31a616910554bc075b641aa152df
refs/heads/master
2021-05-21T13:05:49.615593
2021-02-28T06:41:04
2021-02-28T06:41:04
252,662,467
0
0
null
null
null
null
UTF-8
Python
false
false
7,674
py
import collections from d2l import AllDeepLearning as d2l from mxnet import gluon, init, nd, autograd from mxnet.gluon import nn import os import pandas as pd import shutil import time import math import tarfile from pathlib import Path data_dir = "E:/Python_Data/cifar-10/" # tiny_data_dir = "E:/Python_Data/kaggle_cif...
[ "bluexker@gmail.com" ]
bluexker@gmail.com
0ff320ce0727df5f0904b4620d4c6d0545a34571
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_mirroring.py
a70d8db0f6d067749196aa854f55063eb436422f
[ "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
226
py
#calss header class _MIRRORING(): def __init__(self,): self.name = "MIRRORING" self.definitions = mirror self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['mirror']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
b4c1978dceeb02f1e9f67909e5ca91c0b929cef9
b007d88e6726452ffa8fe80300614f311ae5b318
/educative.io/coding_patterns/two_pointers/triplet_sum_to_zero.py
cf9fb664ace0958b7075ee5471e82813d78f042d
[]
no_license
jinurajan/Datastructures
ec332b12b8395f42cb769e771da3642f25ba7e7f
647fea5d2c8122468a1c018c6829b1c08717d86a
refs/heads/master
2023-07-06T14:42:55.168795
2023-07-04T13:23:22
2023-07-04T13:23:22
76,943,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,271
py
""" Given an array of unsorted numbers, find all unique triplets in it that add up to zero. Example 1: Input: [-3, 0, 1, 2, -1, 1, -2] Output: [-3, 1, 2], [-2, 0, 2], [-2, 1, 1], [-1, 0, 1] Explanation: There are four unique triplets whose sum is equal to zero. Example 2: Input: [-5, 2, -1, -2, 3] Output: [[-5, 2, 3...
[ "jinu.p.r@gmail.com" ]
jinu.p.r@gmail.com
8f3d58a6187c5c0b08864b3b0efa195d47915b34
dabf4121ac793c2cfe87ff525a8a0f7305ea2c59
/plugins/maya/publish/extract_pointcache_abc.py
a086790b49e5224c1d72527853aaeadeeda9c52b
[ "MIT" ]
permissive
Lynn5160/reveries-config
9d91210ebde47a69bb00614f95341a7ce313118f
1928e4d41acc4861ffa3260fa855ca77561285b0
refs/heads/master
2022-11-13T21:13:47.665939
2020-07-02T08:24:21
2020-07-02T08:24:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,148
py
import contextlib import pyblish.api class ExtractPointCacheABC(pyblish.api.InstancePlugin): """ """ order = pyblish.api.ExtractorOrder hosts = ["maya"] label = "Extract PointCache (abc)" families = [ "reveries.pointcache.abc", ] def process(self, instance): from may...
[ "davidlatwe@gmail.com" ]
davidlatwe@gmail.com
499c1470a1433ed4086dcaf206216e5fda9b4ec6
a839135eae95f745f1d9edb370ac459854042cce
/tests/test_feed.py
4b9c19439fe949c370936b6b86e25b4acde5b1bb
[ "MIT" ]
permissive
d21d3q/thermalprinter
8afae538fa81055bf47710390af1c213b86455fc
a502fe8a7b7ab5a0773e92a37e6539f73b34b950
refs/heads/master
2023-03-16T01:49:52.478726
2022-06-02T10:52:23
2022-06-02T10:52:23
164,908,229
0
0
MIT
2019-01-09T17:31:32
2019-01-09T17:31:25
Python
UTF-8
Python
false
false
771
py
# coding: utf-8 import pytest from thermalprinter.exceptions import ThermalPrinterValueError def test_changing_no_value(printer): printer.feed() assert printer.feeds == 1 def test_changing_good_value(printer): printer.feed(42) assert printer.feeds == 42 + 1 def test_bad_value__not_int(printer): ...
[ "contact@tiger-222.fr" ]
contact@tiger-222.fr
756caf90edd534e5f336c64ff1742c1aa610a6d9
945f9c5c34b42fd7863c525f7e54d2c88a5950e6
/pyppl_strict.py
c29178d57ce1b3515b5241aa48a033f133e73c5d
[ "MIT" ]
permissive
stjordanis/pyppl_strict
0c517a4e803e039b09602c385a75cbcd773514fc
efd4d361ddda3f95b1249cee612ef9f5d7b46123
refs/heads/master
2022-09-28T02:09:19.641392
2020-06-06T05:14:33
2020-06-06T05:14:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,010
py
"""More strict check of job success for PyPPL Features: 1. make sure all outputs have been generated 2. allow custom returncode settings 3. allow a custom script to check the output file """ from os import utime import random import cmdy from pyppl.plugin import hookimpl from pyppl.config import config from pyppl.jobmg...
[ "pwwang@pwwang.com" ]
pwwang@pwwang.com
a5fb8ff0526b379fe6f367eb993bd6f0943b7aac
f8b4461f66801fa624ec1798c4547b6f5c9bdf51
/SpaceInvaders/train.py
e950d4b70255c9c88363bf6d9d3eb624142b5460
[]
no_license
jcw024/NEAT-retro
5c713aea81efecc108c88e7dde434586c66e35a1
fdf9a6044e934fb658ad86cad2730690b7af8975
refs/heads/master
2021-10-24T13:57:41.696033
2021-10-23T02:42:49
2021-10-23T02:42:49
165,330,293
2
1
null
null
null
null
UTF-8
Python
false
false
3,121
py
#! /usr/bin/env python from __future__ import division import retro import numpy as np import cv2 import neat import pickle import cProfile import argparse parser = argparse.ArgumentParser() parser.add_argument('--checkpoint', '-c', type=str, help='checkpoint file to continue previous run') args = parser.parse_args()...
[ "=" ]
=
0e0a01939fd310d7aafb5cccf0c79513c9cf03ab
a7bc6a7c45c58ac08e295b77d4a19769bfd97463
/NMT/Transformers_NMT/process_data.py
98081e75fabdfaea0b0488852ea04fb70cffe3ca
[]
no_license
pnageshkar/NLP_pytorch_project
cc2a3fb8a41e7d2d8a794561e1b9a971b36f2cfa
57d2ac65a0cf21dca43a9329f6c25e6a23854e15
refs/heads/master
2022-11-14T14:59:03.099067
2020-07-09T09:05:10
2020-07-09T09:05:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,056
py
""" @file : process_data.py @author: xiaolu @time : 2019-12-26 """ ''' 主要功能: 1. 对中文文本和英文文本建立词典 然后存到vocab.pkl 2. 将训练集和验证集转化为id序列 然后存到data.pkl ''' import os import pickle from collections import Counter import jieba import nltk from tqdm import tqdm from config import Config from utils import normalizeString,...
[ "lu.xiao@tcl.com" ]
lu.xiao@tcl.com
ea1091477d699b137e6ab824d5bb4743d7cd9fe0
18f672d3239d199770756ebb8000f6544b5093fb
/stock/migrations/0002_product_name_short.py
ea5dd79e743fe0fc8e7ce026a967bf1d7ae275ab
[ "Apache-2.0" ]
permissive
pkimber/old-stock-migrated-to-gitlab
a8cc4adca8c90fe9fff134ff5fd31b37e914d3db
e712dd19684cdc2028bfea42c373c19ab3aab152
refs/heads/master
2021-06-15T10:58:03.884840
2017-04-13T15:23:00
2017-04-13T15:23:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-30 12:46 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stock', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "code@pkimber.net" ]
code@pkimber.net
d8e6164c4728fb4b27177e08f4714d8ae4094824
10123c03954bfd57e6b9ee0acbe93e61c11dc6d0
/Permutations.py
01368d7730607adce93caeb2b458812778a12f72
[]
no_license
ramchinta/python
4a720d27fd137d32d83326338ad1748c17cd5998
e82305a822ea200086a0978a29c18ab65a3b18fb
refs/heads/master
2020-09-02T06:49:30.365372
2020-05-09T08:22:57
2020-05-09T08:22:57
219,160,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
'''Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ]''' class Solution: def permute(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ ...
[ "mithrachinta@gmail.com" ]
mithrachinta@gmail.com
9ea9c27397cba8d779b2f23ebe41b720d863300d
632efa9e1991bc632aaba4783e05c942afc77712
/tests/py/test_goal.py
e180004421eec2fb754be4f7d4fe2dadeaa2aba3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
astiob/liberapay.com
82e2785b17a104197c483bf5dd1c1cc85cc1cb26
29842f7aeaaaca99f4427ff43ebdefd41223ff9c
refs/heads/master
2020-04-05T23:39:24.843313
2016-04-19T13:02:07
2016-04-19T13:02:07
56,925,959
0
1
null
2016-04-23T15:22:00
2016-04-23T15:22:00
null
UTF-8
Python
false
false
2,309
py
from __future__ import print_function, unicode_literals from decimal import Decimal from liberapay.testing import Harness class Tests(Harness): def setUp(self): self.alice = self.make_participant('alice') def change_goal(self, goal, goal_custom="", auth_as="alice"): return self.client.PxST...
[ "changaco@changaco.oy.lc" ]
changaco@changaco.oy.lc
086dd62330fcf5b767d3e54b7e8ca44c0db75ec7
ec1aa6a0217c29301b08c8b9559be1f8a346502b
/correctiv_eurosfueraerzte/admin/__init__.py
e4eabaa7c8211dc838ab3b52a39e8e2ede241a5f
[ "MIT" ]
permissive
correctiv/correctiv-eurosfueraerzte
091039881130fa6c7a78811cdc9bf00893aa6906
291c358d65eccf06034e409d888de56a4545c7b7
refs/heads/master
2022-12-16T03:24:41.366597
2017-08-16T13:37:33
2017-08-16T13:37:33
53,336,927
5
0
MIT
2022-11-22T01:53:29
2016-03-07T15:39:45
Python
UTF-8
Python
false
false
788
py
from django.contrib import admin from ..models import (PharmaCompany, Drug, ObservationalStudy, PaymentRecipient, PharmaPayment, ZeroDoctor, ZeroDocSubmission) from .base import (PharmaCompanyAdmin, DrugAdmin, ObservationalStudyAdmin, PaymentRecipientAdmin, ...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
f7f852b199e0f51ab15fa49c3bcdb5463ef18a76
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/NbZ2cMeEfH3KpQRku_24.py
d4f52eab2e0c8c08f9daf43571dcc4231657dce1
[]
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
1,541
py
""" You are given a list of `0`s and `1`s, like the one below: [0, 1, 0, 0, 0, 1, 1, 1, 0, 1] # The first element, a 0, and the last element, a 1 are both unhappy. # The second element, a 1 is unhappy. # The second-to-last element, a 0 is unhappy. # All other numbers in this list are happy....
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
fccf0b7bd873beb81a2e03f845b1ab61e0cd8002
a2dc75a80398dee58c49fa00759ac99cfefeea36
/bluebottle/funding/migrations/0023_bankpayoutaccount.py
4c2896a6cfd4e6e3a3b9b656a801977f9e27dd97
[ "BSD-2-Clause" ]
permissive
onepercentclub/bluebottle
e38b0df2218772adf9febb8c6e25a2937889acc0
2b5f3562584137c8c9f5392265db1ab8ee8acf75
refs/heads/master
2023-08-29T14:01:50.565314
2023-08-24T11:18:58
2023-08-24T11:18:58
13,149,527
15
9
BSD-3-Clause
2023-09-13T10:46:20
2013-09-27T12:09:13
Python
UTF-8
Python
false
false
1,430
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-08-26 10:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('funding', '0022_auto_20190804_1022'), ] operation...
[ "loek@goodup.com" ]
loek@goodup.com
c4fe86c6132760476a28ff976caa14c7b657506f
691793de7d07b17918d076b319281c706f7275c0
/test/test_notification_event.py
547cb7800d3e17e7eddff3c860fb253bd77ae619
[ "MIT" ]
permissive
signingtoday/signingtoday-sdk-python
1ddfae5340690c80760c500436631d4a8ff9c87f
ed267279622fb59f2ad8fa289157fc9cdf9d8a5b
refs/heads/master
2020-12-03T15:32:35.755222
2020-03-24T08:27:11
2020-03-24T08:27:11
231,372,803
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
# coding: utf-8 """ Signing Today Web *Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: send invitatio...
[ "smartcloud@bit4id.com" ]
smartcloud@bit4id.com
6c5d71530c58702155e5b75c3fe0457827dc44a5
b8e885e1546dfb7a45dc7da7718d73ae4103196e
/nebula/__init__.py
7fd8272fa8e9757aa84f2b70df4bef4fdf4bb229
[]
no_license
dannon/nebula
b4655b3b5401c528d25ae973763c4dd82d367ab6
5ca94404894f9a64b8adf2afbc37381757ae6b7a
refs/heads/master
2021-01-18T16:00:41.768529
2014-09-23T20:29:55
2014-09-23T20:29:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
# 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, software # distributed under the L...
[ "kellrott@gmail.com" ]
kellrott@gmail.com
0d5998dc0bdef8074798becd45da509feac2c687
2f0aa66e14c6595289f6a0de2bdf71e9922052a7
/nextApi/company/serializers.py
a8e40069f87047ad03eef4ae796f22982d9f0f9f
[]
no_license
aimethierry/NextApi
8f83a2b0f499fdf5118eb930baa051584cfd9aa5
90884ee6d900ce71116b40276dda0e97bec0b521
refs/heads/master
2022-12-11T09:03:54.981284
2020-09-19T12:40:36
2020-09-19T12:40:36
296,866,571
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
from rest_framework import serializers from .models import Company class companySerializer(serializers.ModelSerializer): class Meta: model = Company fields = ['name', 'country', 'city', 'street', 'pbox', 'description']
[ "aime.thierry97@gmail.com" ]
aime.thierry97@gmail.com
89859a5f2de10fec32b6d37f696243b99ef2ff8e
0c785a2601f2b02c1636d57c70039f0c4f08294a
/pybles/PySrc/tests/test_jyserver.py
81f3ce332de8e93c0ed3f6cf8c9c62c15242b1c1
[]
no_license
SoftwareEngineeringToolDemos/ICSE-2012-CodeBubbles
bc26d9655fbd56e5f61364db1c176a3539653d7f
6da209c1ff0f7fbfa958c97dc22ec478b2b5219c
refs/heads/master
2021-01-17T13:35:48.729810
2016-06-24T19:42:07
2016-06-24T19:42:07
45,094,073
0
2
null
null
null
null
UTF-8
Python
false
false
5,869
py
''' @author Fabio Zadrozny ''' import sys import unittest import socket import urllib IS_JYTHON = sys.platform.find('java') != -1 if IS_JYTHON: import os #make it as if we were executing from the directory above this one (so that we can use jycompletionserver #without the need for it being in the p...
[ "you@example.com" ]
you@example.com
e6f76838cc8948c487e9b5d7f982f891fd930d1a
7c74ceb9f8addcc0816d012e0b84b174b96e0def
/src/azure-cli/azure/cli/command_modules/aro/_rbac.py
3b993a002cd0239d028eae1e6aec6d2af2013b6b
[ "MIT", "LGPL-2.1-only", "LGPL-2.1-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
microsoft/azure-cli
4c826290e7a6f6bd27da3829b05e4f02ff6dc8d9
9ba64b33f6f78e2c3e42f8a147f59484300e8779
refs/heads/dev
2023-08-31T08:51:39.526556
2022-11-28T19:08:23
2022-11-28T19:08:23
370,900,439
7
7
MIT
2023-08-01T23:34:50
2021-05-26T03:59:41
Python
UTF-8
Python
false
false
2,862
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
microsoft.noreply@github.com
52ac0359f5fb4a6ae85782c49c80f98062649017
34a70bf642b6f678dce2b22efc598656a1a7d90a
/GraphCodes/CyclesUndirectedGraph.py
5a36ee8efbc7fa46ab572f4fc8f242ead3212579
[]
no_license
CodeForContribute/Algos-DataStructures
ce89a313b3e32de57f23b263966a84bb020e6a18
d0ddc7c8f94270f9269a9a5233b3a07fe59c9a1f
refs/heads/master
2022-03-28T03:08:17.934077
2019-11-23T21:58:03
2019-11-23T21:58:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,240
py
from collections import defaultdict class Graph: def __init__(self, vertices): self.vertices = vertices self.graph = defaultdict(list) def addEdge(self, u, v): self.graph[u].append(v) # me Complexity of this method is same as time complexity of DFS traversal which is O(V+E) d...
[ "RAUSHAN.KUMAR2@otis.COM" ]
RAUSHAN.KUMAR2@otis.COM
b107848bc925c50961146c951860c3bfc5fbe2c3
397e125e94f4f139f2bf5055824d81f24b8b1757
/ABC/137/E.py
7c09e79bfacdc5cdd6e89aa3d749feeb7e189c9a
[]
no_license
tails1434/Atcoder
ecbab6ee238e3f225551297db961b1b502841fa4
e7c7fed36be46bbaaf020a70997842240ba98d62
refs/heads/master
2021-07-07T00:31:49.235625
2020-09-30T01:42:01
2020-09-30T01:42:01
189,009,622
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
from collections import deque import sys input = sys.stdin.readline def main(): N, M, P = map(int, input().split()) edge = [] g = [[] for _ in range(N)] rg = [[] for _ in range(N)] for _ in range(M): A, B, C = map(int, input().split()) A -= 1 B -= 1 C -= P C...
[ "sososo1333@gmail.com" ]
sososo1333@gmail.com
a09fbeb5fff9be004c863cc1d188a6c2e4edecd2
ce196aba0adde47ea2767eae1d7983a1ef548bb8
/T30-turtle-带轴sin(x).py
65b1abeeb749519d38055915ef35d8a1c0f3e5ca
[]
no_license
xiang-daode/Python3_codes
5d2639ffd5d65065b98d029e79b8f3608a37cf0b
06c64f85ce2c299aef7f9311e9473e0203a05b09
refs/heads/main
2023-08-30T14:59:55.123128
2021-11-03T05:12:24
2021-11-03T05:12:24
333,632,892
0
2
null
null
null
null
UTF-8
Python
false
false
756
py
import math from turtle import * N = 100 def f(x): return x def jumpto(x, y): penup() goto(x,y) def line(x1, y1, x2, y2): jumpto(x1, y1) pendown() goto(x2, y2) def coosys(): width(4) pencolor('red') line(-N, 0, N+1, 0) pencolor('blue') line(0, -2,...
[ "noreply@github.com" ]
xiang-daode.noreply@github.com
a24ea528d1d4837e64a95d27a224929645603346
90c2619937019bb1145edfb2d9d6a7cdea460b57
/src/783.py
4a993223e7ea44eab55e13ecca14d8d860f897c5
[ "MIT" ]
permissive
zhaoyi3264/leetcode-solutions
2d289a7e5c74cfe7f8b019c6056ce16485ae057b
1a3a2d441cdd07a17e80b0ea43b7b266844f530c
refs/heads/main
2023-06-03T11:35:25.054669
2021-06-28T02:58:07
2021-06-28T02:58:07
349,618,427
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: prev = -float('inf') ans = float('inf') def minDiffInBST(self, root: TreeNode) -> int: ...
[ "zhaoyi3264@gmail.com" ]
zhaoyi3264@gmail.com
51f1741be15eb364a9879aef8b51ed191d5ebdfa
de577e64440d2c330ff0018e8bfb7cf3abf11b70
/fsleyes/plugins/tools/addroihistogram.py
e388e0aa2128585e355eae1a475c08d34bb2f652
[ "Apache-2.0", "CC-BY-3.0", "BSD-3-Clause" ]
permissive
CGSchwarzMayo/fsleyes
bb887bf8e8dd46bb9e0e3d5c3028d97811fabad1
37b45d034d60660b6de3e4bdf5dd6349ed6d853b
refs/heads/master
2023-09-01T01:39:38.508051
2023-08-21T18:21:34
2023-08-21T18:21:34
272,476,938
0
0
NOASSERTION
2020-06-15T15:34:36
2020-06-15T15:34:34
null
UTF-8
Python
false
false
5,615
py
#!/usr/bin/env python # # addroihistogram.py - The AddROIHistogramAction class. # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :class:`AddROIHistogramAction` class, an action used by the :class:`.HistogramPanel`. """ import wx import numpy as np import fsl.data.image ...
[ "pauldmccarthy@gmail.com" ]
pauldmccarthy@gmail.com
ff1b4b20c92851e1bdcfd180c5b9f4b46b22dbdb
0ea15da8de03fa9ad7acce50c03824ced868a4e7
/awesome_itech_project/awesome_itech_project/wsgi.py
e4fd12ce9b44444d43b7c3da64df723fa319c0de
[]
no_license
Zhouhao12345/AwesomeITECH
6b23d2c40c2c74be237eba2396b83188b7750e13
57f1f9bc304f407edbcb9f64ff289037d9aff7f2
refs/heads/master
2021-01-10T14:43:04.994235
2016-03-25T21:15:09
2016-03-25T21:15:09
52,460,370
1
1
null
null
null
null
UTF-8
Python
false
false
417
py
""" WSGI config for awesome_itech_project 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/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "awesome_itech_project.se...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b7d41e8d6776f9362fcd567214b789af65441908
1719920a92f7194766624474b98d59ef8d6eddaf
/models/mobile_app_content_file.py
51e891805d2376f4dff51e5a5f0d891a13e2d963
[ "MIT" ]
permissive
MIchaelMainer/msgraph-v10-models-python
cfa5e3a65ba675383975a99779763211ed9fa0a9
adad66363ebe151be2332f3ef74a664584385748
refs/heads/master
2020-03-19T12:51:06.370673
2018-06-08T00:16:12
2018-06-08T00:16:12
136,544,573
1
0
null
null
null
null
UTF-8
Python
false
false
4,626
py
# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __future__ import unicode_literals from ..model.mobile_app_con...
[ "mmainer@microsoft.com" ]
mmainer@microsoft.com
ff268df9cf570e57179bf90ed24e13ec67a171d6
98ac0b139301285ece1a4bc9f13b75433d263419
/torchreid/models/mlfn.py
ec712d66f781745c4f0c329560cfd572515eda3e
[ "MIT" ]
permissive
sovrasov/deep-person-reid
eb0e6b2f0bb3fa6dc22205fd443fd583f9951cd2
79773b88986c26e9ac2407af5999923426298a8f
refs/heads/master
2021-09-13T04:31:15.620950
2019-11-14T08:06:34
2019-11-14T08:06:34
202,522,569
1
1
MIT
2019-11-14T08:06:36
2019-08-15T10:35:17
Python
UTF-8
Python
false
false
7,569
py
from __future__ import absolute_import from __future__ import division __all__ = ['mlfn'] import torch from torch import nn from torch.nn import functional as F import torch.utils.model_zoo as model_zoo model_urls = { # training epoch = 5, top1 = 51.6 'imagenet': 'https://mega.nz/#!YHxAhaxC!yu9E6zWl0x5zscSo...
[ "k.zhou@qmul.ac.uk" ]
k.zhou@qmul.ac.uk
ca0e2147614ffa23c1d12256ceb2c465f8ef9ee1
8cefaf15f2b70bc3457047351151f85dbffc191e
/tools.py
2a0c12b25219e29de93b58540ba2a51db4d1e70a
[]
no_license
tjacek/ortho_selection
183fa86088d94f343b191538493035ad31c4d1d7
ee923bfda63262ce62033f8e633f1ac37804ce21
refs/heads/master
2023-01-21T09:18:07.671478
2020-12-02T21:53:22
2020-12-02T21:53:22
265,209,732
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
import itertools import feats def filtered_dict(names,dic): return { name_i:dic[name_i] for name_i in names} def split(names,selector=None): if(type(names)==dict): train,test=split(names.keys(),selector) return filtered_dict(train,names),filtered_dict(test,names) if(not selector): ...
[ "tjacek@agh.edu.pl" ]
tjacek@agh.edu.pl
892a16eacf42bc8b91b6898224179f9044e23c40
4dc5944ffad7f251b467200ba5101000561c2bdf
/iniciante/2879.py
0dab20c1683c9fc7cb5621f11332df7ce287b7bd
[]
no_license
DyogoBendo/URI-Python
3215337229fdb5ef1a446231925c72da4d1ea64b
40376e0fbb2e7dd97ba316a20863826b4753c601
refs/heads/master
2023-06-03T08:36:06.745086
2021-06-16T02:00:11
2021-06-16T02:00:11
314,667,743
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
if __name__ == "__main__": n = int(input()) w = 0 for i in range(n): p = int(input()) if p != 1: w += 1 print(w)
[ "dyogoromagnabendo@gmail.com" ]
dyogoromagnabendo@gmail.com
89049661b471aab41331bcd78d322b1768555aa0
44e14881c8e248c347dd81f0574c4f306c684d64
/mysite/settings.py
c800c4c0e67641a4ccd20b759ee29dff8311daf4
[]
no_license
eduarde/OrderHelperApp
f38af40fc492c6300c3ac70ba2e740789b1d7261
83938a7f50519f45dcbb96d6dbf1ea49559e28fa
refs/heads/master
2021-01-10T12:30:47.142918
2016-03-17T20:05:38
2016-03-17T20:05:38
52,556,674
0
0
null
null
null
null
UTF-8
Python
false
false
3,709
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os impor...
[ "eduard.erja@gmail.com" ]
eduard.erja@gmail.com
2ea70bfaa953a1c8cc5b12b1a97ff742bf1dc11c
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/picnic/test_services.py
bc80ff73a11f0e084c64a9bd9984de5caa683527
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
6,777
py
"""Tests for the Picnic services.""" from unittest.mock import MagicMock, patch import pytest from homeassistant.components.picnic import CONF_COUNTRY_CODE, DOMAIN from homeassistant.components.picnic.const import SERVICE_ADD_PRODUCT_TO_CART from homeassistant.components.picnic.services import PicnicServiceException ...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
dfe1ced20ccf2b601d73682bc0dc97808d4d7108
4e82bbef275a42ea7c9d58cab546de938fd82064
/pywad/browser/firefox.py
3f6db16f9a6599f59f12f7e7f4568f41eea8103a
[]
no_license
TakesxiSximada/pywad
9a1f115f92f362ebaf5ee4767dd6b468ba9a1f51
8ad88595a8f00f4232c24167b5517db8e7c4993e
refs/heads/master
2016-09-02T04:39:17.736770
2015-03-16T09:37:45
2015-03-16T09:37:45
27,847,444
2
0
null
2015-03-16T09:34:31
2014-12-11T00:57:55
Python
UTF-8
Python
false
false
2,066
py
# -*- coding: utf-8 -*- from selenium.webdriver import Firefox, Proxy, FirefoxProfile class FirefoxFactory(object): """The borwser factory class of Firefox. """ default_profile = { 'security.warn_entering_secure': False, 'security.warn_entering_secure.show_once': True, 'security.w...
[ "takesxi.sximada@gmail.com" ]
takesxi.sximada@gmail.com
618d07f2b7895b24d0458ce034dfafb50ecff6dd
39597cb5c9a04470381b630a070217506e054d3b
/deadfish.py
018611f4b61da3bb3a2a40c0f60595dc75f65877
[]
no_license
tahentx/gridshift
bc3aef88ac7736f62d187c486d079543ce0b8d68
9cc8fcc06f0784a321faee103f8ccfe3b3aa13d2
refs/heads/master
2021-06-28T23:05:20.059776
2020-05-17T16:46:46
2020-05-17T16:46:46
237,519,217
0
0
null
2021-06-10T15:47:36
2020-01-31T21:28:49
Jupyter Notebook
UTF-8
Python
false
false
488
py
def parse(data): data = list(data) box = [] value = 5 for char in data: if char == "i": value = value + 1 box.append(value) elif char == "d": value = value - 1 box.append(value) elif char == "s": value = value ** 2 ...
[ "hendricks.ta@gmail.com" ]
hendricks.ta@gmail.com
f576cc3486e53efcdc3ec4c131c5bba9f36f9abd
bd08d0532f20b7285b437c9bf620de1bbcd5b9ea
/aalh_iit_jdoylewitgencollection/debug-convert-dates.py
bd1f624cc039e31df7b49158095233069740cbae
[ "Unlicense" ]
permissive
johndewees/iitmigration
a9e8a31ba6ceb541ce12c22fd612596cc243dbca
4dadfbecda719d6e7d60af076a231aedec3c862f
refs/heads/main
2023-03-14T17:06:58.777683
2021-03-27T20:44:58
2021-03-27T20:44:58
320,086,321
0
0
null
null
null
null
UTF-8
Python
false
false
1,787
py
from openpyxl import load_workbook filename = 'aalh_iit_jdoylewitgencollection.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 31 maximumcol = 31 minimumrow = 7 maximumrow = 200 iterationrow = 7 targetcol = 31 for row in ws.iter_rows(min_row=minimumrow, min_col=minimumcol,...
[ "noreply@github.com" ]
johndewees.noreply@github.com
d08c52d6ec07887f972f0b6586973801cc248350
6cbaade56c5db347d1be9a3422a69af52df39b97
/python_workspace/3_bigdata/02_Standardization_Analysis/2_Excel/12_excel_introspect_all_workbooks.py
c11c104903944b5e2737168189535a1e3837ade5
[]
no_license
baewonje/iot_bigdata_-
b54e3772f64b9695efee8632183590628b679e11
2ce1af67d2f05abeb2ecd442b7299f349bdb9753
refs/heads/master
2020-09-06T09:53:53.018320
2019-12-06T08:19:33
2019-12-06T08:19:33
220,390,928
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
# !/usr/bin/env python 3 import glob import sys import os from xlrd import open_workbook input_directory = sys.argv[1] # Parameters = . workbook_counter = 0 for input_file in glob.glob(os.path.join(input_directory, '*.xls*')): workbook = open_workbook(input_file) print('Workbook: {}'.format(o...
[ "50129576+baewonje@users.noreply.github.com" ]
50129576+baewonje@users.noreply.github.com
e08c2dc8691e3a89398eb76dc78a075bebb81438
7e616a3b1928940467ec09a82b52d5b4d83984a1
/MODULE1/Activities/PREFECT/create_dw.py
1dede11f56bea15c470fed5c431d3cb08e61a576
[]
no_license
gustavo32/DataEngineeringBootcamp
70e4c2fb06a387418718df2929b89820a0a76c0d
704dbe11f33f27ab9eda5649990685f153048429
refs/heads/main
2023-01-28T17:38:36.182545
2020-12-07T20:12:37
2020-12-07T20:12:37
316,643,488
0
0
null
null
null
null
UTF-8
Python
false
false
3,135
py
from datetime import datetime, timedelta import pendulum import prefect from prefect import task, Flow from prefect.schedules import CronSchedule import pandas as pd from io import BytesIO import zipfile import requests import sqlalchemy import psycopg2 schedule = CronSchedule( cron= '*/10 * * * *', start_date...
[ "you@example.com" ]
you@example.com
e50542f228d6759629bd4a34572c3eb303e86f74
3f1a6ad5c0c9015653206f45f5395d006b663a14
/Q Learning/MTM/ARVIND/Run 9/GlobalVariables.py
3e2d5879ffdeb20c3f0fd1e851beb570cc01e9b0
[]
no_license
ciddhijain/Results
075c9c51bf8bebefdf3ca87f66a50c9c39d8461e
a3ce350885264a6bf5c277bd811ad1a9931ced18
refs/heads/master
2021-01-10T19:23:17.764638
2015-07-03T14:51:48
2015-07-03T14:51:48
37,335,721
0
0
null
null
null
null
UTF-8
Python
false
false
3,572
py
__author__ = 'Ciddhi' from datetime import timedelta, datetime databaseName = 'QL_ARVIND' # This is database name to which connection is made userName = 'root' # This is the user name for database connection password = 'controljp' # Thi...
[ "ciddhijain@gmail.com" ]
ciddhijain@gmail.com
cac0bf55441435485f57281a5edd5505e43adbd5
53db22afe7b2dc8344dd2ab0636644109708128f
/clab/nninit/__init__.py
f4854ab3143e64ac2d0a2683aa9e6858db9ca291
[ "Apache-2.0" ]
permissive
Erotemic/clab
5b5c11b2e4d39642f071c560e0e7caf3397c372d
89af79816d219cbecefefa209c0f6dc1fe390375
refs/heads/master
2018-10-09T18:04:31.762389
2018-08-13T14:23:38
2018-08-13T14:23:38
110,250,463
3
3
null
null
null
null
UTF-8
Python
false
false
747
py
""" python -c "import ubelt._internal as a; a.autogen_init('clab.nninit')" python -m clab """ # flake8: noqa from clab.nninit import base from clab.nninit import lsuv from clab.nninit.base import (HeNormal, KaimingNormal, KaimingUniform, NoOp, Orthogonal, Pretrained, VGG16, apply_initializ...
[ "crallj@rpi.edu" ]
crallj@rpi.edu
9c198d82430f363233c68b084eddf9cf7586ae1e
d61183674ed7de0de626490cfba77d67c298d1be
/py_scripts/bench_plot_neighbors.py
54b896c2395f7e0598e4cd69e6dd4c51357c11ad
[]
no_license
Giannos-G/python_dataset
bc670a53143d92cf781e88dee608da38b0e63886
18e24cbef16ada1003a3e15a2ed2a3f995f25e46
refs/heads/main
2023-07-25T20:24:31.988271
2021-09-09T10:31:41
2021-09-09T10:31:41
363,489,911
2
0
null
null
null
null
UTF-8
Python
false
false
6,405
py
""" Plot the scaling of the nearest neighbors algorithms with k, D, and N """ from time import time import numpy as np import matplotlib.pyplot as plt from matplotlib import ticker from sklearn import neighbors, datasets def get_data(N, D, dataset='dense'): if dataset == 'dense': np.random.seed(0) ...
[ "giannos.gavrielides@gmail.com" ]
giannos.gavrielides@gmail.com
fb518482a9258267dfecca4ed56546ae95d000cf
03b98276b252aa0e94142b65fd4b9dcd0a4d12ee
/Project.py
4d44581f8e3cc0aa66a52956f2641de9b4be4d85
[]
no_license
FrancescoSaverioZuppichini/scientists-keypoints-classification
b2c0ec30f5f7067d3809955f26a2f0cb051cdc2a
d1c4b6010e8c0f13271cd3304a137febf927c51d
refs/heads/main
2023-03-02T07:44:40.767193
2021-01-31T15:56:12
2021-01-31T15:56:12
334,368,509
0
0
null
2021-01-31T15:56:13
2021-01-30T08:49:52
Jupyter Notebook
UTF-8
Python
false
false
518
py
from dataclasses import dataclass from pathlib import Path @dataclass class Project: """ This class represents our project. It stores useful information about the structure, e.g. paths. """ base_dir: Path = Path(__file__).parents[0] data_dir: Path = base_dir / 'dataset' checkpoint_dir: Path = ...
[ "zuppif@usi.ch" ]
zuppif@usi.ch
a56e5646913bda05dbd46183d6ccfa161a785312
7a0f7ce00528b103c7b8b501f1e8333fc3a0836c
/Class Based Views/CBV/CBV/CBV_app/urls.py
e9a5006b2991b23bdefa7672692ccb6ffcd53603
[]
no_license
StefanDimitrovDimitrov/DjangoRESTFramework
605ea044f4039d5bb8017ffe2f33c54ea0ebacc0
076cac204d2b5b1a278b68d3883394d5dcc2c040
refs/heads/main
2023-07-15T01:55:52.550274
2021-08-27T16:34:40
2021-08-27T16:34:40
382,106,004
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
from django.urls import path from CBV.CBV_app.views import CBVList, Details, Create urlpatterns = [ path('', CBVList.as_view(), name='CBVList'), path('details/<int:pk>', Details.as_view(), name='details'), path('create', Create.as_view(), name='create') ]
[ "54206891+StefanDimitrovDimitrov@users.noreply.github.com" ]
54206891+StefanDimitrovDimitrov@users.noreply.github.com
e9441712b4248e5f710a43bc2f7edd338493dca2
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/5250fabed22b4ae590e1fc2c10ff7469.py
1d05c10071c4c66d5b3f7de258699ffdc3b7ceb5
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
465
py
# # Skeleton file for the Python "Bob" exercise. # def hey(what): #Strip whitespace what=what.strip() if (what==''): return 'Fine. Be that way!' elif (any(c.isalpha() for c in what) and what.upper()==what): #if the string contains letters, and all letters are uppercase (i.e. applying .upper() doesn't change the...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
9f455b8429dea02b5edeba4e91d0ff72aa48f3b9
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayDataDataserviceHellobikeLogSyncResponse.py
da91fbf326c81f03835b551c7221a1f8723c99fd
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
742
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayDataDataserviceHellobikeLogSyncResponse(AlipayResponse): def __init__(self): super(AlipayDataDataserviceHellobikeLogSyncResponse, self).__init__() self._biz_cod...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
8a01fbab7ddd08d936daca4f2b151f92b88385c5
e9ff112a590a2707e66c518328ba71a4d964846a
/train_scripts/train_c2i.py
f980e7fb7c32ab9e357e2dc4a9e4acdc8522b720
[ "MIT" ]
permissive
n644t031/fastMRI-kspace
60a6ca9679ede25f0db89f174647a8451a578331
4c484b3183e9f06838b5ee108af283611c2e1e77
refs/heads/master
2022-08-30T17:19:23.105996
2020-05-24T13:55:40
2020-05-24T13:55:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,068
py
import torch from torch import nn, optim from pathlib import Path from utils.run_utils import initialize, save_dict_as_json, get_logger, create_arg_parser from utils.data_loaders import create_prefetch_data_loaders from train.subsample import RandomMaskFunc, UniformMaskFunc from data.input_transforms import PreProce...
[ "veritas9872@gmail.com" ]
veritas9872@gmail.com
2c562bda934b4f62ab5ded428de590c8313dcc52
0b9e884be78ecc22a44a94e2c1cabefd637b9ed0
/Python_Talk/mpt-master/ch12/guess_letter.py
7c0efa9b99992a2bcda705aca8885edea8980335
[]
no_license
marcovnyc/penguin-code
6ba3faa5f21186918e2d08f5a0fcacebb2697e56
a0c1f91219ff74a8bb8e9fd3375b03b667056b54
refs/heads/master
2021-12-22T15:04:26.002512
2021-12-16T04:01:40
2021-12-16T04:01:40
7,264,458
0
0
null
null
null
null
UTF-8
Python
false
false
1,798
py
import turtle as t from random import choice # Set up the board t.setup(600,500) t.hideturtle() t.tracer(False) t.bgcolor("lavender") t.title("Guess the Word Game in Turtle Graphics") # Define a variable to count how many guesses left score = 6 # Create a second turtle to show guesses left left = t.Turtle(...
[ "penguin@penguin.com" ]
penguin@penguin.com
ee7d13e00cccdc88d49ad555a163e514fa7a1276
aad51b0ea59c38b23ed419e10b86c44aa947f117
/156/rrhood.py
cec768264e83a157a3edbe67b33fa6193bb99896
[]
no_license
berubejd/PyBites
3a1d7144f59f67a0996dbe224b69bc0b6da439d6
439446e8b67612a603713723b2d4a021677341d2
refs/heads/master
2021-07-14T14:03:51.819347
2020-11-01T14:59:02
2020-11-01T14:59:02
221,087,519
0
0
null
null
null
null
UTF-8
Python
false
false
5,346
py
#!/usr/bin/env python3.8 CHARACTERS = ['Red Riding Hood', # we're omitting 'mother' here for simplicity # (= substring grandmother) ('Grandmother', 'Grandma', 'Granny'), 'wolf', 'woodsman'] text = """ Once upon a time, there was a little girl who lived in a vill...
[ "berubejd@gmail.com" ]
berubejd@gmail.com
59ab9c4e25ae4f4d32c497ff085285a02ce8eae2
5b86d752424e303a5115ded25892776d3781bddf
/tools/forecast_data_select.py
c4ceec80ef4eccac6ff982ff5fac063d8bf44513
[]
no_license
GlassyWing/weather_predict_torch
3318e441768ebbaaac408cdd3c48133f7bc03495
0cbd0af4b787bb8624d65b9e31970161e29d05a2
refs/heads/master
2020-05-17T08:04:28.473337
2019-05-04T13:54:27
2019-05-04T13:54:27
183,597,527
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
import pandas as pd if __name__ == '__main__': weather = pd.read_csv("../data/weather.csv") weather = weather[(weather['year'] == 2017) & (weather['month'] == 5) & (weather['county'] == '仁和')][::-1] weather.to_csv("../data/forecast_test.csv", index=False)
[ "1490215053@qq.com" ]
1490215053@qq.com
beb9bd4c2cd0d682ed67c40ad31749fdf94ea87d
432ea480327c3e0ce37d605d1c4ac29a8b653853
/src/visions/backends/python/types/file.py
2886a3bce3435a710a17540736818199fafd230b
[ "BSD-4-Clause", "BSD-2-Clause" ]
permissive
dylan-profiler/visions
3f7f99b06cc8a7b90cb4df988dbbec6c329a8e0a
a0b55bbf95e6efe001195e4b497358d6283966b5
refs/heads/develop
2022-11-27T01:17:01.735418
2022-10-30T10:44:37
2022-10-30T10:44:37
227,633,867
188
23
NOASSERTION
2022-10-05T23:06:31
2019-12-12T15:09:01
Python
UTF-8
Python
false
false
246
py
import pathlib from typing import Sequence from visions.types.file import File @File.contains_op.register def file_contains(sequence: Sequence, state: dict) -> bool: return all(isinstance(p, pathlib.Path) and p.exists() for p in sequence)
[ "sfbbrugman@gmail.com" ]
sfbbrugman@gmail.com
4b6960d22383d7c69b3c5e10c4b64ac23a1c83e8
230553326780c93f60d552a95d50018025724b4b
/py-code/迭代器.py
0fa3e53eaa24b154fab2aaba25a75e2ac9777164
[]
no_license
g-lyc/PRACTICE
55108dbeb75893e4e6631ce3968420f1da0266ef
492f72a1c14b53982ada478890e6a5487a67c46e
refs/heads/master
2022-08-21T17:33:29.682865
2022-08-15T02:58:17
2022-08-15T02:58:17
51,586,693
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
#coding:utf-8 import os import sys # 生成器都是迭代器,迭代器不一定是生成器 l = [1,2,3,4,5] #可迭代对象,不是迭代器 d = iter(l) # l.__iter__() print(d) #<listiterator object at 0x0000000004DA5518> #什么是迭代器? #满足两个条件 1、有iter()方法 2、有next()方法 # for 循环内部三件事: # 1、 调用可迭代对象的iter方法返回一个迭代器对象 # 2、 不断调用迭代器对象的next方法 # 3、 处理StopIteration # Iter...
[ "309080979@qq.com" ]
309080979@qq.com
2b27287a81ce34c6bdfd3b3077d0ad39cac86b10
1f4204f903657884d9cccfd44b19ecb531b59ded
/test_settings/66_1_3_200.py
c083982ec3213706b72bcdccb9b5721887a8d8a3
[]
no_license
fmcc/StylometricAnalyser
795a8e4abe264ee18ab3bcb34bd128bcd06ac5ca
e86305a63c95d8b533cab4a3be0010c2fee0ff14
refs/heads/master
2021-01-23T08:38:44.961082
2013-08-31T20:23:36
2013-08-31T20:23:36
11,097,508
3
1
null
null
null
null
UTF-8
Python
false
false
540
py
import os DB_PATH = os.getcwd() + '/database/greek_texts.db' LOGGING = True DB_LOGGING = False NGRAM_WORDS = False NGRAM_LENGTHS = { 'MIN': 1, 'MAX': 3 } NO_SPACES = True RESTRICT_VECTOR_SPACE = 200 # If selected, texts will be divided according to their original top-level divisions (Books etc....
[ "finlaymccourt@gmail.com" ]
finlaymccourt@gmail.com
db000f476282e2536b72f3be77dc90f773225eb7
83544ef94ce2c1a05b6028ae2ce58ef8acfb6fa8
/pmca-console.spec
78c3eff77d7b1c5610639372fbb7074d05cd63eb
[ "MIT" ]
permissive
ma1co/Sony-PMCA-RE
9ae44c5b09580d62e860c3acff24bd1fac28a31e
a82f5baaa8e9c3d9f28f94699e860fb2e48cc8e0
refs/heads/master
2023-08-07T07:54:13.763912
2022-08-18T12:46:04
2022-08-18T12:46:04
35,510,548
1,788
228
MIT
2022-11-05T06:45:01
2015-05-12T20:18:25
Python
UTF-8
Python
false
false
177
spec
# Run `pyinstaller pmca-console.spec` to generate an executable input = 'pmca-console.py' output = 'pmca-console' console = True with open('build.spec') as f: exec(f.read())
[ "ma1co@users.noreply.github.com" ]
ma1co@users.noreply.github.com
20ed4c2c7261e9b4442d61d4810acd5d0b5743e6
385ab972316b41cb0643f1050f9220b8eaeb4647
/findDigits.py
41ec66dee85addf385ce1e7b73749ac75dcd3cb8
[]
no_license
Rpratik13/HackerRank
09174c9b331e25cec33848a80e9109800cdbc894
38b9a39261bfb3b2fc208ad1e3d8a485585b419a
refs/heads/master
2020-03-22T05:24:03.516086
2020-01-31T16:08:19
2020-01-31T16:08:19
139,563,106
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
def findDigits(n): temp = n count = 0 while temp!=0: d = temp%10 if d == 0: temp = temp//10 continue if n%d==0: count+=1 temp = temp//10 return count t = int(input()) for t_itr in range(t): n = int(input()) result = findDigits(n) print(result)
[ "r.pratik013@gmail.com" ]
r.pratik013@gmail.com
a277c31b1f5861dc5d0a8cf2c169ac2f24ea9e6b
2c143ba64032f65c7f7bf1cbd567a1dcf13d5bb1
/树/验证二叉树.py
52f08e37e653a6186347565b6ffa4d6440299a4a
[]
no_license
tx991020/MyLeetcode
5b6121d32260fb30b12cc8146e44e6c6da03ad89
cfe4f087dfeb258caebbc29fc366570ac170a68c
refs/heads/master
2020-04-09T21:43:41.403553
2019-03-27T18:54:35
2019-03-27T18:54:35
160,611,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
''' 给定一个二叉树,判断其是否是一个有效的二叉搜索树。 假设一个二叉搜索树具有如下特征: 节点的左子树只包含小于当前节点的数。 节点的右子树只包含大于当前节点的数。 所有左子树和右子树自身必须也是二叉搜索树。 示例 1: 输入: 2 / \ 1 3 输出: true 示例 2: 输入: 5 / \ 1 4 / \ 3 6 输出: false 解释: 输入为: [5,1,4,null,null,3,6]。 根节点的值为 5 ,但是其右子节点值为 4 。 ''' # Definition for a binary tree node. # cl...
[ "wudi@hetao101.com" ]
wudi@hetao101.com
60662f03bae36268062d3d500b1a75f366f385cd
91824d746654fe12881b4fc3b55c553aae0d22ac
/py/fizz-buzz.py
94d8d1eecae70b8c48ce696fb08d2f16527ea5db
[ "Apache-2.0" ]
permissive
ckclark/leetcode
a1a173c67a36a3256b198f853fcd3d15aa5abbb7
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
refs/heads/master
2021-01-15T08:14:43.368516
2020-02-14T07:25:05
2020-02-14T07:30:10
42,386,911
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
import sys class Solution(object): def fizzBuzz(self, n): """ :type n: int :rtype: List[str] """ ret = [] for i in xrange(1, n + 1): s = '' if i % 3 == 0: s += 'Fizz' if i % 5 == 0: s += 'Buzz' ...
[ "clark.ck@gmail.com" ]
clark.ck@gmail.com
40018adf13b332b79d6fb3be3827cb089212a630
610dedfb6e21d297e8cdbcba599a4e564bd785cb
/EstruturaDeRepeticao/estruturaderepeticao-29.py
5e9e0dce39884add04858ba5c6bdaa07905a59e9
[]
no_license
zumbipy/PythonExercicios
f7b2ddf2376b9ecb2aedc77531e3571dc746a12b
7a17b78cf927a2889b93238542e90e00810c43e6
refs/heads/master
2021-01-23T10:43:47.997462
2018-07-22T14:58:44
2018-07-22T14:58:44
93,086,120
1
1
null
null
null
null
UTF-8
Python
false
false
1,182
py
# Telegram: @ZumbiPy __ _ ___ # /_ / __ ____ _ / / (_) _ \__ __ # / /_/ // / ' \/ _ \/ / ___/ // / # /___/\_,_/_/_/_/_.__/_/_/ \_, / # E-mail: zumbipy@gmail.com /___/ """ 29 - O Sr. Manoel Joaquim possui uma grande loja de artigos de R$ 1,99, com cerca de 10 caixas. Para agilizar o cálculo de quanto cada ...
[ "zumbipy@gmail.com" ]
zumbipy@gmail.com
ae3a0a0301704c185845a2ce5ed9681188f3d08e
9dee94907e6456a4af9855d358693923c17b4e0d
/0015_3Sum.py
159dafa89798c41df6a1700328fa7950dc93e7eb
[]
no_license
chien-wei/LeetCode
e215915a8103e56f182040dacc9fb0d6996c86ec
0d6f414e7610fedb2ec4818ecf88d51aa69e1355
refs/heads/master
2021-05-13T14:48:22.891100
2019-08-20T05:52:59
2019-08-20T05:52:59
116,749,327
0
0
null
null
null
null
UTF-8
Python
false
false
1,277
py
class Solution: def threeSum(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ res = [] nums.sort() self.nSum(nums, 0, 3, [], res) return res def nSum(self, nums, target, n, result, results): #print(nums, target, n, re...
[ "chien-wei@outlook.com" ]
chien-wei@outlook.com
d2029e11c506652cd6919211d3bae4de432c9fb8
ba2a05f20454bda428f140634bc602699f164fc4
/00.SSAFY/1.first-semester/07_django/API/api/settings.py
871671aa9e43287bfe37e62f0f3a9b4c9fa4751f
[]
no_license
snowink1137/TIL
734da402e99afa52f1af4ef996a6b274b1bcce0b
9e9c78eb0c892affc88e2d46e143cef98af743fb
refs/heads/master
2023-01-08T18:26:34.311579
2021-11-14T11:04:22
2021-11-14T11:04:22
162,255,934
0
0
null
2023-01-07T11:09:09
2018-12-18T08:32:44
Jupyter Notebook
UTF-8
Python
false
false
3,183
py
""" Django settings for api project. Generated by 'django-admin startproject' using Django 2.1.7. 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 # Bui...
[ "snowink1137@gmail.com" ]
snowink1137@gmail.com