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
213 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
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
74440ebddf1eb1ebc4916ef3cfce6aca247a4c26
625b37dfd023711ecd21b0773e3f00b6cb55be75
/Neo4jDb18.py
ba363cf4b5276721de232b4f0829f497e2c7c098
[]
no_license
lapt/Neo4j
6a338c1f37f90c8eb4b8e2bc929dedafae778092
13e5351de3a63a0aba54af00f058595c1f0aaeb8
refs/heads/master
2016-09-06T18:12:21.806664
2016-01-20T00:35:11
2016-01-20T00:35:11
42,088,379
0
0
null
null
null
null
UTF-8
Python
false
false
12,382
py
__author__ = 'luisangel' import tweepy import time import MySQLdb import Credentials as k from User_location import * from neo4jrestclient.client import GraphDatabase from neo4jrestclient import exceptions FOLLOWERS_OF_FOLLOWERS_LIMIT = 3000000 DEPTH = 2 SEMILLA = "carolaurrejola"#"soyosorno" BDJSON = "../../twitter-u...
[ "lapt.paris@gmail.com" ]
lapt.paris@gmail.com
f748ebeaafe6021e8ecdeca7babd5bdc56bee7bf
1def5e2f4d666f20a1397afdbb05876f4c0beb12
/collbank/collbank/basic/utils.py
2f9d08720d38f5ae6d85534cbcc8f654e4b79491
[]
no_license
ErwinKomen/RU-collbank
f919b53e8dab5f7075bc391e61d34a8c3fb99ebc
1d8fff97ca90070f110109760bd680d1a6b2c717
refs/heads/master
2023-05-26T18:30:21.132711
2023-05-11T08:50:20
2023-05-11T08:50:20
62,224,148
0
1
null
2022-04-22T23:37:23
2016-06-29T12:28:42
Python
UTF-8
Python
false
false
1,798
py
import sys class ErrHandle: """Error handling""" # ======================= CLASS INITIALIZER ======================================== def __init__(self): # Initialize a local error stack self.loc_errStack = [] # -------------------------------------------------------------------------...
[ "erwin@NEHEMIA" ]
erwin@NEHEMIA
eb96c0740e56cb7ccb2e837efc7968f1ea05a82a
5dff728d1d716a69f1cf4154ed768a8628b04eaa
/Game/game/world/world.py
98b55d44d34af7ac71e7a3c15f3f332846419fd5
[]
no_license
kosyan2917/miptlab3
5a516fbde29e1d02dbb428bf6fa1fc96be6a788d
23d5e444562973d88f1d7dfd805f6fd0a2515ef3
refs/heads/master
2020-07-28T23:12:49.557778
2019-12-30T08:55:17
2019-12-30T08:55:17
209,574,538
0
0
null
null
null
null
UTF-8
Python
false
false
2,377
py
from game.world.actor.actors import Actor import pymunk class World: def __init__(self, debug=False): World._instance = self self._actors = [] self._add_actors = [] self._remove_actors = [] self._debug = debug self._space = pymunk.Space(True) self._space.th...
[ "pevetz@bk.ru" ]
pevetz@bk.ru
138ed5d9b8d32ddbe56bfc02c1d7b36db6f8ad2f
76afa0d8cdf019ed9f44086894796e4f1f87b6d3
/tests/dllist_test.py
da2f536d2c0fa86690065f436cf23320e8a5df35
[ "MIT" ]
permissive
ajakubek/python-llist
6cc296a9f40c3039821401b399fd7c18ef496136
221df4e025bcea30285d2a3c53f4bd1eb9bc6ea2
refs/heads/master
2023-02-27T00:59:54.345079
2021-04-26T23:22:00
2021-04-26T23:33:06
2,959,048
61
23
MIT
2023-02-13T07:52:43
2011-12-11T17:04:36
C
UTF-8
Python
false
false
50,380
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import unittest import weakref from py23_utils import * from llist import dllist, dllistnode, sllistnode class testdllist(unittest.TestCase): def test_init_empty(self): ll = dllist() self.assertEqual(len(ll), 0) self.assertEqual(l...
[ "ajakubek@gmail.com" ]
ajakubek@gmail.com
24007a6eab0c86ef6c997b99f716e8851c6a75c1
0480b6e037497bc61a4c113d005492d0950cbf81
/tutorial-demo/tutorial/spiders/QuotesSpider.py
23dfe15b9ba235435ac628eb590694250e6dd58d
[ "MIT" ]
permissive
quicktouch/scrapy-start
b91e8ea2635ad1e30537c86764b9b79400befce4
132ae62efbbb83e93f9924a6c9c0e677fc87da12
refs/heads/master
2020-05-30T19:18:55.725336
2019-06-03T06:31:40
2019-06-03T06:31:40
189,921,313
0
0
null
null
null
null
UTF-8
Python
false
false
2,766
py
import scrapy class QuotesSpider(scrapy.Spider): # 标识Spider。 它在项目中必须是唯一的,也就是说,不能为不同的Spider设置相同的名称。 name = "quotes" #必须提供一个Spider开始抓取的迭代请求(你可以返回一个请求列表或者编写一个生成器函数)。 # 随后的请求将从这些初始请求中接连生成。 def start_requests(self): urls = [ 'http://quotes.toscrape.com/page/1/', # 'http...
[ "tyrad@qq.com" ]
tyrad@qq.com
67d1f7cd8d7bbddc37fe4bfd3e34c2c84521cfa4
5a8f9d8d1cc47ae83546b0e11279b1d891798435
/enumerate_reversible.py
fcce362a8588dd9d6a470e2f099a5cfab00ea31f
[ "MIT" ]
permissive
cjrh/enumerate_reversible
d81af841129adbad3a3d69a4955bfba202a174c7
d67044c78c1214c8749b60227d5c170d8c327770
refs/heads/master
2021-05-21T08:16:31.660568
2021-05-03T04:05:15
2021-05-03T04:05:15
252,613,686
0
0
MIT
2021-05-03T04:05:15
2020-04-03T02:27:01
Python
UTF-8
Python
false
false
438
py
original_enumerate = enumerate def enumerate(iterable, start=0): class Inner: def __iter__(self): yield from original_enumerate(iterable, start=start or 0) def __reversed__(self): stt = start or 0 rev = reversed(iterable) # First, for accurate exception msg ...
[ "caleb.hattingh@gmail.com" ]
caleb.hattingh@gmail.com
9f837590386b08c2bb7b840886d6c4846297c5db
9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0
/venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/python2/python2.py
6caf7949dd60cf3fde3fad0f2252a25efd921e37
[]
no_license
baruwaa12/Projects
6ca92561fb440c63eb48c9d1114b3fc8fa43f593
0d9a7b833f24729095308332b28c1cde63e9414d
refs/heads/main
2022-10-21T14:13:47.551218
2022-10-09T11:03:49
2022-10-09T11:03:49
160,078,601
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
/home/runner/.cache/pip/pool/8e/42/70/9a4789553cf0ce8f7978c229b537dd040faa9b222a65ca6de3c88e8ad5
[ "45532744+baruwaa12@users.noreply.github.com" ]
45532744+baruwaa12@users.noreply.github.com
2b0493c0125aa2c23a18276674e33b53d6fc91e5
809bdf3b3874627f572ec3eeffe5b4e83e2fac91
/backend/apps/article/migrations/0004_auto_20210129_0846.py
04bb1a30c329806c9fcb22c437e6855e8d02891c
[]
no_license
sniperglass/TaxJungle
47132c157e2f0b7512d466596d5bc64487f64190
28f0448def8c8df142cf77df1b6a2e33cf3657fb
refs/heads/master
2023-03-16T08:26:55.420747
2021-02-12T09:11:28
2021-02-12T09:11:28
343,459,009
1
3
null
null
null
null
UTF-8
Python
false
false
637
py
# Generated by Django 3.1.4 on 2021-01-29 08:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('article', '0003_remove_a...
[ "mwyszowski@gmail.com" ]
mwyszowski@gmail.com
127d350e935ff500677c170ab861f0343b28e635
e7b312b4cc3355f4ca98313ef2ac9f3b0d81f245
/abc/229/g/g.TLE.py
756dc1a784847d74805a2326514ab64db4f673f6
[]
no_license
minus9d/programming_contest_archive
75466ab820e45ee0fcd829e6fac8ebc2accbbcff
0cb9e709f40460305635ae4d46c8ddec1e86455e
refs/heads/master
2023-02-16T18:08:42.579335
2023-02-11T14:10:49
2023-02-11T14:10:49
21,788,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 類題 https://tutorialspoint.com/program-to-find (YをN個連続させるのに必要な最小スワップ回数を求める) を見つけたので、これを使って二分探索で解こうとしたが、TLE 類題のコードは理解していない https://twitter.com/kyopro_friends/status/1464593018451750919 を参考にとき直すこと """ import array from bisect import * from collections imp...
[ "minus9d@gmail.com" ]
minus9d@gmail.com
7e3edaadd3fc130cc391da1bfd5cd75125fbd91d
78b7a0f04a92499d7c7479d22a6d6ed0494f51d4
/doc/future_bottumup.py
2f3208851514d1180279d9e67312187043ba02fe
[]
no_license
duchesnay/pylearn-epac
5a6df8a68dc121ed6f87720250f24d927d553a04
70b0a85b7614b722ce40c506dfcb2e0c7dca8027
refs/heads/master
2021-01-21T00:16:09.693568
2013-07-23T10:21:56
2013-07-23T10:21:56
6,781,768
2
0
null
null
null
null
UTF-8
Python
false
false
7,240
py
# -*- coding: utf-8 -*- """ Created on Thu May 23 15:21:35 2013 @author: ed203246 """ from sklearn import datasets from sklearn.svm import SVC from sklearn.lda import LDA from sklearn.feature_selection import SelectKBest X, y = datasets.make_classification(n_samples=12, n_features=10, ...
[ "edouard.duchesnay@gmail.com" ]
edouard.duchesnay@gmail.com
f5392082fbf8c7eee529c56772bc85c6fd3b7163
eeaa5086dc12873c60a2878469408aed4c7c8126
/migrations/versions/d0a35a10500d_user.py
9577663d1b1abbafba7da203ae687b305d06cfc7
[ "Apache-2.0" ]
permissive
pipipp/FlaskQuickStart
dd88957fead24e779166611fe24e68668bd44808
b91994b0c1a088182e37568a879ee533ce63a74e
refs/heads/master
2022-01-21T11:18:04.387143
2019-05-28T11:24:23
2019-05-28T11:24:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
# -*- coding:UTF-8 -*- # 默认生成执行init初始化不会添加该字段,导致会报错,需手动添加 """'User增加新的字段' Revision ID: d0a35a10500d Revises: d25cfba27139 Create Date: 2019-05-28 11:12:33.413000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd0a35a10500d' down_revision = 'd25cfba27139' branc...
[ "haojiewu@creditease.cn" ]
haojiewu@creditease.cn
89de6fbb10485806448f7e4e21572b8f861b6051
5e9356651d8680a663c8ff7ebc608809a7e15235
/variations_draw.py
0f9aca0ff2d37bc4a9a3bac03067a458778bb720
[]
no_license
hmgu-itg/VarAnnot
a9e735051b39b6b75329a7ba56eb8e51f355cf81
8f2623d9d5f3b48d15b764843ea982d3859d8faf
refs/heads/master
2020-03-21T04:03:37.140549
2018-06-20T22:07:58
2018-06-20T22:07:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,560
py
''' These functions were collected to draw html formatted tables based on variation data version: v.2.1.0 Last modified: 2015.11.23 Package includes: ''' # Libraries for configuration: import config # Shared functions: from shared import * ## Loading sys is required to load the jinja lib: #import sys # ## Loading ...
[ "suvi.dani@gmail.com" ]
suvi.dani@gmail.com
c258d2a56be9499ca94b7148dcbd109077b6d138
a6ce26709d474954e6540aca30289eebf0ad6a8c
/DifferentExamples/Get.py
1d0e3cd0d467de804370babc04b59681301e584d
[]
no_license
zixing131/pys60-examples-mega-pack
8ea0252c9e0466608e99e60f2a17f5b92f7e10d5
66b8f38519bbaf46b351adac889b0a202477f2e2
refs/heads/master
2021-05-17T12:46:05.072720
2019-05-06T17:27:37
2019-05-06T17:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,235
py
#SYMBIANUID=0x00201525 import appuifw,urlparse,urllib,e32,httplib,codecs,string,sys,os from socket import * import thread class GetFile: def __init__(self,hmain): self.hmain=hmain self.of=None self.http=None self.url=u'' self.fname=u'' self.dir=hmain.dfldr self.ph=hmain.proxy_host self.p...
[ "noreply@github.com" ]
zixing131.noreply@github.com
82a3faf54da2a3dcb62981f4d0b3ec228c98f998
c20bbbca2509214aaef3bd3fe8e92b1afd5119a0
/day-075-wxcrawl/WxCrawler.py
bb25b01ec4a230f8400dc284ae6b7ceac8226c39
[]
no_license
LYSHN/python-100-day
f43e9c576e6189e38737bfb72f4f9e848d54014a
4e75007195aa4cdbcb899aeb06b9b08996a4606c
refs/heads/master
2023-03-14T21:18:46.701869
2020-03-27T03:41:42
2020-03-27T03:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,467
py
# coding:utf-8 import requests import re import html import demjson import json from bs4 import BeautifulSoup import urllib3 class WxCrawler(object): urllib3.disable_warnings() #Hearders,x-wechat-key 会过期,会出验证问题 headers = """Connection: keep-alive x-wechat-uin: MTY4MTI3NDIxNg%3D%3D x-wecha...
[ "noreply@github.com" ]
LYSHN.noreply@github.com
65aa5e8a866088686f06e9bb228b9d26b9629ff4
9f9f187642f7f13dae7782075d9cecfe39cb629c
/src/common/admin.py
87fda72d6bd8a1d80178b9ed4fa88bd923ff4238
[]
no_license
i-savenok-ithechart/taxes-calculator-prototype
172d46cc9f1a2d3efd6b8818a198aeb988e6015a
319eb0552b506816805dce2a1a4b830bbb0d135c
refs/heads/main
2023-05-10T10:54:10.815967
2021-06-02T13:36:25
2021-06-02T13:36:25
372,467,285
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
from django.contrib import admin as _admin from django.contrib.admin import site as _site admin = _admin site = _site class ModelAdmin(_admin.ModelAdmin): pass
[ "i.savenok.itechart@gmail.com" ]
i.savenok.itechart@gmail.com
a385ab647bebf4d616b202d79fb5005538284e33
08e6418ecf6187c9c1a21cb4c522bf0ff20b355e
/pages/views.py
8eb4fc89e9df0ab4c8f202cea8fca0d7f16ccc36
[]
no_license
rosuciprian/bt_test_project
d31025672ffb1f9a94e6fc5cfabfef9d21a8433a
1cd63508a4ecb25b39ebe56bb7a1bc27475d79bf
refs/heads/master
2022-10-12T03:32:49.895408
2020-06-07T16:55:05
2020-06-07T16:55:05
270,371,332
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
from django.shortcuts import render from django.http import HttpResponse from listings.models import Listing from listings.choices import bedroom_choices, price_choices, state_choices from realtors.models import Realtor def index(request): listings = Listing.objects.order_by('-list_date').filter(is_published=Tru...
[ "ciprian.rosu93@gmail.com" ]
ciprian.rosu93@gmail.com
c19922b0ee75ed7879b560fe79808e02fdb24d33
4995d10e738293895d71a9463245b0a75b7ffb98
/setup.py
8621f61028d71083b504b13e5c2a7fbbfbd957c6
[ "MIT" ]
permissive
Ravn10/signext
87488e3b2e8f3b8c7cee19a7685ef85a61ae5e3d
55e6c86e60c20cb072611d66c1f428a25f82080f
refs/heads/master
2020-03-22T09:50:38.661965
2018-07-05T14:55:13
2018-07-05T14:55:13
139,864,250
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from pip.req import parse_requirements import re, ast # get version from __version__ variable in signext/__init__.py _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('signext/__init__.py', 'rb') as f: version = str(ast.literal_eval(_...
[ "anikets@criscoconsulting.in" ]
anikets@criscoconsulting.in
955e75a7c09ccfef60a08134fc11ae259df4bdc1
ca047b0ab6f1be3c2a78596a484ca2a3f476072a
/moduls/comments/models.py
96f7337812d7a25ea290a3e229a0e1a0c8a282a1
[]
no_license
Andres-R-code/api_trello
2c156a4265718e14e58dc5a2828455412d261175
eeb78cfd96ba23eaed87a790b8f6c6dc7db8033d
refs/heads/master
2023-08-28T10:15:35.727457
2021-10-21T14:49:44
2021-10-21T14:49:44
419,537,530
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
from django.db import models from django.contrib.auth.models import User from moduls.cards.models import Card # Create your models here. class Comment(models.Model): owner = models.ForeignKey(User, on_delete=models.CASCADE) card = models.ForeignKey(Card, on_delete=models.CASCADE) message = models.CharField(max_...
[ "andres.02rojas@gmail.com" ]
andres.02rojas@gmail.com
ee4cebd4210a52e765f55a2ade0bf673efc9fd81
ada61d2d0b227a0d428c237ebc6df87137a5f8b3
/third_party/skia/common/third_party/externals/boto/boto/ec2/cloudwatch/alarm.py
1ef8869c96043f8ea3e6356041dd867fdff207e4
[ "BSD-3-Clause", "MIT" ]
permissive
lineCode/libui-1
240b22f8ed542e6dc3d623b465d1170b8cb03b31
53e01ad28601aa0fb7b050a39185b46de0bd99fa
refs/heads/master
2021-01-24T16:48:40.299172
2015-11-19T01:46:28
2015-11-19T01:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,320
py
# Copyright (c) 2010 Reza Lotun http://reza.lotun.name # # 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, m...
[ "merck.hung@intel.com" ]
merck.hung@intel.com
d52322ddeca6b3d89371e6fd6c05e07a1eb55dae
a8d1baa3d163c9b5fa7a21f01407e42c25fbcc1f
/apps/eventcalendar/views.py
1974e25ff79c29804deb7bc092b2b484d78726bc
[ "MIT" ]
permissive
hybrida/hybridjango
b266da34faca1bde0607335890e55fe9e2536388
e37c17f5990060753b71a11528d446890691f9c8
refs/heads/master
2022-12-07T11:28:42.031903
2020-02-12T22:35:08
2020-02-12T22:35:08
68,140,389
5
3
null
2022-11-22T02:46:56
2016-09-13T19:29:22
HTML
UTF-8
Python
false
false
152
py
from django.shortcuts import render # Create your views here. def eventcalendar(request): return render(request, "eventcalendar/ecalendar.html", )
[ "kevi92@users.noreply.github.com" ]
kevi92@users.noreply.github.com
b692defa4720b022ed0f8f71c948fef3275a5bdb
fe92717f2df3f0110acf1fe981291b2e9ae15e85
/app_resit/aplicaciones/stock/models.py
264bfa85d764a840866ca9949cf99587ad79be37
[]
no_license
cesborquez/resit
9ce9bcab6f0db6c6a4f6d7d0664e1e2a242a1dd4
38416d3d368fb2d81ef5cfb769a5ae0f0a6efc11
refs/heads/master
2021-01-16T18:26:38.163438
2017-08-12T00:44:46
2017-08-12T00:44:46
100,079,546
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
from django.db import models from aplicaciones.producto.models import Producto class Stock(models.Model): disponible = models.IntegerField(default=11) Producto = models.ForeignKey(Producto, null=True, blank=True, on_delete=models.CASCADE) def __str__(self): return '{} '.format(self.disponible) ...
[ "cesborquez@gmail.com" ]
cesborquez@gmail.com
d3c54bcbc564892dfd88c419f85921faa603d6a6
a6610e191090e216b0e0f23018cecc5181400a7a
/robotframework-ls/tests/robotframework_ls_tests/test_code_analysis.py
dd34aae67913ad1d119eaee83156b557a906088b
[ "Apache-2.0" ]
permissive
JohanMabille/robotframework-lsp
d7c4c00157dd7c12ab15b7125691f7052f77427c
610f0257fdcd79b8c38107a0ecf600f60160bc1f
refs/heads/master
2023-01-19T10:29:48.982578
2020-11-25T13:46:22
2020-11-25T13:46:22
296,245,093
0
0
NOASSERTION
2020-09-17T06:58:54
2020-09-17T06:58:53
null
UTF-8
Python
false
false
5,420
py
def _collect_errors(workspace, doc, data_regression, basename=None, config=None): from robotframework_ls.impl.completion_context import CompletionContext from robotframework_ls.impl.code_analysis import collect_analysis_errors completion_context = CompletionContext(doc, workspace=workspace.ws, config=confi...
[ "fabiofz@gmail.com" ]
fabiofz@gmail.com
09d61d8bf7cf1be6c12d9319b28a1dbf77bb852c
44fae4bb201fe0a43ec5e1cd931aa6e2ce58301b
/python/test_progress.py
7180ac9f584ef27a2c97f9b797b466d676386202
[]
no_license
denniszollo/dz-scratch
44c583462a8e1198cf45a87fa42c147e431b9c03
e958f28463e29ef976c4dbda98cef95b577caff1
refs/heads/master
2023-01-19T09:30:46.329983
2020-06-19T19:41:47
2020-06-19T19:41:47
105,219,798
0
0
null
2023-01-04T17:34:55
2017-09-29T02:16:54
Python
UTF-8
Python
false
false
396
py
from pyface.api import GUI, OK, FileDialog, DirectoryDialog, ProgressDialog def task_func(t): progress = ProgressDialog(title="progress", message="counting to %d", max=t, show_time=True, can_cancel=True) progress.open() for i in range(0,30): time.sleep(1) print i (cont, skip) = pr...
[ "dzollo@swift-nav.com" ]
dzollo@swift-nav.com
c15a9b3bf31d692d238a523232e1a12b456a16a5
bf8178bcf3aa09655fc827f5bc5a9e587f907fb7
/newsfeeds/migrations/0001_initial.py
150f6cc3c89f66abe991d123bcad2ac58ca892a6
[]
no_license
Tinaz0996/django-twitter
fd2ebf4c718ce1107b2eaf5d38d01ac7a4884b96
2d64b37a04fa7656da2d886aa1418aaf42b10c56
refs/heads/main
2023-08-01T01:36:57.327371
2021-09-11T20:18:42
2021-09-11T20:18:42
364,114,579
0
0
null
2021-09-11T20:10:41
2021-05-04T02:07:56
Python
UTF-8
Python
false
false
1,140
py
# Generated by Django 3.1.3 on 2021-05-30 22:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('twee...
[ "xiaoxuz0996@gmail.com" ]
xiaoxuz0996@gmail.com
542d5517511b1c50d9b968f7dd8d4a494aecc37c
0f9caf52540a03e9ad0fdc82105a56f73c87f006
/venv/Scripts/pip3-script.py
3d5a4286b4f7768ab94143d67a58f4a12282ae1b
[]
no_license
RTSeanTeoh/DSProj
9be6dcb34166a293580c717980980a56294216ef
3755f008cf0167aaa8e4ef442c1efce0c64e431b
refs/heads/master
2020-08-24T13:00:10.605586
2019-12-19T16:50:45
2019-12-19T16:50:45
216,830,492
2
1
null
2019-11-12T02:08:30
2019-10-22T14:11:47
Python
UTF-8
Python
false
false
403
py
#!C:\unidev\DSProj\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.e...
[ "seanteohrt@gmail.com" ]
seanteohrt@gmail.com
71330f673136244e3bd5664fea04baf7931d8dce
f52e06a291b1b6adb0113c57063485d9263dfec9
/filtercorpus.py
ffd0a3b085c9f08ace0538d2c00df41a13eb1592
[]
no_license
erizmar/scraper-article
d80feb39c6076148f4daa3112b70b0f1dfec3a55
d9e575a41dc01535a29a49349d2bc808ff522f09
refs/heads/main
2023-02-27T14:33:08.703722
2021-02-01T08:03:24
2021-02-01T08:03:24
336,664,781
0
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
import pandas as pd import pickle # load tagged raw string data_tagged = pd.read_pickle('data_tagged.pkl') # for storing filtered text verb_dict = {} noun_dict = {} adj_dict = {} else_dict = {} # for every document for x in data_tagged.index: text = data_tagged.text[x].split() verb_string = '' noun_strin...
[ "erizkikamar@gmail.com" ]
erizkikamar@gmail.com
2b9e188a0d339e9e9ab6c6f43ca76d30a7100206
ca446c7e21cd1fb47a787a534fe308203196ef0d
/tests/graph/test_statement.py
4835355ef9be96cbb32485a349d98a91c0e3b83d
[ "MIT" ]
permissive
critocrito/followthemoney
1a37c277408af504a5c799714e53e0f0bd709f68
bcad19aedc3b193862018a3013a66869e115edff
refs/heads/master
2020-06-12T09:56:13.867937
2019-06-28T08:23:54
2019-06-28T08:23:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
# from nose.tools import assert_raises from unittest import TestCase from followthemoney import model from followthemoney.types import registry from followthemoney.graph import Statement, Node ENTITY = { 'id': 'test', 'schema': 'Person', 'properties': { 'name': 'Ralph Tester', 'birthDate':...
[ "friedrich@pudo.org" ]
friedrich@pudo.org
54cd415fbf43284b088ebecc2def0bb19fd9dcb8
0e342d4f5742f6cec62c86b4f5be2ea298735cfd
/NavigationInertielle2dis.py
fee66b43ea38b7af5c350f6b014668934bdc1638
[]
no_license
AutomnePAN/Distance-Measurement-based-on-Inertiel-Navigation-GPS-and-Step-Counter-
273c6abb70b7c36a27f6753c5784eb8588e0127f
23aaee839c34fb9d938f48e16df540c6913ce0f8
refs/heads/master
2020-07-25T14:03:46.928728
2019-09-13T17:49:45
2019-09-13T17:49:45
208,315,973
0
0
null
null
null
null
UTF-8
Python
false
false
3,876
py
import pandas as pd import numpy as np import math as mt #Importer the dataset accelerometer = pd.read_csv('Accelerometer.csv') linear_acceleration = pd.read_csv('Linear Acceleration.csv') gyrope = pd.read_csv('Gyroscope.csv') accelerometer.columns = [[0,1,2,3]]; linear_acceleration.columns = [[0,1,2,3]]; gyrope.colu...
[ "2726673304@qq.com" ]
2726673304@qq.com
a08d2e9c11d50523abef95a419c3a7ea60f06deb
bd8071c8a066311db97877fceed763bbefe1ac27
/Math/Accessory Collection problem/accessory_collection.py
6b4f25bd6ce727ac845d3596c6297951cbea07e0
[ "MIT" ]
permissive
Parveen-jangra/hacktoberfest-competitiveprogramming
69db548f7a3b9925cfcdaf1c7ff7c34fd6a3dd7d
14a984e675249d8d7051e9a9a41b8050221ec628
refs/heads/main
2023-08-07T14:21:51.921005
2021-10-05T11:11:19
2021-10-05T11:11:19
413,786,765
1
0
MIT
2021-10-05T11:20:35
2021-10-05T11:20:34
null
UTF-8
Python
false
false
2,049
py
import math def total(g): # g = size of consecutive groups after the first one if g <= 0: return 0 first = N - g * (D - 2) - 1 f = (L - first) // g if first < g or A - f <= 0 or first + g * (A - 1) < L: return 0 partial = int((2 * (A - 1) - f + 1) / 2 * f) left = (A - f - 1)...
[ "noreply@github.com" ]
Parveen-jangra.noreply@github.com
e720e631b67194000fb4f39aff01b264c4b7563d
5c28e9ccf8142964ed05ce530625be77e2062e6e
/Python/ml-powered-applications/neel/scripts/classes/general.py
95632acb7f6637f27e3ffd73b988f28515246cd9
[ "MIT" ]
permissive
NeelRoshania/Personal-Coding-Projects
9f3b4f8f8c9d0a8bb16046e92a0553c3b8122ac3
8035c39d17bbab2d53e9cca04087e5fa7d2123d0
refs/heads/master
2021-08-18T10:08:55.816492
2021-07-27T15:24:27
2021-07-27T15:24:27
250,656,422
0
0
null
2021-04-07T19:57:28
2020-03-27T21:54:18
Jupyter Notebook
UTF-8
Python
false
false
2,091
py
import traceback import yaml import pandas as pd import csv from datetime import datetime import io class YAMLHandler(): # dependencies # class to handle reading and writing yaml files to location def __init__(self): self.yml = {} pass def read(self, read_loc): ...
[ "nroshania@gmail.com" ]
nroshania@gmail.com
5416209788d81dbbb8263cbf9614f1608d323758
03bf031efc1f171f0bb3cf8a565d7199ff073f96
/utils/admin.py
ad5b99e1ae02e5c6358ca6949bc8b89a84e33e2a
[ "MIT" ]
permissive
emilps/onlineweb4
a213175678ac76b1fbede9b0897c538c435a97e2
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
refs/heads/develop
2020-03-30T01:11:46.941170
2019-05-10T19:49:21
2019-05-10T19:49:21
150,564,330
0
0
MIT
2019-05-10T19:49:22
2018-09-27T09:43:32
Python
UTF-8
Python
false
false
802
py
from django.contrib import admin class DepositWithdrawalFilter(admin.SimpleListFilter): """ A simple filter to select deposits, withdrawals or empty transactions """ title = 'Transaction type' parameter_name = 'amount' def lookups(self, request, model_admin): """ Tuples with ...
[ "hlsolbjorg@gmail.com" ]
hlsolbjorg@gmail.com
9ddff1fa09a2a5c49b82729b44d4140b40e1fa55
cbdbb05b91a4463639deefd44169d564773cd1fb
/djangoproj/pos/invoices/migrations/0011_auto_20150718_0908.py
d24848402c8400bd25b51f8bef05d5d93aff8b99
[]
no_license
blazprog/py3
e26ef36a485809334b1d5a1688777b12730ebf39
e15659e5d5a8ced617283f096e82135dc32a8df1
refs/heads/master
2020-03-19T20:55:22.304074
2018-06-11T12:25:18
2018-06-11T12:25:18
136,922,662
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('invoices', '0010_artikel_davek'), ] operations = [ migrations.AddField( model_name='racunpozicija', ...
[ "blaz.korosec@mentis.si" ]
blaz.korosec@mentis.si
33499d895933f17da9046d446b5de6e01c719a1e
79a46445a1e63a4a0131c9b9a9968af097789fad
/article/migrations/0005_auto__add_comments.py
02013c915b4e13169432ed4d926df4c5e9c09928
[]
no_license
cyberomin/GistSquare
24cc6f0cdc6fd5b4c04e8da8b1f2f4962e370803
375d0c37bfd639c041d56cee160845137815251c
refs/heads/master
2021-01-22T16:38:09.155065
2013-09-26T13:26:13
2013-09-26T13:26:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,751
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 model 'Comments' db.create_table(u'article_comments', ( (u'id', self.gf('django.db.mode...
[ "celestine@konga.com" ]
celestine@konga.com
4d861346bc227de394fdb4cdb2d7781bc41a5fc5
ed898359da7abd7046f2a7dbca2d18e6a8736793
/products/tests.py
f262815c7e37bdecddb31f606d7c989d2daec739
[]
no_license
coderguider/ecommerce-mini-project
88dd5caf69cc0fc429b83501e395e0570963db04
6b4db15da6a66c0a5f8701846cee151d55518512
refs/heads/master
2023-01-05T12:06:27.403462
2019-04-04T15:28:12
2019-04-04T15:28:12
179,309,363
0
0
null
2022-12-26T20:15:34
2019-04-03T14:38:22
Python
UTF-8
Python
false
false
340
py
from django.test import TestCase from .models import Product # Create your tests here. class ProductTest(TestCase): """ Here we'll define the tests that we'll run against our Product models """ def test_str(self): test_name = Product(name='A product') self. assertEqual(str(test...
[ "con.guider@gmail.com" ]
con.guider@gmail.com
2d7d3d140684312694eeceace7b7556b9773c49c
2e22d14109f41ec84554a7994cd850619d73dc4d
/core/socketserver.py
acbb6e93f7ec0b453e50d8a8c82c25425d367983
[ "MIT" ]
permissive
magus0219/clockwork
35cefeac77e68c1b5e12ab275b7fde18fd07edfc
78c08afdd14f226d7f5c13af633d41a2185ebb7f
refs/heads/master
2021-01-10T07:49:09.539766
2015-09-28T08:17:46
2015-09-28T08:17:46
43,036,160
0
0
null
null
null
null
UTF-8
Python
false
false
4,035
py
# coding:utf-8 ''' Created on Feb 17, 2014 @author: magus0219 ''' import socket, logging, threading, pickle from core.command import Command def recv_until(socket, suffix): ''' Receive message suffixed with specified char @param socket:socket @param suffix:suffix ''' message = '' w...
[ "magus0219@gmail.com" ]
magus0219@gmail.com
91062e59643d4acf8ca98a65c69ba5d85b411fed
56bc412a5ef345bebf994154f29927b0543c39a3
/webvirtmgr/utils/file_handler.py
6d18bea83d90595e5e7429561c890b8bf96a1035
[ "Apache-2.0" ]
permissive
arksir/webvirtmgr
fbf1c80d955e2bdf5ef9afcb7652f788e1e991e9
378246bffc794f5bef1ea5e80e13058b815a8942
refs/heads/master
2021-03-06T17:31:58.048410
2020-05-26T05:03:50
2020-05-26T05:03:50
246,212,984
0
0
null
2020-03-10T05:06:19
2020-03-10T05:06:18
null
UTF-8
Python
false
false
498
py
import os, stat import getpass def save_ssh_key(new_key): home_dir = os.path.expanduser('~' + getpass.getuser()) ssh_key_dir = os.path.join(home_dir, '.ssh') if not os.path.exists(ssh_key_dir): print("ssh key dir not exist, creating it now.") os.mkdir(ssh_key_dir) key_file_path = os.pa...
[ "wenjun.wang@sbibits.com" ]
wenjun.wang@sbibits.com
2ff204b5f3fefda6dabcb23f5782bdd2f5d6744f
b2c50961cf21569441fd3d09c0274942f6f044da
/tools/cooja/Testing/newalgo-3detected/readDetector.py
ff6a89faaf8bb6370b11b8c0a01c343d398f1812
[ "BSD-3-Clause" ]
permissive
philok93/IoTIDS
97caf05bb65647c0f7ed4c8c5044f99ab3b8c840
90e88780408d491110fd39c2c5aded90e05ca586
refs/heads/master
2023-04-11T15:12:15.083421
2021-06-29T19:57:51
2021-06-29T19:57:51
141,921,505
0
0
null
null
null
null
UTF-8
Python
false
false
3,341
py
import datetime def readFiles(): sumavg=[] kk=1 for kk in range(1,11): with open("result"+str(kk)+".txt","w") as f1: mal=0 #for u in range(1,4): mals=[] counters=[] count=0 tot=0 avg=[] #for each run for i in range(1,6): file1="read_IDS_allnodes_sciptIDS"+str(kk)+"-"+st...
[ "philokypro_s@hotmail.com" ]
philokypro_s@hotmail.com
5fdb4799bcfcb99d41362acb258f2aab904d276a
4fac4df3b847bdbb5012b1c39144e6b1bc418143
/algos/tf1/sac_sp/SAC_sp.py
6b42c8e4048eb60ce856121dbe1ee5dd59ede1ef
[ "MIT" ]
permissive
KarsonL/DRLib
367172d64e737e4149927c62c197b164d017b8b8
ff52b726e679450d11d95a4eb178f2e294ec4223
refs/heads/main
2023-03-16T22:25:26.114747
2021-03-17T04:06:13
2021-03-17T04:06:13
348,621,067
2
0
MIT
2021-03-17T07:42:20
2021-03-17T07:42:19
null
UTF-8
Python
false
false
8,695
py
""" 去掉了log的信息,直接简单的画了一个图. 待会儿在这个基础上,封装一个类 """ import numpy as np import tensorflow as tf import gym import time import sys sys.path.append("../") from sac_sp import core from sac_sp.core import get_vars, mlp_actor_critic class ReplayBuffer: """ A simple FIFO experience replay buffer for SAC agents. """ ...
[ "noreply@github.com" ]
KarsonL.noreply@github.com
12ada9555cc15be06cd931a4408c0bd361b6eb02
caf8cbcafd448a301997770165b323438d119f5e
/.history/chapter01/python_05_if_condition_20201128214052.py
9ee4357bc39e5526dabfbdaecafa8175ebd0349b
[ "MIT" ]
permissive
KustomApe/nerdape
03e0691f675f13ce2aefa46ee230111247e90c72
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
refs/heads/main
2023-01-23T10:13:26.584386
2020-11-28T22:29:49
2020-11-28T22:29:49
309,897,105
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
"""[if文について] もし〜だったら、こうして """ # if 条件: # 実行するブロック # 条件によって処理を適応したい場合 # 3000kmごとにオイル交換しないといけない distance = 3403 # if distance > 3000: # print('オイル交換時期です') total = 123200 average = total / 3 print(average) if average > 3000: print('オイル交換時期ですよ!') # 文字列を比較する/リストを比較する # if 'abc' == "ABC": # print('同類です') ...
[ "kustomape@gmail.com" ]
kustomape@gmail.com
77c562c3e76029a385ca5073870b067e4dddb7a8
1fc77eac9b1d41a3e964cc9cc9e242938b40f991
/website/migrations/0001_initial.py
6cbae63faae287f40f858c6006b668638decda68
[]
no_license
hirokiyaginuma/ProjectPokedex
f76ac540a06d9b33c0a1cf303ec5ab8cc6cf829a
a17397c8e3d031a572345ef613da8c165237f9e1
refs/heads/master
2022-10-15T17:31:08.715404
2020-06-09T05:24:10
2020-06-09T05:24:10
270,798,831
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
# Generated by Django 2.2.13 on 2020-06-08 18:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Main', fields=[ ('id', models.AutoField(au...
[ "56863616+hirokiyaginuma@users.noreply.github.com" ]
56863616+hirokiyaginuma@users.noreply.github.com
d493182d119757192dde789d53ae950e54862bc4
b1b9041d85fa6d2808e0f254769e6f9825247fb8
/python/Web-Scraping/scrapNewGame.py
660507f64f8186d3f3a5b9124663cc5ab878a0dd
[]
no_license
diego-prokes/eg_codes
64875568c0930333fc5ffd19632ceabf9651ea85
940708a0d1727dc910b4e77f3715d9791ac4fad3
refs/heads/main
2023-08-19T04:28:22.236942
2021-10-06T20:19:16
2021-10-06T20:19:16
379,408,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
# se utilizan las librerías de request y BeautifulSoup import requests from bs4 import BeautifulSoup # se solicita el contenido de una página web url = 'https://www.newgame.cl/hijo/pc/15/Teclados' r = requests.get(url) # BeautifulSoup(<Unicode or Byte>, [parser]) html_doc = BeautifulSoup(r.text, 'lxml') # se navega p...
[ "diego.prokes@gmail.com" ]
diego.prokes@gmail.com
c5297cfceddfe3d0177000d0a3e297852539c3a4
696ba5a5f61432574e9e81edda71af832d92e25d
/audio_file_server/apps.py
7cf7682f09e396057044659198076d20de97ac9d
[]
no_license
ahuja2102/filed
823288fb25fa49df6f5112ad80cbbf420cc46eea
795d720eb73654a418c44a163990acb34f18be95
refs/heads/master
2023-04-01T16:42:58.672583
2021-04-13T16:47:06
2021-04-13T16:47:06
357,533,032
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
from django.apps import AppConfig class AudioFileServerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'audio_file_server'
[ "36604110+ahuja2102@users.noreply.github.com" ]
36604110+ahuja2102@users.noreply.github.com
35724c9a768e48df1f654a9f0c04dc22ec9f2cea
575b570a2057f27a4cacd0aa8d6345fef959797e
/ENIAC/charts/EN/acc_recurrent_drift.py
c20b4cf745b2b0722b8224fe41a34e86b51d3217
[]
no_license
mbdemoraes/support-masters
5bf2093f414ab46032c1f6d5c73f2351d59f292d
53f2f070b044c5f7cf98c112e375865f19e25b3e
refs/heads/master
2020-03-19T02:01:08.107881
2019-02-09T00:48:09
2019-02-09T00:48:09
135,591,457
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
import matplotlib.pyplot as plt import numpy as np #x = np.arange(10) x = np.arange(500) #plt.gca().set_color_cycle(['red', 'green', 'blue', 'yellow']) plt.gca().set_color_cycle(['blue']) plt.plot([10000,20000,30000,40000,50000,60000,70000,80000,90000,100000], [87.72,87.93,78.97,78.19,78.56,75.73,75.37,75.96,73.97,7...
[ "matheuzmoraes@gmail.com" ]
matheuzmoraes@gmail.com
269fd8341284a9ddec72bbbe4f4484afb0ea21ca
a0a4bda67eacbc1fe922591e12fdc5bf1f13a9c0
/mpd-utils/mpd-notifier/mpd-notifier.py
ee5e0745861f086e5d1bee695bfa61254343ce4e
[]
no_license
zzag/codesamples
cdd713a62e08480988f3372d33d0e8ca1c326d7b
de3496cd572d4b27f9781078c69b23df22ad7c18
refs/heads/master
2023-01-21T05:44:34.628273
2023-01-09T11:20:39
2023-01-09T11:20:39
133,409,760
4
1
null
null
null
null
UTF-8
Python
false
false
3,391
py
#!/usr/bin/python2 import argparse import pynotify import os from mpd import MPDClient from select import select dirname = os.path.abspath(os.path.dirname(__file__)) MPD_NAME = 'MPD' MPD_HOST = 'localhost' MPD_PORT = 6600 DEFAULT_ICON = os.path.join(dirname, 'player.png') DEFAULT_LIBRARY_DIR = os.path.join(os.envi...
[ "vladzzag@gmail.com" ]
vladzzag@gmail.com
665dd2511236bc5e43cf3a5ac3db76ca149e11f6
5f470ba49438f59fc99766c8929c79e7a818e26a
/Python/10-AdapterArray/AdapterArray.py
f975b34851697a92fffa19ff7a284c068fe41b88
[]
no_license
SwampThingTom/AoC2020
2923e946fa991290add76b6eb5351cf4b9791f12
cb53972a17ba67970146ec4e31a28b2e76305d77
refs/heads/main
2023-02-07T23:48:26.598581
2020-12-26T14:12:38
2020-12-26T14:12:38
319,509,976
1
1
null
null
null
null
UTF-8
Python
false
false
4,385
py
#!/usr/bin/env python3 # Adapter Array # https://adventofcode.com/2020/day/10 from functools import reduce def read_file(name): file = open(name) return list(file.readlines()) def mock_data1(): return [ "16", "10", "15", "5", "1", "11", "7", "19", "6", "12", "4", ] def mock_data2(): return [ ...
[ "tom.aylesworth@appian.com" ]
tom.aylesworth@appian.com
bed1893aeafe5bafaac1ab50577b1d92cece004e
26ed076485d3b7a832e1c7a5671f69422f1a0995
/teamActivites/ta08-stretch.py
c414972c718915d2f9a10cf24f303646f298c588
[ "MIT" ]
permissive
kristibyui/CS241
c9efa22b0d0cec74643e21ac08781bcf9af5b490
556a4f9b99f5414740f56049fad57b323e9927e0
refs/heads/master
2021-01-25T12:48:59.112387
2018-03-01T18:07:34
2018-03-01T18:07:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
# CS241 Team Activity 08 - Stretch class Time: def __init__(self): self._seconds = 0 def get_hours(self): return self._seconds // (60 * 60) def set_hours(self, hours): if hours < 0: self._seconds += 0 elif hours > 23: self._seconds += 23...
[ "macbethc@byui.edu" ]
macbethc@byui.edu
c6de3f7935b22b0bd74ab9d330cc17353d8e8d40
fa53fb89ca8c822acdd2f843073c36e30168edf8
/manage.py
5102e0b5c62daefba1742c6dbaae769d93ffa7d3
[]
no_license
njokuifeanyigerald/honeypot-django
6aab38c74a599bd70e27768edddd9609f59f7810
1065dee3ce160cfffdd52088c6a9cc4faaabd0b9
refs/heads/master
2022-04-14T19:02:18.426331
2020-04-14T11:04:47
2020-04-14T11:04:47
255,585,678
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'honeypotapp.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "brainboyrichmond@gmail.com" ]
brainboyrichmond@gmail.com
042f795cd88a72e20872bd02531155bc40bb5c61
137fb51a5843a9ead05427feedb769ab0063e6f2
/catboost_start.py
bbff3e57c8bd4f853ffee6d585ba52f8bcf0a7e2
[]
no_license
bhardwau/IncomePrediction
0dd71224442a5fe55031c84b335959fceb43e5e1
d0fd250e9c0c46bb9775cb3fc0c652a57dc17b8b
refs/heads/master
2020-09-14T05:26:02.184052
2019-11-20T21:45:56
2019-11-20T21:45:56
223,032,715
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
# Importing the libraries import numpy as np import math import pandas as pd import lightgbm # Importing the dataset dataset = pd.read_csv('tcd-ml-1920-group-income-train.csv') submit = pd.read_csv('tcd-ml-1920-group-income-test.csv') dataset = dataset.fillna(0) submit = submit.fillna(0) dataset['Total...
[ "noreply@github.com" ]
bhardwau.noreply@github.com
e68d1c40e9032cb0617ca2a03de48c33736f012f
9bd1daa53a7e5d65d4f7a3558f11d06006ecb000
/conditioner/tests/actions/factories.py
f744f19bb34a5f1c829d51e2f8696013d030116f
[ "MIT" ]
permissive
pombredanne/django-conditioner
55b01ac8e42a8e2c73025934c39aa72ee478c333
d5d2ad1f016bc3e6b34c74ff68cd024e8fad5125
refs/heads/master
2020-09-25T21:16:29.274170
2017-03-17T08:34:00
2017-03-17T08:34:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
""" Conditioner module actions related factories """ import random import factory from faker import Factory as FakerFactory from conditioner.actions import LoggerAction, SendTemplatedEmailAction from conditioner.tests.factories import BaseActionFactory faker = FakerFactory.create() class LoggerActionFactory(BaseA...
[ "pawel.ad@gmail.com" ]
pawel.ad@gmail.com
e52406a2be7c718907374de2ce2dda798c947615
3b0803d17292729eddf9faef639cee2156481c55
/Code/Main.py
7bb332278606beabfb5ea6500541e0a5268621bb
[]
no_license
Kuduhe/Disaster_on_twitter
6a6bad5aed1936bae54a94ae125c074b128b70b9
016919533d7256e5248df53494c8edb7beb259e1
refs/heads/master
2020-08-27T01:12:58.329822
2019-11-10T21:09:30
2019-11-10T21:09:30
217,202,390
0
0
null
null
null
null
UTF-8
Python
false
false
1,108
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 31 13:43:55 2019 @author: xiaohezhang """ import pandas as pd import Data_Collection import Cleaning import Modeling import Visulization import Map from sqlalchemy import create_engine engine = create_engine('mysql+pymysql://root:@localhost/twitter'...
[ "kuduhe@hotmail.com" ]
kuduhe@hotmail.com
5eaddedee16806b9bf2b3cde6339cda4f6b2cbbf
023fc22c264ac29d87c638a3c230b33cea36299c
/atbs/c6-pw.py
a718819d3d04d33b37a99b9eb461257a88df9c2b
[]
no_license
danishprakash/courses
1bb03f5751d40814e556c28b7345fef479db79ba
f4b7d370c242416aa8f16383460b6aec1756c9e7
refs/heads/master
2021-06-23T11:53:19.081256
2017-08-26T09:26:13
2017-08-26T09:26:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
#! python3 # pw.py a script for storing passwords PASSWORDS = {'zucker': '34rly', 'email' : 'l4t3', 'luggage': '0n3'} import sys, pyperclip if len(sys.argv) < 2: print('Enter the correct format for usage') sys.exit() account = sys.argv[1] if account in PASSWORDS: pyperclip.copy(PASSWORDS[account]) prin...
[ "grafitykoncept@gmail.com" ]
grafitykoncept@gmail.com
46b9c87173a3e66d65c3f277092f5263a0cc669f
b7ae24b0dd67a7fafbf0253f24c80924df88da62
/lab/__init__.py
626fd8575bd86bfeacf23439331383cd0297afc2
[ "MIT" ]
permissive
gear/lab
b3a2b1e5babc1adb172f842651e4db5d20939a16
ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2
refs/heads/master
2020-12-19T01:30:33.478027
2020-01-23T10:30:52
2020-01-23T10:30:52
235,579,450
0
0
MIT
2020-01-22T13:29:16
2020-01-22T13:29:15
null
UTF-8
Python
false
false
28
py
import lab.logger as logger
[ "vpjayasiri@gmail.com" ]
vpjayasiri@gmail.com
2470f940ed494e81f3e01bd4c1f48875259fd65e
749f0eec19aae7dd8bac077fdd47eb34b859f908
/v1/Pharmacy/sales.py
0775c72cb602d122d77a923577ab9032aa6bb86b
[]
no_license
IbrahimAlgadi/pharmacy
fcb1ff168a9ea683b4b4f0631f6311b114e52b6f
5d3034792ab2f843ece37ba4c5978b1c58a9922d
refs/heads/master
2021-07-24T20:09:58.227982
2017-10-15T11:08:46
2017-10-15T11:08:46
100,067,264
0
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.clock import Clock from kivy.uix.button import Button from kivy.utils import get_color_from_hex as C from kivy.uix.textinput import TextInput from kivy.uix.label import Label from kivy.core.text import LabelBase from kivy.uix....
[ "ibrahimAlgadi.email@gmail.com" ]
ibrahimAlgadi.email@gmail.com
a2804a0de577b5110dbf6798a8beffbe104298ab
5de401d560727fa51cca61c0e3243a8d116211fb
/PCA_linalg.py
689fcb51d5c3eae400d0bf9768031b74cabd117e
[]
no_license
saysayani11/StructBioWithPython
ad02b0fcdabf312eac2ed5351406550535819de6
c02beb7aef9b6ed39233a81e8baed3df614a16b6
refs/heads/main
2023-04-07T04:13:42.464967
2021-04-25T15:33:34
2021-04-25T15:33:34
357,659,220
0
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
# Read More: https://jakevdp.github.io/PythonDataScienceHandbook/05.09-principal-component-analysis.html # Principal component analysis is a fast and flexible unsupervised method for dimensionality reduction in data import pandas as pd import numpy as np from pandas import DataFrame from numpy import linalg as LA ...
[ "noreply@github.com" ]
saysayani11.noreply@github.com
b30572c2c2228ca32fd43f31099219be7ce5d6d2
fb38fea1ae985edbb7fd6c7fe6964ec0d65f62d2
/cryptarith/cryptarith.py
bd3cbaf34086b6d52ede1268bfcbc972910353a7
[]
no_license
fierlion/udacity
6f1f8f7281e34ab13a7ce9dd6bd5e97f943dcbe0
caebf859541cbeb57e6fe5d30121546456efdd45
refs/heads/master
2016-09-05T21:46:55.806641
2014-11-10T22:53:29
2014-11-10T22:53:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
import string table = string.maketrans('ABC', '123') f = 'A + B == C' translated = f.translate(table) #translated is now magically '1 + 2 == 3' #print translated #print eval(translated) f2 = '1 + 5 == 5' f3 = '01 + 05' f4 = '5 / 0 == 1' def valid (formulaIn): """Formula formulaIn is vaid iff it has no numbers ...
[ "fierlion@gmail.com" ]
fierlion@gmail.com
15ad51543583f937a95916f250bb54e32a760bc2
be9c5174eca624fc6f56ec6c4d1af8ef1838d14c
/lesson01/lamp.py
22bafa90c90372b1043e41a01300144ebeb070ca
[ "MIT" ]
permissive
mbalicka/python
f0c9c66037f88f29231c04d7c140bcf935dadc5c
585b3fad2e4ef3b96a54dea300d36f9c39b54f0a
refs/heads/master
2020-03-09T06:52:24.011753
2018-04-15T20:17:34
2018-04-15T20:17:34
128,650,776
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
import lightbulb class Lamp: def __init__(self, power1, power2): self.lightbulb1 = lightbulb.Lightbulb(power1) self.lightbulb2 = lightbulb.Lightbulb(power2) def setBrightness(self, value): self.lightbulb1.setBrightness(value) self.lightbulb2.setBrightness(value) def showCu...
[ "mariasz123@gmail.com" ]
mariasz123@gmail.com
960c0bbb7e2553b341864b1dec5005245cd14dd6
63f468ce38cc295e1ac3cb01a27c035ad438ba26
/camera_class.py
ea201c4537edda3e072d217a5d9bb3569e729d32
[]
no_license
paem/pythonCamera
8ab979b78c80f371fe3de2e7b3ef4520d8511a6a
9138166dff666c85a5910c1d6b7259064669ef92
refs/heads/master
2020-03-20T04:48:06.212637
2018-06-13T09:56:01
2018-06-13T09:56:01
137,195,085
0
0
null
null
null
null
UTF-8
Python
false
false
1,343
py
import glob, os.path, os, datetime from picamera import PiCamera from os import system from time import sleep class cameraClass(): camera = PiCamera() camera.resolution = (1024, 768) picdir = "/home/pi/Pictures/" filelist = [ f for f in os.listdir(picdir) if f.endswith(".jpg") ] def takePhoto...
[ "noreply@github.com" ]
paem.noreply@github.com
48cf6482b97b08b85fca2827b12a3c88bd69fe27
b426e444308e5787d252692c5d81b075b9af3c79
/src/serving/application/lib/pyasn1_modules/rfc3280.py
fd1a762f3267772adb1d656966ac5aae135c7117
[]
no_license
realfranser/MachineLearning-GoogleCloud
bb96142a2ebf7aa8a1ad205417007093bb00b970
c135f03bccffff98c8bd35d03358eb79ff540fb9
refs/heads/main
2023-03-21T11:35:10.789427
2021-03-16T23:43:57
2021-03-16T23:43:57
322,024,846
0
0
null
null
null
null
UTF-8
Python
false
false
48,163
py
# coding: utf-8 # # This file is part of pyasn1-modules software. # # Created by Stanisław Pitucha with asn1ate tool. # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # # Internet X.509 Public Key Infrastructure Certificate and Certificate # Revocat...
[ "serranoarresejavier@gmail.com" ]
serranoarresejavier@gmail.com
6787557c523aa2e4950f42202dee0f75282263e7
5eac9da77ae12a611464aeebf65bba2044882390
/order/migrations/0001_initial.py
6648a77c50f2cbedb9848dafd6fd6c5201f72d58
[]
no_license
tranthanhsongitrepo/Ecommerce_Django
4e6497e153d420a2b8483b3aa5ca4a32b4766f9e
af77b7c93f2552b1db4dc5eef4a44aa5558286dc
refs/heads/master
2023-05-23T22:44:55.200030
2021-06-13T15:20:13
2021-06-13T15:20:13
372,818,813
0
0
null
null
null
null
UTF-8
Python
false
false
4,801
py
# Generated by Django 3.1.4 on 2021-06-13 15:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Bill', fields=[ ...
[ "tranthanhsonwork1999@gmail.com" ]
tranthanhsonwork1999@gmail.com
1129328bacebf961f72d0c0b6cf180bcc0d9483c
ee6fb9095faef4c88848f5f769b296f672d37cd0
/photomosaic/imgutils.py
791cb03f378176e1dbb5c88b361c085704f9beeb
[]
no_license
cosmozhang1995/photo-mosaic
76ca2846db0eefd6d7ded117fec1b2ac06e823ea
f5c57a9765887aeeb65804c5597727646b945814
refs/heads/master
2022-07-10T14:13:10.605884
2020-02-14T08:51:08
2020-02-14T08:51:08
240,463,724
0
0
null
2022-06-22T01:05:54
2020-02-14T08:41:38
Python
UTF-8
Python
false
false
600
py
import cv2 import numpy as np def resize_cut(srcimg, dstsize): dstheight, dstwidth = dstsize img = srcimg imgheight, imgwidth = img.shape[:2] sc = max(dstheight/imgheight, dstwidth/imgwidth) imgsize = (int(np.ceil(imgheight*sc)), int(np.ceil(imgwidth*sc))) img = cv2.resize(img, (imgsize[1], imgsize[0])) imgheig...
[ "cosmozhang1995@gmail.com" ]
cosmozhang1995@gmail.com
8e42b2f13373533d5b963dc04cf71fa1976d84b2
c82fa4e446140988688c5682509852849a44b89a
/build_new_solutions/indigo_function_list.py
4d7fad62ed2816e602f6c295ac0b799de97d2897
[]
no_license
Faolain/build-a-cure
e85d9cf08454cda5ce4047652e8c3056bc8e6608
441060386e1118d38af13a64f4339278a51abb8d
refs/heads/master
2023-01-11T16:15:14.593865
2020-11-05T15:35:10
2020-11-05T19:02:13
306,161,104
0
1
null
2020-11-05T19:02:14
2020-10-21T22:20:01
null
UTF-8
Python
false
false
5,551
py
[ '__class__', '__del__', '__delattr__', '__dict__', '__dir__', '__doc__', '__enter__', '__eq__', '__exit__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__next__', '__reduce__', '__reduce_ex__', ...
[ "jonijezewski@gmail.com" ]
jonijezewski@gmail.com
b4f84a388304ca19081b9711103c02d58352ad97
d83fc30da40ba33d13b6e8b06355e4123c8500bb
/165/passwd.py
b9de92d769c4451e801fd7df4c1ab8729d95b01f
[]
no_license
kokasha/bitesofpy
bacfe069767d9b014d1cd1f8454127b8ed7a2334
b035ecaaef9b57de47e83edb6b7f361da28e85d9
refs/heads/master
2020-08-31T05:55:53.066564
2019-11-10T01:50:27
2019-11-10T01:50:27
218,614,075
0
0
null
null
null
null
UTF-8
Python
false
false
2,103
py
DEFAULT_SHELL = 'bash' # https://github.com/avar/git-anyonecanedit-etc/blob/master/passwd PASSWD_OUTPUT = """root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:...
[ "k.okasha@gmail.com" ]
k.okasha@gmail.com
06d3326801d1f629fd812812241cc17a05ecfaf7
eb52db39c0d7cd8be9925efc78c734c04b9bb38c
/client.py
4bf3ca931398233dfab8fa26ef59bbfe27dd4cc4
[]
no_license
krishvarag/poc
0d040210345a4cf30352d0f60adda3a95fe99f68
5cd449bd1e987443f6e92fa31fd9496548d6aae9
refs/heads/main
2023-07-09T23:37:20.235146
2021-08-16T23:43:33
2021-08-16T23:43:33
324,659,035
0
0
null
null
null
null
UTF-8
Python
false
false
1,175
py
#!/usr/bin/env python3 # client socket # reads text from a file or stdin and sends it to server import socket import sys import argparse import os def client_connect(host,port,fh): try: s= socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) for data in fh: ...
[ "noreply@github.com" ]
krishvarag.noreply@github.com
6da11642ac4892aa72a15126b693ffcd39cffaa4
c5308194770677e47fed2ee3436f19d4e1514c04
/TestInvoice.py
5e211c116a8817e0713a74aacf77a1830e8c6386
[]
no_license
AmariSwain/PythonProject
1ec50901c06d5fbda6bc87bfd340a306e1215097
5e59225eccd550ce9379ce076cf5e108ff6436c0
refs/heads/master
2023-01-13T15:10:37.747174
2020-11-12T00:57:35
2020-11-12T00:57:35
310,928,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
import pytest from Invoice import Invoice @pytest.fixture() def products(): products = {'Pen': {'qnt': 10, 'unit_price': 3.75, 'discount': 5, "instock": True}, 'Notebook': {'qnt': 5, 'unit_price': 7.5, 'discount': 10, "instock": True}} return products @pytest.fixture() def invoice(): invoi...
[ "aswainno@uncc.edu" ]
aswainno@uncc.edu
1914d65747470e39f31463a949806ff8249d25b3
7005c8585a7864611d72fc833b04aef2c385bb30
/bill.py
bbfecfb853111f280bc3d5cdb5ec5f02d83a3d02
[]
no_license
theTrio11/python-docs
b64cb4cf5228f7bc4b4de94336d5530a015d4c44
1e867f4d77c3f764fb9ca78461955b5f92f591a2
refs/heads/master
2020-03-19T17:54:24.835427
2018-06-10T05:04:06
2018-06-10T05:04:06
136,783,865
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
#create a class myshowroom in which any 4 products and generate their bill for atleast 3 customers class myshowroom: i=[] c=0 print("The total bill is:",sum(i)) cust=myshowroom() c=int(input("Enter the no of customers")) for j in range (1,c): cust.i=input(("Enter the cost of first item")) cust.i=inp...
[ "namank_11@outlook.com" ]
namank_11@outlook.com
98ad144923dfcbae14b423be115a14fbb1c611c4
150464efa69db3abf328ef8cd912e8e248c633e6
/_4.python/__code/Pythoneer-master/Jumbled Word/Jumbled(withouttkinter).py
7211039e1c6397134008308e8017b3165e1a9494
[]
no_license
bunshue/vcs
2d194906b7e8c077f813b02f2edc70c4b197ab2b
d9a994e3afbb9ea84cc01284934c39860fea1061
refs/heads/master
2023-08-23T22:53:08.303457
2023-08-23T13:02:34
2023-08-23T13:02:34
127,182,360
6
3
null
2023-05-22T21:33:09
2018-03-28T18:33:23
C#
UTF-8
Python
false
false
1,397
py
import os import sys from collections import defaultdict print " "; print "................................Jumbled ......................................"; print "NOTE : Please make sure, you enter all the letters necessary to make the word!"; print " "; print " "; word = input("Enter the word: ") print " "; #word = s...
[ "david@insighteyes.com" ]
david@insighteyes.com
b4ffb6e7aa7720bf94408c4205e0d631a33ccac7
c7d7bafdff29a9e0f91bec25e88b8db1b6694643
/firebot/modules/mf.py
37002a949a6c8212931fce04e72ad19042a64323
[ "MIT" ]
permissive
ultra-noob/Vivek-UserBot
ebedb80d98ca72fe1167211c14e32c017fcdf903
6c371a4aaa0c05397efa36237e9a2118deeb0d91
refs/heads/main
2023-07-11T16:52:37.696359
2021-08-11T03:38:15
2021-08-11T03:38:15
394,882,145
0
1
null
2021-08-11T06:11:45
2021-08-11T06:11:45
null
UTF-8
Python
false
false
2,724
py
import sys from telethon import __version__, functions from firebot import CMD_HELP from firebot.utils import fire_on_cmd @fire.on(fire_on_cmd(pattern="mf ?(.*)", allow_sudo=True)) # pylint:disable=E0602 async def _(event): if event.fwd_from: return splugin_name = event.pattern_match.group(1) i...
[ "noreply@github.com" ]
ultra-noob.noreply@github.com
4101e869216650c61b516f4ee6f05deca04c6e0d
e87fb7500e1cf2ac27c272d990021dae2e513eef
/reader/settings.py
bcab8980a2da701b4943d967e76cab9fbac6b937
[ "MIT" ]
permissive
TrendingTechnology/smanga
b006879a9c62fef3ce19e855c8339a173ebeb0dc
7fa07286b0e6800404cf6a41e7b50bb7e1f57ea0
refs/heads/main
2023-07-07T09:33:26.895063
2021-08-15T10:17:30
2021-08-15T10:17:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,814
py
""" Django settings for reader project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ f...
[ "59172926+padamupreti@users.noreply.github.com" ]
59172926+padamupreti@users.noreply.github.com
d201a9764aa65bbc9051c000cc88abf5516d7888
d051c75081dce3a5d86a0ec7f7ece61edb4b7c72
/python/0016/to_xls.py
680ddc2220e1b44875a295e3b5f6ac6994187333
[]
no_license
rgb-24bit/python-show-me-the-code
4433bc36c02bf726e2ad3f4b10f0c06266d625b1
484305afdef5ffb1efea3c5f54c0c72044fa401a
refs/heads/master
2021-10-10T07:31:24.814532
2019-01-08T07:07:20
2019-01-08T07:07:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# -*- coding: utf-8 -*- import xlwt def get_data(file_name='numbers.txt'): with open(file_name, 'r') as fp: return eval(fp.read()) if __name__ == '__main__': wb = xlwt.Workbook() ws = wb.add_sheet('numbers') for row, row_val in enumerate(get_data()): for col, val in ...
[ "rgb-24bit@foxmail.com" ]
rgb-24bit@foxmail.com
af48b6b5c6aa01bc2e24082815145d4bd5a94f8f
18dd90323fa4efbbfe18994a795859f386552967
/Amazon/serializers.py
d6d18a45d87b99530b380781edb96d83e76194f7
[]
no_license
bflo2000/API
8a9382a9ccb8911c6396f76da4069cc83a36d146
3138fb0afdcb057137f9a4c028fbe15c42ad36d8
refs/heads/master
2021-07-05T14:10:52.174581
2020-10-03T22:42:15
2020-10-03T22:42:15
189,878,082
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from Amazon.models import Amazon_Variation from rest_framework import serializers class Amazon_Variation_Serializer(serializers.ModelSerializer): class Meta: model = Amazon_Variation fields = '__all__'
[ "asch716@gmail.com" ]
asch716@gmail.com
6545749e1fcb37b005fd8a17f1fe2d41493c78ba
c36679186f669c6e3bd1c106c96d4a17be1f5ab1
/Ashraf/2.2.py
82910eaba95d405311c4da597335040cd6ff75a0
[]
no_license
touhiduzzaman-tuhin/python-code-university-life
60a3d671b200a6f5222c6d176c13c5f20f013509
6d2e3d90d430faa5c83fe79e7fb1ebe516994762
refs/heads/master
2023-03-22T15:18:10.636203
2021-03-06T18:52:04
2021-03-06T18:52:04
332,467,190
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
x = int(input()) y = int(input()) z = x - y print(z)
[ "touhiduzzamantuhin95@gmail.com" ]
touhiduzzamantuhin95@gmail.com
550b41d3a8007a39a6caf06544b26fbb786a7a71
bb753ebdfebad660dced4169334857b29526f30b
/test/uxc.py
817efe39142eed8ab79f288eeb456d2ea0a0b2ab
[]
no_license
vssanya/tddft
10133515cf1339ac1ab0b895e665c553c594ef1f
f72a94c9bc65ca0d54b9e43806a3afa83de6aa94
refs/heads/master
2023-07-28T03:50:06.634866
2021-06-12T14:08:01
2021-06-12T14:08:01
403,915,182
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import tdse dt = 0.008 dr = 0.02 r_max = 120 Nr=r_max/dr Nl=6 atom = tdse.atom.Ar sh_grid = tdse.grid.ShGrid(Nr=Nr, Nl=Nl, r_max=r_max) sp_grid = tdse.grid.SpGrid(Nr=Nr, Nc=33, Np=1, r_max=r_max) ylm_cache = tdse.sphere_harmo...
[ "vssanya@yandex.ru" ]
vssanya@yandex.ru
1830c9e629258d76081367fdeaf2b0dbcaa6ed45
0f3c48df3d6dd3d4ba05ddcefa19c6b10d250b7b
/assets/constants.py
e66dbec41e2a30a2100a0c2680f91594981856a1
[]
no_license
Tr5deBotInc/IntegratedPythonProject
6f84bc6ae2cba6e88a0d9a8f21f15a9124bda371
3ddf194fb31217144502c434968ac5c43ecb6452
refs/heads/main
2023-09-03T19:48:16.468306
2021-03-25T11:45:54
2021-03-25T11:45:54
334,850,949
0
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
BITMEX_EXCHANGE_ID = 'bitmex' BINANCE_EXCHANGE_ID = 'binance' CANDLE_TIMESTAMP_INDEX = 0 CANDLE_OPEN_PRICE_INDEX = 1 CANDLE_HIGHEST_PRICE_INDEX = 2 CANDLE_LOWEST_PRICE_INDEX = 3 CANDLE_CLOSING_PRICE_INDEX = 4 CANDLE_VOLUME_INDEX = 5 ALGORITHM_CONFIGURATION_ID_INDEX = 0 ALGORITHM_CONFIGURATION_TRADING_STATE_INDEX = 1 A...
[ "30566978+super-lion@users.noreply.github.com" ]
30566978+super-lion@users.noreply.github.com
7e6c1f50001acdca960cd972aca451db26803155
68ea05d0d276441cb2d1e39c620d5991e0211b94
/1940.py
a6e8f345cdc993bcae8b3a828ab9b0865b506f3b
[]
no_license
mcavalca/uri-python
286bc43aa157d3a6880dc222e0136c80cf079565
e22875d2609fe7e215f9f3ed3ca73a1bc2cf67be
refs/heads/master
2021-11-23T08:35:17.614443
2021-10-05T13:26:03
2021-10-05T13:26:03
131,339,175
50
27
null
2021-11-22T12:21:59
2018-04-27T19:54:09
Python
UTF-8
Python
false
false
236
py
j, r = [int(x) for x in input().split()] entrada = list(map(int, input().split())) pontos = [0] * j for k in range(j): pontos[k] = sum(entrada[k::j]) pontos = pontos[::-1] vencedor = j - pontos.index(max(pontos)) print(vencedor)
[ "m.cavalca@hotmail.com" ]
m.cavalca@hotmail.com
a74f5020247c394e188b29b1436568d4f69aa506
d7429b1ae0ecc65d1b42ce378313f82e6ceb8677
/churn_server_deploy/predict_churn_web_service.py
059fe9395722e863c337cdc0490482b4f1cbeb5b
[]
no_license
blmcmcn/ML-Bootcamp
938e0ae9519664e23d42fe52a518ba356a9377a2
6cfdc9c6615d03fff97a9725edd75242ae0975d7
refs/heads/main
2023-09-02T09:18:11.197497
2021-11-22T06:26:54
2021-11-22T06:26:54
405,467,884
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
from flask import Flask from flask import request from flask import jsonify import pickle #customer = {"contract": "two_year", "tenure": 1, "monthlycharges": 10} model_file = 'model2.bin' dv_file = 'dv.bin' with open(model_file, 'rb') as f_model: model = pickle.load(f_model) with open(dv_file, 'rb') as f_dv: ...
[ "blmcmcn@gmail.com" ]
blmcmcn@gmail.com
e05d22ba784044e56b2e27fdfa001fa5ab493e39
da8d7a1890912b40669bb9f7b1348fc8deb3fa97
/data_process.py
44a0362022e373036be565aa991d42965c383108
[]
no_license
zcjia/NGCF-Pytorch
0a69a0c176a4221ea9a580b20c0fbc3c8b59d30f
91c6fe6e9b85adeac95ca636e0adc9da28d3dfdf
refs/heads/main
2023-02-08T03:25:01.225776
2020-12-29T12:45:16
2020-12-29T12:45:16
302,250,692
5
0
null
null
null
null
UTF-8
Python
false
false
7,263
py
''' Created on Oct 10, 2018 Tensorflow Implementation of Neural Graph Collaborative Filtering (NGCF) model in: Wang Xiang et al. Neural Graph Collaborative Filtering. In SIGIR 2019. @author: Xiang Wang (xiangwang@u.nus.edu) ''' import torch import numpy as np import random as rd from scipy import sparse import scipy....
[ "zhuchen@my.swjtu.edu.cn" ]
zhuchen@my.swjtu.edu.cn
6a26301089da81a8e292227e32da92a3e05f82e2
f7d343efc7b48818cac4cf9b98423b77345a0067
/training/Permutations.py
10acfdf1568289dd3b55bcf473e76239ead669a4
[]
no_license
vijaymaddukuri/python_repo
70e0e24d0554c9fac50c5bdd85da3e15c6f64e65
93dd6d14ae4b0856aa7c6f059904cc1f13800e5f
refs/heads/master
2023-06-06T02:55:10.393125
2021-06-25T16:41:52
2021-06-25T16:41:52
151,547,280
0
1
null
null
null
null
UTF-8
Python
false
false
845
py
def permutations1(string): def factorial(n): fact=1 for i in range(1,n+1): fact=fact*i return fact repeat=len(string)-len(''.join(set(string))) n=factorial(len(string)) k=factorial(repeat) loop=n/(k**repeat) final=[] j=0 for i in range(loop): i...
[ "Vijay.Maddukuri@virtustream.com" ]
Vijay.Maddukuri@virtustream.com
e48b80cea00aad77f599556a86f3688235cc9a93
6cfa568e2012dde5c86265226b0dd3a49849c7f7
/website_sale_booking/__openerp__.py
6573e2e4ae8e491f0af198340e85248ca9f2cfc3
[]
no_license
arinno/odoo-website-sale-booking
c48771ee30dc8791656a7a9d75efa14fe07f88bc
dd2e45873e64ad0f5bdd24a23d905b70702cd85a
refs/heads/master
2021-01-09T06:23:01.904899
2017-02-05T07:10:21
2017-02-05T07:10:21
80,975,669
0
0
null
2017-02-05T07:06:24
2017-02-05T07:06:24
null
UTF-8
Python
false
false
425
py
{ 'name': 'Website Booking System', 'category': 'sale', 'description':""" OpenERP Website Booking System view. ========================== """, 'version': '1.0', 'js': [ ], 'css': [ ], 'author': 'Vertel AB', 'website': 'http://www.vertel.se', 'depends': ['website', 'product...
[ "apollo_zhj@msn.com" ]
apollo_zhj@msn.com
0e5c70eec10d84876295ca339575b1d908c22dba
c258b1626d7de714b25504ef187a1674800db791
/noise_filter.py
a348c9a0720a9bba08254b994e896144891d7e9e
[]
no_license
donjuaning/Babycry_ML
3e278bfe63a6bd17616868cf2d12ca812b79d5e7
3037e1459f9ac96cae8425c82805c8e65a44d255
refs/heads/master
2022-03-20T10:31:49.268441
2019-11-24T07:20:18
2019-11-24T07:20:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,720
py
import numpy as np import wave import math import ctypes as ct def noise_filter(openFile,endFile,first): # 打开WAV文档 f = wave.open(openFile) # 读取格式信息 # (nchannels, sampwidth, framerate, nframes, comptype, compname) params = f.getparams() nchannels, sampwidth, framerate, nframes = params[:4] ...
[ "s1239624274@gmail.com" ]
s1239624274@gmail.com
883364571d231534b05121da2095291109c936e8
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_handpicked.py
d8b02e24092556f8401358860df23874bd852d2b
[ "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
448
py
#calss header class _HANDPICKED(): def __init__(self,): self.name = "HANDPICKED" self.definitions = [u'Someone who is handpicked has been carefully chosen for a special job or purpose: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def r...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e7694b0db2814d86d4fe4e4c05b90604614b2138
91f30c829664ff409177e83776c9f4e2e98d9fc4
/apps/events/migrations/0002_auto_20180607_0411.py
0436f1e6422da2a9e882d0161aa9c56529c7231f
[]
no_license
TotalityHacks/madras
3ac92dc6caf989efcb02590f6474ab333d1f93fa
2395a703eed1a87cca3cdd6c0fb9162b69e8df27
refs/heads/master
2021-08-17T15:29:41.055074
2018-07-18T23:05:29
2018-07-18T23:05:29
105,232,414
4
5
null
2021-03-31T18:58:56
2017-09-29T05:13:41
Python
UTF-8
Python
false
false
581
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-06-07 04:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "ezwang1@gmail.com" ]
ezwang1@gmail.com
1e1165d3d234ac31b4d5e98ffc0ad30775516cdb
c16f8b7ee08674dbceaa7f6a81a9e05f84f40572
/app/local/substrate/manage/substrate_manage/commands/shell.py
00c8466ef56986228bb9cfb8f3a8d74b49af20af
[ "MIT" ]
permissive
agostodev/substrate
55612a0259f75ca5e8ddfaa31e9619b8b384b359
683c46ccbcd7da4a137db43c23cef13cf70d4e98
refs/heads/master
2020-12-25T17:35:33.200118
2016-08-24T01:16:35
2016-08-24T01:16:35
35,912,930
7
2
null
2016-08-24T01:16:35
2015-05-19T22:54:16
Python
UTF-8
Python
false
false
2,527
py
""" Run an interactive console after including AppEngine and project libraries. """ import getopt import logging import sys import os logging.basicConfig( level=logging.INFO, format='%(levelname)-8s %(asctime)s %(filename)s:%(lineno)s] %(message)s') from google.appengine.api import yaml_errors import dev_ap...
[ "nick.bauman@cirrusmachina.com" ]
nick.bauman@cirrusmachina.com
a18ded8aafe21fcfb2e4ec9504aab06e4e2a2770
cad9ea1b8c1909d50a843426d994947f628bf890
/MARS-IEEE_IOT-HAR/MARS-v3.py
da2ad002cac6dde0c51a29d2a4891eb889b18b39
[]
no_license
xiaogaogaoxiao/MARS-IEEE_IoT-HAR
a50a34f0e8813f032d0dc326a2b397180dc13a7c
dfd5a83ef0fb9942aaba2a8c22f73e6c14c5e99f
refs/heads/main
2023-07-01T00:18:56.583927
2021-08-10T08:25:06
2021-08-10T08:25:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,595
py
# multi-model import warnings warnings.filterwarnings('ignore') import numpy as np import pickle as pkl import matplotlib import matplotlib.pyplot as plt import sklearn.metrics as metrics import torch.nn.functional as F import itertools import torch.utils.data as dataf from sklearn import utils as skut...
[ "noreply@github.com" ]
xiaogaogaoxiao.noreply@github.com
1a401dded58389279f80e7479e277bcb067d93f8
27ea4dafdf071f664f85a4b343d83a7ef0cd0fc0
/django_web/myFirstApp/migrations/0001_initial.py
61dd8bd82aa6076ab516836ff05220a017a18512
[]
no_license
cuongdaovan/django_test
4033e0eacf7e8cea3afd29ddfe75caabcad0ba52
881ec1853c68600e725e5f710146a4cb657daf89
refs/heads/master
2020-03-31T12:14:01.156538
2018-10-10T08:05:34
2018-10-10T08:05:34
152,207,942
0
1
null
null
null
null
UTF-8
Python
false
false
1,085
py
# Generated by Django 2.1.2 on 2018-10-10 08:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField...
[ "cuongdaovan262@gamil.com" ]
cuongdaovan262@gamil.com
f83c04e9a8404ff4ceb6840279b5fcd1fd18d15a
3975fb434c1f86310ce03539d4c6a71d209425f9
/products/models.py
b4b946d98bd2daf4a993adce2589c413aa263c0c
[]
no_license
wecode-bootcamp-korea/19-2nd-her-house-backend
ea7d1a0b1c6159e86834dd41c793a6545832fd9d
7850e895804a1292fd90bfb26124eaf42bd82846
refs/heads/main
2023-05-18T03:48:54.590923
2021-06-10T11:09:08
2021-06-10T11:09:08
361,611,845
3
3
null
2021-05-06T11:16:09
2021-04-26T04:00:19
Python
UTF-8
Python
false
false
2,524
py
from django.db import models class Category(models.Model): name = models.CharField(max_length=20) image_url = models.URLField(max_length=2000) class Meta: db_table = 'categories' class Product(models.Model): category = models.ForeignKey('Category', on_delete=models.SET_NULL...
[ "51191484+redsaumon@users.noreply.github.com" ]
51191484+redsaumon@users.noreply.github.com
d4cb34b70a91e2240a08ad427a015525c61d1b39
7f8db5b974a747632729d16c431de7aca007af00
/0x11-python-network_1/8-json_api.py
482167a08bb420f6d28ad7b10c9d98d4c2ec9cbe
[]
no_license
thomasmontoya123/holbertonschool-higher_level_programming
6f5ceb636167efba1e36ed2dee7bf83b458f6751
48b7c9dccac77ccb0f57da1dc1d150f356612b13
refs/heads/master
2020-07-22T22:31:13.744490
2020-02-13T22:54:17
2020-02-13T22:54:17
207,351,235
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
#!/usr/bin/python3 '''sends a POST request with the letter as a parameter.''' if __name__ == "__main__": import requests from sys import argv url = 'http://0.0.0.0:5000/search_user' if len(argv) == 2: values = {'q': argv[1]} result = requests.post(url, data=values) try: ...
[ "tomasmontoya123@gmail.com" ]
tomasmontoya123@gmail.com
f8d4717a1f6070db07cc753882a63bd9a3f38b42
7adbf5e2cbc994e96f070e64c5dd0975f14a87cb
/data_analysis.py
2df8843e98a74530dedbe22bf34585d0791ec9e0
[]
no_license
icodeitnl/Data-Analysis-and-Visualization
47d6a01d8e65a33a73372fa453914213106de94d
6ab4c95a388291379323e70e824f62a61c88aac8
refs/heads/master
2020-12-06T06:17:16.914808
2020-01-10T19:51:22
2020-01-10T19:51:22
232,370,278
0
0
null
null
null
null
UTF-8
Python
false
false
14,440
py
from datetime import datetime, timedelta import pandas as pd import numpy as np import plotly.graph_objs as go import matplotlib import os print(os.getcwd()) print(os.listdir(os.getcwd())) # Data Exploration # Import Data orders = pd.read_csv("olist_orders_dataset.csv") order_items=pd.read_csv("olist_order_items_da...
[ "noreply@github.com" ]
icodeitnl.noreply@github.com
616935225d8bd5c974223fa28aa63002e855924e
01f559e220a626bdec6f485db8404250a1882c9e
/tests/conftest.py
cfe3c923518be2daf1e70da685133fab7ea31124
[]
no_license
ingkebil/GeneLists
cbe3899e4a12daaa082eecc9745717338d681791
e04102c2242fd82dcea4efdb7c99e43508b886ed
refs/heads/master
2020-09-15T00:18:05.642894
2016-11-14T13:00:03
2016-11-14T13:00:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
import pytest @pytest.fixture def config_path(): """ Return the path to the config yaml file """ return "tests/fixtures/config.yaml" @pytest.yield_fixture(scope='function') def config_stream(config_path): """ yield a stream to the config file """ stream = open(config_path, 'r') yield stream st...
[ "kenny.billiau@scilifelab.se" ]
kenny.billiau@scilifelab.se
cabb3418558dc0ccf9392089c057427ce71ee217
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/containerregistry/v20210601preview/get_registry.py
946c32d8ea4c071d5a7c0fdf5ea8694660f0870d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,021
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
4e719fe7eacde94861697353ac7f34542e44bdf3
82adab509ac6aac385962c937a4275df4b7506ff
/map/migrations/0011_auto_20191211_0929.py
cc9ed8d3af3a873fbbcaf5c35ddc4723fb834c26
[]
no_license
remmi11/ast-mgmt
dca3ec634635e5a4668c9e0556b520fb2340718d
ac35bd80f115938d7b66434a99fa115fca4389b7
refs/heads/master
2021-06-23T06:10:06.854602
2020-01-01T11:25:05
2020-01-01T11:25:05
212,886,400
0
0
null
2021-06-10T22:03:13
2019-10-04T19:15:54
TSQL
UTF-8
Python
false
false
461
py
# Generated by Django 2.0.7 on 2019-12-11 09:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('map', '0010_auto_20191203_1846'), ] operations = [ migrations.AddField( model_name='inspection', name='assetId', ...
[ "kd19850511@gmail.com" ]
kd19850511@gmail.com
ce1d4c9f9dae392dbcd0c9e6cec095469f9b8092
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/BulkGraviton/BulkGraviton_VBF_WW_inclu_narrow_M4000_13TeV-madgraph_cff.py
2bcf409e757355e8832799dc74ad7539b4678a06
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
797
py
import FWCore.ParameterSet.Config as cms # link to cards: # https://github.com/cms-sw/genproductions/tree/91ab3ea30e3c2280e4c31fdd7072a47eb2e5bdaa/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_VBF_WW_inclu/BulkGraviton_VBF_WW_inclu_narrow_M4000 externalLHEProducer = cms.EDProducer("Ex...
[ "sheffield@physics.rutgers.edu" ]
sheffield@physics.rutgers.edu
c441b84ad77af9e2410f70a7eb69c516673a72a5
8e67d8618b9be7c777597b650876fa20082a6ebb
/14501.py
74d650e562528e9b9e0e32bd3b717523cf2ba523
[]
no_license
ljm9748/practice_codingtest
c5a2cc315c1ccd8f48a9424d13d2097c9fed0efc
367710238976c1a2f8b42bfc3fc2936c47b195c5
refs/heads/master
2023-01-14T12:29:32.530648
2020-11-18T17:49:50
2020-11-18T17:49:50
282,162,451
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
n=int(input()) myinp=[] for _ in range(n): myinp.append(list(map(int, input().split()))) dp=[0]*(n) for i in range(n): day=myinp[i][0] val=myinp[i][1] if i+day-1<=(n-1): for j in range(i+day-1, n): dp[j]=max(dp[j], dp[i+day-2]+val) print(dp[n-1])
[ "ljm9748@naver.com" ]
ljm9748@naver.com
b38cce92d3920a353b7dd2db6d9b362200d3e705
1f41b828fb652795482cdeaac1a877e2f19c252a
/maya_tools_backup/3dGroupTools/python/sgPWindow_projCoc_createSeparateView.py
113fa85b9bb3bb9c577bba013bb7dbe3ab4cea18
[]
no_license
jonntd/mayadev-1
e315efe582ea433dcf18d7f1e900920f5590b293
f76aeecb592df766d05a4e10fa2c2496f0310ca4
refs/heads/master
2021-05-02T07:16:17.941007
2018-02-05T03:55:12
2018-02-05T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,157
py
import maya.cmds as cmds from functools import partial import sgBFunction_ui class WinA_Global: winName = 'sgPWindow_projCoc_createSeparateView' title = 'UI Separate View Creator' width = 450 height = 50 camField = '' resField1 = '' resField2 = '' sepGroup1 = '' se...
[ "kimsung9k@naver.com" ]
kimsung9k@naver.com
62bef33595174d3c7e7677ca97222f4e379269bb
0081317d6eb095245ed91104980e8f8e2665302f
/venv/lib/python3.5/linecache.py
3d67a1993a30d8f28b30fa8f66d972880e33aab6
[ "MIT" ]
permissive
therudite/db_replication
3b0183667447464e9df8733199fa1e02ce9ae02a
c412d9176fc2b633bd70a3ae2789f7fef288f1dd
refs/heads/master
2020-03-30T16:01:57.845548
2018-08-11T10:37:16
2018-08-12T19:12:46
144,492,129
2
0
null
null
null
null
UTF-8
Python
false
false
69
py
/Users/niteshagarwal/.pyenv/versions/3.5.4/lib/python3.5/linecache.py
[ "niteshagarwal1.618@gmail.com" ]
niteshagarwal1.618@gmail.com
851e3ee6e52e726644cbf86f65c687399217c168
9ac4327c86f7706ac6ed716fc1d450efcefb53b5
/Tides/createTideMap.py
01bef75249ac5619cdf5cf4bb03bc3fd0111d9c7
[]
no_license
wuxyair/InsarToolkit
7ac31a06cbc389bd9756654e05e7ea417d20fc00
ae5a5be3679975f2bf95166d1fee24171eef7dc1
refs/heads/master
2023-02-12T23:04:16.505955
2021-01-08T17:59:43
2021-01-08T17:59:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,767
py
#!/usr/bin/env python3 import os import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp2d from osgeo import gdal from viewingFunctions import mapPlot from geoFormatting import transform2extent, GDALtransform ### --- Parser --- def createParser(): ''' Create full-resolution maps of t...
[ "zink.oxide81@gmail.com" ]
zink.oxide81@gmail.com
3323c4ec71a8a7d1a3ac28964a61aeacbeb33fd6
196eb2f5e3366987d7285bf980ac64254c4aec16
/supervised/util.py
4dbf6da6ffafcd128d865320bca7ad87e38b8408
[ "MIT" ]
permissive
mfouda/codenames
f54e0c4366edbf65251aadefddef1fda6cd7de9d
ccd0bd7578b3deedeec60d0849ec4ebca48b6426
refs/heads/master
2022-01-07T02:03:42.529978
2018-12-21T13:16:27
2018-12-21T13:16:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
import time import matplotlib.pyplot as plt plt.switch_backend('agg') import matplotlib.ticker as ticker # noqa: E402 def as_minutes(s): m = s // 60 s -= m * 60 return '%dm %ds' % (m, s) def time_since(since, percent): now = time.time() s = now - since es = s / percent rs = es - s ...
[ "lukas.jendele@gmail.com" ]
lukas.jendele@gmail.com
62902fae81408f05253efceafac14a70eb79fa8c
cde1cbc0a33317739e2b4be7e07e96b854e28ac5
/alphametrics.py
fb39af7b0603de6c9df1a9d201a26fb34eefb130
[]
no_license
AvalZ/sat-smt-tutorial
04c78adc72ad4db491d696af30343ef064eb84ca
77fea2433fc38800fdb463bed43d9fdf4189736e
refs/heads/master
2020-03-13T21:06:38.569213
2018-05-28T12:01:13
2018-05-28T12:01:13
131,288,522
2
0
null
null
null
null
UTF-8
Python
false
false
451
py
from z3 import * # SEND + MORE = MONEY D, E, M, N, O, R, S, Y = Ints('D, E, M, N, O, R, S, Y') s = Solver() s.add(Distinct(D, E, M, N, O, R, S, Y)) s.add(And(D>=0, D<=9)) s.add(And(E>=0, E<=9)) s.add(And(M>=0, M<=9)) s.add(And(N>=0, N<=9)) s.add(And(O>=0, O<=9)) s.add(And(R>=0, R<=9)) s.add(And(S>=0, S<=9)) s.add(...
[ "avalenza89@gmail.com" ]
avalenza89@gmail.com
537512698dc4d6f334deb3f5cc25be704badaa5d
2faa93d704ee1e8e02914798b86d0b7431a87ed4
/055Maior_e_menor_peso.py
9ad69bfced11aa5540f6f28518bc1eb46097ff94
[]
no_license
victoralmeida432/PythonScriptsTraining
347f12228691a0be8a81df27785b0baf5e72e28b
0bdefc3e344bf7a6a54230e917a92e6b52b63806
refs/heads/master
2020-04-26T06:57:03.289000
2020-04-05T02:30:57
2020-04-05T02:30:57
173,380,788
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
maior = 0 menor = 0 for c in range(1,6): peso = float(input("Digite o peso da {} pessoa: ".format(c))) if c == 1: maior = peso menor = peso else: if peso > maior: maior = peso if peso < menor: menor = peso print("O maior peso foi {}".format(maior)) pri...
[ "vala@cesar.com" ]
vala@cesar.com
12752faa8e6f24d7152dd05c131acb18687b7faf
94df6de2ab8eef7d21eaf08f32dd23d380ada52b
/src/generative_playground/models/pg_runner.py
ab4805df09129ee680a0e52f8490c728139b459c
[ "MIT" ]
permissive
iisuslik43/generative_playground
f6a59adb757265e55e7e12c906e9785735042127
3e0d8c137c3a8620461dd1a07fe46c51bb0d97eb
refs/heads/master
2020-09-12T02:00:51.265874
2019-11-18T14:39:04
2019-11-18T14:39:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,266
py
import os, inspect from collections import deque import torch.optim as optim from torch.optim import lr_scheduler import torch import gzip, dill, cloudpickle import copy from generative_playground.models.reward_adjuster import adj_reward, AdjustedRewardCalculator from generative_playground.models.temperature_schedule ...
[ "egor.kraev@gmail.com" ]
egor.kraev@gmail.com
47bcf163541fb59722252c3f339c87df5bc27d1b
a8a5772674e62beaa4f5b1f115d280103fd03749
/metstationdistance.py
06718ded3fcc86dd7af918765369d469f2ed4e6b
[]
no_license
tahentx/pv_workbook
c6fb3309d9acde5302dd3ea06a34ad2aee0de4b7
08912b0ef36a5226d23fa0430216a3f277aca33b
refs/heads/master
2022-12-12T20:39:35.688510
2021-03-30T03:20:54
2021-03-30T03:20:54
172,827,250
0
1
null
2022-12-08T16:47:39
2019-02-27T02:25:24
Python
UTF-8
Python
false
false
591
py
import csv from haversine import haversine with open('tucson.csv') as file: has_header = csv.Sniffer().has_header(file.read(1024)) file.seek(0) met = csv.reader(file) if has_header: next(met) met_list = list(met) coords = [] for x in met_list: coords.append(x[1:]) print(coords) # # d...
[ "hendricks.ta@gmail.com" ]
hendricks.ta@gmail.com