blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
2e3d23bb4aa493a361704b390ed48ae2ea9b0542
0ccfa5a1144faab1377fa9dd74867155edf013d4
/BP.py
597e358608a8903afed15ca9f53f9aad94a7b8a2
[]
no_license
jarangol/ML
e8b6559d8870587bc1c98330b19714040fba6d4e
7f5a26de1ad69d9768603603b72c70273a40f7a2
refs/heads/master
2020-04-21T22:40:57.874888
2019-04-07T00:33:36
2019-04-07T00:33:36
169,920,643
0
0
null
null
null
null
UTF-8
Python
false
false
2,985
py
#!/usr/bin/env python # coding: utf-8 # In[16]: import numpy as np class ANN(): def __init__(self, nn_structure, eta): self.nn_structure = nn_structure self.eta = eta def set_weights(self,weights,b): self.W = weights self.b = b def f(self,x): ...
[ "jarangol@eafit.edu.co" ]
jarangol@eafit.edu.co
801500a3039b52130e88ad991a245baa74a5c88f
f78daddf7d83d1f6b9f13ac973cdb33d40717839
/examples/petrol/conanfile.py
a09ae6e5cb24d5171ebd32986be6ddfa9eac35de
[ "Apache-2.0" ]
permissive
xtuml/masl
fe43c7131d0aea919f24136aaf1686162629f70f
80d07b41573bdad9c191e2d7d6a18ee59c3cf5c7
refs/heads/master
2023-08-31T07:12:58.662239
2023-08-22T18:28:17
2023-08-22T18:31:28
71,495,752
6
13
null
2023-09-12T14:39:41
2016-10-20T19:14:06
Java
UTF-8
Python
false
false
1,084
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 # # Unles...
[ "levi@roxsoftware.com" ]
levi@roxsoftware.com
0c0b4c57534821da8d86289ea7b2c0e905648ed2
e8a6154683f27dd5143a29bc9333b829e5e12b38
/CAP7/7-10.py
9727c9dcea1ffde03a921ddf3d4bc45232a24625
[]
no_license
Rodrigodebarros17/Livropython
78512091ee9cedfb498e34dde8765fb4b2fee608
9a5b4bd8083d31c291ca1b53acbc7b3b07d53510
refs/heads/master
2021-05-19T10:28:25.741553
2020-10-02T16:13:45
2020-10-02T16:13:45
251,652,669
1
0
null
null
null
null
UTF-8
Python
false
false
160
py
#Programa Jogo da Velha matriz=[["-","-","-"],["-","-","-"],["-","-","-"]] for e in matriz: prin while true: print("Jogador 1, digite a coluna e a ")
[ "rodrigodebarros17@gmail.com" ]
rodrigodebarros17@gmail.com
0bbd2de8dc824f52d6a0f42c25382c0215c06147
7813653f41a440f5666b5bd4f96e71b5c8856b41
/main.py
bc32db66dd05654158a252af0318e50eaea3f4eb
[]
no_license
evidencebp/commit-classification
e404e1abff60fa648ed151092fa856094276c13b
d8cdf9908db494281b1c236a0549b5ad52b4b28e
refs/heads/master
2023-08-19T04:49:42.652647
2023-07-30T10:58:16
2023-07-30T10:58:16
253,520,268
14
5
null
null
null
null
UTF-8
Python
false
false
613
py
""" The repository is mainly stateless since this is a language library commit_type_model is a python program that decompose enitities and generate a regular experssion. One can use them in python program. For use in BigQuery, the file also genertae function. The current functions are in the bq_*.sql scripts. If one mo...
[ "idanamit@gmail.com" ]
idanamit@gmail.com
fad7775f9731907181f1e05c218b3bd67efc38a3
a68d32aeae18bbedf81dc759fbf1eb8d24e0b70b
/happiness_project/settings.py
286e6b05c417f15108ffab6fe1134e1e7d8881a3
[]
no_license
fernandocmelo/django-test
94679580b9184a5199c31777707f22c553903432
60826ffd016eb7601074638415f89f937616cae5
refs/heads/master
2020-03-29T03:59:16.761764
2018-09-26T01:23:23
2018-09-26T01:23:23
149,510,092
0
0
null
2018-09-19T20:44:26
2018-09-19T20:44:26
null
UTF-8
Python
false
false
3,686
py
""" Django settings for happiness_project project. Generated by 'django-admin startproject' using Django 2.1.1. 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/ """ im...
[ "grandifalcao@gmail.com" ]
grandifalcao@gmail.com
537ad2da2c4e4aa5f8bbe056a3e25e3ef68ca0a9
23b9611fa4a04df65323f7aadb76c91a9423b2e0
/smoketest/systemconfiguration/sysAbout.py
c9ac5752c93a854c6742c9c0ec5d417084634acf
[]
no_license
da3m0n/ctrguiautotest
b22b8a7cc64a4178534b85c7ea364c4fe994e910
ed5a55baa4d31ee8f26c616c1ba1a132b7b715f5
refs/heads/master
2020-05-17T15:42:41.367186
2018-11-14T22:03:56
2018-11-14T22:03:56
21,019,373
0
0
null
null
null
null
UTF-8
Python
false
false
2,537
py
import sys, os import time from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from smoketest.TestHelper import TestHelper from smoketest.TestLog import TestLog from smoketest.mylib.IsolatedLogi...
[ "rowan.naude@aviatnet.com" ]
rowan.naude@aviatnet.com
cdec8f2f5cee0435ef81c841599dda2f2479e791
18db4071110091026eece33676a87cdc8da53a3a
/func/constants.py
7881b87d7f18f4cf8774b942171ea7b32de4d72f
[]
no_license
gengd/my_shell
57e859116db65c6ba001eb5e08658bab28aa77ac
7d84166539625c547febf1b22326a2df73afcab2
refs/heads/master
2021-07-04T09:15:19.868551
2017-09-26T08:57:17
2017-09-26T08:57:17
104,856,045
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
import os SHELL_STATUS_STOP = 0 SHELL_STATUS_RUN = 1 HISTORY_PATH = os.path.expanduser('~') + os.sep + '.shiyanlou_shell_history'
[ "Daniel.Geng@emc.com" ]
Daniel.Geng@emc.com
8092ddd1f080a38810e69f276d3975ec42790fd9
e91fd1071b91bfae76d293c8b9b85d4afa1286f7
/utilidades/__init__.py
e49bfceab9edfd4a8fb393638c594497d22fdbe8
[]
no_license
MiguelRubioS2P/CodeBreaker
2d540981d18ce9b5f0aefb859318f7f8db07fed6
5f6ebd73b8e1876e700c6b938fa64e061b80a298
refs/heads/master
2020-12-15T00:00:52.124787
2020-01-20T19:03:17
2020-01-20T19:03:17
234,919,693
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
import utilidades import JuegoPalabras
[ "miguelrubio@paucasesnovescifp.cat" ]
miguelrubio@paucasesnovescifp.cat
3a2fcef79c162226a9627026894a0b0845627c8a
6ec0ed313be8805eb50b7241dd508c27d3540f7e
/one_hot_y.py
e7acf05434fe8a7d8b2ef138cb9e22b184ef6109
[]
no_license
LYHHYR/Text-Classification
d0d50a13ce4047176b2e7a677572207d6a6b7c32
ac531c98938bd33128193a4036bb4464752fbec6
refs/heads/master
2020-06-07T00:51:49.447613
2019-08-15T03:07:38
2019-08-15T03:07:38
192,887,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
import numpy as np def one_hot(X, y): """ While y belongs to {1, 2, ..., n} (n>2), tranform y to one-hot encoded matrix """ n_samples, n_features = X.shape y_classes = set(y) n_classes = len(y_classes) one_hot = np.zeros((n_samples, n_classes)) # y should be transfer into a series which...
[ "noreply@github.com" ]
LYHHYR.noreply@github.com
08cb23a06a7856db4ecb22d88ec90a611deba95b
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/man/case/life/big_government.py
7fba7f61642853f57bfca0dad6bb4279f36648e4
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
#! /usr/bin/env python def fact_or_eye(str_arg): ask_new_woman(str_arg) print('world_or_last_life') def ask_new_woman(str_arg): print(str_arg) if __name__ == '__main__': fact_or_eye('long_child_or_few_place')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
c776c118e859ee46295315dd953878803a4fe286
29728c3b5584ffcbff26646f6f4fc794b5be51ac
/gogoedu/migrations/0001_initial.py
c54a889250bef98ec21abffcfc7b9b93d37be413
[]
no_license
tuantuan98/hn-naitei18-python-els
d6c966189ff6f8bdcaa484daafe06f962b8507ae
6674edbbf270bb95fda9c764ddabe41dccf4b2ef
refs/heads/master
2022-12-17T20:14:10.306934
2020-09-15T01:37:36
2020-09-15T02:12:21
288,126,316
0
0
null
2020-08-17T08:33:41
2020-08-17T08:33:41
null
UTF-8
Python
false
false
6,730
py
# Generated by Django 3.0.9 on 2020-08-18 03:15 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
[ "dang.hoang.tuan@sun-asterisk.com" ]
dang.hoang.tuan@sun-asterisk.com
cb2df88f9154e5ab553526285f461976f28e27a3
50400174010e6f49fca3120b94223be32e5ca02e
/common/tests.py
0b76d3ffb01915965b92612f0e33cfcc67438484
[]
no_license
whut2962575697/webs
7ed6dcb3c879ef57f08cee436be80f1b64e579b7
b463c1a0e937ace6ef99812117998e742b05bfe5
refs/heads/master
2020-04-04T13:49:43.615315
2018-11-15T12:25:26
2018-11-15T12:25:26
155,976,743
0
0
null
null
null
null
UTF-8
Python
false
false
12,313
py
# -*- encoding:utf-8 -*- import arcpy arcpy.env.workspace = "" polygons = arcpy.FromWKT("POLYGON((116.13982 29.88508,116.133298 29.865047,116.140065 29.853345,116.136074 29.841912,116.141487 29.833255,116.139141 29.827136,116.094168 29.804491,116.05429 29.765514,115.969441 29.730778,115.951961 29.7266,115.901597 29...
[ "2962575697@whut.edu.cn" ]
2962575697@whut.edu.cn
1b0db2cf114ec7808c322fa1e8df8a933b35ea6f
7ebb62d990d530e5a97cea3bf7891edda5881b00
/youtube-dl-master/youtube_dl/jsinterp.py
ae5bca2e643f1ec4d719e8e895b0a655a98a151a
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
dj168/Hackathon1
fb3f537320189844f9c6514c0b70a5d432426dd1
36339458edea2a207e2c7b67ad4cfd1acc3ba569
refs/heads/master
2021-01-24T11:00:43.937962
2014-08-16T20:05:19
2014-08-16T20:05:19
21,998,804
0
0
null
null
null
null
UTF-8
Python
false
false
5,487
py
from __future__ import unicode_literals import re from .utils import ( ExtractorError, ) class JSInterpreter(object): def __init__(self, code): self.code = code self._functions = {} self._objects = {} def interpret_statement(self, stmt, local_vars, allow_recursion=20): i...
[ "huderrick@berkeley.edu" ]
huderrick@berkeley.edu
04cead922b1938277bca7947212824fa8027daed
f61da218587b48026fb91cb6bcf6c06ece9c8f2c
/Matrix - Nine Submatrices.py
7054cb0faefdc5fb68b7128143c7a91b551f1d36
[]
no_license
DANUSHRAJ/Skillrack-Daily-Challenge-And-Daily-Test
ec1b7dafab8be603f3eaa193316c895bb7dbc997
f32da952e0d01a015cc9f9d01a67c5c7de0b20fa
refs/heads/main
2023-05-21T00:33:36.896465
2021-06-04T03:58:04
2021-06-04T03:58:04
317,618,098
0
0
null
null
null
null
UTF-8
Python
false
false
2,141
py
Matrix - Nine Submatrices The program must accept an integer matrix of size N*N as the input. The program must divide the given matrix into 9 submatrices based on the following conditions. - The program must divide t he given matrix into four submatrices of equal size. - Then the program must divide the top-right...
[ "noreply@github.com" ]
DANUSHRAJ.noreply@github.com
662e84a750cca07fce5f1cf16fec0a383a1efbd9
1e2afd391efc662363098011dcb500b8279656b6
/meiduo_mall/meiduo_mall/apps/goods/constants.py
3a22e91ff594fab09d549ec21fa37dd93b5a6023
[]
no_license
baixin999/mymd
c5269e70ebbb6fe26338a18f210dd7e0fc1fdfe0
267d5d18ba03d30b7255d4ee1f820b20cad6ed2c
refs/heads/master
2020-07-07T00:17:24.354799
2019-08-25T13:29:03
2019-08-25T13:29:03
203,183,555
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
# 列表页中每页显示多少条数据 SKU_LIST_PER_PAGE = 5
[ "324559937@qq.com" ]
324559937@qq.com
8053d37ecac9ad02b42e97ea9b0bbbbb3dd4a690
a871507b02337a12e4ad2abe900ce5250146d0de
/pachong.py
9ae727f1572d88abc7872572c4c635f3b343dcbc
[]
no_license
onlinesen/gfxtest
3263a7039ade21e44025939ad6a0ec5eb8c1c308
8ba7ba858d0a0ae5ce108047b3b857ba69424f2b
refs/heads/master
2020-03-28T05:39:13.115627
2018-09-07T07:45:02
2018-09-07T07:45:02
147,789,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib2, urllib import cookielib rooturl=r"http://osgroup.jstinno.com:8082/encrypt/key/encrypt" url = r'http://ttms.tinno.com/auth/login?next=%2F' url1 = r'http://ttms.tinno.com/tools/test-tools-version/24/' import requests session = requests.Session() s...
[ "lin.shen@tinno.com" ]
lin.shen@tinno.com
507a2d4956f10161437960274d64c27c47843770
50921ecf3b98151180e70c8e86a0cc374393fdff
/examples/demo_beholder.py
067c6dc7c959b8a9996424707fa892db1d51693c
[ "MIT" ]
permissive
lanpa/tensorboardX
bd7ca7bd256c5cff628eef53ab3f2b6ee8f65aeb
092fcb08f295a483ecd4808407d4c5c39b7a369f
refs/heads/master
2023-09-06T09:53:03.203099
2023-09-03T09:26:33
2023-09-03T09:26:33
94,218,531
5,884
814
MIT
2023-09-03T09:39:59
2017-06-13T13:54:19
Python
UTF-8
Python
false
false
1,783
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "huang.dexter@gmail.com" ]
huang.dexter@gmail.com
09d021b1d8dfe86996bf792304540f403d3b766f
ac5934409435751a338af98cb9141c1dd76b56e9
/pet/votes/migrations/0001_initial.py
d205dfa208e8d564edaef2b798357fc80a5133f0
[]
no_license
jfarriagada/pets
667f5b61f5c9445fe5e93b49ab0b090111874283
f2571f2ba7158484f30e9d9395daf9127282ad94
refs/heads/master
2021-06-25T13:20:59.126903
2019-10-09T00:36:53
2019-10-09T00:36:53
213,784,034
0
0
null
2021-06-10T22:04:23
2019-10-09T00:32:21
Python
UTF-8
Python
false
false
818
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-10-08 22:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Pet', ...
[ "fainnovex@innovex.cl" ]
fainnovex@innovex.cl
0a1d557a8ad4bb66d5e06b1c0dbaa7b77111316c
2e2f334d5ad1e37294e691e71c2cf0513a533e19
/loop4.py
b57cfb5fcdcf3bdb1d3fdf8fcebd644961c67765
[]
no_license
vishnubalaji1998/guvi2
142afccbdb35037ae465ccad73527228d6c9229c
496cfa35f126020c9e3a71c994d70d0803f5affd
refs/heads/master
2020-11-29T22:15:52.385856
2019-12-26T08:45:09
2019-12-26T08:45:09
230,228,224
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
i=0 while i<101: print(i) i+=2
[ "noreply@github.com" ]
vishnubalaji1998.noreply@github.com
60dd612b880ef07f9e7cccbc338222d0d7dc4514
bdaf2715c970f1863356897c2d86722aa42dc067
/hash-table/0016-3sum-closest.py
3296052fcb473d1697ec792c7716dc54aa6e8137
[]
no_license
chengchaoyang/my-leetcode-record
e32ec43d46c8b5cf249a372ff7eeb25363e0ba92
04bf208aec4245de199cadf7cc7936038dffcb5b
refs/heads/master
2021-05-19T06:48:28.808531
2020-06-10T10:42:41
2020-06-10T10:42:41
251,571,986
0
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
""" 给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。假定每组输入只存在唯一答案。 例如,给定数组 nums = [-1,2,1,-4], 和 target = 1. 与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2). 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/3sum-closest 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 """ from typing import List class So...
[ "526879530@qq.com" ]
526879530@qq.com
0036a3aa6a27f4fb7809ec127059fbbf09413654
7b4682d56541c863ca05f84737ce9296f425e339
/query_parser/spark/spark.py
49ebfb27ab745891013b1636606d496666ae9013
[]
no_license
dav009/truthgraph
f3387788c0158aae1c50f1d3da8e674fce47325d
e8e2ff40353bb1a1e13f6465d74656a78fa3f52d
refs/heads/master
2016-09-16T05:26:23.871595
2013-07-10T19:05:44
2013-07-10T19:05:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,142
py
# Copyright (c) 1998-2002 John Aycock # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publ...
[ "dav.alejandro@gmail.com" ]
dav.alejandro@gmail.com
b0d36ff01b81621a8a30b4260aee51ff0b7fd312
0ac1df08e2cb2a089e912e3237209e0fb683504a
/edgy/workflow/transition.py
d44537e832efd938ea119ed0b1b40d23812ce52a
[]
no_license
python-edgy/workflow
ee8654b5cd3931f26dc6c4c519bc865cba1864ca
b27edaa7a80bf7cd40d5a26df114058f3795dacd
refs/heads/master
2020-12-11T20:24:36.461621
2016-07-22T09:26:47
2016-07-22T09:26:47
51,644,998
1
0
null
2016-08-17T14:18:02
2016-02-13T12:28:06
Python
UTF-8
Python
false
false
3,284
py
# -*- coding: utf-8 -*- """ The smallest atom of ``edgy.workflow`` is a ``Transition``, which basically is a regular python callable with additional metadata to make the system aware of when it can be applied. """ from edgy.workflow.constants import WILDCARD from edgy.workflow.utils import issequence class Transiti...
[ "romain@dorgueil.net" ]
romain@dorgueil.net
9b4933a763e3a74f5645ce3216ced5248e67092d
0487f110c61453ffd1df3446ebdbfe525f03079a
/hiseek/clustering/regionizer.py
0b62f81f60b9354b23067fd8dc06ce49e89cae14
[ "BSD-2-Clause" ]
permissive
droftware/Medusa
76024f6076dae8bfcd85ed08cc15681391606a65
a22f1b252bd752a4ab6e6d4f6245c5c90991dcb8
refs/heads/master
2021-03-16T10:18:28.894072
2019-11-15T14:43:15
2019-11-15T14:43:15
96,506,839
1
1
null
null
null
null
UTF-8
Python
false
false
2,487
py
import numpy as np from numpy import linalg as LA import matplotlib.pyplot as plt import seaborn as sns sns.set() file_name = 'id_3.obstruction' visibility_map = np.loadtxt(file_name) visibility_map = visibility_map.astype('int') num_rows = visibility_map.shape[0] num_cols = visibility_map.shape[1] n = num_rows * num...
[ "akshat.tandon@research.iiit.ac.in" ]
akshat.tandon@research.iiit.ac.in
954acd060cc73756929785875add890248c8f565
3967a651350ef70dd84f61b50b21082b0a493af8
/scripts/graph2.py
94e3756936a08117c88d9e3556baa51bdb702b0e
[]
no_license
goyalnikhil02/tensosrflowexamples
8b73766cb366b13ffcbeadb41fe3fedbecdbc23c
6dec8ddf2cb1ce638613d38182cd6fa3d8320373
refs/heads/master
2020-05-18T07:51:02.983946
2019-05-12T06:52:34
2019-05-12T06:52:34
184,278,063
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
import tensorflow as tf import numpy as np n_features=10 #row or say feauters or attribute n_dense_neuron=3 #layer #weight x=tf.placeholder(tf.float32,(None,n_features)) #print(x) #matrix data W = tf.Variable(tf.random_normal([n_features,n_dense_neuron])) #print(W) c = tf.Variable(tf.ones([n_dense_neuron])) #p...
[ "G521784@mph.morpho.com" ]
G521784@mph.morpho.com
00e7a6ada85829b18aee5223436b27d7d2b44fb1
d3b0c2f4a2a2a5087b517501126ec101018af84c
/dcgan.py
ac31ec12e6f47d5624ff65232118449a06bb9a8f
[]
no_license
pl561/dcgan
9b14ad90b44c1b4007ceabec98d3867cb0074371
62e39e72b926a4249690f5d131e8f20245681663
refs/heads/master
2022-12-02T20:02:40.775251
2020-08-24T06:56:40
2020-08-24T06:56:40
289,850,732
0
0
null
null
null
null
UTF-8
Python
false
false
17,776
py
""" DCGAN implementation (based on the Keras DCGAN tutorial) Tensorflow 2.1/Keras (should work from TF2.0) experiments to train with an autoencoder on 512x512 images """ import os import sys import argparse import numpy as np from numpy import expand_dims from numpy import mean from numpy import ones from num...
[ "noreply@github.com" ]
pl561.noreply@github.com
4807df81987b6ae2a41ea2af20450135a6d02107
b414178038ebb3006660301e4c7741c5adc1abe0
/web/app/app/forms.py
ab3d7c8578957628c5529ae0444bfb4b2c2a123d
[]
no_license
KatyaShchuplova/openvpn-as-gui
9525cc759ab9d03cce83b65a5420fd69060faea5
fd8eb3dc2b400f47cc1decc0e94458584a484fd4
refs/heads/master
2021-05-15T21:51:57.538485
2018-03-10T12:09:46
2018-03-10T12:09:46
106,600,777
0
1
null
2018-03-10T12:09:48
2017-10-11T19:37:40
HTML
UTF-8
Python
false
false
1,498
py
from app import app, models, db from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, RadioField, SelectField from wtforms.ext.sqlalchemy.fields import QuerySelectField from wtforms.validators import InputRequired, Email, Length # форма для авторизации пользователей class LoginForm(FlaskForm...
[ "e.shchuplova@gmail.com" ]
e.shchuplova@gmail.com
123b7bc3f22b4abfbc14b4111b7add46ae238606
ef1bba79251acf71504b8fbb30f9292de67278dc
/core_firefly/firefly/firefly_library.py
129d014ddd8011ecc1a0dfe4edd2f216b4885dd3
[]
no_license
OliWenman/firefly_website
3c857f54ddceafc8dcbade84686705743221b75b
701f2b57f7cbdb4eaf8a75106cdfe5732f229804
refs/heads/master
2022-06-07T14:12:35.664931
2020-04-29T17:26:47
2020-04-29T17:26:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,997
py
from __future__ import division from __future__ import print_function from __future__ import absolute_import import sys if sys.version > '3': long = int import numpy as np import copy import pickle as cPickle from scipy.stats import chi2 #----------------------------------------------------------------------- ...
[ "42441085+OliWenman@users.noreply.github.com" ]
42441085+OliWenman@users.noreply.github.com
12b0bbe1c7d0171b65f4472d8f2656afe5089091
4fdb272e69f1114d1c7fc35281cc4f7366dc1169
/AI_Challenger_2018-master/Baselines/autonomous_driving_perception208_baseline/segmentation/vis.py
160b161efdce7a51f967621879567ee47175d0e9
[ "Apache-2.0" ]
permissive
DarkT2014/mydeeplearning
b7d004f94f707b327075702174e74d45f6a48f6a
7707492a4df320e35a59113c00edaaf39b684c3a
refs/heads/master
2022-10-27T18:29:48.574175
2019-09-23T02:56:15
2019-09-23T02:56:15
203,542,891
0
1
null
2022-10-06T06:27:09
2019-08-21T08:41:07
Python
UTF-8
Python
false
false
13,017
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...
[ "lincheng@linchengdeMacBook-Pro.local" ]
lincheng@linchengdeMacBook-Pro.local
bfd136f3bac4f2347c1f6f74a47385b3c44153cf
30e4859a4c471a25c1e980c4629c589b6b499e7e
/Lab/Lab7/book_analyzer_profiled.py
66dcadda10ae0b46eee3cb826ecea36410ab5d08
[]
no_license
GoodestUsername/Python-examples-from-school
a8ad63b617f95c7850031fa77396928f9feb9c62
cb20b571ab50dd46c6f838e55ff5ad39b51e6f11
refs/heads/master
2023-03-29T21:01:15.838077
2021-04-03T04:33:34
2021-04-03T04:33:34
328,768,546
0
0
null
null
null
null
UTF-8
Python
false
false
3,169
py
""" This module is responsible for holding a badly written (but not so bad that you won't find this in the workplace) BookAnalyzer class that needs to be profiled and optimized. """ import time class BookAnalyzer: """ This class provides the ability to load the words in a text file in memory and provide t...
[ "ericdongcannn@hotmail.com" ]
ericdongcannn@hotmail.com
78ab8469e9d3cb049c2360ccbb087a9236a83ec7
a1a3fc3511d3e2e29909411163bafd8932f87426
/tests/extension/dataflow_/regionadd_filter_enable/dataflow_regionadd_filter_enable.py
bef3f6dbb5ee6c07fe7b89b1e8dc44cb193f5f69
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
yongfu-li/veriloggen
25316c6f1a024669e7cb87f3491a1d3592356ea9
a6230da3350c6e4bb54e10a46ac855c24c27f17f
refs/heads/master
2021-01-23T11:50:43.050607
2017-09-04T08:30:06
2017-09-04T08:30:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,378
py
from __future__ import absolute_import from __future__ import print_function import sys import os # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))) from veriloggen import * import ve...
[ "shta.ky1018@gmail.com" ]
shta.ky1018@gmail.com
abdaa8154bd3938393381ebeaf41a1febab3ef94
9ab856a6f80fa305efcad6974da6ab220f268177
/Suma, resta, multiplicación y división de dos números.py
b519a0f5c998a16a0df286fecb9090f54d263c59
[]
no_license
EduZarate/My-first-one
f97859b862efea9876427b5f997a5ae77552be46
d395b5981677e3cdefd5e3647a0c34be766a786b
refs/heads/main
2023-05-21T05:04:06.372330
2021-06-14T00:32:34
2021-06-14T00:32:34
376,557,788
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
""" Implementar un algoritmo que permita ingresar dos númerosenteros por teclado y luego muestre la suma, resta, multiplicación y división de ambos números.""" a = int(input("Ingrese un número: ")) b = int(input("Ingrese el otro: ")) print ("El resultado de la suma es: ",a+b) print ("El resultado de la resta es...
[ "noreply@github.com" ]
EduZarate.noreply@github.com
93f64826229da5dd4cba501017b9f57d118a48e5
339456d4f86b19bc5f44b8ba986944306e509e11
/python-methods/main-dani.py
cc9dd8a2e93e405204ce942bab6e12b1577dc296
[]
no_license
PepitoAndCo/Blip
d0567b64e7d9f78bd0219cad3dd4590a62f5bfc1
e756a2701d5e2ca1771f5d9bdf9f2b90ecc286c2
refs/heads/master
2021-06-16T20:56:09.448638
2017-05-06T08:46:28
2017-05-06T08:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
import tbContacts import re logBook = tbContacts.loadcsv('sample.csv'); # print('all',logBook.getAll()) # print('get 16473839095',logBook.get("6473839095")) # print('get all but 16473839095',logBook.getAllbut("16473839095")) # print('numbers',logBook.numbers()) textList = logBook.get("6472349313"); print(textList) a ...
[ "gaspard.witrand@epitech.eu" ]
gaspard.witrand@epitech.eu
f62b6f02dd845156b9c7c0fe2884823a58fed264
3746667a7b2c6d0c941a22a19929b0ffaf432a33
/starkapp/apps.py
1df7173440a063bf5d0441e5edfcaf9dc294327a
[]
no_license
maxhope8/stark
fe4cf0a99614256a8d50f275ede3de3158779cea
4670686909b1f0e92b72f1791a0afe056da3d8f9
refs/heads/master
2020-11-28T03:31:16.493901
2019-12-23T07:01:21
2019-12-23T07:01:21
229,693,532
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
from django.apps import AppConfig from django.utils.module_loading import autodiscover_modules class StarkappConfig(AppConfig): name = 'starkapp' # 程序启动时,扫描app下得指定文件(stark1.py)并执行 def ready(self): autodiscover_modules('stark1')
[ "18309221170@163.com" ]
18309221170@163.com
aea61614eb4da3c08f9b3da9a334abbd9b207bc3
1b275405f78a6fbbff53a84cfa8fa2354ba19289
/mitushchapchap/url.py
e99d2411744a33eed18b02c6c79f16ee4d4e0dbf
[]
no_license
marianjoroge/mitumbachap
662002835071d0d949f59d04775d426f5411f74d
e62f2c88a26e9ea5173732eb4e6d8950f0f88177
refs/heads/master
2020-04-24T17:50:20.190935
2019-02-23T03:14:51
2019-02-23T03:14:51
172,160,945
1
0
null
null
null
null
UTF-8
Python
false
false
196
py
from django.urls import path from . import views urlpatterns = [ path('', views.post_list, name='post_list'), path('post-list/', views.mitushchapchapListView.as_view(), name='post-list') ]
[ "njorogemaria8@gmail.com" ]
njorogemaria8@gmail.com
fe52fa4e112e388bd4ed6512fec0ae90874dd234
7b1c4e8039dc289d3606ba293d98dfaf9dac2a65
/simplecode.py
2714fe63229557106b4c6d6768d908400817293b
[]
no_license
abiroslyn/Module-10
c1d702e98de45c5f9c241fd40a932cae4e7c5e08
cb898e4d4a7d83b7b67d5b17cef1c8839f2d9aec
refs/heads/main
2023-04-27T23:14:08.522645
2021-05-06T01:09:35
2021-05-06T01:09:35
364,748,360
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
import sys shift = int(sys.argv[1]) message=input() print (shift) print(message.upper()) message = message.upper() for letter in message: if not letter.isalpha(): continue offset = 65 ord('A') = 65 pi = ord(letter) - offset ci = (pi + k) % 26 message.append(chr(ci + offset)) return m...
[ "abigail.thomas@bison.howard.edu" ]
abigail.thomas@bison.howard.edu
d236ab80a1798bb92f400c21f53470b7b4d79c24
fdffd3f8ad31ffd917b1df4199ff5d88df80b420
/Chapter_08/matplotlib_learning.py
f2b0806f79708322e36af13779f60ecd5eb0b416
[]
no_license
LelandYan/data_analysis
83c0cefa1b0783a8d3d13050092b2ab085cd859e
9482c4667ecac189545f40b9f5bad3c495d48068
refs/heads/master
2020-04-17T04:25:47.975087
2019-02-12T07:40:37
2019-02-12T07:40:37
166,229,621
0
0
null
null
null
null
UTF-8
Python
false
false
4,529
py
import matplotlib.pyplot as plt from numpy.random import randn import numpy as np # fig = plt.figure() # ax1 = fig.add_subplot(2, 2, 1) # ax2 = fig.add_subplot(2, 2, 2) # ax3 = fig.add_subplot(2, 2, 3) # plt.plot(randn(50).cumsum(), 'k--') # _ = ax1.hist(randn(100), bins=20, color='k', alpha=0.3) # ax2.scatter(np.aran...
[ "2721599586@qq.com" ]
2721599586@qq.com
66b3bc9dc0d840c47e8a9166f415c12b9fb029aa
62f26a0417e3e2ba72a0b0736a6ae82c66b06719
/Solo-Yasser Lachachi/Toolbox.py
05eaf9575a6f89fbf6560c80d59b598e2c882807
[]
no_license
EgyAlg/Projet
288d62b114a1f80e7968d181aeeddf63478a77a0
97ce93ee22854fd5c4dd09f1f0ed36052a0ee323
refs/heads/master
2021-01-11T20:32:10.238104
2017-05-01T20:07:59
2017-05-01T20:07:59
79,136,061
0
0
null
null
null
null
UTF-8
Python
false
false
4,211
py
from soccersimulator import Strategy from soccersimulator import SoccerTeam, Simulation from soccersimulator import SimuGUI,show_state,show_simu from soccersimulator import Vector2D, SoccerState, SoccerAction from soccersimulator import Simulation, SoccerTeam, Player, show_simu from soccersimulator import Strategy from...
[ "yasser_lachachi@hotmail.fr" ]
yasser_lachachi@hotmail.fr
cac5fc6ab5693b393eca31f726948adb1534be15
cc6ab068e4b0374d593e89010a91493cacb3b6be
/Practice_Exercises/007_no_idea_MED.py
4bb81fef821ab19df92f7988387e9bd024f2a136
[]
no_license
EugeneMondkar/hackerrank-code
7671a09ca33046800afdd91fe0f1ee098b6eba2b
7578fc278f8caf275e37815ee1e0f3ce7af6e03b
refs/heads/main
2023-08-24T00:17:25.457984
2021-10-02T23:00:02
2021-10-02T23:00:02
409,016,532
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
# Problem Link: https://www.hackerrank.com/challenges/no-idea/problem n,m = tuple(map(int, input().split())) arr = list(map(int, input().split())) set_a = set(map(int, input().split())) set_b = set(map(int, input().split())) happiness_score = 0 # My Original Solution # for x in arr: # if x in set_a: # h...
[ "yatinm@gmail.com" ]
yatinm@gmail.com
5f4d648fe87f277326ed1c245f130c1540612c9f
acda0bc700943654156d491eaa0b766bea0ae7bd
/apps/item/views.py
5a977f899786fbf9bf8ce0698dd0d24153b6aefd
[]
no_license
bluehawkarthur/casa_campo
a11baaec966d51a1e733ad2dd48bb77a0ecd6cb5
22a57b58a722769e8e25330457ed868d230f5c05
refs/heads/master
2021-01-18T15:05:47.674205
2016-10-26T20:03:55
2016-10-26T20:03:55
68,387,895
1
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
from django.shortcuts import render_to_response, render from django.views.generic import FormView, ListView, DetailView, UpdateView from pure_pagination.mixins import PaginationMixin from django.core.urlresolvers import reverse_lazy from .forms import ItemForm from django.http import HttpResponseRedirect from django.te...
[ "josedanielf9@gmail.com" ]
josedanielf9@gmail.com
2e5ea15b346c2e4143dd8edea22dcce8081c4c42
7cf619b3348e6a9ccc0402c27ae2480a60eef1c2
/Python_Learning/thread_test.py
2e418dece76f55a07d9d1c39363c5fe191bad850
[ "MIT" ]
permissive
lifedespicable/Python_Learning
cbe4284ce4688c931a3c3860197d077d0fb19a48
b3ec851c80a8137d64d02d15a3566af49b9a7ba7
refs/heads/master
2022-11-20T12:33:03.987342
2020-07-19T03:25:05
2020-07-19T03:25:05
194,821,318
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
import threading import time from threading import current_thread def myThread(arg1, arg2): print(current_thread().getName(),'start') print('%s , %s' %(arg1, arg2)) time.sleep(1) print(current_thread().getName(),'stop') for i in range(1, 6, 1): # 循环从1到5,递增的值是1,会循环5次 # t1 = myThread(i, i+1) # ...
[ "945432954@qq.com" ]
945432954@qq.com
b9622cc80db54887aced95f3b024315916271d8a
8eb9276ec6b9af26b4161e4f81fd8c21a3fcac22
/home/views.py
0484af25188d3f79482afe1f4a89ad3177287729
[]
no_license
olufekosamuel/bincomtest
4cd4fdf38926ad30bed29bfac432debab1101bd3
0c138009014552e41c3df2e331d2ea1abd170c74
refs/heads/master
2020-08-15T02:09:29.954537
2019-10-15T16:53:41
2019-10-15T16:53:41
215,264,962
0
0
null
null
null
null
UTF-8
Python
false
false
3,873
py
from datetime import datetime import datetime from smtplib import SMTPException from urllib.parse import urlparse from django.conf import settings from django.contrib.auth.hashers import check_password from django.core.mail import send_mail, BadHeaderError from django.shortcuts import render,redirect, reverse, get_ob...
[ "mololuwasamuel12@gmail.com" ]
mololuwasamuel12@gmail.com
169cc6e3a08adc088826a5b3ab17e5fcb13c6c44
b976a3ca1e9cb98a9c90e57243255d0a8ace3572
/Probability & Statistics/pharmacy_multi_regression.py
911ba06a6717cd97204579ffadd3597f75e39138
[ "MIT" ]
permissive
akhilvydyula/Data-Science-and-Machine-Learning-Projects-Dojo
fbe9408818cbfdb31d7fa0e52d9566bab998b9e1
4e2932dfa6749b360a7a605050c953ef52fc6547
refs/heads/master
2023-05-06T00:42:57.787384
2021-05-28T06:40:25
2021-05-28T06:40:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
""" A pharmacy delivers medications to the surrounding community. Drivers can make several stops per delivery. The owner would like to predict the length of time a delivery will take based on one or two related variables. """ from sklearn.linear_model import LinearRegression x1, x2 = [1,3,2,3,1], [8,4,9,6,3] y = [29,...
[ "ptyadana@users.noreply.github.com" ]
ptyadana@users.noreply.github.com
a06e523614c65dc76a0ee5de471b3d4970df6c87
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/GstVideo/VideoResampler.py
a56a7a96d40d30d7b2b241bb4ea4fabe51b4f99e
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
6,320
py
# encoding: utf-8 # module gi.repository.GstVideo # from /usr/lib64/girepository-1.0/GstVideo-1.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes o...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
c0ef2d87ef5e7fd809684761560fd8507a7c3e1f
a199d75cd956ee288709db95cd9f7e83bd105629
/jz21.py
6c2a0d4f64d67a0da94901794f1350aa5558c512
[]
no_license
yikouniao/JianZhiOffer
5defc9a9ec3b2f1a5d730074b5715125abee1f06
fdb498e4954833fba0ff207c1569bca332380fdf
refs/heads/main
2023-07-31T18:07:31.767759
2021-09-15T03:19:54
2021-09-15T03:19:54
399,709,142
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof/ class Solution: def exchange(self, nums: List[int]) -> List[int]: odd = [num for num in nums if num % 2] even = [num for num in nums if not num % 2] return odd + even
[ "noreply@github.com" ]
yikouniao.noreply@github.com
be2207f28e2b5bb0f8ffca81258406938785ee7f
e71658fa2936e20d2d1b11e198562fc7c935c975
/Dados Brutos/spider.py
dfea85e2ec863754c20ccd701db6b2ba65570222
[]
no_license
visualizacao-ufpe/producao_academica
3cbe855fe3baed217f60410c18bfb51839f978ef
c465da65b0017afee1d4a89270a20118be8a86a5
refs/heads/master
2021-01-12T02:51:54.678738
2017-01-05T15:27:39
2017-01-05T15:27:39
78,122,066
0
1
null
null
null
null
UTF-8
Python
false
false
8,478
py
#!/usr/bin/python # -*- coding: UTF-8 -*- from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.webdriver.common.by import By import time import json class Author(object): """docstring for Author""" def __init__(self, order, name...
[ "nivan.ferreira@gmail.com" ]
nivan.ferreira@gmail.com
bc73fb03c4c94707f8f879d786c89b45091a67da
d131a239dc3a40966301721fb359eb11d3854280
/IA_Notebook_2.py
b7427c01dec4b1112940880f73c96f0d87fc3663
[]
no_license
FORGIS98/ia-notebook-dotcsv
b8aad39cd9c659acaeccbbd2209a4b6b005d33af
c30b8e09e003cd3fd7d30a40692cf18a8e6f2412
refs/heads/main
2023-06-27T23:49:00.100011
2021-08-04T09:18:33
2021-08-04T09:18:33
388,564,105
0
0
null
null
null
null
UTF-8
Python
false
false
4,507
py
#!/usr/bin/env python # coding: utf-8 # El objetivo es trucar la red neuronal **Inception V3** con un ataque adversario. Pero antes, probemos si funciona la red neuronal con una imágen. import tensorflow as tf # plataforma para el aprendizaje automatico # Desabilitamos eager-execution por que peta cuando usemos más ...
[ "jorgesolgonzalez1998@gmail.com" ]
jorgesolgonzalez1998@gmail.com
cec03f25f354aaa3f99e4de8a868b3777d100efc
0010a92176b766f4bdf37c1144fa0f724cfaf564
/env/lib/python3.5/site-packages/aliyunsdkecs/request/v20140526/CreateImageRequest.py
5fcd8e48fafcdcaf41af6211a1c3634952c20daa
[]
no_license
pengjinfu/My-Admin
bc2d8b53da8be0fad60e1d8979bdca3f2c4560d9
26206d1def673adb7dfe5c8044c654a0e65320d1
refs/heads/master
2021-08-30T02:17:57.432743
2017-12-15T17:05:05
2017-12-15T17:05:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,655
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...
[ "dylan@zhxfei.com" ]
dylan@zhxfei.com
dd405bcc91982cd7b3a2368fbc2ccd80f9bdd887
d42e8c23b5a6cd221b2971469f7266fcb767c8c1
/Unet_CTseg.py
6fcacf7f5f5f36472db519dec237acf02679b324
[]
no_license
yBourne/CTImgSegmentation
cec18a53e93a579d55853e44e52793df8f49cb79
b3d68e4e3b4f671d9f67ca8cbfab1e7c9a43a4e8
refs/heads/master
2022-12-10T06:47:45.146371
2020-09-07T11:24:52
2020-09-07T11:24:52
293,469,158
0
0
null
null
null
null
UTF-8
Python
false
false
10,531
py
#!/usr/bin/env python # coding: utf-8 import os import sys import random import warnings import numpy as np import pandas as pd import matplotlib.pyplot as plt from tqdm import tqdm from itertools import chain from skimage.io import imread, imshow, imread_collection, concatenate_images, imsave from skimage.transf...
[ "49144395+yBourne@users.noreply.github.com" ]
49144395+yBourne@users.noreply.github.com
3f64bff5e5477cdf4957e7b0c3668de6b97d9d85
46dccb38e665324156c1eb868e234fcb32a9d222
/Bianca/Exercitii_curs/Python-exercitii/Curs4/Parcurgere_liste.py
e39e44fba05753566e031a71e3fd93a5bae1c994
[]
no_license
BiancavD/PEP19G04
dc654904e00958fdb2a16521d50447bc437cac03
2c14b9447c00ec18d7bd8c7c6754ae3fdca5fd8e
refs/heads/master
2020-08-28T15:58:26.013068
2019-12-13T13:44:45
2019-12-13T13:44:45
217,746,982
0
2
null
null
null
null
UTF-8
Python
false
false
906
py
#a = [23, 34, 425, -32, 73, 6, 256, 9, 33, 45.7] v=[23,11,42,53,48,25,16] #print("lungimea vectorului este:", len(v[2:4])) """for x in v: print(x)""" #sa se afiseze elementele pare din vectorul v """for x in v: if x % 2 == 0: print(x)""" #sa se afiseze elementele de pe pozitiile impare """for i in ...
[ "mihaita-cristian.manda@atos.net" ]
mihaita-cristian.manda@atos.net
f8738efaaf8b348ef5e99c3f6300bacf6df4a265
8f9df03ace0b6e4677b79e34a766f43dbafbd334
/HW1/Hongyi Nie/graph_adjacency_list.py
b974a8eef1128be7a884d8be8e12394e8659bf77
[]
no_license
sylvianie98/Algorithms-and-Data-Structures
04e5c716cfee80486eaae5e2ce51b8c4a84ac723
d7f7688d8909ef6dcdb29ba638f36497771d71bd
refs/heads/main
2023-06-08T22:42:03.348272
2021-07-03T23:03:01
2021-07-03T23:03:01
382,723,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
# Hongyi Nie, hn327 # Please see instructions.pdf for the description of this problem. # An implementation of a weighted, directed graph as an adjacency list. This # means that it's represented as a map from each node to a list of it's # respective adjacent nodes. class Graph: def __init__(self): # DO ...
[ "noreply@github.com" ]
sylvianie98.noreply@github.com
6c1c35ef28e08ac096358de3535ce5d1f50ca604
e57d7785276053332c633b57f6925c90ad660580
/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_shared_keys_operations.py
e209ceb60ee78a0cc0c90df3c27836f9fb07693b
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
adriananeci/azure-sdk-for-python
0d560308497616a563b6afecbb494a88535da4c5
b2bdfe659210998d6d479e73b133b6c51eb2c009
refs/heads/main
2023-08-18T11:12:21.271042
2021-09-10T18:48:44
2021-09-10T18:48:44
405,684,423
1
0
MIT
2021-09-12T15:51:51
2021-09-12T15:51:50
null
UTF-8
Python
false
false
7,719
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
adriananeci.noreply@github.com
8f966c091fe8a880c52ace080de665e6e1a0bb02
743e3624fe1c5eb7c1daa1154aafe72d18977ab5
/pridesport_work/sportgoods/migrations/0001_initial.py
7ba1f47cb0a4afdd2f2ef4fe47bed993d4e38ff5
[ "MIT" ]
permissive
Trifon87/pridesport_work
54f958eb0861a872f986d84573afe4bc4ef63fcc
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
refs/heads/main
2023-01-29T12:24:02.790164
2020-12-13T11:04:08
2020-12-13T11:04:08
319,147,749
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
# Generated by Django 3.1.3 on 2020-11-12 17:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Pet', fields=[ ...
[ "trifon.ivanov@gmail.com" ]
trifon.ivanov@gmail.com
b9f0bdc682f5444b42f1881c2f9fd3147ee47dc5
bb04717f74c5cd6593083ce68815923256f8843a
/player/migrations/0001_initial.py
fe09bf5f4c1c90401b21dafa20261667abecc3aa
[]
no_license
xujingao13/new_teamwork
77eb6941a3067dfc131ab34d580a7d8fb2b69517
447f0497c6a9e41a7b839ad3e424a9d5465d2c95
refs/heads/master
2021-01-13T02:11:16.987281
2015-12-30T15:24:00
2015-12-30T15:24:00
40,200,354
0
1
null
null
null
null
UTF-8
Python
false
false
3,187
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import datetime class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ m...
[ "xujingao13@gmail.com" ]
xujingao13@gmail.com
02cb7b37f10449199d227b815a2628225cd6b57e
0571711577354ea057d78ab1d2fc031f5dd84d36
/pipeline/twopoint/calculate_gg_errors.py
7a1c0864e00346137851cf5d58cbce6fdd106e94
[]
no_license
ssamuroff/mbii
404a069cde2a16417acff2ae21ac62ef1312ce14
9c4ee124b4a311e2f7ffc26cbfcfd3312d7ff73e
refs/heads/master
2021-03-24T09:49:31.751031
2019-01-09T17:55:22
2019-01-09T17:55:22
106,590,755
0
1
null
null
null
null
UTF-8
Python
false
false
3,255
py
import fitsio as fi import treecorr import numpy as np import argparse import yaml #import mbii.lego_tools as util from mbii.pipeline.twopoint.jackknife import multipurpose_errors as errors period={'massiveblackii':100, 'illustris':75} def compute(options, binning): print('Shape data : %s'%options['2pt']['shapes']...
[ "ssamurof@andrew.cmu.edu" ]
ssamurof@andrew.cmu.edu
b137998baadcf6c1c7eddef0dd667c340d56e435
6a41f12ddb104c4f214fa8bf2864860a8952d17c
/books_crawler/books_crawler/settings.py
7916845ebd89642dd40df20c0bfb0f0e827a9905
[]
no_license
jakiiii/Web-Scraping-Scratch
39bb32ea2044e6c4e52ee58ea88794f2a77d75cd
46cd54d3a06d70cef070f47b3c15b530691c3187
refs/heads/master
2020-04-21T00:34:50.736222
2019-02-07T06:38:54
2019-02-07T06:38:54
169,200,752
1
1
null
null
null
null
UTF-8
Python
false
false
3,194
py
# -*- coding: utf-8 -*- # Scrapy settings for books_crawler project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest...
[ "me.jaki@outlook.com" ]
me.jaki@outlook.com
5fc70f024b6f44a29946ecfd1ddaff48ffd8d577
fa44fafdb236d71fb06add9f727c36f017c1c969
/tomef/tools/tools.py
c131a4fdae29f481d71824582a4d42fb09ffc94c
[ "MIT" ]
permissive
unlikelymaths/tomef
43738717233d37df662c22051d72bd0554e664b2
57b629a3ee932486c55afcf62ef9d8224488ae65
refs/heads/master
2022-12-21T00:05:57.081200
2019-05-14T10:12:47
2019-05-14T10:12:47
179,456,896
1
0
MIT
2022-12-08T03:02:03
2019-04-04T08:37:40
Jupyter Notebook
UTF-8
Python
false
false
1,541
py
#!/usr/bin/env python # coding: utf-8 # # Tools # <div style="position: absolute; right:0;top:0"><a href="../evaluation.py.ipynb" style="text-decoration: none"> <font size="5">↑</font></a></div> # # Various Scripts. Command line use: # # `python evaluation.py --script scriptname` # # ## Overview # `scriptname` in b...
[ "markus.plack@gmail.com" ]
markus.plack@gmail.com
522bd050c87ec2e3215a3c729553e1d611c0549a
824b582c2e0236e987a29b233308917fbdfc57a7
/sdk/python/pulumi_google_native/orgpolicy/v2/get_folder_policy.py
14f2f3278537c86a7f93b5c154315a900a2b904d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
24601/pulumi-google-native
ce8faf8455609a9572a8cbe0638c66427bf0ae7f
b219a14201c6c58eaa10caaeacbdaab528931adf
refs/heads/master
2023-08-23T05:48:31.819709
2021-10-08T18:50:44
2021-10-08T18:50:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,527
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
24601.noreply@github.com
80d8ce6609110537d0ace4a9b6e1e4ac37926939
b6ed92f8e38b2464dfbf045bf20c2ffc1cc37438
/setup.py
6274ecafe705f8205edfcbba9cdd003210420a41
[ "Apache-2.0" ]
permissive
arbedout/peekaboo
33794b28bfc52e3271fe0510b31dcac17f3ab7d5
9199a6803a91bc7c185449df3ca0276d3d8854ea
refs/heads/master
2021-01-12T22:09:10.595941
2015-03-04T10:49:08
2015-03-04T10:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Setup script for peekaboo ''' from setuptools import setup, find_packages import sys, os, glob with open('requirements.txt') as f: requires = f.read().splitlines() CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', ...
[ "michael.ake.persson@gmail.com" ]
michael.ake.persson@gmail.com
6bc148e4670713ed88b82c4a0a14237077fc0130
0e27ba14e3ea4184619893686e18557932ca24f0
/pegawai/admin.py
500eca2b6bab68dee2a6e470c89f80e106814eee
[]
no_license
affandyletto/aktualNew
2d8b87628729f534507aeabef077bd89359775d4
2db3d18e40f276a5a0a33685c180bb5a8bc9e54e
refs/heads/master
2023-01-19T18:24:16.942342
2020-11-21T06:24:48
2020-11-21T06:24:48
314,744,826
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
from django.contrib import admin # Register your models here. from .models import pegawai from import_export.admin import ImportExportModelAdmin @admin.register(pegawai) class user(ImportExportModelAdmin): pass
[ "letto.affandy@yahoo.com" ]
letto.affandy@yahoo.com
9ecf9ee4f2dde940f3f1270467edae21b47aed08
660433016b82875198c198f06f1d58a91e3a752a
/bloodbank_proj/asgi.py
3d9909e015989f91d884363e11ccddcdef1db45b
[]
no_license
TusharSarkar181/Blood_Bank_Management_System
7aae9c630e555acdc577f3042b50cf65783aba33
4bbc823b99d83e9a5827c95d254e259a80d4e606
refs/heads/master
2023-07-17T07:47:43.485745
2021-09-05T13:33:01
2021-09-05T13:33:01
383,558,618
1
1
null
null
null
null
UTF-8
Python
false
false
405
py
""" ASGI config for bloodbank_proj 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.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
[ "tusharsarkar97@gmail.com" ]
tusharsarkar97@gmail.com
3e5e9331b99206c659a89d95766e9583bd254a66
184dcfbb4a6ab18688ad14b337acbf733a8a9ee6
/Recommenders.py
f4c12ef35003be81962263ed2d2f5d66508f20f7
[]
no_license
Viole-Grace/RedHat_2019
58aa46a739612db164353143c5c439db5597305b
9aed7adc4a31f0d129a5d53efd028f4fb4995982
refs/heads/master
2020-05-09T11:55:39.870829
2019-04-13T02:07:30
2019-04-13T02:07:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,713
py
import numpy as np import pandas class popularity_recommender_py(): def __init__(self): self.train_data = None self.user_id = None self.item_id = None self.popularity_recommendations = None def create(self, train_data, user_id, item_id): self.train_data = train_...
[ "noreply@github.com" ]
Viole-Grace.noreply@github.com
efcdcd2e3b9ad9c39bfda4e7240953fca1add4af
01ae99d512962035059117782170c85f87060dd9
/packages/package.py
6b12ccbe6f345ab5fbd9a5be62714e593a5bc550
[]
no_license
JkbLskw/chocolateyUpgradeUtilityCore
711bc9697b5a639c77de5902323b3a11e89ab0ae
83496b9c9f2e3c560694a38acdec7a6f9f8621c8
refs/heads/master
2022-10-18T01:19:57.829411
2022-10-16T22:18:38
2022-10-16T22:18:38
180,997,376
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
class Package(object): def __init__(self): self.name = None self.type = None self.extern = None self.chocolatey = None
[ "5z4hsex7Yc3f4XOkXRrP" ]
5z4hsex7Yc3f4XOkXRrP
0ef7ffea33b2244997b5c41254c53c90db1083aa
ee8cb974f12977894f7f0fda5b8129570224618b
/gim/core/migrations/0013_auto__add_field_issueevent_related_content_type__add_field_issueevent_.py
43503150f2cbcde634778bdb46e6ccbccd7ff624
[]
no_license
derekey/github-issues-manager
996b3c7b9acd0362b7d99948d45a15ea05d58cc2
63a405b993e77f10b9c2b6d9790aae7576d9d84f
refs/heads/develop
2021-01-21T01:03:01.739800
2014-11-09T21:26:49
2014-11-09T21:26:49
42,234,954
1
0
null
2015-09-10T09:22:40
2015-09-10T09:22:39
null
UTF-8
Python
false
false
27,500
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'IssueEvent.related_content_type' db.add_column(u'core_issueevent', 'related_content_type', ...
[ "s.angel@twidi.com" ]
s.angel@twidi.com
6d23fa4b5b3ab1a873dca811f647611e1b4bb2c3
e40945130b3819a0a3c6ad3e66f0f8de6cba8a62
/xym/order/order_test.py
3c3d31eab542857ad86d2da543821a7778a3831f
[]
no_license
jinge324/test002
1d778e9f15d48eba19947576acc6e42994c35d93
5d4fac1e770d5aae41aa7ba1be8650195d8cc09c
refs/heads/fenzhi
2022-09-10T18:17:38.005875
2020-05-26T02:52:56
2020-05-26T02:52:56
262,921,532
0
0
null
2020-05-26T02:52:58
2020-05-11T02:42:09
Python
UTF-8
Python
false
false
805
py
import json import xym.request.myrequests import xym.test_cases.test_fee_data.fee_one_data class order_qw(): def iop(self): run = xym.request.myrequests.RunMain headers = xym.test_cases.test_fee_data.fee_one_data.headers payurl = 'https://api.imways.com/mall/electricity/test_cases/prepay?fe...
[ "iop" ]
iop
ff74747105a771c51a28a917d9ce7ebfb5ce40de
c062847c2d2d7e1f0a15128b716b496425db84d2
/ex7/nation_mood.py
b168f24ce125991ea52a721b99afa3cf46ead0bb
[]
no_license
aviadlevy/Intro2cs-huji-2014
3dae8c15d5292532e1d4cf58d3b655d98ccbe26e
d17b71ec5b98961fb536095926112ad1c926ecc9
refs/heads/master
2021-01-21T00:17:00.168468
2015-06-20T21:55:43
2015-06-20T21:55:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,894
py
from data import load_tweets def most_talkative_state(tweets,find_state): """Return the state that has the largest number of tweets containing term. """ state = [] #create a list of all tweets locations for index in range(len(tweets)): state.append(find_state(tweets[index])) if len(sta...
[ "aviadlevy1@gmail.com" ]
aviadlevy1@gmail.com
893136904401af906e7bdbcf75c63539d98f9364
5cb7b9fe09b1dd20c0664d0c86c375ffe353903c
/static/js/pypyjs/pypy-nojit.js-0.3.1/lib/modules/test/test_shlex.py
ba0f3d1fcae7670d0a08cc51cf4cc0b57557c939
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
shiblon/pytour
6d0ee4a679cf7e6ffd8ac6326b8bb0d9071a7c73
71a181ec16fd38b0af62f55e28a50e91790733b9
refs/heads/master
2021-01-17T10:09:18.822575
2020-09-23T20:05:58
2020-09-23T20:05:58
23,226,350
2
3
Apache-2.0
2020-02-17T22:36:02
2014-08-22T13:33:27
Python
UTF-8
Python
false
false
5,315
py
# -*- coding: utf-8 -*- import unittest import shlex from test import test_support try: from cStringIO import StringIO except ImportError: from StringIO import StringIO # The original test data set was from shellwords, by Hartmut Goebel. data = r"""x|x| foo bar|foo|bar| foo bar|foo|bar| foo bar |foo|bar|...
[ "shiblon@gmail.com" ]
shiblon@gmail.com
63f6862c5fa020fc79e11cdb16aee06ddb1ff1a0
d5d35d20ec811cbaa792e681d559361cd7f38159
/challenge/DidacticVampireText.py
70cdffe7dc20b01345fe0e2f5d252051a8275136
[]
no_license
markieboy/hacker.org
afe43f0b4213ec135f8b095bcc7b1a7a755581d8
da1689bdcc2fe91a81a30385680fd367f2d6e9cf
refs/heads/master
2021-06-21T12:07:21.503999
2017-08-11T08:38:05
2017-08-11T08:38:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
#!/usr/bin/env python3 # Q: http://www.hacker.org/challenge/chal.php?id=139 # A: http://www.hacker.org/challenge/chal.php?answer=sunshine&id=139&go=Submit import re import urllib.request import hacker_org_util PROBLEM_ID = '139' def main(): source = urllib.request.urlopen(hacker_org_util.build_challenge_url(PRO...
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
db2142bda638e20badb1ee6c14cf9429f34b6309
4590f24f3ac94e5c4669674ec2f23f15a523af57
/finalv2.py
a693d0552881b292652cad6b92c86fdc0d622f04
[]
no_license
shaavi/Spectre_FYP
1b5fa707080981bc558bbe16859d0a9b3dd15184
63b7770f46e4c8510648d5d169098178614506f0
refs/heads/master
2020-06-11T17:06:22.789407
2020-03-02T12:23:43
2020-03-02T12:23:43
194,032,411
0
0
null
null
null
null
UTF-8
Python
false
false
4,889
py
#!/usr/bin/env python # coding: utf-8 # In[101]: import numpy as np import cv2 import matplotlib.pyplot as plt from skimage import io from skimage import measure #read image image = cv2.imread('H:/FYP/interim/images/222.jpg',0) #preprocess using median blur img = cv2.medianBlur(image,5) plt.imshow(img) # In[102...
[ "shavindip@gmail.com" ]
shavindip@gmail.com
bf56c90a7fa0b42362e0679ec9a27b21f6edd258
7359acb9f96a7e4196ef1472cae543b17a45717a
/crawl2.py
b5bba826d394773673dac58a635b25978107026e
[]
no_license
miyagilabs/revisionCrawler
e4b8240e6eda09f29b4a7e7bd5bebf85d4eab7f6
355648dcbd099d9f117343bdcf75abf2510d1771
refs/heads/master
2021-01-23T14:15:09.463020
2017-06-12T16:47:25
2017-06-12T16:47:25
93,249,320
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
import urllib2 # THIS IS WHAT IT IS DOING # CHANGE => REVISION 1 COMMENTS => DEBUG = False project_url = "https://gerrit.wikimedia.org/r" change_id = "356858" comments_url = project_url + "/changes/" + change_id + "/revisions/1/comments" comments_content = urllib2.urlopen(comments_url).read() # The response stran...
[ "cagdas.gerede@gmail.com" ]
cagdas.gerede@gmail.com
819b1e3786aa43a656e60a23ca7029b7e0c4009f
5c1aa426d983ff26ff0135d506ea7e40d2ef0d0d
/Portfolio/main/urls.py
20219270ab13dae1b1bbae51c747a3b2f5a1b608
[ "MIT" ]
permissive
kprakhar27/Django-course
2a070c31ee821efb08113a89c3f048d7b1d1e207
3643a98ab2fe78b533e549ad05f1f7eededaaeff
refs/heads/main
2023-05-26T05:17:42.504828
2021-05-31T19:37:47
2021-05-31T19:37:47
354,726,285
2
0
null
2021-05-30T20:37:02
2021-04-05T05:12:45
Jupyter Notebook
UTF-8
Python
false
false
228
py
from django.urls import path from main import views urlpatterns = [ path('projects/', views.projects, name='projects'), path('languages/', views.languages, name='languages'), path('', views.index, name='index'), ]
[ "kumarprkhr@gmail.com" ]
kumarprkhr@gmail.com
86bf68a3fdb54d1cb09fca3faa9ef12d0f6fa966
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
/Leetcode/849. Maximize Distance to Closest Person.py
f36d9de210337b439e5c96e96c00caecda775ca7
[]
no_license
xiaohuanlin/Algorithms
bd48caacb08295fc5756acdac609be78e143a760
157cbaeeff74130e5105e58a6b4cdf66403a8a6f
refs/heads/master
2023-08-09T05:18:06.221485
2023-08-08T11:53:15
2023-08-08T11:53:15
131,491,056
1
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
''' In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, and at least one person sitting. Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized. Return that maximum distance to ...
[ "derek.xiao@loftk.us" ]
derek.xiao@loftk.us
735d952b9b73db8a38c1a772c6a5c61bceced913
e1dd6d9dccb822d472b7f4f9e8446dd9202eb5a1
/sdk/test/test_io_k8s_api_rbac_v1alpha1_cluster_role_list.py
f7e76f339f1516a69e8e00215b9d2dd97d478213
[]
no_license
swiftdiaries/argo_client
8af73e8df6a28f9ea5f938b5894ab8b7825e4cc2
b93758a22d890cb33cbd81934042cfc3c12169c7
refs/heads/master
2020-05-17T12:11:57.556216
2019-07-24T23:23:33
2019-07-24T23:23:33
183,701,327
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
# coding: utf-8 """ Argo API Client Generated python client for the Argo Workflows # noqa: E501 OpenAPI spec version: v1.14.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import argo.sdk from models.io_k8s_api_rba...
[ "adhita94@gmail.com" ]
adhita94@gmail.com
0eb24ff5044be2fee91c60335d5eff66d6f6606b
f261b4ac05694cac34ae726d874bd723087a239a
/weather_application/asgi.py
7b86d336eee56295bfdf939caf9526556bddae41
[]
no_license
AGolobokov/epamWeatherApp
50f44bdff517d4f6bb20a7172594743c896d74c0
9ab74d2417df4e747056d82d3d529b06a9eb2989
refs/heads/master
2023-07-25T12:35:21.624902
2021-09-02T22:25:19
2021-09-02T22:25:19
402,088,558
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
""" ASGI config for weather_application 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.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('...
[ "bullet93639@mail.ru" ]
bullet93639@mail.ru
8651769e811843c8771b34777e0cd3f9f73886cd
20674c17d815214bf66b75be686bb8a45c0f5914
/version1/382_Linked_List_Random_Note.py
b3eb2bb00277f1ab4588a3185e4daf65f981fec9
[]
no_license
moontree/leetcode
e7b670969fe20785b15aae82996875fd66de1b08
f2bf9b13508cd01c8f383789569e55a438f77202
refs/heads/master
2021-05-20T20:36:45.615420
2020-04-02T09:15:26
2020-04-02T09:15:26
252,408,563
1
0
null
null
null
null
UTF-8
Python
false
false
1,799
py
""" Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up: What if the linked list is extremely large and its length is unknown to you? Could you solve this efficiently without using extra space? Example: // Init a singly l...
[ "zhangchao@zhangchaodeMacBook-Pro.local" ]
zhangchao@zhangchaodeMacBook-Pro.local
8defd0b690371cf2651951fb928ae9eb9d6912f7
c8488d1538537c1b9a0aca65e9d5fc22ad0db37f
/engine/error/ecs.py
ed34a529e9f5ee833d3f64f7b2e9895870374308
[ "MIT" ]
permissive
TWoolhouse/Libraries
67e5a235153acf80a71cb938b7c83de242c07860
5cf6b3a80d80a5cc69bea5431a29731dd6b39d76
refs/heads/master
2022-04-30T11:13:21.142631
2022-03-29T23:20:13
2022-03-29T23:20:13
157,422,268
1
0
MIT
2021-01-05T16:34:13
2018-11-13T17:50:25
Python
UTF-8
Python
false
false
1,822
py
from .base import ECSError __all__ = ["ComponentTypeError", "EntityLimitError", "GetComponentError", "InitializeComponent", "TerminateComponent"] class ComponentTypeError(ECSError): def __init__(self, component, expected=None): self.component = component self.expected = expected def __str__(s...
[ "thomasrwoolhouse@gmail.com" ]
thomasrwoolhouse@gmail.com
67ae5942e03cb4f245ecd286713c9620a53ef868
4b4bfaf66d8dbe28987656ac603e707e36b2d493
/package/HTMLTestRunner11.py
cc28b1862f6fce856fa7a77fbad9baab22266dfc
[]
no_license
xieguoyong/SeleniumDoctor
846e63160a79615e3865e249f274298e8f334bdc
d0238e33421903907966b6add81d2287b17810bb
refs/heads/master
2020-03-27T04:33:09.731273
2018-09-03T08:55:21
2018-09-03T08:55:21
145,949,808
1
0
null
null
null
null
UTF-8
Python
false
false
24,265
py
""" A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the result at a glance. The simplest way to use this is to invoke its main method. E.g. import unittest import HTMLTestRunner ... define your tests ... if __name__ == '__main__': HTMLTestRunner.ma...
[ "xie.guoyong@dr-elephant.com" ]
xie.guoyong@dr-elephant.com
bea0d53b9ad8af2ff72f2f2b917b932eaff47d93
59f5ce54604b69624cf559c804bcf7ee14e4685c
/scripts/mmaction2_tsm/dataset_generation_script/gen_label_ava.py
aa49c3b5d0f3d319ec7ae099643408a39d43b934
[]
no_license
ZJU-lishuang/shengshi_github
334737f9072d0ee40b19f480f1e856a98b1d0d29
f01905c5b9aa587232e3532be96bca4f84839cd8
refs/heads/master
2023-07-17T02:08:52.072460
2021-09-01T02:54:48
2021-09-01T02:54:48
188,337,859
0
0
null
2023-07-06T21:27:29
2019-05-24T02:20:59
Python
UTF-8
Python
false
false
7,034
py
import os import xml.etree.ElementTree as ET import numpy as np # import mmcv import shutil # import re def subfiles(path): """Yield directory names not starting with '.' under given path.""" for entry in os.scandir(path): if not entry.name.startswith('.') and not entry.is_dir(): yield entr...
[ "qqlishuang@gmail.com" ]
qqlishuang@gmail.com
49bf2c1b0d24319a2822b8d511a0eb5a55bf56af
0b3e7dd58b9e521d3af45332a7c343c8eb6792f6
/deadloop.py
a692a56975326203b609a1c01c694faa5cc20a9f
[]
no_license
hanshantong/gitlearnpy
13c1dd4b3b1df35225f568eb9104161ad53f36b6
1fde167811641838d9bbe8d1fd3c8d13a8374694
refs/heads/master
2021-07-25T20:24:04.162552
2018-11-07T09:52:18
2018-11-07T09:52:18
145,381,392
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
#!/usr/bin/env python3 #-*- coding:utf-8 -*- __author__ = "tongzi" import threading,multiprocessing def loop(): x = 0 while True: x = x ^ 1 print("The number of cpu core is: ",multiprocessing.cpu_count()) for i in range(multiprocessing.cpu_count()): t = threading.Thread(target=loop) t.start()
[ "1356466973@qq.com" ]
1356466973@qq.com
dfb96190100b8be320491ef9b7eae480f6f820c9
49361b00b942f2fb9e05d8bbab368c684c90c95b
/projectweb/urls.py
37c2c450f406420c7f22e4b8b6f9a37cea295bd3
[]
no_license
vinodh1988/python-service
224e8a7b98acf17279c1f30e59d8cd1d41a7094a
b04b5fcc01f5fc88a6a59589f861ccaac845cb6a
refs/heads/master
2023-08-05T03:35:27.692968
2021-09-09T12:46:13
2021-09-09T12:46:13
403,600,520
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
"""projectweb URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "vinodhkc@vinodhconnects.onmicrosoft.com" ]
vinodhkc@vinodhconnects.onmicrosoft.com
746f538f4f59613057ed9e33923e1a08e11e714b
1524720d6480ad0a51b6fd8ff709587455bf4c5d
/tums/trunk/lite/nevow/scripts/consolejstest.py
0a952bcc2cf4f3a02ccf1aa2154442b69701dc9e
[]
no_license
calston/tums
2bd6d3cac5232d2ccb7e9becfc649e302a310eab
b93e3e957ff1da5b020075574942913c8822d12a
refs/heads/master
2020-07-12T03:46:43.639800
2018-05-12T10:54:54
2018-05-12T10:54:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,135
py
# Copyright (c) 2006 Divmod. # See LICENSE for details. """ Out-of-browser conversion of javascript test modules that use Athena's "// import" syntax into monolithic scripts suitable for feeding into a plain javascript interpreter """ from sys import argv from twisted.python.util import sibpath import nevow, subproce...
[ "junwin@gmail.com" ]
junwin@gmail.com
614adee46ed6432a0f1bc2c1bc7d3dff42797991
c10633b49f927dd5c0dad517a1cd2bf60e59e501
/multi.py
cf4a74b7102c2ec2f08848e0d01bd930b0470266
[ "MIT" ]
permissive
mohabedalgani/GFSA
d011e45be3f4f3adc99f568c36cf64d25a5f0e49
30a9ebad3d6b7f4f275ab2ea4b8509f64ab7ff40
refs/heads/master
2022-12-30T02:49:44.440909
2020-10-20T14:19:02
2020-10-20T14:19:02
292,627,811
0
0
null
null
null
null
UTF-8
Python
false
false
2,848
py
''' This file is part of GFLIB toolbox First Version Sept. 2018 Cite this project as: Mezher M., Abbod M. (2011) Genetic Folding: A New Class of Evolutionary Algorithms. In: Bramer M., Petridis M., Hopgood A. (eds) Research and Development in Intelligent Systems XXVII. SGAI 2010. Springer, Lon...
[ "noreply@github.com" ]
mohabedalgani.noreply@github.com
dafca90b588ffde69707a03ec8a7cc7080e5d2c3
a02e5905fa556ec962f65a80fcaa57b1ff38d177
/code/custom.py
c96a8fc5087f255c1186a0897a9bf22715e27f1f
[]
no_license
Xueelei/Computer-Vision-for-Melanoma-Detection
991e803bffd8c2d05e672adf9764b82838effa06
871c8d5143f5622198c68c89ffce7e10d713cb2f
refs/heads/master
2020-08-07T00:52:27.790090
2019-11-01T21:01:28
2019-11-01T21:01:28
213,228,063
0
0
null
null
null
null
UTF-8
Python
false
false
12,346
py
# -*- coding: utf-8 -*- """ Created on Thu Jan 31 16:43:15 2019 @author: dell """ import numpy as np import util from matplotlib import pyplot as plt import skimage.io from skimage import transform import numpy as np import scipy.ndimage import skimage.color import sklearn.cluster import scipy.spatial.distance import...
[ "xuelei@andrew.cmu.edu" ]
xuelei@andrew.cmu.edu
a67af589f2fcef2b0ce235cad9572f2f6497b238
e96434fd49285d66cf926730f3b5c8ae2e51ee77
/org/cyy/fw/piedis/Client.py
b07f56a2fd4a05c6239d0a59031c2d9fb1a55889
[]
no_license
chenyihan/piedis
2d213f2b06ef151803b7b8a9d9c253429fbf41c4
2649d71c5e6d599fa33864e5ca82bdce23fede6f
refs/heads/master
2021-01-20T12:37:28.735144
2015-12-17T15:42:16
2015-12-17T15:42:16
39,572,341
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
23,872
py
# -*- coding: GBK -*- ''' Created on 2015Äê7ÔÂ8ÈÕ @author: yunyun ''' import socket from org.cyy.fw.piedis import RedisProtocol, Command, RedisKeyword, Response from org.cyy.fw.piedis.Command import BinaryCommand from org.cyy.fw.piedis.Server import ServerNode from _sha1 import sha1 class PiedisClient...
[ "348800349@qq.com" ]
348800349@qq.com
01e00b4ca543649fd4254ff5114f45c0090e5d27
61ced4644ccf4fe82a1d41c146388f0cc2b646fb
/asteroid_detection/features.py
8652a5dfc5b2a32506196578de1714bbed9344a8
[]
no_license
cmccachern/asteroid_detection
89ff50f325db49911f27a70cb6f1aecfa5eb0a91
fba94a7008b611c8e4cda2a69cc7f601a7a49b7f
refs/heads/master
2022-11-28T10:21:23.098023
2019-11-12T00:55:07
2019-11-12T00:55:07
208,173,427
0
0
null
2022-11-22T04:16:26
2019-09-13T01:10:55
Python
UTF-8
Python
false
false
6,695
py
""" Functions for manipulating fits images to find asteroids. """ #pylint: disable=no-member #pylint: disable=unsubscriptable-object import numpy as np from scipy.signal import correlate2d import cv2 from astropy.io import fits import matplotlib.pyplot as plt from sdss import fits_from_rcf, jpg_from_rcf def plot_h...
[ "carey@mccachern.com" ]
carey@mccachern.com
1f0bb0dbee3cb5c8fdeb8522e150fe9eb161a007
7b869138fb194dcd4901d9b4f299fcde67148e85
/550C/DivisibleByEight.py
5f0f62b2924791aa211a50aaad6b93d39f171284
[]
no_license
CrabBucket/Super-Competitive-Competivie-Programming
badc4b17687d66d5c2eb11c026392e2c08eabf59
706dbcb8405fbb10ff8e88b2f72c56acfacdeb0c
refs/heads/master
2022-12-24T02:53:14.226783
2020-09-20T18:38:16
2020-09-20T18:38:16
271,158,791
0
0
null
2020-07-02T00:01:01
2020-06-10T02:35:03
C++
UTF-8
Python
false
false
1,287
py
totaliters = 0 def removeEle(string,index): return string[:index] + string[index+1:] dptable = {} def byEight(num): global totaliters if num in dptable: return dptable[num] #print(num) if num%8 == 0: #print(num) dptable[num] = (num,True) return (num,True) else: ...
[ "tom@mcratracing.com" ]
tom@mcratracing.com
ed7bdce889e461553bb10bad06747aae9bc3bee8
22ee2c0b35393e31c0bf9d715ad0cd4c884c0615
/day2/buggy/dicegame/die.py
148544efaa4d61e92a6f89f8c8738d7598ed69ee
[]
no_license
wwa-vanekeren/aspp2021_solutions
de051bdf3571affdcb17cf8d876218f870d3db13
eac2ff0e3f0d2c60aca5b9115dd3039608aaacf9
refs/heads/main
2023-03-17T17:51:00.019986
2021-02-26T10:50:23
2021-02-26T10:50:23
340,689,036
0
0
null
2021-02-21T08:08:48
2021-02-20T15:38:14
null
UTF-8
Python
false
false
1,112
py
# Just count the stupid dice import random def roll(dice): for die in dice: # XXX: I don't even know what this function does continue class Die: """ This is always correct. Seriously, look away. """ def __init__(self): self.roll() def roll(self): ...
[ "noreply@github.com" ]
wwa-vanekeren.noreply@github.com
24ab3b6bc9948f727288670a20148e9be24cf5a9
22dfd0857377a1b8747cd1481d2c3c9e5dbfd0e4
/edgedetect.py
b97065484be499d7e7c1ec4c82e3ba6cfdbeb2c2
[]
no_license
msbomrel/cheque
d60a7ff26df1d523d4e7a63eaa95d145857a57f6
94d8dc383f7385063513e246d992685660e17b2b
refs/heads/master
2021-01-02T22:53:52.128668
2017-09-15T01:39:49
2017-09-15T01:39:49
99,415,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,685
py
# import the necessary packages from Services.transform import four_point_transform import cv2 import glob from os.path import join, dirname, realpath UPLOAD_FOLDER = join(dirname(realpath(__file__)),'static/images/') def detect(): print "I am called" files = glob.glob(UPLOAD_FOLDER +'*') for f in files: ...
[ "mohan.bomrel@deerwalk.edu.np" ]
mohan.bomrel@deerwalk.edu.np
f9aac5699d1e1c4bcbcdff38e4792101d207fcfc
8bf0babe2fede24e8727b3f04352dd1032631e1e
/news/netease.py
c48249c132560c9e56cce91e935103c2fe832088
[]
no_license
maochuanwangzi/anna-news-server
80dfe4f95cd68291b5f071ea8f69b9c2f62e36f4
73b262f132013bb138f125195e0780449dc560fe
refs/heads/master
2020-03-19T08:30:02.602188
2018-05-15T11:40:27
2018-05-15T11:40:27
136,209,181
1
0
null
2018-06-05T17:03:14
2018-06-05T17:03:14
null
UTF-8
Python
false
false
133
py
#!/usr/bin/env python # coding=utf-8 def get_news_from_netease(site_url): res = {'result': site_url} return res
[ "noreply@github.com" ]
maochuanwangzi.noreply@github.com
e0974cb3b18e1e63399d4a31048a7e7a76a9a09e
1f7bc6ee69209f91b96b258def5e75e0e5fde3c2
/listbox.py
9835cddc447b5f919f097cbf07b725884dbf8a46
[]
no_license
kaurjassi/GUI
d82a93be9ec9be0fea95f22059d374fbe72ccfcb
d30a24bd5ece7641cda976c4eec594f442bc6a82
refs/heads/master
2022-11-09T06:43:04.145684
2020-06-25T14:39:01
2020-06-25T14:39:01
274,936,680
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
from tkinter import * def add(): global i lbs.insert(ACTIVE,f"{i}") i+=1 i=0 #intial value root = Tk() root.title("Listbox") root.geometry("500x400") # list box = list box is a widget which displays the alternate list.. # blank list box and insert the items in it lbs = Listbox(root) lbs.pa...
[ "noreply@github.com" ]
kaurjassi.noreply@github.com
432af564f54f219a36399d60ff01262383c310b7
bd359061d94167f624db31e1b583a0b19a0bcff6
/src/Test_DiGraph.py
bbb4aa93d4caee386a3a8680301cd1ba41a41f7c
[]
no_license
rinatGrinberg/Ex3-python
b69bfb4571b75b17e1be999ffa20e976ecda5f56
4945e7ba872543410efd452bbb45f156f89162ab
refs/heads/main
2023-02-14T19:15:31.617860
2021-01-13T18:35:30
2021-01-13T18:35:30
329,116,249
0
0
null
null
null
null
UTF-8
Python
false
false
2,697
py
import unittest from DiGraph import DiGraph from src import GraphInterface import calc class MyTestCase(unittest.TestCase): def test_nodesize_and_addnnode_and_removenode(self): g = DiGraph() for i in range(3): g.add_node(i) g.remove_node(0) g.remove_node(1...
[ "noreply@github.com" ]
rinatGrinberg.noreply@github.com
583466431748d71c10e4768b2295e9e980422200
10d77a1bca1358738179185081906956faf3963a
/venv/Lib/site-packages/django/core/mail/backends/filebased.py
f01e1497dbcc6dc15a7cf45416368b8606f613a2
[]
no_license
ekansh18/WE_Care_NGO_WEBSITE
3eb6b12ae798da26aec75d409b0b92f7accd6c55
7c1eaa78d966d13893c38e7157744fbf8f377e71
refs/heads/master
2023-07-16T07:22:48.920429
2021-08-31T04:11:19
2021-08-31T04:11:19
401,563,669
0
0
null
null
null
null
UTF-8
Python
false
false
2,727
py
"""Email backend that writes messages to a file.""" import datetime import os from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.mail.backends.console import ( EmailBackend """Email backend that writes messages to a file.""" import datetime import os from d...
[ "ekansh00@gmail.com" ]
ekansh00@gmail.com
2466113f0da79b2244862448de9eb3746c0d33d1
8fd255fc3498ec970d7202d3f70a671b7aa4c64b
/pmsal/blog/views.py
d5b704545317b790379154f070dad0ca73a0eb84
[ "MIT" ]
permissive
klebercode/pmsal
afda05fe29bb67db70fc7dcb8dfc577f4a3f0c9c
d78477f7cd1a5d1ed9973e13be5758c71a2ce2db
refs/heads/master
2016-09-06T05:42:34.468341
2015-04-04T17:24:07
2015-04-04T17:24:07
33,409,667
0
0
null
null
null
null
UTF-8
Python
false
false
3,212
py
# coding: utf-8 from django.db.models import Q from django.views import generic from django.views.generic.dates import (YearArchiveView, MonthArchiveView, DayArchiveView) from pmsal.context_processors import EnterpriseExtraContext from pmsal.blog.models import Entry from pmsal....
[ "kleberr@msn.com" ]
kleberr@msn.com
1f282037ba707bdcb0c2fbd47ed08bb8e0e60104
5aa14c620a383d8429c144e5af46b0322c674439
/tests/python/Lut1DTransformTest.py
0b6073a7cd51dad23173cb33a42118d333820dbb
[ "BSD-3-Clause", "CC-BY-4.0" ]
permissive
asdlei99/OpenColorIO
ae421f6c14870ffe735c73107b76f6746bd563ee
9b23e9623792d8cc6e6c1dfd5394335ee148bcf3
refs/heads/master
2023-03-13T16:14:19.693576
2021-03-03T03:11:10
2021-03-03T03:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,698
py
# SPDX-License-Identifier: BSD-3-Clause # Copyright Contributors to the OpenColorIO Project. import logging import unittest logger = logging.getLogger(__name__) try: import numpy as np except ImportError: logger.warning( "NumPy could not be imported. " "Test case will lack significant coverag...
[ "noreply@github.com" ]
asdlei99.noreply@github.com
b77167d258ce02e04bdda1ea6a83707259bbe0f7
80e701c5b9c03ef288848d8b368360e0940d9b67
/sleyeball/files.py
51db5f0a7dda0c4166dceea14a6d3bc400d4b819
[]
no_license
esheldon/sleyeball
a4917300b041747e0600186f0e596c6d83a95ff4
9eee500119d2bc07c942350a67c8777257e92a3d
refs/heads/master
2020-06-20T05:22:59.921610
2019-07-17T18:38:29
2019-07-17T18:38:29
197,008,586
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
import os def get_base_dir(): """ base directory """ return os.environ['SLDIR'] def get_cand_dir(): """ we keep lists here """ return os.path.join(get_base_dir(), 'candidates') def get_cand_file_orig(): """ holds paths to coadds """ d = get_cand_dir() return os....
[ "erin.sheldon@gmail.com" ]
erin.sheldon@gmail.com
28559c924e5a546d830cba07e2a3cf237ab9c05e
dc40f134d3713c0a4951588182bbe64b580761ef
/web/telebble/fetch.py
56f38b729dd8286332285600c1d7d7ee69216440
[ "MIT" ]
permissive
hkpeprah/television-2.0
79eaa553dc1246fc9fb468fd14830ef7fdccc3b7
8d6ce9cc7c8e22447769845159464422153cb8f6
refs/heads/master
2021-01-15T15:34:02.739470
2015-10-18T00:02:44
2015-10-18T00:05:15
38,463,076
0
0
null
null
null
null
UTF-8
Python
false
false
8,586
py
import datetime import constants import models import sources import utils def fetch_from_funimation(): data = sources.funimation.list_latest_episodes() series = data.get('series', []) episodes = data.get('episodes', []) source_type = sources.FUNIMATION_SOURCE network = models.Network.objects(s...
[ "ford.peprah@uwaterloo.ca" ]
ford.peprah@uwaterloo.ca
3d0f5f9fa5889a3b0c4e7e33c56710be4c790b92
03f82e74d54399eff2282e853ffacf4a29722ca4
/2.py
323c7ed69b8ae0730cb39c2e08f0ee9a39167d3a
[]
no_license
SerdarKuliev/proj1
d7eff875ca7788e7e391b417bcab5ba7ed9975b1
07c3a3f9069b512378e78db5caedd0c73c39e2df
refs/heads/dev
2022-12-19T06:50:26.810610
2020-09-29T12:34:45
2020-09-29T12:34:45
265,944,603
0
0
null
2020-06-13T00:53:17
2020-05-21T20:25:21
Python
UTF-8
Python
false
false
1,644
py
m1 = int(input("Введите выручку за январь 20 года.")) m2 = int(input("Введите выручку за февраль 20 года.")) m3 = int(input("Введите выручку за март 20 года.")) n1 = int(input("Введите расходы за январь 20 года.")) n2 = int(input("Введите расходы за февраль 20 года.")) n3 = int(input("Введите расходы за март 20 года.")...
[ "“Serdarkuliev@gmail.com”" ]
“Serdarkuliev@gmail.com”
87cc2abd3c13a2d90fd462c57af819701673b894
7c5f9f4a237669d9acc4b59711ac1cf91ba71f26
/torch/_dynamo/guards.py
c16c48515857ab7f942a58f2c98d68360e317e40
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
colesbury/pytorch
4924df03a4aaf88b51ff9d2c5572ac35a30f26be
d70f9c7888dc488304010a554d8b56a505919bda
refs/heads/master
2023-08-27T22:11:15.257393
2023-03-29T20:17:06
2023-03-29T20:17:10
79,366,698
1
0
null
2018-08-09T13:54:22
2017-01-18T17:47:38
Python
UTF-8
Python
false
false
33,502
py
import builtins import collections import logging import math import os import re import types import weakref from inspect import currentframe, getframeinfo from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Type, Union from weakref import ReferenceType import torch from torch._guards import ( Du...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
980959abb37db81339bd74bddf75e0f1e7839b61
f4b77a4bac8acdf550a13e04661765f0eab4509d
/contenta/manager.py
ec84b4863d2e655bc5dc1fb26e6a8a446f14342a
[]
no_license
k1000/contenta
b6d083c2c78e8fc8bd27481c4e94e8c0ef841909
a3d11ac71a1bba82320daa2be6a7b322aa76b6b9
refs/heads/master
2021-01-18T22:59:14.022598
2016-06-22T08:25:22
2016-06-22T08:25:22
7,433,369
2
0
null
null
null
null
UTF-8
Python
false
false
429
py
from django.db import models class PageManager(models.Manager): def active(self, **filters): return super(PageManager, self).get_query_set().filter(state=2, **filters) def siblings(self, page): # TODO if page.parent: return self.active().filter(parent__pk=page.parent.pk) def...
[ "selwak@gmail.com" ]
selwak@gmail.com
fedce837ffffa9807fa1d941d6e9277cdd7c1908
7484e6e9bdf9fc8181d986fe7ff301937352c962
/preparation.py
33bc9fe244e340fff4948b524966340a87b75efc
[]
no_license
Avagr/JBReactGraph
1323b93424b3c4521598d88560767f533267c7e8
90873b47f094e6104423caa677578bd62ed43114
refs/heads/master
2023-04-15T07:14:26.869449
2021-04-11T16:51:19
2021-04-11T16:51:19
356,913,252
0
0
null
null
null
null
UTF-8
Python
false
false
2,140
py
import requests import json from requests.models import HTTPError url = "https://api.github.com/repos/facebook/react/stats/contributors" # Function for encoding sets into json as lists def set_default(obj): if isinstance(obj, set): return list(obj) raise TypeError # Prepares data and writes it to t...
[ "avagroskin@edu.hse.ru" ]
avagroskin@edu.hse.ru
b3effc169e3db184f1082b87601f29458d399353
38952ab2dd82309b7ef2b510a69084f9e0945921
/shuake/venv/bin/easy_install
eb458e8af0336cd3e6c931240e2437b961f90561
[]
no_license
zicarb/YorkCoursebro
6c88fdf66c852defbd7e26e204c7715f8384e16d
ac5d4aba8320d7c73c6bd2bdc9d8dbbb4e1c8dea
refs/heads/master
2020-03-19T19:47:56.649018
2019-02-13T04:53:50
2019-02-13T04:53:50
136,874,107
0
0
null
null
null
null
UTF-8
Python
false
false
440
#!/Users/zombie/PycharmProjects/shuake/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '...
[ "zicarb09@gmail.com" ]
zicarb09@gmail.com