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
7b6058bd35243dcac57bec06afb8147e964d4555
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_softwoods.py
bf431aa729f540bf80fb4fb0ce05106eaa0eb798
[ "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
252
py
from xai.brain.wordbase.nouns._softwood import _SOFTWOOD #calss header class _SOFTWOODS(_SOFTWOOD, ): def __init__(self,): _SOFTWOOD.__init__(self) self.name = "SOFTWOODS" self.specie = 'nouns' self.basic = "softwood" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7212c1460cb4513d331eb1e6bd7dcf43c8f34b88
efd056771312954e08ebf55dce2e34426859baf5
/models/pipeline.py
9973355f5a7cb89c288f6262768ad78b635e7aff
[]
no_license
ArjunBhalla98/intrinsic-video-factorisation
6ba5fc322b9b95c7ca49ac008343fecdc1957daa
e0015b9d23a1070178d51e6d984871f06b9ab629
refs/heads/main
2023-06-25T12:37:47.445992
2021-07-26T19:58:37
2021-07-26T19:58:37
364,341,167
0
0
null
2021-07-26T14:54:44
2021-05-04T17:53:04
Python
UTF-8
Python
false
false
837
py
import torch.nn as nn from .denselight_model import DenseLightNet from .decoder import Decoder class DLNetPipeline(nn.Module): def __init__(self): self.denselight_net = DenseLightNet() self.person_detector = ( None # Fill in with model that gets people bounding boxes ) ...
[ "arjunbhallasg@gmail.com" ]
arjunbhallasg@gmail.com
64c32586630e0c01a48bb1e4907ab4ac66192273
98d8b7dd018b95dbf2c81431561546fd9619e391
/model/ItemLimitModel.py
4c9e5c484728ea86929619b001baca2ad8e6fea9
[]
no_license
c1xfr2e/kkyadmin
1642c42659724a676000768bab559684581f3b07
e5cef8b8ed63d3db8c1ff22af0edf44c36c4df63
refs/heads/master
2021-09-08T08:55:17.448640
2018-03-09T00:07:46
2018-03-09T00:07:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 """""" from third_party.orm.field import StringField from third_party.orm.field import IntegerField from third_party.orm.field import ObjectIdField from third_party.orm.field import ListField from third_party.orm import Document from tornado import gen im...
[ "gurity@163.com" ]
gurity@163.com
afaff866a995edab1d19006e1057464873748af1
750b90962f24110c1ed626acbfbd12d0ae360cfa
/TSC_tests.py
b45d8debe88b32783001b88457a32484f8e43232
[]
no_license
mhunterak/tweet_syllable_count
addd1e54f19fef8aa6b313cdb4178c50e6f30d50
aa26344f694675660c470995bd438c05a47a9791
refs/heads/master
2021-07-16T22:28:25.957253
2018-12-06T02:41:06
2018-12-06T02:41:06
132,646,227
0
0
null
2018-12-06T02:41:07
2018-05-08T18:02:33
Python
UTF-8
Python
false
false
4,670
py
import unittest import tweet_syllable_count class test_WordCount(unittest.TestCase): def test_WordCount(self): # test Word Count function self.assertEqual(tweet_syllable_count.word_count('K'), 1) self.assertEqual(tweet_syllable_count.word_count('Hello World'), 2) self.assertEqual(t...
[ "maxwell@treehousestickers.com" ]
maxwell@treehousestickers.com
d02f2d250c358142dcbb2a70abe23fecd7cd7660
973809418dd45fe6f5812fa44cae8be25e4ef6f7
/pythonTest/Test.py
b29b32bf7cb8039e54744d2d199b5b40ecf7b0bb
[]
no_license
lcz92416/PythonTest
667cd704e462bb94762c995310e0b9f7eb38a1dd
a7287e1e42b4267b46aa9c79140bb14fbc3184c2
refs/heads/master
2020-03-31T16:39:53.623106
2019-09-09T02:11:00
2019-09-09T02:11:00
152,384,909
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
rows =int(input("请输入列数")) i=j=k=1 flag=1 for i in range(rows): for j in range(rows-i-1): print(" ", end="\t"), for k in range(i+1): print("+ ", end="\t"), print("\n") print(u'Hello World !') print("123".join("678"))
[ "lcz92416@163.com" ]
lcz92416@163.com
59b75e69476326cd91132b9429c444faa2be4fd1
de159327146dbdb23ba6f9388edbc867da4878a7
/pages/basket_page.py
415f0c4c3cb1af4adaa163238fea25fb52397d06
[]
no_license
eddjimlab/stepik_module_4
7128d61fabbc929d244d74faf128d59b52e8cfb2
cdc35f58818855b130be3420978fc929da49a4b5
refs/heads/master
2023-07-02T04:15:33.047183
2021-08-10T11:02:32
2021-08-10T11:02:32
392,316,984
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
from .base_page import BasePage from .locators import BasketPageLocators class BasketPage(BasePage): def basket_is_empty(self): assert self.is_not_element_present(*BasketPageLocators.CART_TOTAL_PRICE), "Basket should be empty, but it`s not" def basket_message_is_empty(self): assert self.is_el...
[ "jimlab@mail.ru" ]
jimlab@mail.ru
76cad8d6f9cf5a33dd57f097e8dc97bfb3eca44c
13db353823e1c118eff8ab19e06bbc9fe03421ed
/PytorchExamples/network.py
fbe026a16f02cffa4535b1ec148585727ad14f64
[]
no_license
Pol22/TCSVT-LightWeight-CNNs
8d446fa6334ababebc475e2157a8f9ba50dd77f7
f5ced9005f126edda89cb986159722189f7577a5
refs/heads/master
2023-03-10T06:48:55.927737
2021-01-22T00:19:14
2021-01-22T00:19:14
285,706,019
0
0
null
2020-08-07T01:14:55
2020-08-07T01:14:54
null
UTF-8
Python
false
false
1,960
py
import torch import torch.nn as nn from block import LIST class DnCNN(nn.Module): """ The bare-bone skeleton to implement the fullscale baseline of DnCNN denoising network. """ def __init__(self, channels=1, num_of_layers=17): super(DnCNN, self).__init__() kernel_size = 3 padd...
[ "noreply@github.com" ]
Pol22.noreply@github.com
30717a5a9f1b9bf25d7384d49c1bf6f311de121a
4eb8454cdae9d7a4bb324476bb69f8cc8549704d
/scikits/timeseries/lib/plotlib.py
9c0cc320276aaceaaecf8c56fa76b6b38eb00838
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-egenix-1.0.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
pierregm/scikits.timeseries
389437b878d76efaff9aef85884d4cc2af3af005
05cbb314612ce516160270d59c933c420ef860ea
refs/heads/master
2016-08-03T15:48:32.932861
2010-09-28T23:50:34
2010-09-28T23:50:34
946,544
7
1
null
null
null
null
UTF-8
Python
false
false
49,413
py
""" .. currentmodule:: scikits.timeseries.lib.plotlib Classes to plot :class:`~scikits.timeseries.tseries.TimeSeries` with matplotlib. Classes ======= :class:`TimeSeriesPlot` ----------------------- .. autoclass:: TimeSeriesPlot :class:`TimeSeriesFigure` ------------------------- .. autoclass:: TimeSeriesFigure...
[ "pierregmcode@gmail.com" ]
pierregmcode@gmail.com
0515a62c6cc6621fa0f4326bb75a9fd20e3fc87a
dbb5dd7f21c24cb9b64d7d9f2cf991c808439ddb
/Apps/hoteles/migrations/0006_auto_20210621_2131.py
6ac5000646b0b44fcd5606ce83d56f548ccfc4d0
[]
no_license
belisario-cogua/cogua
ade5567251bc7368bfecd498134f06ecd4dae7c5
b5777a9bb11c60177997db21a226e58712cc8893
refs/heads/master
2023-06-25T05:22:34.312187
2021-07-28T15:39:06
2021-07-28T15:39:06
372,070,267
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 2.2.3 on 2021-06-22 02:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hoteles', '0005_auto_20210604_0720'), ] operations = [ migrations.AlterField( model_name='hotel', name='estado', ...
[ "gad10cogua@gmail.com" ]
gad10cogua@gmail.com
7dac1faa0f1cf04e45591073afc0b5fa07317f4c
7de6f8b6b9f75444431156d8eac1e69b2e43b6b8
/index.py
d9b9d420336909c1cab54d6ecac174e148905fe1
[]
no_license
rainStone819/cnn-image-retrieval
a83067742459df194223c6692cfbca46f16ea1e1
7fd42d14ff602187f54abb73e8d02a3ddd750870
refs/heads/master
2022-12-08T10:23:01.500275
2018-01-25T10:11:01
2018-01-25T10:11:01
118,896,818
1
0
null
2022-11-22T01:27:19
2018-01-25T10:12:30
Python
UTF-8
Python
false
false
2,169
py
from feature import vgg16FeatureCode import numpy as np import os import sklearn import sklearn.neighbors from sklearn.externals import joblib index_dir = './index' imagePath = "/htdocs/image-retrieval-UI/database_images" features_file="%s/img_name_ftr.npz" % index_dir kdtree_index_file="%s/kdtree_index.data" % index_...
[ "@qq.com" ]
@qq.com
6acd20ceb29a97562aa2e4f03105e1219598d240
5ce01d9feed7aae0ae864705fd98fa5904d61923
/dati_fitting modelli interpolazioni/MILANO/aria - ozono/02 - air_map.py
c1e57a9f4db984bf6713a51676d4d992574e5db6
[]
no_license
thedcfix/CodiceTesi
85a5a597337637e2102532aab732ada13c561e7c
2f6959dd43a79e78f553bc7f81d3ee441ab0d209
refs/heads/master
2020-03-24T12:19:43.877785
2018-12-20T20:31:19
2018-12-20T20:31:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,163
py
import numpy as np import pykrige.kriging_tools as kt from pykrige.rk import OrdinaryKriging from pykrige.uk import UniversalKriging import pandas as pd import matplotlib import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib.colors as colors import matplotlib.patches as mpatches import warnings...
[ "davide.cattaneo.it@gmail.com" ]
davide.cattaneo.it@gmail.com
65fa851821b2faa7844845a608de280119f33769
b38776cc1609e0e39cf7fda5cd23f0c191e7a268
/old/test_bilingual_doc2vec.py
6d6b29603c837fb922e15d19e00b792731fe5594
[]
no_license
ryorda/clir-indonesia-english
9a1c8a41a225f4dca641d60b88de9776894f2ffe
0ea866c9a982adb22aa8d751b564bb27adf7a2b4
refs/heads/master
2020-05-23T04:31:42.383442
2018-06-28T08:18:48
2018-06-28T08:18:48
186,505,596
0
1
null
2019-10-14T15:22:37
2019-05-13T22:41:22
null
UTF-8
Python
false
false
2,055
py
from gensim.models import keyedvectors from gensim.models import Doc2Vec from gensim.models import Word2Vec import re import os import Queries from multiprocessing import Pool import sys from nltk.tokenize import TweetTokenizer import time import numpy as np import tensorflow as tf from Sastrawi.Stemmer.StemmerFactory...
[ "triaptahadiryorda@yahoo.co.id" ]
triaptahadiryorda@yahoo.co.id
c8efb6ca68f3b38c35bd336830be207587da48e6
282032635ad666f072b7885aa1230d561cd9674b
/ENV/bin/jupyter-bundlerextension
87effb65d8593ef5e52c061d67e151cf3048be67
[ "MIT" ]
permissive
ShannonTully/data-science
690ac38c149153cd38bba6c19bd727452e2498e1
f0e08aec65d9bfa7694308b653283a35a8affb26
refs/heads/master
2021-04-12T11:26:25.987817
2018-03-29T22:13:12
2018-03-29T22:13:12
126,892,958
0
0
MIT
2018-03-29T22:13:13
2018-03-26T21:36:38
Python
UTF-8
Python
false
false
277
#!/home/shannon/Projects/401/data-science/ENV/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from notebook.bundler.bundlerextensions import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "scatman.st@gmail.com" ]
scatman.st@gmail.com
8ebea4a768a74346f669199a18f9034a5a72fcd3
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part006912.py
b626d2d86f3f2c0c06e456ec94bdbe994424a7eb
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,302
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
72dfa4af3c48f3f9e9ab6d048b15530e9766f1c3
176b74119a26d60f2eb4ff0dd50e7f652755e92e
/searchBST.py
7855011bf0b54f4cfd576ae7bf881c5118fa9e3a
[]
no_license
brdayauon/interviewPreparation
f1faeb8dced3e39df9dd3f5bacb067b8c12e9aa9
ba17a6fdf3f6c979caaf0d84bb7bfbb38c8c42bd
refs/heads/master
2021-01-03T17:25:38.882170
2020-10-11T17:00:52
2020-10-11T17:00:52
240,168,541
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def searchBST(self, root: TreeNode, val: int) -> TreeNode: if root == None or root.val == val: return root ...
[ "brdayauon@gmail,com" ]
brdayauon@gmail,com
de88198ad56a67db6c73e182f32e9f880a797afd
07292116cfab3ac205649782ac404d9956a79103
/source/resources/variables/_country.py
7db858d4fdeee4e270292ff7e13dc186fca6f19a
[]
no_license
Group03AT/UK-Student-Visa
dd1d634412e76d74564557600932ec80301e3576
d3911a37691fe9bfad813f80938ef65ff2c9431e
refs/heads/master
2020-06-05T02:24:48.671230
2015-07-31T08:47:09
2015-07-31T08:47:09
39,963,347
0
0
null
null
null
null
UTF-8
Python
false
false
5,068
py
DICT_COUNTRY={"1":"United Kingdom", "2":"Ireland", "3":"USA", "4":"Abu-Dhabi", "127":"Afghanistan", "128":"Albania", "5":"Algeria", "129":"American Samoa", "115":"Andorra", "6":"Angola", "130":"Anguilla", "131":"Antigua and Barbuda", "7":"Argentina", "132":"Armenia", "133":"Aruba", "8":"Australia", "9":"Austria", "134"...
[ "Group03AT" ]
Group03AT
cd7068b64a3c3621d5b186be6818e8df57e9db80
0479e695c96807f616a68471d179d01c541c6865
/innterpret/function/smoothgrad.py
19bdf1945a70257860bf8f5bbcc8acb5b2c88e55
[ "MIT" ]
permissive
paudom/iNNterpret
01ff5449237fe0f42f5b87c1a0adc1d7b0d0ef54
8e6a4fc43bfc497e26fea37942765a5efaf5b7c4
refs/heads/master
2022-11-29T14:53:28.719244
2020-03-12T15:01:45
2020-03-12T15:01:45
179,162,284
2
0
MIT
2022-11-22T04:30:56
2019-04-02T21:34:43
Jupyter Notebook
UTF-8
Python
false
false
2,290
py
from __future__ import absolute_import # -- EXTERN IMPORT -- # import numpy as np import keras.backend as K # -- IMPORT -- # from .. import __verbose__ as vrb from ..utils.data import load_image, deprocess_image, visualize_heatmap from .gradient import Gradient # -- SMOOTHGRAD METHOD -- # class SmoothGrad(Gradient):...
[ "pavdom72@gmail.com" ]
pavdom72@gmail.com
6ae9b39fb3269abaaaed38b9ead3d33fb2e5a277
bf229b223561b1fef70f2cd2ef12fa3bca309a81
/test_player.py
614189d576c411bafed53b46fb2945346dff1586
[]
no_license
Darksheid/MXP3
ced7f58ca34fd5c810537746778baf19e7fa7d19
8b14a3fd34545baadfa1170a9c05ecf9d2bbe88f
refs/heads/master
2020-03-28T06:12:21.534574
2018-09-10T18:17:30
2018-09-10T18:17:30
147,820,628
0
0
null
null
null
null
UTF-8
Python
false
false
7,521
py
import os from tkinter.filedialog import askdirectory import pygame from mutagen.id3 import ID3 from mutagen.mp3 import MP3 from tkinter import * import math ################################################################################ ###################################variables###########################...
[ "noreply@github.com" ]
Darksheid.noreply@github.com
69a1f0b6fd6245b262107582163cc8ddd44ea88e
38a92e99215d4bd6146374408513e7b8446ec828
/ocpu/views.py
59a753c4ddfbdf47b2487cad764f92feee416851
[]
no_license
andi-nl/ANDI-frontend
b953ca50d1c1f3a4d6d12de8e68b7d81e815f0dc
8d41bc8b6764444ab7b7a7ac053cdf8c317a568a
refs/heads/master
2020-04-14T23:12:14.309292
2017-06-22T12:08:43
2017-06-22T12:08:43
41,303,252
1
12
null
2017-01-02T13:17:41
2015-08-24T13:00:35
JavaScript
UTF-8
Python
false
false
932
py
import json import logging from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from django.core.exceptions import SuspiciousOperation from .utils import do_normcomp, do_calccomposite logger = logging.getLogger(__name__) ...
[ "j.vanderzwaan@esciencecenter.nl" ]
j.vanderzwaan@esciencecenter.nl
59b9b08feec2da2cb9977c691922d1fc53855551
affd204765ad98bb7068e3cb1a612d740259f752
/Mile-Kilometer converter.py
1c69768300eae2ae80e607de4dcad810c886fbc4
[]
no_license
tylerstjacques/SchoolPrograms
46750cb34dd3f39718024bdcfbaaea1fe516a5e0
2ef22a6ec045f657d0d96ac3c5925075c0d0e357
refs/heads/main
2023-02-16T17:59:45.998560
2021-01-11T19:43:36
2021-01-11T19:43:36
328,770,910
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
conversionDirection = input('Hello! Are you converting from miles to kilometers or kilometers to miles?') if conversionDirection == 'kilometers to miles': lengthKilometers = int(input('how many kilometers would you like to convert?')) miles = lengthKilometers / 1.6 print(lengthKilometers, 'kilometers is eq...
[ "noreply@github.com" ]
tylerstjacques.noreply@github.com
e8fd044df4f91a9541f51d1a974c2bcd3921cf30
c1584b39560377fce4e069133a87e6ad4a0013c3
/bai24.py
45332319528e4ea8358d538b90d31048b4ed71d9
[]
no_license
dqnhdsky/BaiKiemTra
a6d1ac759274d7a6c7ec90f9430d39c5ac413c21
df1a7e3d0cf17b8379a5b5464c28bd86c797fd42
refs/heads/main
2023-08-02T08:34:34.170241
2021-10-09T09:43:08
2021-10-09T09:43:08
415,265,211
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
# In: import numpy as np np.random.binomial(20, 0.5, 10) print("array",np.random.binomial(20, 0.5, 10)) # Out: # array([10 8 13 14 8 11 8 15 8 14])
[ "nghiadzvc123@gmail.com" ]
nghiadzvc123@gmail.com
a65d9b6be9bfa40b2f5756ccec4b3c57dc2420d4
d2d130231290316284c18e2113bcb621e91c1c37
/untitled/apps/adopcion/migrations/0001_initial.py
3f2336f4768437c94294cf54a7ecfcc7022f1bfe
[]
no_license
lucasretamoso/pycharm-project
66b9f58591954f8fd521e0eba1879c4a375379f5
b14691ae60e24e8409a704e7b6239682155d2978
refs/heads/master
2020-03-21T04:32:13.441677
2018-06-21T02:14:37
2018-06-21T02:14:37
138,113,378
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
# Generated by Django 2.0.6 on 2018-06-20 21:56 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Persona', fields=[ ('id', models.AutoField(...
[ "37214243+lucasretamoso@users.noreply.github.com" ]
37214243+lucasretamoso@users.noreply.github.com
850ecdca5bc07271e05e480aefeb8432c7ea8f48
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/EPXH424t2SSjMzms5_5.py
6f2e5df2ee3869baab5543822cd15128d9777f20
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
""" Create a function that takes both a string and a list of integers and rearranges the letters in the string to be in the order specified by the index numbers. Return the "remixed" string. ### Examples remix("abcd", [0, 3, 1, 2]) ➞ "acdb" The string you'll be returning will have: * "a" at index 0 * "b"...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c16a052f5e599401dc6d6b8c2649ce28ad7d31e5
476497f41b081c52ab13c1ca95afc501dd8858d5
/gpcgrlib/setup.py
5254ce6c6102df9b568d9d6e4a6aed968f503347
[]
no_license
gpc-gr/panel3552-scripts
10e84bda7279b8b522a7ad61e31c6adfea16cb63
48b78fb578e3453a222a8d3bbbbdd989fa54b39c
refs/heads/master
2020-04-06T08:29:31.580170
2019-01-22T10:07:24
2019-01-22T10:07:24
157,306,430
1
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/usr/bin/env python3 from setuptools import setup setup( name='gpcgrlib', version='0.0.0-SNAPSHOT', description='common libraries for gpc-gr project', long_description='common libraries for gpc-gr project', url='', author='gpc-gr', author_email='gr@gpc.megabank.tohoku.ac.jp', licen...
[ "tadaka@megabank.tohoku.ac.jp" ]
tadaka@megabank.tohoku.ac.jp
7d3cd784657b9a873cf429d28e69dfc86050ddcf
3a26d7bef9bf9339f3b1dbfc3650798bc8736f1a
/rest_router.py
bada1677522d5ad1420ea9256d95e921940b3705
[]
no_license
andreiburuntia/restful-sentiment-analyzer
a370aabba3f3e32eb97c4f1fd1e412f3f4cd0068
24eacb7acda8585b10303d5c1772c29247bbece2
refs/heads/master
2020-03-17T01:20:56.171506
2018-05-12T13:30:00
2018-05-12T13:30:00
133,148,910
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
from flask import Flask from flask_restful import Resource, Api import analyzer app = Flask(__name__) api = Api(app) class Analyze(Resource): def get(self, sentence): return analyzer.analyze(sentence) api.add_resource(Analyze, '/<string:sentence>') if __name__ == '__main__': app.run(debug=True)
[ "andreiburuntia@gmail.com" ]
andreiburuntia@gmail.com
57c2e18f8e35f1bc40f98393fdd6e4900f962fd9
90d912a9f935f2b570a25f7f8d9a88cff27387fc
/s2p/s2p.py
8065ae6b66c088da0c286a6e196918414f11e4a4
[]
no_license
ogtony/scout2parse
d42f9f76d36b70483ecaddb337491381dfb30dd2
6ff42c1beeacd9ce601967ec31a7d27bc2563965
refs/heads/master
2021-09-01T22:33:29.278266
2017-12-28T23:48:45
2017-12-28T23:48:45
115,465,696
4
0
null
null
null
null
UTF-8
Python
false
false
5,187
py
#!/usr/bin/env python3 """ Commands to parse scout2's json database into CSV's for easy reporting. """ import csv import json from collections import defaultdict import click from s2p.findings import ec2_findings def parse_scout2_json(filepath): """ The scout2 :param filepath: :return: Dictionary co...
[ "tlozano@bishopfox.com" ]
tlozano@bishopfox.com
0f753428d03fbb09b89fca840230398b3dbc823a
5a5323f8378749845dbabce23e46d6c878f24916
/plots.py
8fccc28f4938290b7070d4b797a3c27b6304ba71
[]
no_license
sankasuraj/a10_ae625
75dd27c249d21c09633318b8d4e7b0a147d5a00d
0822973b4409936385535c053bf366acd375bd7e
refs/heads/master
2020-01-23T21:43:46.822992
2016-11-24T15:06:31
2016-11-24T15:06:31
74,683,369
0
0
null
null
null
null
UTF-8
Python
false
false
4,818
py
from pysph.solver.utils import load from pysph.tools.interpolator import Interpolator from pysph.examples.ghia_cavity_data import get_u_vs_y, get_v_vs_x import numpy as np import matplotlib.pyplot as plt import os cwd = os.getcwd() def l2_error(theoritical, numerical): difference = theoritical - numerical temp = su...
[ "sankasuraj@gmail.com" ]
sankasuraj@gmail.com
542ca145410789ca97fe7c88c049a026e0b616de
977fac8d2143156ddc4d2c750136caafe154fddd
/Python3 Basics/if_statement.py
809c7eb48d04951b4a36a3fcd2969f824aa54e38
[]
no_license
murtalaliyu/Python3
a46d67dac44f9e401ef3c7c64b398f398bd383bb
fa80ac53ebafe93c80071fa62c4687da50252bdd
refs/heads/master
2021-01-11T21:36:29.838641
2017-01-16T06:54:56
2017-01-16T06:54:56
78,816,690
1
0
null
null
null
null
UTF-8
Python
false
false
235
py
x = 5 y = 8 z = 5 a = 3 if z < y > x > a: print('y is greater than z and greater than x') if z <= x: print('z is less than or equal to x') if z == x: print('z is equal to x') if y != x: print('y is not equal to x')
[ "noreply@github.com" ]
murtalaliyu.noreply@github.com
c4684ae2238c6010c37de86b69f07d3419185f7c
d4141174ce514d122aa7cdbec5c8aa5f51700ff6
/turnaround_period/rest.py
e2a039b8cf10b760d6737d13fe36311adb58f286
[]
no_license
benp2443/NRL
a5c26530ce22907ef7de69e7c5fc384ba9e79885
32d4f880b41862323f960c63eceb02adb766e944
refs/heads/master
2021-04-29T19:00:00.144952
2018-05-05T10:28:01
2018-05-05T10:28:01
121,705,337
1
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
import pandas as pd import numpy as np pd.set_option("display.max_columns", 20) pd.set_option("display.max_rows", 50) df = pd.read_csv('../data/NRL_cleaned.csv') df['date_time'] = pd.to_datetime(df['date_time'], format = "%Y-%m-%d %H:%M:%S") df['Date'] = df['Year'].astype(str) + '-' + df['Date'] df['Date'] = pd.to_da...
[ "benpaul374@gmail.com" ]
benpaul374@gmail.com
87d50a6fe9dd9abd9d0786ad1b8b15d7b1e2efce
978c6a861b93d64550dc198d4188bbde46f3a5a1
/homework3/problema16-Copy1.py
9285b87043bab3f73dcdbba0ea173a0a36fd026d
[]
no_license
Ardashes/Intro-to-python
d037762b3d1596b5868b730a1b0f0d67f3b47bf2
c9ca34a81910e274ba69b65f90a4f5382078b46d
refs/heads/master
2020-08-22T04:44:00.213162
2019-12-05T12:03:28
2019-12-05T12:03:28
216,320,092
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
t1=(1,"a") t2=(2,"b") t3=(3,"c") l1=[t1,t2,t3] print (l1) d1={} d1[(t1[0])]=t1[1] d1[(t2[0])]=t2[1] d1[(t3[0])]=t3[1] print (d1)
[ "ardoo93@hotmail.com" ]
ardoo93@hotmail.com
0d8dd1d03f65d1af54b1ad4ea455fdf604cca010
fb82bd3d2ad159a50da424f665135f40c939d67d
/test_vs_minimax.py
741d01df269809ad4c1a131591905c727a172a64
[ "MIT" ]
permissive
ColdFrenzy/Adaptive_Learning
f4cac51e7c9b4325feb7573642639abbe3b726bc
02cdd519a7e224fe5f2a49b0c21baa3dac5ce0e1
refs/heads/master
2023-05-29T15:01:32.762298
2021-06-14T22:36:01
2021-06-14T22:36:01
335,719,341
0
0
null
null
null
null
UTF-8
Python
false
false
3,478
py
# import gym import sys import os # NO GPU # os.environ["CUDA_VISIBLE_DEVICES"] = "-1" sys.path.insert(1, os.path.abspath(os.path.curdir)) from tqdm import tqdm # from env.LogWrapper import LogsWrapper # from ray.rllib.agents.trainer_template import build_trainer from ray.rllib.agents.ppo import PPOTrainer from m...
[ "nemesi.95@hotmail.it" ]
nemesi.95@hotmail.it
b66d2ae78a2abe5aa52b983e5773f4b95f0dfe9f
11334e46d3575968de5062c7b0e8578af228265b
/Examples/OpenCV/PPOCV/C6/arithmetic.py
f062fdf7c94256bec4b4af759f4f493579109cb4
[]
no_license
slowrunner/Carl
99262f16eaf6d53423778448dee5e5186c2aaa1e
1a3cfb16701b9a3798cd950e653506774c2df25e
refs/heads/master
2023-06-08T05:55:55.338828
2023-06-04T02:39:18
2023-06-04T02:39:18
145,750,624
19
2
null
2023-06-04T02:39:20
2018-08-22T18:59:34
Roff
UTF-8
Python
false
false
2,217
py
#!/usr/bin/env python3 # # arithmetic.py """ Documentation: PPOCV C6 """ # from __future__ import print_function # use python 3 syntax but make it compatible with python 2 # from __future__ import division # '' import sys try: sys.path.append('/home/pi/Carl/plib') import ...
[ "slowrunner@users.noreply.gethub.com" ]
slowrunner@users.noreply.gethub.com
2f3d2e5096813d7e960b429df1473a648ae51389
f04dfbe61b0e12cd0bce03aa259a9e446ca6818b
/mysite/settings.py
a5c977f00442284398a9c4b00b8f05fd8384fb66
[]
no_license
Osteribo/mysite
14430e0aacd5161001b086afc7afe9d0e411ea1b
e4fdf2138e0894fa34e57c7c2c0d51d85698af98
refs/heads/master
2022-11-02T14:26:31.947007
2020-06-18T13:12:36
2020-06-18T13:12:36
258,354,669
0
0
null
null
null
null
UTF-8
Python
false
false
3,134
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
[ "36780370+Osteribo@users.noreply.github.com" ]
36780370+Osteribo@users.noreply.github.com
a5421125f820b7b418cd77f04061ae04b7af8054
096098a350fb093c8297c5e00201c2c0c09ec62f
/DPAIRS.py
e339551e7fc574d7aa53dc48f779044bba874570
[]
no_license
Aviadonis/Practice-Programs
35f2038c6a98136493dcfc547f53659781498a1f
6e880f35e384d897ecc9857c7bd8743f10ded418
refs/heads/master
2020-04-24T19:01:43.904719
2019-03-05T05:17:35
2019-03-05T05:17:35
172,199,169
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
n=input() m=input() a=list(n) for i in range(n): n=raw_input() a.append(int(n)) b=list() i=0 for i in range(n): n=raw_input() b.append(int(n)) master=list() i=0 for i in range(n): for j in range(m): master.append(a[i]+b[j]) for i in range(n): for j in range(m): elem=a[i]+b[j] if(master.count(ele...
[ "avi.adonis241997@gmail.com" ]
avi.adonis241997@gmail.com
a7d41a6414c7d8d30f1ffcb2cdbff2c3826afef1
045bc96db861c139bace6bfc1cc1ce2afbd36cf7
/rest/wechat_sdk.py
e7777ab90eddcce746e25c2f1d5c71d922620edc
[ "Apache-2.0" ]
permissive
currycan/github-enterprise-wechat
8f249abd4d2ed0a75dc4aa5543e8017833e29f19
f04ee0e4a9f61047fb914d48d22864af48cd7c19
refs/heads/master
2020-04-09T23:22:45.936161
2017-07-26T09:50:06
2017-07-26T09:50:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,224
py
# -*- coding:utf-8 -*- import datetime import requests def token(func): def get_newest_token(self, *args, **kwargs): if "access_token" not in self.token or self.token['expires_time'] < datetime.datetime.now(): self.get_token() return func(self, *args, **kwargs) return get_newest_to...
[ "ttslj@163.com" ]
ttslj@163.com
d1069e766090080234c254f2fd17be2e2baf85d4
d6bc1b824d6df773f7f641476f8d5c3f6252a028
/flaskblog/main/routes.py
9dffc6c5054d5c4cce03ba15bbc23bd8e1aa5eb6
[]
no_license
nailakaliyeva/Nailas_Blog
fc0293c7fcd420b52ddd6a5fa3576aaf8c194037
a9b87b200d5ffa5f34e4407988842b316a7b85c7
refs/heads/master
2023-01-22T03:36:24.231241
2020-12-13T22:00:54
2020-12-13T22:00:54
320,900,311
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
from flask import render_template, request, Blueprint from flaskblog.models import Post main = Blueprint('main', __name__) @main.route("/about") def about(): return render_template('about.html', title='About') @main.route("/") @main.route("/home") def home(): page = request.args.get('page', 1, type=int) ...
[ "nailakaliyeva@gmail.com" ]
nailakaliyeva@gmail.com
25002055ff5e41904646a87c818eada99447a73e
1936b1417223cc3f6679e02888d98cd2feec3cc8
/game/val_pretrain.py
4e5f323220d5c74b1a730780607dc2a4284bd10a
[]
no_license
dendisuhubdy/deep_pepper_chess
e70d8693dcb69ed91a2e3d2513acbbc5a9db6340
b05bfe2e6defad7a85d6099ad5d69e1b46888eb5
refs/heads/master
2020-07-03T05:53:54.342694
2018-11-04T04:53:10
2018-11-04T04:53:10
201,808,792
1
0
null
2019-08-11T19:52:37
2019-08-11T19:52:37
null
UTF-8
Python
false
false
2,202
py
from random import shuffle import chess.pgn import chess.uci # import random import torch from torch.autograd import Variable from config import Config from game.features import board_to_feature from game.stockfish import Stockfish def cross_entropy(pred, soft_targets): return torch.mean(torch.sum(- soft_target...
[ "saikrish@cedar5.cedar.computecanada.ca" ]
saikrish@cedar5.cedar.computecanada.ca
e60882fc81d4a7a0fdba8bc5cfbea5b5d6e38c24
cde1eb088fb420c83cac6c1eae114336d05d3971
/common/time.py
0ddab55a8a246a3bce136dfdfe5003077134cb42
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
UniversityRadioYork/lass-pyramid
6965f5caefef420dd9a56140572423cf56959344
6da18619d940a84cc3e2972078d277313ef40c43
refs/heads/master
2020-05-17T17:39:40.801599
2013-08-30T22:34:45
2013-08-30T22:34:45
12,490,983
1
0
null
2013-08-30T22:34:38
2013-08-30T16:42:55
Python
UTF-8
Python
false
false
7,900
py
"""Common functions for dealing with dates and/or times. Yes, this module does define tools for working with local times. This is necessary for dealing with some aspects of schedule code, but we prefer to work in UTC wherever possible, so only use the local time functions from template logic or where absolutely neces...
[ "matt.windsor@ury.york.ac.uk" ]
matt.windsor@ury.york.ac.uk
fb0cef46d4684cf1db79e27c9e2e379e81a9be8f
f8b4001a06d5c2e85052b84ddc4fa18eec72559d
/project.py
f69db46addc8e6e86e617cb999fc8852a89acc27
[]
no_license
dawnyaya/Coffee-Shops-Catalog
ce710c55a6363ee6053db6076764624817022126
f786f85cfac4e76bee3bef6e7417f46470aface8
refs/heads/master
2016-08-11T12:37:39.779665
2016-01-08T08:41:39
2016-01-08T08:41:39
49,260,026
0
0
null
null
null
null
UTF-8
Python
false
false
17,239
py
from flask import Flask, render_template, request from flask import redirect, url_for, flash, jsonify from sqlalchemy import create_engine, asc from sqlalchemy.orm import sessionmaker from database_setup import Base, Coffee, MenuItem, User from flask import session as login_session import random import string from oaut...
[ "dawnyayas@gmail.com" ]
dawnyayas@gmail.com
3973555778019db217774d4721379af1d424f009
43595f4a1cb5be5eb411322502d314a8e1b628d4
/gravcollector_client.spec
e86b108058c8085c24bab99068508d507a95034f
[]
no_license
bradyzp/GravityCollector-Client
a2f904917c16edcc4eed1be1b4261974258aee01
4008116374621a5d6de6d036300055731f345281
refs/heads/master
2020-04-10T07:25:03.148995
2018-12-12T00:46:41
2018-12-12T00:46:41
160,879,731
0
0
null
null
null
null
UTF-8
Python
false
false
862
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['src\\gravcollector_client.py'], pathex=['C:\\Dev\\PyProjects\\GravityCollector-Client'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], exclud...
[ "bradyzp@dynamicgravitysystems.com" ]
bradyzp@dynamicgravitysystems.com
9fd7e20fe99d276a1d55c53a01429c9d843a8a8a
0e59444628f9a3caffb1a40091ef8f993d040a90
/RNN_version/network_GRU.py
b214827d0a8cc12be198465ce05d5b15c752204b
[]
no_license
woshiyitongshui/CoCoRec
94f644b4173fbe09b31fb40366c4c1157574e8d9
e6746fd43b44e13caeb120bca2d9b4b632ef7941
refs/heads/main
2023-08-16T08:37:46.447761
2021-09-24T15:59:21
2021-09-24T15:59:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,080
py
from torch import nn import torch import torch.nn.functional as F import datetime import numpy as np class GRU4REC(nn.Module): def __init__(self, log, ss, input_size, hidden_size, output_size, num_layers=1, final_act='tanh', dropout_hidden=.8, dropout_input=0, embedding_dim=-1, use_cuda=False, shared_embedding=Tru...
[ "rc7ne@hcdmg3.cs.Virginia.EDU" ]
rc7ne@hcdmg3.cs.Virginia.EDU
a2f371d608c16c9395b500111c9cc9be4f765cc7
e647410f1863643ee79cc926c59478ddce3d44f5
/tests/test_2000_integration/test_1000_client/test_1000_hello/test_1000_base.py
d20911336c775eea76dc3d3cf45944411660672a
[ "MIT" ]
permissive
happyfaults/pywtfrestful
9411e6de9ad1f8bf5c0ae56c9844ce6dd5f9bdd2
3b22a9ed111d88bf1eab533fc2758283943443e0
refs/heads/master
2020-03-27T00:46:10.362960
2018-08-25T21:37:13
2018-08-25T21:37:13
145,645,998
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
import wtfrestful from wtfrestful import pytest @pytest.fixture def app(): from wtfrestful.client.hello import World return World.Load() @pytest.fixture def files_dir(): from os import path return path.join( path.dirname( path.abspath(__file__) ), 'files' )...
[ "happyfaults@gmail.com" ]
happyfaults@gmail.com
6b692d10b1730270b76669e1b35e9650edd7aaf2
01dfd817931803f5ca3a41832171082e84323d9e
/apps/applogReg/urls.py
fd05ed8fe6c674eb9ffb88c415767ef447c8705f
[]
no_license
alialwahish/rep92
41d715b043233a85ce968d835a3c7ba303593445
743e2684783f8f86df9e5b8493ab267679e250bc
refs/heads/master
2022-11-26T21:33:23.643273
2018-05-23T01:22:42
2018-05-23T01:22:42
134,494,751
0
0
null
2022-11-22T01:06:15
2018-05-23T01:20:24
Python
UTF-8
Python
false
false
484
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$',views.index), url(r'^main$',views.main), url(r'^login$',views.login), url(r'^register$',views.register), url(r'^quotes$',views.quotes), url(r'logout$',views.logout), url(r'^add_quote$',views.add_quote), url(r...
[ "bayati.ali@icloud.com" ]
bayati.ali@icloud.com
b52eafaad74302292417a6626ab9bb243557b442
4448149578d2cc25797c4e1db4567a2d88e7db2b
/todoapp/todolist/migrations/0003_remove_todolist_content.py
2761681615f9bba871708d21dd2afb20bdaf6b4d
[]
no_license
pabeli/test-django
07f5fa975ef9e3936bebd7e174bbe0f955e07fe0
143183f9eadf95c2f0419d96411da21fb788df69
refs/heads/master
2023-01-15T12:06:10.028354
2020-11-22T23:13:49
2020-11-22T23:13:49
313,123,209
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# Generated by Django 3.1.3 on 2020-11-19 17:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('todolist', '0002_auto_20201119_1439'), ] operations = [ migrations.RemoveField( model_name='todolist', name='content', ...
[ "paula.lima@rosariosoftware.com" ]
paula.lima@rosariosoftware.com
d768d8a688644896473a941261a6765053258e6c
b1d2e25469a24ab129fa999e35c5dc3b979b61e4
/experiment/Dialogue/dialogue/toolbox/layers.py
fd65cbfdfc69e56afc497484183c640d12222829
[ "MIT" ]
permissive
IndexFziQ/ASER
1525fe67b3d0c13685f364f7d3fa3db252e89541
67dd1a2a25cec175c15675cc1f8a63ca065b447e
refs/heads/master
2021-08-19T18:35:43.567751
2020-07-02T07:11:07
2020-07-02T07:11:07
200,779,420
0
0
MIT
2020-07-02T07:11:08
2019-08-06T04:59:13
Python
UTF-8
Python
false
false
17,740
py
# -*- coding: utf-8 -*- import math import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence def sequence_mask(lengths, max_len=None): """ Creates a boolean mask from sequence lengths. """ ...
[ "myscarlet@sina.com" ]
myscarlet@sina.com
6c4822dbc208ab96cfe62e279653a1092e0b4a38
759c233c8db36c61ec574851e87f3f0010ef9bc9
/grades/grades.py
c1ebdbb40ad72774865dfb8bb6ecd8211b387459
[]
no_license
Ekultek/codecademy
008f582d583baa1da148ccf88c35a2b43d182524
d5216e98590baed1ff1b5f40acc16cdb48aebbe8
refs/heads/master
2020-12-04T18:03:52.163305
2016-08-26T18:27:08
2016-08-26T18:27:08
66,596,301
3
4
null
null
null
null
UTF-8
Python
false
false
867
py
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def print_grades(grades): for grade in grades: print grade def grades_sum(grades): total = 0 for grade in grades: total += grade return total def grades_average(grades): sum_of_grades = grades_su...
[ "thomas.perkins23@icloud.com" ]
thomas.perkins23@icloud.com
8eb5839c081c577236c903b4be8df6e4168d5533
bd0594e618bbf18b67643af9ac95bd4a62127a2b
/blogapp/__init__.py
88be909c0b15a5e4aa76d072db1f457c00ea20ef
[]
no_license
RiturajJain/microblog-flask
cdf888485793c0497278ba89b9d474ce49e89d75
64e1fb055d6c56216b7c02f0b96510f56ca90c05
refs/heads/master
2022-10-12T20:40:35.344141
2019-10-25T07:43:04
2019-10-25T07:43:04
214,363,165
0
0
null
2022-09-16T18:11:28
2019-10-11T06:44:41
Python
UTF-8
Python
false
false
1,640
py
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager import logging from logging.handlers import SMTPHandler, RotatingFileHandler import os app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(ap...
[ "rituraj.jain17@gmail.com" ]
rituraj.jain17@gmail.com
5d339b6997ca8a0f7b740c9d8da3886db9c74e9e
10c4c215819ab846f75b8d7019db23583b3a90b7
/webapp/analyze_gender/analyze_gender/urls.py
a613067bdf82d0361a96fa657f2c0cf703b78667
[]
no_license
viswajithiii/gendermeme
926645c29b65c15bf0113dd7bcb7bbae4951dfeb
7a3740f93b0bdcac6c3d5566fa4704e64ea97779
refs/heads/master
2018-11-03T07:13:14.351044
2017-09-06T06:53:13
2017-09-06T06:53:13
63,036,417
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
"""analyze_gender URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
[ "viswajithiii@gmail.com" ]
viswajithiii@gmail.com
d6466105ed7fcebea67a87df05fdc82930ef9b46
52b5773617a1b972a905de4d692540d26ff74926
/.history/removeBrackets_20200908135618.py
2cc917333227bb1d3ebec239f45ed72cebf22209
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
def remove(str): # find how many make a complete pair # subtract that from the
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
9750cf23cce430194b8b16b976a1ab00836d8e25
59f478f985cb6092fcbd8f08005500cae9070139
/tests/test_plotter.py
d1088d38bf6b2f0d6e86816fc63e52e9e9012b70
[ "MIT" ]
permissive
lexruee/weight-plotter
c48fec1c64257a1c82a36c2d7f9a80bc4f66cb65
0aec15dafe3c36018b7870fea0c8a326b385be02
refs/heads/master
2020-04-14T09:22:27.789428
2019-01-01T23:06:50
2019-01-01T23:06:50
163,758,235
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
import pytest import random from weightplotter.plotter import Plotter def test_create_plotter(): date_list = ["{:02}.01.19".format(x) for x in range(0, 20)] weight_list = [66 + random.random() for _ in range(0, 20)] plotter = Plotter(date_list, weight_list) plotter.plot()
[ "a.rueedlinger@gmail.com" ]
a.rueedlinger@gmail.com
3569db6b3ac516591e08da38e3f8674310ee5db2
2e29ed138ab0fdb7e0a6e87b7c52c097b350fecf
/MechPro Tech/randomElementSets.py
be6c201ac4e08bf05befb843bb10394f4b91df6b
[]
no_license
ronniegeiger/Abaqus-Scripts
1e9c66664bd7dc7e5264bf763f15936eadcff529
c071bbfe0e6c54148dfd4a23f786f017dfef4ae4
refs/heads/master
2023-03-18T06:33:13.690549
2018-08-14T11:37:07
2018-08-14T11:37:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,431
py
# Script to create element sets based on % distribution from textRepr import prettyPrint as pp import random N_150mm = 3591 N_100mm = 7271 N_50mm = 38778 n_200mm = 2020 n_150mm = 3591 n_100mm = 8079 n_50mm = 32315 N_total = float(N_150mm + N_100mm + N_50mm + n_200mm + n_150mm + n_100mm + n_50mm) else...
[ "noreply@github.com" ]
ronniegeiger.noreply@github.com
2ee74236990a3abc8bf5ffd10c5813c776e61eb4
249aba5962579d18e873355fccd4836b5df813b1
/feeback/urls.py
7e2cad14ba207d421859e5adc99dd7c4c4fc1278
[]
no_license
Fabricourt/Web-Theme-Editor-Clone-Wix.com-
35fb13a3f8cabc8c41f39affa1d8ce7f3a72c770
60d1f97c036cc0eb276c43fe31e97f1e78100ed2
refs/heads/master
2022-03-18T00:59:27.991461
2019-09-28T20:26:30
2019-09-28T20:26:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
from django.urls import path from feeback.views import feedback, thankyou app_name = 'feedback' urlpatterns =[ path('feedback', feedback, name='feedback'), path('feedback/thankyou', thankyou, name='thankyou'), ]
[ "Shravan2967@gmail.com" ]
Shravan2967@gmail.com
e46ab1f47eeb5977cfba432993361002ca590d76
12966a1a68006ddbbaedac43c048bbf7b0dfd718
/kMeans.py
95c286d4567ec50a1e7b4afbf0bda4683bac0272
[]
no_license
chandancit668/kMeansAlgorithm
0d260f23bf8033883ce3a7dd22a7a20e5c2ccbaa
d5a1974d0074a6075753e3f07f4beac8735580f6
refs/heads/master
2020-04-23T03:46:49.231471
2019-02-15T16:30:31
2019-02-15T16:30:31
170,887,975
0
0
null
null
null
null
UTF-8
Python
false
false
1,566
py
''' put point 1 in cluster1 from next point compare with every cluster if point is in cluster then compare distance else create new cluster and insert this point ''' import math as m from matplotlib import pyplot as plt cluster_list = [] Points = [ (2, 10), (2, 5), (8, 4...
[ "STUDENT-CIT\\r00171433@com-c127-32913.student-cit.local" ]
STUDENT-CIT\r00171433@com-c127-32913.student-cit.local
c0af9660ddd1c5fc615af6876b5a6cc8e63d5383
410c7c234992bd8a631baa526f6cdd7c4c86befd
/boolean_search/spimi.py
880666267bb0b7326a82321cd730d2080f66c067
[]
no_license
Tann-chen/ir-indexing
16e49efb2119a4b80cf70a25f42301baa10b4efd
c72e04dafbe6f7c2430b68ecb686b504e49e9062
refs/heads/master
2021-08-08T20:41:37.288660
2017-11-11T04:58:14
2017-11-11T04:58:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,128
py
import sys import re import pickle import string import nltk from nltk.stem.porter import PorterStemmer from nltk.corpus import stopwords from fileparser.fileparser import Fileparser from statistic.counter import Counter def estimated_increase_size(token, doc_id): temp_dict = {} temp_dict[token] = doc_id ...
[ "tianen.chen@outlook.com" ]
tianen.chen@outlook.com
d2bc7ee4605a7a5ea67b74c73693739b31b353cd
ac093742b9dcc44f33ffb3babb3f8c00098a45a9
/src/pnt_reader.py
f8455801cabfd797ebca7d49de60b9ef89d61be8
[]
no_license
BSAProject/BSAProject_python
b9b7f9d628b6cbbe24ca22fbfa25dc96283506a3
143da4ba45dd1aade6b1ce18b4163d28bd7b64fd
refs/heads/master
2021-08-08T20:47:58.251340
2017-11-11T06:10:38
2017-11-11T06:10:38
110,277,132
0
1
null
null
null
null
UTF-8
Python
false
false
1,822
py
import os import struct import re from my_config import nrays def get_header(filename): header = dict() header_list = [] f = open(filename,"r") first_line = f.readline() header_re = re.compile(r'(?P<key>\w*)\s*(?P<value>.*)') res_dict = header_re.search(first_line).groupdict() he...
[ "KZhingalov@gmail.com" ]
KZhingalov@gmail.com
03330d2e13d8c0bfeef3ef89cace8e9d5abd39a1
dad4bdba3ee752ab26b42ff957543c98f78da274
/opdracht_010_rekenen/rekenen.py
14c8dddb5b7c35a7ffd22aa2340a17e4a4d04ecb
[]
no_license
DR-84/winc_backend_opdrachten
802789423c3c616d88928b78f6b470010c01702c
358bb3141bdbf450dec2c5cf35daa17a8ff8cc19
refs/heads/master
2022-07-09T11:08:23.353890
2020-05-15T18:57:56
2020-05-15T18:57:56
257,566,421
0
0
null
null
null
null
UTF-8
Python
false
false
1,405
py
""" 1. maak 3 variabelen, elke variabele naam is de naam van een product uit de supermarkt, elk product heeft een prijs in hele euro's. Voorbeeld: `broccoli = 2` / OK 2. tel de producten bij elkaar op, stop de nieuwe waarde in een variabele / OK 3. bereken de gemiddelde prijs van de producten / OK 1. rond dit getal...
[ "58080204+DR-84@users.noreply.github.com" ]
58080204+DR-84@users.noreply.github.com
01879fbd806988a699e8526e05d4f4af5cbbab7b
bab36f0eb5729ca7816015a9c1851c880a0b3c32
/checkout/admin.py
bd9d0963d1d36c66ea4a0405f4b80fb240c4bdc5
[]
no_license
ColinHammarberg/Boutique_Ado
6ef9ab500f59ee54b09a6069fb23dca192928879
8697390dbf409d6316add63efd455c60f375ac38
refs/heads/main
2023-07-20T06:50:29.317229
2021-08-30T08:11:41
2021-08-30T08:11:41
395,569,721
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
from django.contrib import admin from .models import Order, OrderLineItem class OrderLineItemAdminInline(admin.TabularInline): model = OrderLineItem readonly_fields = ('lineitem_total',) class OrderAdmin(admin.ModelAdmin): inlines = (OrderLineItemAdminInline,) readonly_fields = ('order_number', 'da...
[ "colin.hammarberg2@gmail.com" ]
colin.hammarberg2@gmail.com
ca939545e7c8fb9609dfe863f897e95bf1e74436
058d4532c7183ef7fd2ca1cb8372a3b0cf4d8410
/datasets/qa4mre/qa4mre.py
ec00aff75a2f209c457b6f2ffa200bc9e6dec202
[ "Apache-2.0" ]
permissive
darshan-gandhi/datasets
126036049eb9603d96456ad1d2aa0de380f515d5
81bfa2a13cc22522ff0cd84993871ede6a1c5560
refs/heads/master
2023-02-04T23:25:31.230042
2020-12-07T10:47:23
2020-12-07T10:47:23
319,290,441
2
0
Apache-2.0
2020-12-08T06:53:57
2020-12-07T10:56:06
null
UTF-8
Python
false
false
12,672
py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
[ "noreply@github.com" ]
darshan-gandhi.noreply@github.com
739affa96344cfb64530ee80750a907358e85dad
d5481d47bc22db53dd4535af15d8de4111333621
/gfx/draw_bitmap/pygame/main.py
ed4bd00c0d28e6b1f0772baf009fc159a25b05a9
[]
no_license
nurpax/aihiot
ceafa0e48d0b857a9354bb12e22aee0a76d7e5ed
5ac75227130f5d7b65ab62de55356bc27c0a4662
refs/heads/master
2021-01-18T13:51:30.749571
2008-11-16T16:47:01
2008-11-16T16:47:01
38,955,155
0
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
#!/usr/bin/env python # On Debian/Ubuntu you may need to install pygame. Fortunately it's as easy as: # # apt-get install python-pygame # # Thanks to Simo Melenius for contributing this example. import pygame, math from pygame.locals import * def setscreen ((width, height) = (256, 256)): """Update the window ...
[ "jjhellst@60e57fd4-d74e-0410-81ba-8d1bba1f1622" ]
jjhellst@60e57fd4-d74e-0410-81ba-8d1bba1f1622
343ba2e8c8dbc7bad29a57b1416f628800566367
b0bd3342c244ebf30ae5ab29daa078f2b39010f7
/SimpleEmbedModel.py
eea650c39544213933830a7ab48737a89881b223
[]
no_license
naiqili/itime_learning
30a8af7f1234277162ccdd4c69cd9f9a4a7ab412
d9b191bb32a7e49cb99443d7dccea5bb392aee90
refs/heads/master
2021-06-19T04:54:06.239320
2017-06-26T13:35:39
2017-06-26T13:35:39
92,792,780
0
0
null
null
null
null
UTF-8
Python
false
false
4,211
py
import tensorflow as tf import numpy as np class SimpleEmbedModel(): def __init__(self, conf): self.conf = conf self.uif_mat = np.load(conf.uif_path) self.iur_mat = np.load(conf.iur_path) def add_variables(self, reuse=False): conf = self.conf with tf.variable_scope('Fix...
[ "naiqil@student.unimelb.edu.au" ]
naiqil@student.unimelb.edu.au
b8984ab34e7e9be135e98dcc2ccf72559a665801
81d3f10e5b94567f3889612679f99e77f2622551
/certbot-adc/certbot_adc/CadcProviderAliyun.pyi
a812fcf051c37d4fd148003fcd62b0282ca0ab3b
[ "Apache-2.0" ]
permissive
shadowSeventh/docker
323e1d20f7561707a7db9e03e5c7f38ddda03631
ef4f598154ccd76a1a8a3d3cdadaca9ca5a56907
refs/heads/master
2021-06-05T02:07:54.070182
2020-09-11T15:39:40
2020-09-11T15:39:40
115,692,091
0
0
null
null
null
null
UTF-8
Python
false
false
827
pyi
# -*- coding: utf8 -*- from certbot_adc import CadcProviderBase from aliyunsdkcore.client import AcsClient class CadcProviderAliyun(CadcProviderBase): acs_client: AcsClient def __init__(self, acs_client: AcsClient): ... def get_owned_domain_info(self, main_domain: str) -> dict: ... def owns_domain...
[ "949895691@qq.com" ]
949895691@qq.com
1f7b6aff08eefda2618ab492eb5dbc5971b01eba
8d80cafc835f65ed04dc6cf44356b25224ec91c4
/lab3/final/Source/scripts/evaluate_for_all_combinations_knn_naive_bayes.py
23dbfd09e85fa5b53d177b4c9116ee925db066c0
[ "MIT" ]
permissive
etzinis/pat_rec_ntua
2a433364580629d0a52193b867946f29f7d90377
e565b791206a6a1ab44630db519fd54f62f6e3e0
refs/heads/master
2021-08-25T16:44:43.884438
2017-11-21T12:26:19
2017-11-21T12:26:19
104,560,265
2
0
null
null
null
null
UTF-8
Python
false
false
3,825
py
import sys, os, re def extract_results(filename): f_in = open(filename) text = f_in.read() f_in.close() results = re.findall('^Weighted Avg\..*$', text, flags=re.MULTILINE) try: test_line = results[-1].split() accuracy = float(test_line[2]) f_measure = float(test_line[6]) except: print "No match for ...
[ "etzinis@gmail.com" ]
etzinis@gmail.com
37c4a63a6bd370520d50ea2579440b3a98dc9561
2d3dcc2aa265ec7779196a4a626b05353d3a98a2
/day07/list-tuple-dict-set的文件操作.py
1a96386d0b28e3e3713cc7fd92702ce7131faece
[]
no_license
evanqianyue/Python
b6c19710bad6d3ae4c8a48ecc1aec4c91bfe2275
ea3a1fb501bbf835b09cc75de7657b616ece9865
refs/heads/master
2020-04-03T01:46:29.529242
2018-11-11T04:47:02
2018-11-11T04:47:02
154,939,038
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# !/usr/bin/env python # -*- coding:utf-8 -*- """ @ Author :Evan @ Date :2018/10/30 11:25 @ Version : 1.0 @ Description: @ Modified By: """ import pickle # 数据持久性模块 import json myList = [1, 2, 3, 4, 5, "he is good"] with open(r"D:\file\write2.txt", "wb") as f: pickle.dump(myList, f) with open...
[ "evanqianyue@163.com" ]
evanqianyue@163.com
57b900f082ef3e189f5857a9b98bd202478c3803
5e89e2c53a6b80971456ef564ecf026a35d8cff2
/train.py
40d2445d3973df64141946c16b40a1c14dce49a7
[]
no_license
VHugoBarnes/plant-disease-detection
c41f75f2cdda53fc35b897c0f5795f6181ac68b3
799c032c32d144ad6a76ba317d876a8f4aa1e38c
refs/heads/main
2023-03-23T05:54:49.685893
2021-03-21T21:43:03
2021-03-21T21:43:03
350,178,517
0
0
null
null
null
null
UTF-8
Python
false
false
2,364
py
import numpy as np import pathlib import cv2 import tensorflow as tf import matplotlib.pyplot as plt import os from tensorflow.python.ops.gen_batch_ops import batch filepath = os.path.dirname(os.path.abspath(__file__)) training_img_dir = filepath + '/cassava/train' test_img_dir = filepath + '/cassava/test' datagen ...
[ "hugovg799@gmail.com" ]
hugovg799@gmail.com
c0b50ff294e715e35366a0be9bc0deae46b6eced
a203ace8d20288e6420bb32c3610c0d58c0212e9
/RcCar_makeClass_Python/simplecode_raspberrypi_JMOD.py
087c50c1789baad6767a8a7a7c6625605e0c89dd
[]
no_license
lejk8104/ControlofRCcar-Raspberrypi
6b16246d8a3d593702693028ab95eaea200717e0
3c39a843b951b0058ab33a25a06378a71baf0ca0
refs/heads/master
2022-08-30T15:10:08.069560
2020-05-23T14:53:04
2020-05-23T14:53:04
258,775,984
0
0
null
null
null
null
UTF-8
Python
false
false
6,996
py
import RPi.GPIO as GPIO from time import sleep import sys import numpy as np # ============================================================================= # using JMOD-Motor-Drive #this version is able to control to two motor plz use it # =============================================================================...
[ "lejk8104@gmail.com" ]
lejk8104@gmail.com
82608d76f5244b969a864dbae2c8206a43df6b1d
a205f15083877371f9a45c3c36fb7dd497f63b35
/表白神器.py
e34f9029c5e8b7bced7cb2bd1902267763ffd327
[]
no_license
2000guweiqiang/pycharm
2d728ca52aea8ecd2dd0b21a9101f17b8dd03bcd
38f917b083d0db078c2458e4abf81abeaf2c2d1e
refs/heads/master
2020-04-19T23:51:20.168048
2019-03-03T06:07:30
2019-03-03T06:07:30
168,507,472
1
0
null
null
null
null
UTF-8
Python
false
false
2,096
py
#引用tkinter工具包 from tkinter import * # all = [a,b] #from tkinter import messagebox #定义关闭窗口提示 from tkinter import messagebox def closeWindow(): messagebox.showinfo(title="警告",message="回去,必须选一个") return #定义喜欢的提示按钮 def Love(): love = Toplevel(window) love.geometry("300x100+250+260") love.title("我也...
[ "guweiqiang22@163.com" ]
guweiqiang22@163.com
d89def813cc2f5627c5cc5f591b3ff3acea8ce8d
e4386d9b45366b0c2b03c1807ed5a8cbfb288c05
/04_Django_first/mysite/elections/views.py
39b0e9d9dec91b3c23ee3469965ca28976b8bdc9
[]
no_license
tlarbgus89/Django_first
ce0d01a44a77270ad34b8e391d3bb50e8c8b940a
a3f2551a8fdcad23a3c6e9f2ea9cd56caedd1ba3
refs/heads/master
2020-04-28T06:06:46.273089
2019-03-11T16:58:03
2019-03-11T16:58:03
175,044,421
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
from django.shortcuts import render from django.http import HttpResponse from .models import Candidate, Poll, Choice import datetime # Create your views here. def index(request): candidates = Candidate.objects.all() context = {'candidates' : candidates} return render(request, 'elections/index.html', cont...
[ "noreply@github.com" ]
tlarbgus89.noreply@github.com
ac2f389497f158fe59cc5e3f600d4fd7a0de203e
2316ce8a21d44a5d09284968ef42530633dc10d2
/sample_code/ep188/rev01/foo.py
0576101a0190082ed83986d6e8f76bcf20481717
[]
no_license
AlexanderWinkelmeier/explains
160de2c41fc5fc0156b482b41f89644dc585c4f3
d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc
refs/heads/master
2023-07-30T04:55:31.234482
2021-09-15T02:59:42
2021-09-15T02:59:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
x = 1 def increment_thing() -> None: global x x += 1 def get_thing() -> int: return x
[ "int3l@users.noreply.github.com" ]
int3l@users.noreply.github.com
82c0ad85c74d804ea6724faf9252d85e73c347c6
b2239863c3963431d1229e7e08f4bca024818210
/coupon/admin.py
3af6c36f0f14674fac3948a4f2522284eff53120
[]
no_license
csdusunlight/qudao
ed4a4aaaf3a7a1c64aed3ade5c8eda32aa7f2c96
74c7ef441326014740df9563fbbf2c0c5e57f1ae
refs/heads/master
2021-06-16T00:44:11.260952
2018-06-13T01:34:34
2018-06-13T01:34:34
102,178,218
1
1
null
null
null
null
UTF-8
Python
false
false
171
py
from django.contrib import admin from coupon.models import UserCoupon, Contract # Register your models here. admin.site.register(UserCoupon) admin.site.register(Contract)
[ "lvchunhui7@126.com" ]
lvchunhui7@126.com
5ba52dcc4a35001019d5785ae919e60acd7d8f5b
7f371e1fbd14150ad7e556d5cec2ed92ca62137f
/Attn.py
ebbaf9e159cacc1aab83c9d10f91fd0e62856578
[]
no_license
why-2004/Structured-Content-Preservation-for-Unsupervised-Text-Style-Transfer
94821c2ef4f18dd7efc851c0a01f5f279dbb9154
8476a164130638b343f0799f6cbfb8fe24e53956
refs/heads/master
2023-04-01T11:33:40.368997
2021-04-08T00:25:25
2021-04-08T00:25:25
355,437,894
0
0
null
2021-04-07T06:34:46
2021-04-07T06:34:46
null
UTF-8
Python
false
false
1,063
py
import torch from torch import nn from config import Config import torch.nn.functional as F import math class Attn(nn.Module): def __init__(self,hidden_size): super(Attn, self).__init__() self.hidden_size = hidden_size self.attn = nn.Linear(self.hidden_size * 2, hidden_size) self.v =...
[ "noreply@github.com" ]
why-2004.noreply@github.com
8911baef08bda0f8de3e8966b0c08a82dc27b42d
55f2a837a7a75d25d6af14106616e6107d67703b
/Python Programs/Simple interest.py
5b432dfc1fba5934794c56bb8fa6163b53a45d39
[ "MIT" ]
permissive
SpooderManEXE/Hacktoberfest2020-Expert
fd63d011478fa25b8437fab0917cc6e21ff3bd41
aa7aa4b22c52cee3b00e900d87a93284dea351de
refs/heads/master
2023-08-11T12:21:11.615267
2020-11-02T02:01:59
2020-11-02T02:01:59
292,271,265
79
328
MIT
2021-10-01T03:26:08
2020-09-02T12:03:46
Jupyter Notebook
UTF-8
Python
false
false
234
py
def simple_interest(p,t,r): print('The principal is', p) print('The time period is', t) print('The rate of interest is',r) si = (p * t * r)/100 print('The Simple Interest is', si) return si simple_interest(8, 6, 8)
[ "noreply@github.com" ]
SpooderManEXE.noreply@github.com
8848e453bde68ab1159546add3177a390482d288
8600bfffe2aac43037a96c27f78d8121a4537b8e
/magenta/models/music_vae/chord_utils_test.py
3cef1de968206ce109bbcb51e35b6f45f31b8c52
[ "Apache-2.0" ]
permissive
jesuscast/magenta
23ff7e1bb817d4704c05069ba044277162046c1b
7fc059eb9b5a1093465f61353eb79512ee443204
refs/heads/master
2021-04-28T19:38:45.950265
2018-02-18T00:34:54
2018-02-18T00:34:54
121,902,436
1
0
null
2018-02-17T23:48:24
2018-02-17T23:48:23
null
UTF-8
Python
false
false
2,303
py
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "noreply@github.com" ]
jesuscast.noreply@github.com
50ed1f8d179e861be01c2f0586c2702d027fd1a3
d641d02330e8e4f3f73d86da36016a9325d2d41b
/src/read_csv.py
518e1f24fe6886018fc13807fb59dd8ee9dec97b
[]
no_license
Lemonchasers/msds510
5d11e7239b8cdabbe841f89b9aacd4fc9797ecb9
0fcdd2adb88ef31ff9647dbd022602d14b0011ec
refs/heads/style-and-documentation
2020-03-23T06:44:27.110096
2018-07-22T22:51:29
2018-07-22T22:51:29
141,053,549
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
import sys input1 = sys.argv[1] def main(input1): with open(input1, 'r') as c: rows = c.readlines() print(rows[161]) if __name__ == '__main__': main(sys.argv[1])
[ "clemons_12@hotmail.com" ]
clemons_12@hotmail.com
ffbbd117f421b8881da5003cf12d16b21e707021
30177e1ac1fb6533ca61a5ba190b02236d59a6a0
/Code/Methods/EliteSelection.py
ac900be44e94fb57ce1eea962ba9a866c54694cc
[]
no_license
PiotrKaszuba/AEM
8541fbef2e29b23daa16365846fe5b175c26b587
2959e973870a2bfc1ce5672729b8cd2d843e486f
refs/heads/master
2020-04-25T06:51:40.724405
2019-06-07T19:53:31
2019-06-07T19:53:31
172,594,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
import time import numpy as np from operator import attrgetter class Elite: def __init__(self,start_population,population_size): self.population_size = population_size self.population = self.get_pure_population(start_population) def get_pure_population(self,population): elite_pop = so...
[ "sebastianniespodziany@gmail.com" ]
sebastianniespodziany@gmail.com
0ca716046914007256d10bbb37b5f1a4cafa8580
71b7b6d84a61f514b038fac7741e6d16973fcaa9
/build/object_manipulation_msgs/catkin_generated/pkg.installspace.context.pc.py
3e6fd0a4ff97ee24b62a27bea0521aebb8561551
[]
no_license
YiKangJ/perception_driven_ws
15c02e523f1a708fe63b216d73019c8c2bde97a1
0a0f8fcbe3f5fed26439f449999b85f1e38c0f70
refs/heads/master
2020-04-01T19:47:48.372111
2018-10-18T06:17:57
2018-10-18T06:17:57
153,571,793
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/jyk/perception_driven_ws/install/include".split(';') if "/home/jyk/perception_driven_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;actionlib_msgs;std_msgs;geometry_m...
[ "jinyikangjyk@163.com" ]
jinyikangjyk@163.com
373e4f049cea8386fbd57e288660868ad6f2a5ab
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/tests/unit/modules/storage/netapp/test_na_ontap_net_port.py
07ea6a104c088e71872248865edf07e619628ac8
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,647
py
# (c) 2018, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' unit test template for ONTAP Ansible module ''' from __future__ import print_function import json import pytest from ansible_collections.ansible.community.tests.unit.compat import unittest from an...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
8f2f849bee56e5919c8ec77b4d3c77eb9ae38648
cde0ef9b3f4964f34d1c27a5e4c25fbbd58619bc
/backapp/migrations/0001_initial.py
d683ea03fd447bae10b64edf79234ffed3c8ef76
[]
no_license
DoDoDoHee/hackerton_final
eed769ba927d6641cd5d8b0690173d3306e13de0
ed807572b5102abcb6172a406dff8073d37b8da1
refs/heads/master
2020-07-12T19:19:05.582468
2019-08-28T08:55:41
2019-08-28T08:55:41
204,889,333
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
# Generated by Django 2.2.4 on 2019-08-04 15:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='goods', fields=[ ('id', models.AutoField(au...
[ "emma970326@likelion.org" ]
emma970326@likelion.org
3d815cf4c784f1a2be9517e8cc5fba02c7679106
23753e7083bd8d20e1c83c30fae3bb3afc64fb63
/ESRGAN-PyTorch/train.py
916ea2328fe4f47ede8be13480c1c9d2c08a6c46
[ "Apache-2.0" ]
permissive
anneouyang/noisy-superres
1df471f2617d95cdaf8bea6535e5291800d4be62
9ebced948813ec9e2fc37b00914089152442b29e
refs/heads/master
2023-04-19T18:16:37.352510
2021-05-20T15:16:13
2021-05-20T15:16:13
361,929,234
2
0
null
null
null
null
UTF-8
Python
false
false
30,686
py
# Copyright 2021 Dakewe Biotech Corporation. 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...
[ "howardzh01@github.com" ]
howardzh01@github.com
43ba515a8423b274561cd976f5a2b91fcaff4a28
f2a7d3a0fa0595dc3ff76db85c6129c50121448f
/accounts/migrations/0001_initial.py
aee90def1335335ea1ef5760bb00ef3638638dae
[]
no_license
pokhrelhari1/venuebackend
b40397250e7b0457da2a7884262a2debc5b9de96
0e4751d76555349a8d374b7f86f7defa6f4d62d9
refs/heads/main
2023-04-12T12:40:16.642760
2021-04-24T08:07:01
2021-04-24T08:07:01
357,931,235
0
0
null
null
null
null
UTF-8
Python
false
false
7,382
py
# Generated by Django 3.1.2 on 2021-03-29 18:34 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL)...
[ "pratimachaudhary84@gmail.com" ]
pratimachaudhary84@gmail.com
f599258999eedcc69f5f15a4b3405581416ae76a
21b19597dfab7ab31cb1f7ddc4d7fbe732a8fc68
/behavior_test/src/core/__init__.py
215284ab157e558fb12ae5690f1dda32df846e1f
[]
no_license
Gao-guang/behavier
58bd0a1f695cfffcc0b48f2cb15c04896e67025b
b27465c3afb76be38a794572123ab6264f75aced
refs/heads/master
2023-01-23T01:26:30.294935
2020-11-28T15:01:56
2020-11-28T15:01:56
314,163,394
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
from core.dblackboard import DBlackboard from core.skill import Skill, Do, Complain from core.role import Role __all__ = ( Skill, Do, Complain, DBlackboard, Role, )
[ "gaoguang@zhejianglab.com" ]
gaoguang@zhejianglab.com
1d4c3398dbe8500a5f40bba7900cef9ef5474a8b
13224c0b8f8f441dc335254ca32d1093984af18c
/snake_classless.py
946f0d3a4218ed1215f861152987be4f32043f5a
[]
no_license
mrdavidoneill/snake
204bdf137b3e293d353baa6a0aea459b9a23bd7e
a8ae92ca63961dd68bd1ff85ad6e8b5fe060332a
refs/heads/master
2020-06-25T09:48:33.839565
2019-08-22T08:39:30
2019-08-22T08:39:30
199,276,445
0
0
null
null
null
null
UTF-8
Python
false
false
8,710
py
# A version of snake coded without classes # import pygame, sys, random # sys for closing programm. random for Apple position from pygame.locals import * # for using pygame keywords like QUIT or KEYDOWN # =========== User changeable data =========== # GRID_SIZE = 10 ...
[ "mrdavidoneillll@gmail.com" ]
mrdavidoneillll@gmail.com
34df4ab23e66034adc09b4cd41068f9486653996
d6f9e6c3b3bc21aba3f5b41ea7345dacd8fa9eb6
/tests/test_disk.py
7a7dfce7b5c401a756c081ebeefebae4d0a5148d
[]
no_license
Neterukun1993/homebuilt-rdbms
b0cb61a965535a85eb8a23371d1218f8853e84f3
e02481323fba7c531930b081444552be716a3d17
refs/heads/main
2023-07-10T01:16:35.545977
2021-08-10T19:30:10
2021-08-10T19:30:10
391,050,513
0
0
null
null
null
null
UTF-8
Python
false
false
1,468
py
import pytest from src.disk import PageID, PAGE_SIZE, DiskManager class TestPage: def test_create_page_id(self): page_id = PageID(10) assert page_id.to_int() == 10 def test_page_size(self): assert PAGE_SIZE == 4096 def test_compare_two_page_id(self): page_id = PageID(10)...
[ "v5del11138@gmail.com" ]
v5del11138@gmail.com
9caa7e62a296cb9d70826a994820fc938477ba8b
eeb5cc492fa7e217fd865c94b1263eeda8d162b3
/Projectile.py
7884aa7c9b4bc3440ffe196c4cf603b9b04c6dd9
[]
no_license
anubhavsengupta/collosaladv
e4fc0c1d5717b08676fe80af36b596b331109e68
bf870e114705dd6741b75b6abb271ca1cebbc195
refs/heads/main
2023-03-06T23:23:53.636997
2021-02-19T17:29:02
2021-02-19T17:29:02
338,611,015
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
import pygame class Projectile(object): def __init__(self, x, y, vel, radius, facing): self.x = x self.y = y self.vel = vel self.radius = radius self.facing = facing def draw(self, win): pygame.draw.circle(win, (0, 0, 0), (self.x, self.y), self.radi...
[ "noreply@github.com" ]
anubhavsengupta.noreply@github.com
98b39e3ef7ac3b4c4feba75480f8ad386b37f1ab
e9214d299f2d306ffeed378824b1326801707cfb
/venv/Scripts/pip-script.py
e44d325c57c7011d6cb733850d621ca1cb2071fd
[]
no_license
DiliSimon/RideRateRecorder
35df8bdf91ca163d14966b62bf036a799bdd8ea7
f50d874df3445a988c1a8a5333d70270b06f1b71
refs/heads/master
2020-05-27T12:22:47.002497
2019-05-27T01:50:17
2019-05-27T01:50:17
188,615,484
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
#!D:\RatesRecorder\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __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.exit( ...
[ "Gtingwen@outlook.com" ]
Gtingwen@outlook.com
2593204861d0c06350f0a813e14f83118c9aec92
f3928b60d809643b40d683af38ba3b692527b2f8
/python/383.py
8931c8032aeb6aa406a07b2ce4d21105eede6a43
[ "MIT" ]
permissive
SeisSparrow/Leetcode
8bd2ae697dbdcf1e9e2ef9833e07fadf79edf817
10535ca41e51c0d2d4015e53da7efdca43000c4c
refs/heads/master
2021-01-20T09:07:45.476058
2018-06-17T00:19:40
2018-06-17T00:19:40
90,226,248
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
class Solution(object): def canConstruct(self, ransomNote, magazine): """ :type ransomNote: str :type magazine: str :rtype: bool """ N1 = len(ransomNote) N2 = len(magazine) ran_up = sorted(ransomNote) mag_up = sorted(magazine) output = True flag = 0 if N1 > ...
[ "noreply@github.com" ]
SeisSparrow.noreply@github.com
e6b8fde538cec96db8cef72026689d663d32259e
efeccd1f4452edbd8251fb3c111a696a9d8515c3
/helloWorld.py
0281b6ea4f5feb30a48f53d4f5f69b5debcb9d45
[]
no_license
Harnet69/HomeWork1
d50e2dc773bf6a8c33fcabfd9727fc425dbfc4ae
8278e85d4889a7dd9f118a8a85160359578d2870
refs/heads/master
2020-07-25T11:02:23.366491
2019-09-17T09:02:53
2019-09-17T09:02:53
208,267,231
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
import sys def main(): # print a welcomming message in a terminal, according to existance argument if len(sys.argv) == 1: print("Hello World!") elif len(sys.argv) == 2: print(f"Hello, dear {sys.argv[1]}!") else: print("Given too many arguments!") if __name__ == "__main__": ...
[ "harnet69@gmail.com" ]
harnet69@gmail.com
fc15793a804a48945b401bf8a2d206fbbc12f401
41fb7cef4470e387e05afd17e7890d12461f9f94
/gensokyor_XiongFeng_18052229/2020/0319/devide_issues.py
6641f3508582f318553d5b9d77f72eee1c69892f
[]
no_license
xiaocaiji233/cxsj2020shang
b4f16cb6506e7935e8f43cc7a4d2bf3e36447332
3b41075796f7b0f7b2f87a690bca2278babbbae7
refs/heads/master
2021-01-13T19:50:08.875049
2020-05-26T11:58:19
2020-05-26T11:58:19
242,474,858
0
1
null
null
null
null
UTF-8
Python
false
false
1,116,995
py
def match(issues, time): # print("?") matched = {} time.sort() for i in time: in_time = [] for j in issues: if i > j['created_at']: in_time.append(j) issues.pop(issues.index(j)) # pprint.pprint(i) matched[i] = in_time ...
[ "386098423@outlook.com" ]
386098423@outlook.com
b3254b2c8833794d441184da5193c9576d7167d5
345c2939e0fad1ad046e90d828135c690e8e5c73
/env2/bin/wheel
be1597a96de07bb9f1be41d758b4f17cf0d17b4d
[]
no_license
suminkimm/Blog
33bef2ca9468e5ed90352966c8528ef2968e7843
3e572543985de1a57ba49b1c1bb373c1564048f0
refs/heads/master
2020-04-26T22:51:03.434340
2019-03-05T06:16:24
2019-03-05T06:16:24
173,885,617
0
0
null
null
null
null
UTF-8
Python
false
false
265
#!/Users/SuminKim/Documents/College/RUMAD/AccelProject2/env2/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "SuminKim@nbp-80-120.nbp.ruw.rutgers.edu" ]
SuminKim@nbp-80-120.nbp.ruw.rutgers.edu
34c8f2b1fad1c29421bec555fae6b807a7102a8e
599709e7687a78f92b268315590d6ad750ce97d6
/calc/opt_h_pi/1skp_l/gto_part_shift/w1_dense/search/calc.py
2e3b85307b244e4655cabc6fd13518b2f7d18fa3
[]
no_license
ReiMatsuzaki/cbasis2
b99d096150d87f9301ed0e34f7be5f0203e4a81e
86f21146fab6fc6f750d02fb2200ea94616ca896
refs/heads/master
2021-01-19T23:15:32.864686
2017-04-27T07:29:26
2017-04-27T07:29:26
88,953,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,798
py
import sys import numpy as np import pandas as pd from itertools import product, combinations import subprocess sys.path.append("../../../../../../src_py/nnewton") sys.path.append("../../../../../../r1basis") from r1basis import * from opt_green import * ## one GTO optimization value is 0.0105604,-0.0548991 with open...
[ "matsuzaki.rei@sepia.chem.keio.ac.jp" ]
matsuzaki.rei@sepia.chem.keio.ac.jp
436f30a2498d842a3d072fce670e18d2b9ddc915
879b8172ac2714b0178918558185a27f3a4c0a24
/monomial.py
108e21d2f0ce968a8d7691376b4fb2d994be54df
[]
no_license
SvetlanaNesterova/Polynomials
b2dc23167c90cda21a16837e5ccda51c65b29dc4
51c2db3138ebee138bdf314cad9943fc3b3eb8ea
refs/heads/master
2021-08-30T12:12:29.994821
2017-12-17T22:14:50
2017-12-17T22:14:50
109,090,450
0
0
null
null
null
null
UTF-8
Python
false
false
4,784
py
EPS = 1e-10 def try_as_a_number(value): """ If value is int/flout or string representation of int/float number, returns this int/float number, else returns None """ if isinstance(value, (int, float)): return value elif not isinstance(value, str): return None try: re...
[ "nesterova.svetlanka@yandex.ru" ]
nesterova.svetlanka@yandex.ru
7885a77c550774f08a3cff1f19f60dcc326bf6ef
f780b05549bea9ecb0b80e4e9ea63376aa59f962
/iplauction/migrations/0004_auto_20160305_1217.py
8a77f654b1476c81a8fd5872f2939d3becf242b4
[]
no_license
PunitGr/django-kickstart
ebff3e7e60a27091468f45a35e3b562954609168
5e8a21b0408ade1be4860deb3bc2cb80f033b159
refs/heads/master
2021-01-24T20:26:06.970847
2016-03-07T14:33:17
2016-03-07T14:33:17
52,964,874
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-03-05 12:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('iplauction', '0003_auto_20160305_1102'), ] operations = [ migrations.AddFiel...
[ "groove679@gmail.com" ]
groove679@gmail.com
b509f60a2e791fe632fece0b20093daef6fd98f3
ee7319fb858da518f7c572b524e9445bf092b384
/wsgi/static/wsgi/static/profiles/urls.py
1878f80637f57f734627460022b52948cd8f6094
[ "Apache-2.0" ]
permissive
telbohtimy/Vygit
fa1653b6b3454e465e10f08e7e4d7bb4fdf6c9d8
2858a71a658368e86ef789114144ce68c06dd4c5
refs/heads/master
2021-01-10T02:58:44.461300
2018-10-17T21:18:09
2018-10-17T21:18:09
51,856,546
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
from django.urls import include, path from . import views urlpatterns = [ path('login', views.loginUser, name="login"), path('register', views.register, name='register'), path('logout', views.logoutUser, name='logout'), path('<int:id>/', views.authorPage, name='authorPage'),#broken path('editProfile/<int:id>/'...
[ "elbohtim@ualberta.ca" ]
elbohtim@ualberta.ca
402200e5c6c3d708a3beb5e97137c59c1ddd8bd8
cf5f24e5a32f8cafe90d4253d727b1c0457da6a4
/algorithm/boj_21317.py
55af763cbe118028143f347a61cddc9f96f9e1d5
[]
no_license
seoljeongwoo/learn
537659ca942875f6846646c2e21e1e9f2e5b811e
5b423e475c8f2bc47cb6dee09b8961d83ab08568
refs/heads/main
2023-05-04T18:07:27.592058
2021-05-05T17:32:50
2021-05-05T17:32:50
324,725,000
0
1
null
null
null
null
UTF-8
Python
false
false
624
py
import sys input = sys.stdin.readline def solve(curr, ok): if curr > n : return inf if curr == n: return 0 if dp[curr][ok] != inf: return dp[curr][ok] dp[curr][ok] = solve(curr+1,ok) + jump[curr][0] dp[curr][ok] = min(dp[curr][ok] , solve(curr+2,ok) + jump[curr][1]) if ok: dp[curr][ok] = min(dp[...
[ "noreply@github.com" ]
seoljeongwoo.noreply@github.com
9f0bfb7dfd472ab752aaa8f9d61911ecfdfab4ff
46a0effe096bf6f8fece98a352318c63ef5556d9
/mahjong/consumers.py
6f67489c805a87052a23662558b3f224b98632b7
[]
no_license
lzy0411/trymahjong
062328d28da893bcb844040d564f968c18d82ed7
3e4b521a479b9cdb4e157964d5ffeb0aa1168816
refs/heads/main
2023-01-23T03:45:01.846396
2020-12-06T00:29:00
2020-12-06T00:29:00
318,862,638
0
1
null
null
null
null
UTF-8
Python
false
false
4,613
py
# chat/consumers.py import json from channels.generic.websocket import AsyncWebsocketConsumer class ChatConsumer(AsyncWebsocketConsumer): async def connect(self): self.room_name = self.scope['url_route']['kwargs']['room_name'] self.room_group_name = 'chat_%s' % self.room_name # Join room g...
[ "zeyuanli@andrew.cmu.edu" ]
zeyuanli@andrew.cmu.edu
acfa9a779a3742ab9dd0a91275fe85db4de5017d
b4c95c1ef240faa56954a1027e6f2590cff6f8ad
/exercises/django_rest/rest_enviro/lib/python3.7/functools.py
7d3af7b955baea8ada4b5f6191321b48117321fc
[]
no_license
jcarter0149/python
e0243d964b0d8269d772f0dd349306340debda45
611f91b7dc8d4449a64c7553a4c9f3c67d006713
refs/heads/master
2020-03-22T11:47:08.601622
2018-07-20T16:15:27
2018-07-20T16:15:27
139,995,956
0
0
null
null
null
null
UTF-8
Python
false
false
60
py
/Users/jake/.pyenv/versions/3.7.0/lib/python3.7/functools.py
[ "jacobraycarter@gmail.com" ]
jacobraycarter@gmail.com
020cc492835e3f6213e03d6a0067ede9641141eb
9c73dd3043f7db7c9ec76d560484e99ad134fdb6
/students/douglas_klos/lesson05/activity/code/rdbms_api.py
1d84511af15a33b1c59531bb3f00eef544715492
[]
no_license
UWPCE-PythonCert-ClassRepos/py220-online-201904-V2
546b316025b680ca28d24b523663095398616b13
ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56
refs/heads/master
2022-12-10T03:14:25.514630
2019-06-11T02:14:17
2019-06-11T02:14:17
179,139,181
1
19
null
2022-12-08T01:43:38
2019-04-02T18:49:10
Python
UTF-8
Python
false
false
985
py
class BaseModel(Model): class Meta: database = database class Person(BaseModel): """ This class defines Person, which maintains details of someone for whom we want to research career to date. """ person_name = CharField(primary_key=True, max_length=30) lives_in_town = CharField(m...
[ "dougklos@gmail.com" ]
dougklos@gmail.com
0cf29b631841299753c6e7ed112b5e5a33914a43
d4c892d340ebb2e92843f2f941fe804f80556b7e
/PythonSE/PythonDay09-1.py
d2a0cbff47e9ecf1dd32435b490e19d943b2bdb9
[]
no_license
Bestlm/PythonTest
4bcc6fc2c9c7cf76dd0875a4fc91aeeb7626d645
b25c7fe18163e2a51d259fba18a2f9059f030713
refs/heads/master
2023-06-13T23:27:45.708297
2021-07-12T09:31:06
2021-07-12T09:31:06
375,107,469
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
""" 大小写切换 capitalize首字母大写 title 单词首字母大写 upper 全部大写 lower 全部小写 """ s1 = 'hello,world' # 首字母大写 print(s1.capitalize()) # 单词首字母大写 print(s1.title()) # 全部大写 print(s1.upper()) # 全部小写 print(s1.lower()) """ 查找字符串 find index """ s2 = 'hello,world' # find方法从字符串中查找另一个字符串所在的位置 # 找到了返回字符串汇总另一个字符串首字符的索引 print(s2.find('or')) print(s...
[ "bestlm3034@gmail.com" ]
bestlm3034@gmail.com
c510c84e3d299fcf9a1f405cea1f88a73a0aef5d
f459920d50938d166a33d1052061c35f96fe3c8f
/backend.py
b03db87c1eb2fead3833060fcb36a887ec124983
[]
no_license
lgvelasco/MovieDataBase
9d80d13d275d63826ad5d34f0b5a5286fb0676f5
4acbedc232554e2d7a2de4a4f3d05d54061ad01d
refs/heads/master
2020-04-06T20:28:14.108816
2018-11-15T21:11:55
2018-11-15T21:11:55
157,773,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
import sqlite3 class Backend(object): def __init__(self): db = sqlite3.connect("movies.db") cur = db.cursor() cur.execute("CREATE TABLE IF NOT EXISTS movie (id INTEGER PRIMARY KEY, title TEXT, director TEXT, year INTEGER, lead TEXT)") db.commit() db.close() def add(sel...
[ "guillermo.velasco98@gmail.com" ]
guillermo.velasco98@gmail.com
d0a8ac9b4c6333860be9b8bae7bd5aa8b69e8c72
bc847cdbb54179eae1b7bfb7a376ada4b9f5ad7e
/src/OLD_split_dataset.py
308f338381286d1e56ef2c2691d9c1d6db5febfd
[]
no_license
peternara/FashionVisualExpl-recommend
7df351e9ddd0deccd8b0eb0d780649fa8f88a648
a7ca07f2e43fd44dbc8b50bcccdb24326a66aed6
refs/heads/master
2023-04-09T21:02:43.073339
2021-04-10T14:52:27
2021-04-10T14:52:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
from config.configs import * import pandas as pd import argparse import random random.seed(1234) parser = argparse.ArgumentParser(description="Run dataset splitting.") parser.add_argument('--dataset', nargs='?', default='tradesy', help='dataset name') parser.add_argument('--validation', type=bool, default=False, help...
[ "d.malitesta@gmail.com" ]
d.malitesta@gmail.com
cc925d4a740a8e784da078d307a4fe879207f224
663ba13645919e36af1111bf4c843ec4fef1462a
/pythonProject/venv/greedy01.py
e26e39d2bbf4e224483da525a1eb98043cc8f512
[]
no_license
Iamthankyou/buff
abc4f4a763eeeb5b5dfcdfe6ce7f1ce4e1b4a19a
405a0a17569d6a91620d63a0c95b3c1fe1dce537
refs/heads/master
2023-02-04T06:06:03.585988
2020-12-27T22:59:45
2020-12-27T22:59:45
289,721,108
0
2
null
null
null
null
UTF-8
Python
false
false
448
py
class event: def __init__(self,u=0,v=0): self.start,self.finish=u,v if __name__ == '__main__': n=int(input()) E=[] for _ in range(n): u,v=map(int,input().split()) E.append(event(u,v)) E.sort(key= lambda x:x.finish) dem=0 time = E[0].start=1 counter = 0 fo...
[ "quangduynb00@gmail.com" ]
quangduynb00@gmail.com