blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
e713e3b650aa8bcd75898ce8b9478770267dcfe3
af9d9043a83a751f00f7b805533d87ccce330d21
/Portfolio/Datawiz/test_task/test_task/settings.py
934b25bd3018fa1bfebe472ca3678cf757ebf827
[]
no_license
HeCToR74/Python
e664b79593a92daa7d39d402f789812dfc59c19f
f448ec0453818d55c5c9d30aaa4f19e1d7ca5867
refs/heads/master
2023-03-08T13:44:19.961694
2022-07-03T19:23:25
2022-07-03T19:23:25
182,556,680
1
1
null
2023-02-28T15:30:01
2019-04-21T16:26:48
HTML
UTF-8
Python
false
false
3,363
py
""" Django settings for test_task project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ ...
[ "noreply@github.com" ]
HeCToR74.noreply@github.com
f6256f707e0944be2fc80c00428ef105ef18d54a
44eb88d1e3d9aa4bab66eaa9e096082500906cf5
/075.py
8620cadcc6d21386ae6ae2f3e010ef04a049611c
[ "MIT" ]
permissive
souza-joao/cursoemvideo-python3
82f00d6ca7f9bfc201af796ebfc76eed500bc39d
b9f747d1083c1c779630b25b321b291d76611901
refs/heads/main
2023-07-16T09:28:58.441664
2021-08-31T15:41:59
2021-08-31T15:41:59
376,969,255
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
num = (int(input('Digite um número: ')), int(input('Digite um número: ')), int(input('Digite um número: ')), int(input('Digite um número: ')),) print(f'O número 9 apareceu {num.count(9)} vez(es).') if 3 in num: print(f'O número 3 aparece na {num.index(3) + 1}ª posição.') else: print('Você não digitou o número 3...
[ "85567361+souza-joao@users.noreply.github.com" ]
85567361+souza-joao@users.noreply.github.com
24bb0afa161eea35fad82d7423ec8767db87fdaf
a4cb0495dec84d433b00d275a63afcd3f5c296b8
/ResNet/layers/IdentityBlock.py
992b515223b88207f9b51268c65d2c3dd2395fb7
[ "MIT" ]
permissive
panuthept/Models_Corpus
370aa5054145ecb20312360e33217c7a743f327b
6d9e91eb97829e73d88ecfc4754492f6324ef383
refs/heads/master
2023-05-25T10:09:40.600017
2020-01-11T14:17:44
2020-01-11T14:17:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
import tensorflow as tf class IdentityBlock(tf.keras.layers.Layer): def __init__(self, filters, kernel_size, depth=2): super().__init__() if isinstance(filters, list): assert len(filters) == depth, "Length if filter exceed the layer depth." if isinstance(kernel_size, list): ...
[ "falcon_270394@hotmail.co.th" ]
falcon_270394@hotmail.co.th
90feabc37881c6074fed4004e3e610421ad0bb4e
b76947d520fb1f867ed7165403cbcc47caabd5cb
/hivemind_powerball/hive/apps.py
7c2876c4b0a631b48c502bb4c5060e5326ea5b64
[]
no_license
peter-stratton/hivemind_powerball
abf3b0c21a3e92be45e6271d701ea1ce628960cc
f1e650bb26c23a0c42b05ac6826105bade0d8d3b
refs/heads/master
2021-01-22T02:17:45.452114
2017-02-09T17:42:02
2017-02-09T17:42:02
81,042,442
1
0
null
null
null
null
UTF-8
Python
false
false
124
py
from django.apps import AppConfig class HiveConfig(AppConfig): """Config object for the hive app""" name = 'hive'
[ "pstratton@jornaya.com" ]
pstratton@jornaya.com
925028b08297779546c047873b5ba67c870ad692
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/59.py
09da2bcfaa4c411daa5449e6b502ef93033a8f6c
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
#!/usr/bin/env python import sys filename=sys.argv[1] inputfile=file(filename, 'r') numcases=int(inputfile.readline().strip()) for case in range(1,numcases+1): R, k, N = map(long, inputfile.readline().strip().split()) g = map(long, inputfile.readline().strip().split()) y = 0 first_ride = [None] * N ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
856fd644e4807971a8bf3571c1cb7ce181e1716d
72ae28eaff4a6f8239392409069782bf9a827a68
/setup.py
4ff5f8dc5cac880a51e4e283a489bfc630c258c1
[]
no_license
GargiVyas31/Elena
d8030547475ca90a1cb745b5c762b51af12bfe92
98453b42219d16826a6461135bfdd7bbc4cf91ec
refs/heads/master
2023-01-24T00:45:16.900630
2020-11-24T22:50:03
2020-11-24T22:50:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
import os from setuptools import setup, find_packages import src pkg_scripts = [] setup( name=src.__name__, long_description='ELena', version='1.0.0', platforms=['Any'], scripts=pkg_scripts, provides=[], namespace_packages=[], packages=find_packages(), include_packa...
[ "sayantan@hp.com" ]
sayantan@hp.com
6f990446cead9603dedfef48a68c2ec8c67a8073
e970c48f83f74e6c28d51b556c47ae07f18f22fa
/code/sampling_methods.py
d0af413c62743488539e35d91194acfa1ad2c58d
[]
no_license
Loopdiloop/fys-stk4155-project2
ddd812c3eaea525fa6b959d39391f1ece7877332
9efb4fb92581faa64fda188a1a600a47fc4bb594
refs/heads/master
2020-09-06T00:35:33.097309
2019-11-14T00:13:16
2019-11-14T00:13:16
220,260,198
0
0
null
null
null
null
UTF-8
Python
false
false
3,147
py
import numpy as np import statistical_functions as statistics from fit_matrix import fit from functions import franke_function import copy class sampling(): def __init__(self, inst): self.inst = inst def kfold_cross_validation(self, k, method, deg=5, lambd=1): """Method that implements the k...
[ "mamoll@uio.no" ]
mamoll@uio.no
eeb5073afecbaf0f35097a0d4970f139fc0282fd
014e9a6f3d48ffa7b9ee759904d2e33284a6f4d6
/api/caoloapi/model/auth.py
c73941f6992e52e8c9728cbae96791221e95e3a7
[ "MIT" ]
permissive
kissmikijr/caolo-backend
33c0262239182b96d1215677c45065b4ef90455b
efec05bb793bd40951cb4e5ae4e930d972f63d36
refs/heads/master
2023-09-04T01:09:50.068148
2021-10-18T22:00:59
2021-10-18T22:06:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
from datetime import datetime as dt, timedelta from passlib.context import CryptContext from jose import jwt SECRET_KEY = "fe9fb923daa2a5c34a57b6da5d807a1e9cb48d4afee5c10095bab37bcf860059" ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 30 PEPPER_RANGE = (128, 139, 3) pwd_context = CryptContext(schemes=["bcrypt"]...
[ "littlesnorrboy@gmail.com" ]
littlesnorrboy@gmail.com
3e1738529ae55e62ae6843901eca2eb0d436e07a
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractIntheinkpotfictionWordpressCom.py
5a22827f09f4623da612321d5379b4873ab2b614
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
576
py
def extractIntheinkpotfictionWordpressCom(item): ''' Parser for 'intheinkpotfiction.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'trans...
[ "something@fake-url.com" ]
something@fake-url.com
c510739d0552b39eefb1a37c3464536b93358cc2
e0c26c8e9ffc94dd5b1f1757230fd8779dc244bc
/cell/synapse/__init__.py
21aed928dd6e1bfc544e87bc35ed7278a595e4e9
[]
no_license
mpelko/neurovivo
6804e381a78a03164785bf6fa24f84f123a1201f
10923140da270693988313b36ad6d0ad42bf529a
refs/heads/master
2016-09-09T18:55:59.331807
2014-03-25T18:01:38
2014-03-25T18:01:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
from exp2syn_AMPA_synapse import * from exp2syn_GABA_synapse import *
[ "mpelko@gmail.com" ]
mpelko@gmail.com
15487621d75896236eb3ebe106a4f8748a6a389b
e43b78db4ff598944e58e593610f537f3833d79c
/py-faster-rcnn/lib/roi_data_layer/roidb.py
93f713e1f127d432736a654ce6fa292eef3b6c67
[ "MIT", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
ZJUZQ/Net_caffe
577e9b3e80a391d772a21c27639465d539fceb1f
bed3c7384a259339c5a0fb2ea34fa0cdd32ddd29
refs/heads/master
2021-09-08T12:19:37.039970
2018-03-09T14:44:24
2018-03-09T14:44:24
114,853,721
4
1
null
null
null
null
UTF-8
Python
false
false
6,356
py
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Transform a roidb into a trainable roidb by adding a bunch of metada...
[ "zhouqiang@zju.edu.cn" ]
zhouqiang@zju.edu.cn
f0612efb0fad45a35627608742c836a5c0fd909d
ce7c86b8c9a193d421d7e67b794d81f65ef92c1c
/Day10/day_10.py
4e9b016b695e356eaf9c9bea80808fcfd277dca2
[]
no_license
Panagiotis-Zachos/advent-of-code-2020
a00f9728c4e332940b23f0c3ab904183914971b5
b305b900eed2d96a1997ee58450d9a11aa3137bf
refs/heads/main
2023-02-11T04:11:41.908362
2021-01-02T18:46:11
2021-01-02T18:46:11
324,453,531
1
0
null
null
null
null
UTF-8
Python
false
false
957
py
adapters = list(map(int, open('input.txt').read().split('\n'))) adapters.sort() # Part 1 dif1 = 1 dif3 = 1 for i in range(1, len(adapters)): dif = adapters[i] - adapters[i-1] if dif == 1: dif1 += 1 elif dif == 3: dif3 += 1 print(dif3*dif1) # Part 2.1 adapters.append(adapters[-1] + 3) adapt...
[ "noreply@github.com" ]
Panagiotis-Zachos.noreply@github.com
6d8c2fe636110f1a7126213981d239f0d387291c
185820587b6a0663f8aac706384fa7e00b236bb9
/samples/python/clusqmgr_suspend.py
af9c8f5fe63ae203a40c03995e0ed6d08bba2407
[ "MIT" ]
permissive
hlkiltas/mqweb
9c70252d6af442e45de3a18726b69dcda65db94a
c651014765018d32b5d49054ff8c36618d50093d
refs/heads/master
2020-03-27T01:51:56.858586
2017-09-22T12:11:20
2017-09-22T12:11:20
145,749,223
2
0
MIT
2018-08-22T18:46:21
2018-08-22T18:46:20
null
UTF-8
Python
false
false
878
py
''' Supends a queuemanager in a cluster MQWeb runs on localhost and is listening on port 8081. ''' import sys import json import httplib import socket if len(sys.argv) < 3 : print 'Please pass me the name of a queuemanager and a clustername as argument' sys.exit(1) url = "/api/clusqmgr/suspend/" + sys.argv[1] +...
[ "franky.braem@gmail.com" ]
franky.braem@gmail.com
ad73927538d2a6b51e3e9da4eaa96818ced5e08a
f714db4463dd37fc33382364dc4b1963a9053e49
/tests/sentry/event_manager/interfaces/test_frame.py
22dd3b8b5756050429bafb0bd12c3db6daa422ae
[ "BUSL-1.1", "Apache-2.0" ]
permissive
macher91/sentry
92171c2ad23564bf52627fcd711855685b138cbd
dd94d574403c95eaea6d4ccf93526577f3d9261b
refs/heads/master
2021-07-07T08:23:53.339912
2020-07-21T08:03:55
2020-07-21T08:03:55
140,079,930
0
0
BSD-3-Clause
2020-05-13T11:28:35
2018-07-07T11:50:48
Python
UTF-8
Python
false
false
1,366
py
# -*- coding: utf-8 -*- from __future__ import absolute_import import pytest from sentry import eventstore from sentry.event_manager import EventManager @pytest.fixture def make_frames_snapshot(insta_snapshot): def inner(data): mgr = EventManager(data={"stacktrace": {"frames": [data]}}) mgr.nor...
[ "noreply@github.com" ]
macher91.noreply@github.com
44891d7b9820b9884945e121c98a187821ebb72e
ef92b7c2ade5905ada8da7a55e7708f318017a9f
/test/__init__.py
8c7f1088a0651c40bbc94c63dbc66ca8a0cad193
[]
no_license
nolanbconaway/raspi-nyc-train-display
1bba781b6420c1e96a29279caeb14b6ade04d918
4865629fb97788d649dfd75a27622b5cfa02638b
refs/heads/master
2020-07-06T13:52:19.100199
2020-04-06T02:06:29
2020-04-06T02:06:29
203,038,726
0
0
null
2020-04-06T02:06:30
2019-08-18T17:56:57
Python
UTF-8
Python
false
false
309
py
"""Test package.""" def epoch_to_datetime(epoch): """Convert epoch time into a datetime in NYC timezone.""" import datetime import pytz return ( pytz.timezone("UTC") .localize(datetime.datetime.utcfromtimestamp(epoch)) .astimezone(pytz.timezone("US/Eastern")) )
[ "nolanbconaway@gmail.com" ]
nolanbconaway@gmail.com
79ec05a20274e044cf8660379e72fb5c8f2319f4
405bc4aee79e340a3b41f0f8e3f143118caa7cf6
/hcipy/atmosphere/standard_atmosphere.py
1442788a1ad31dcd2827ffc4c897f06293d2af69
[ "MIT" ]
permissive
rahulbhadani/hcipy
c6c2fd487974ef7534a68f2a5036dc418609fc0a
b52726cb9502b5225ddff9d7b1ff417f2350cda8
refs/heads/master
2020-07-06T07:23:43.688016
2019-08-02T12:00:28
2019-08-02T12:00:28
202,938,491
0
0
MIT
2019-08-17T22:58:06
2019-08-17T22:58:05
null
UTF-8
Python
false
false
539
py
from .infinite_atmospheric_layer import InfiniteAtmosphericLayer from .atmospheric_model import MultiLayerAtmosphere import numpy as np def make_standard_atmospheric_layers(input_grid, L0=10): heights = np.array([500, 1000, 2000, 4000, 8000, 16000]) velocities = np.array([10, 10, 10, 10, 10, 10]) Cn_squared = np.a...
[ "por@strw.leidenuniv.nl" ]
por@strw.leidenuniv.nl
716beeecaa9af980ba1af4c2e9ae8ada8085d998
86fb27e01bb1f2d203252aad4e375fba853f30ee
/KNN.py
5ad9ccbdbb3e3cd1351e56d405d81e1cc96aefcc
[]
no_license
Bhuvaneshwari-Anand/Kirana
e0e8a1c49732ae5e19bc2459db7efd423ce8b5ff
d3651b7e6c0e8390c1659e6d404f506e5201c797
refs/heads/main
2023-01-12T21:38:05.905860
2020-11-19T15:01:08
2020-11-19T15:01:08
314,262,128
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
import math import pandas import numpy as np #the dimensions of the item as input x = float(input()) y = float(input()) #reading the data from the csv file data = pandas.read_csv("F:\Contest\Infra Mind\Excel and CSV\DatasetFinal.csv") #store the dataset items in separate arrays for each column iden = data["ID"].valu...
[ "bhuvaneshwari119anand@gmail.com" ]
bhuvaneshwari119anand@gmail.com
3a46b739fdd3269370d45b82b4103d66bc0a5353
1718a0e60b3df6bb23ea50e57bc2a39e268c0d53
/store_app/views.py
a452b60bee841fcbf43da93e842bf057b9cac01a
[]
no_license
ckizer86/final
551be3fc3e0e6021a5103acc645238f0d5ddc905
c6fd0fd8ffe46c23d9fe6f6b7138cce44b32fa1c
refs/heads/main
2023-05-28T18:50:48.939996
2021-06-08T23:36:27
2021-06-08T23:36:27
374,507,562
0
0
null
null
null
null
UTF-8
Python
false
false
21,172
py
from django.db.models import fields from django.shortcuts import render, redirect from django.http.response import JsonResponse, HttpResponse from django.views.generic import FormView from django.urls import reverse from django.conf import settings from django.http.response import JsonResponse from django.views.decorat...
[ "ckizer86@yahoo.com" ]
ckizer86@yahoo.com
914431d0adb4b2c7286505f6d7737d82868ba8a8
699737150c95c92d2acbdf612e931ca6ccd8ba81
/a116_buggy_image_ar_version_29-31.py
86269fa5d5c1116396cd0cdcc4dd13e0c1e34d6e
[]
no_license
AntonioR0211/buggyimage
25f25a3a8f03eb007231639ad6dfdc2295ad7cf2
899a1a843af4429acd5f5e686028c97448c79962
refs/heads/main
2023-01-13T20:50:45.582647
2020-11-14T07:08:01
2020-11-14T07:08:01
312,750,629
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
# a116_buggy_image.py import turtle as trtl # instead of a descriptive name of the turtle such as painter, # a less useful variable name x is used Spider = trtl.Turtle() # The pensize makes a circle which is the spider body. Spider.pensize(40) Spider.circle(20) Spider.goto(20,20) # This displays how much legs will be...
[ "noreply@github.com" ]
AntonioR0211.noreply@github.com
c18140fcd9465540c29e5bf57783ab8ebbab2f3c
2cc5ad64d812b94508ac9d817d33072e633231ca
/Mission 2/Contest 2.2/Zhou-Xinming-3-2d.py
51351a85c5457f3e68127e8c5171bd1b30a5995f
[]
no_license
xinmingzh/CS1010X
6943c06dcd53730e23b54e1fa3df12734cb7c39a
d3613899e82321d06544a7ad6e15d759aaebc988
refs/heads/master
2021-04-27T03:00:53.173961
2018-02-24T05:45:16
2018-02-24T05:45:16
120,771,181
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
# # CS1010X --- Programming Methodology # # Mission 2 - 2D Contest # # Note that written answers are commented out to allow us to run your # code easily while grading your problem set. from runes import * ######## # Task # ######## # You may submit up to 3 entries. Please update your entry number below. # Entry 3 o...
[ "xinming.zh@gmail.com" ]
xinming.zh@gmail.com
0a77844aeb0ff0c47c3b8ac2e106430f4a5deb65
9e3eef34a21a60610c4dc9f5c5fec809a8cb7706
/lab2/ex1.py
d1c06a877a652f35276089666fd5e8bca69c1930
[]
no_license
toma-ungureanu/FII-Python
f7df993a985f82dfed793f7549852abbb191bdee
60a9b657db7aa09b7e9d42402f4689ca7df615ac
refs/heads/master
2020-08-28T23:40:22.382485
2020-01-22T04:28:35
2020-01-22T04:28:35
217,855,104
1
1
null
null
null
null
UTF-8
Python
false
false
273
py
def printFibonacciNumbers(n): f1 = 0 f2 = 1 if n < 1: return for x in range(0, n): print(f2, end=" ") next = f1 + f2 f1 = f2 f2 = next # Driven code printFibonacciNumbers(int(input("Primele x numere Fibonacci: ")))
[ "toma.florin.ungureanu@gmail.com" ]
toma.florin.ungureanu@gmail.com
a1e88c8713d1e262f21e9358122e6e5749a99712
6472d60797abbb0d2814495943d2aaabb2baf7d9
/lecture/lecture.py
641025b9fad157e83284bbacdec0cc8df25da8ed
[]
no_license
maya-salcedo/webcam-motion-detector
4e23336b36a56138becd7b7a636fac38d4c9a8d4
8746cd3af917b5e6af74cc7cfea6a69a5a715a43
refs/heads/master
2023-01-06T17:38:38.566764
2020-11-10T19:15:32
2020-11-10T19:15:32
311,289,529
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import cv2 img = cv2.imread("galaxy.jpg", 0) #if you want to read to the image as it is, pass 1, # grayscale, 0 which is 1 band # transparency capabilities, -1 print(type(img)) print(img) print(img.shape) print(img.ndim) resized_image = cv2.resi...
[ "maya.salcedo07@gmail.com" ]
maya.salcedo07@gmail.com
f4f46508d1a0f02512ff3ef04f883f5f7004be63
1bc2a635a93b5bc84606edf9ac2226851cac9e6d
/tests/unit/test_business.py
99dba73500a5ba0dccb4d31c5d763654cfe9ff9d
[ "MIT" ]
permissive
coolkat64/rolling
819149cbb1e11a455b93a030477f9da91e2f93e4
4c3ee2401128e993a52ac9b52cdbd32e17728129
refs/heads/master
2022-11-29T00:35:14.058665
2020-07-31T20:37:15
2020-07-31T20:37:15
285,312,272
0
0
MIT
2020-08-05T14:25:48
2020-08-05T14:25:47
null
UTF-8
Python
false
false
37,466
py
# coding: utf-8 import typing from aiohttp import ClientResponse from aiohttp.test_utils import TestClient import pytest from rolling.kernel import Kernel from rolling.model.character import CharacterModel from rolling.server.controller.business import ALL_OF_THEM from rolling.server.controller.business import ONE_OF...
[ "sevajol.bastien@gmail.com" ]
sevajol.bastien@gmail.com
e259df553081c2a0843857a31971fbeb29ab02d1
8c9df3465ec7cab68b10e67823c1f9b475dab68e
/square__transverse_longitudinal_field_af_ising__static/square_ising.py
12dad1d1699c6934cd3da33fb9d3ea8f37bdd5f5
[ "BSD-3-Clause" ]
permissive
deyh2020/quspin_example
f86cf3cea2b8c04efc017e9618cb935494e94f82
931ca2ea5e6bbe02ebdd6d6a22d90db24d6c760c
refs/heads/master
2023-02-07T21:27:12.913763
2020-12-30T08:00:57
2020-12-30T08:00:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,427
py
## http://weinbe58.github.io/QuSpin/generated/quspin.basis.spin_basis_general.html#quspin.basis.spin_basis_general ## https://doi.org/10.1103/PhysRevX.8.021069 ## https://doi.org/10.1103/PhysRevX.8.021070 ## consider nearest neighbor Ising from __future__ import print_function, division from quspin.operators import ham...
[ "27846552+ryuikaneko@users.noreply.github.com" ]
27846552+ryuikaneko@users.noreply.github.com
36f4077e738bcd0ad9b6fb9a000f343d5aa57385
fe931e4eb729e010add72732889cfcfa0e82663d
/test/ParametricNLP_test.py
7e32cc47eea227c73a524210f0191ac4c1677cb2
[]
no_license
Duam/python-master-thesis-code
14d7ae68d94475cc978717dbb2a9df691b5246e5
bb1a800612a1f046d2184ae42e00ed5ec0425b06
refs/heads/master
2023-06-30T07:02:28.369372
2021-08-06T15:11:26
2021-08-06T15:11:26
385,187,111
1
0
null
null
null
null
UTF-8
Python
false
false
1,661
py
import casadi as cas from thesis_code.utils.ParametricNLP import ParametricNLP # Create a test optimization problem nlp = ParametricNLP(name='test_problem', verbose=True) # Add decision variables and parameters to the problem nlp.add_decision_var('x', (3,1)) nlp.add_parameter('lbx', (3,1)) nlp.add_parameter('ubx', (3...
[ "paul.daum@posteo.de" ]
paul.daum@posteo.de
81d48422f1d924c39d76dcbf258ebdb977195149
af3840c306fa5eeb2f0d9e5ed779a582d3c7d5d7
/구구단 11-16.py
e45c083721e6ad8260dc97b620622219cfb596a2
[]
no_license
HanseamChung/prac_python
8c6053402a456eb3c78941b0917fa1570c56bbea
d8fc32989ae9707261deb602bea8853d7f7a0aed
refs/heads/master
2021-05-05T03:12:16.940521
2018-02-09T08:37:10
2018-02-09T08:37:10
119,792,308
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
i, k = 0, 0 for i in range(11, 17) : print('\n') for k in range(1, 10) : print(str(i*k)+" " , end="")
[ "noreply@github.com" ]
HanseamChung.noreply@github.com
9eea9265e1ace539b7498d06a98811dc189c3578
13486ab3a7c9f4221b25236d11a44caadf9f90f0
/programming-three/three134.py
67abd3857686a1d4fc7033b00938fa1b80d3ce94
[]
no_license
strawwhat/diary
f0ec0c86b32d3ba7bedba33c9c629ec41c9e9a7b
2d925b42e61c8aebbe6d212bceb3de7e10bd58c3
refs/heads/master
2021-01-22T22:34:09.645638
2017-10-02T07:44:41
2017-10-02T07:44:41
85,550,383
1
0
null
null
null
null
UTF-8
Python
false
false
2,269
py
#!/usr/bin/python # *-*coding:utf-8 *-* "示例3-9 page134 redirect.py 重定向流到python对象" """ file-like objects that save standard output in a string and provide standard input text a string ; redirect runs a passed-in function with its output and input streams reset to these file-like class objects 类似文件的对象,用于在字符串中保存标准输出并提供...
[ "bnm1122@yeah.net" ]
bnm1122@yeah.net
9d10240ecd698eca008640c0eabba53a44e88d15
3d8a2d2124c484a7ac81835296c0a8834af8df6e
/one/commands/shell.py
1019bee8e283c55218e4903522be915893be2b46
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
DNXLabs/one-cli
e067a2a9d49c61494abcd9ba4b63626f656cdbb9
37265189ab184e6fa7569c201b181ba5d95a0a2a
refs/heads/master
2022-12-14T09:15:32.052749
2021-09-16T00:08:35
2021-09-16T00:08:35
253,417,937
7
1
Apache-2.0
2021-09-16T00:08:36
2020-04-06T06:51:25
Python
UTF-8
Python
false
false
914
py
import click from one.docker.container import Container from one.docker.image import Image from one.utils.environment.aws import EnvironmentAws container = Container() image = Image() environment = EnvironmentAws() SHELL_IMAGE = image.get_image('shell') @click.command(help='Shell container with awscli and terraform...
[ "arthurbdiniz@gmail.com" ]
arthurbdiniz@gmail.com
64778fcbc1e5fce8a3fa62050a7bf3561afa5db0
5822e8bfd09ec98770966763a6637dfaeb0b6dbd
/TWLight/emails/views.py
350215a5e68768e96691e19d9b15fa5c417b7043
[ "MIT" ]
permissive
Jain-Aditya/TWLight
997c01cab83b9af5073589808011c3cc3ecc6d51
4c005fb9346e262cc452509b029774bde6cff0dc
refs/heads/master
2020-04-30T07:56:38.706751
2019-03-18T08:04:35
2019-03-18T08:04:35
176,700,371
0
0
null
2019-03-20T09:34:36
2019-03-20T09:34:36
null
UTF-8
Python
false
false
2,763
py
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse, reverse_lazy from django.core.mail import BadHeaderError, send_mail from django.http import HttpResponse, HttpResponseRedir...
[ "uyscuti.wiki@gmail.com" ]
uyscuti.wiki@gmail.com
7534fdc5e9d0e271082d603c5c0a1ba2262d679e
873d858b79a51a6a14e74e1a6fe4cc97809a69bc
/rosserial_ws/devel/lib/rosserial_client/make_library.py
eed0f221f32c99f4c790655eeb0d5132d20cacf2
[]
no_license
nichoteloo/ROS-Noetic-devel
cf3058014fc491f38a23426c136cb8fbdee7a397
81e7090c5dc0e548aed4aa57b9579e355e9bcd25
refs/heads/master
2023-05-07T19:21:03.804523
2021-06-02T21:13:48
2021-06-02T21:13:48
373,293,635
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # generated from catkin/cmake/template/script.py.in # creates a relay to a python script source file, acting as that file. # The purpose is that of a symlink python_script = '/home/nichotelo/ros/rosserial_ws/src/rosserial/rosserial_client/src/rosserial_client/make_library.py' ...
[ "nicolaschristianto@mail.ugm.ac.id" ]
nicolaschristianto@mail.ugm.ac.id
1faba7758fe0c892013372af65d23ba65c04f8b8
f8f841bba1f3c05c69f3a43297b9d63016f95e2a
/format_w2v_file.py
f8577089ee49841b33990da82b63543e3fcb28ef
[]
no_license
valerie94/russian_nballs
2246d764d16f3b0374193bb0ec14c49ad72df544
c960de4a7bba40dcd3a7c6e723b1bbea272969f8
refs/heads/master
2020-05-18T09:13:10.098864
2019-06-04T20:31:29
2019-06-04T20:31:29
184,317,577
0
0
null
null
null
null
UTF-8
Python
false
false
1,991
py
'''This .py program converts initial file with word2vec features to standard format such as word_1 feature1 feature2 ... feature256 /n ''' '''This script creates file ru_w2v.txt which is w2v file which is required for constracting nballs ''' import re def change_format(file_name):#input is the initial file line_arr...
[ "noreply@github.com" ]
valerie94.noreply@github.com
e23c70a6f0bf97c57a6a3211e8ce4ee4c23a4b01
22d3d698edfa66d071a77b98d9d293087e699d87
/casanova/cli.py
1ac34d646aac0c3f4e2ac82fc186be538414654c
[ "MIT" ]
permissive
medialab/casanova
8b880b1848f8f1ea785fdba483395a7d7085b87f
fcd449df0fba33a48693bea4919c81e1654a6866
refs/heads/master
2023-07-30T04:16:33.079309
2023-07-13T12:41:43
2023-07-13T12:41:43
254,628,154
13
2
MIT
2023-01-17T16:00:31
2020-04-10T12:23:34
Python
UTF-8
Python
false
false
14,540
py
from typing import Optional, List import re import sys import gzip import json import math import random import statistics from itertools import islice from types import GeneratorType from os.path import join from urllib.parse import urlsplit, urljoin from multiprocessing import Pool as MultiProcessPool from dataclass...
[ "guillaumeplique@gmail.com" ]
guillaumeplique@gmail.com
f7af16fa31198ad465290cab948bded706b51328
b716ab7cc296ba20f23bbc2aed5af6bef29923fc
/2.py
0f72894c2caf328cb32d74883ee59561b00848b4
[]
no_license
widyamellysa/dumbways-test
efea011988b962240af3a5f13fa9fc029737e0e7
ec5a9d09afd12af35d8cd8073376f9727d6c3d25
refs/heads/master
2022-11-23T16:27:10.859000
2020-08-01T14:49:12
2020-08-01T14:49:12
284,274,554
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
total_belanja = float(input("Total belanja : ")) bayar = float(input("Jumlah uang : ")) #DumbwaysJos if total_belanja >= 50000 and total_belanja <= 80000: diskon1 = 20000 hasil1 = total_belanja - diskon1 sisa1 = bayar - hasil1 print("Diskon : ", diskon1) print("Kembalian : ", sisa1) ...
[ "noreply@github.com" ]
widyamellysa.noreply@github.com
19947694ca5e83f139404b18e79c23211e055d99
74c776f1a9a059bbc530fe5d6b12165425d3f954
/run_cn.py
33e53e3cce1647da732faa01a74054d3bb265f5a
[ "MIT" ]
permissive
Lyttonkeepfoing/SANER
0d2ea7df305e0599511bb349dc2b05af59b64425
ac30f441be615de5224411816935283eddfbe330
refs/heads/master
2023-08-25T05:23:01.412133
2021-10-19T14:58:11
2021-10-19T14:58:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
import os # the number of similar words num = 10 # dataset name dataset = "WB" seed = 14 attn_type = "dot" fusion_type = "gate-concat" # Path of bert model bert_model = "data/bert-base-chinese" # Path of the pre-trained word embeddings for getting similar words for each token glove_path = "data/tencent_unigram.txt" po...
[ "nyy477@qq.com" ]
nyy477@qq.com
1c02be31ccbc204a6af0d465965f54c16f3cf3bf
fd2e10285787a4001665aae69c3c28e09a84ee75
/breakout.py
46687816234c78a6b1667f801c73be2fbd37b025
[]
no_license
laflechejonathan/breakout
967c60d2141bfd15730baaf1308f56d59cefa267
be72348db2e1450cfb0c83325e4001d09c674bdd
refs/heads/master
2021-01-18T20:24:01.702072
2017-04-05T04:21:45
2017-04-05T04:21:45
86,960,529
0
0
null
null
null
null
UTF-8
Python
false
false
5,991
py
import random import pygame import math import geometry import constants as const class BrickGrid: def __init__(self): empty_horizontal_space = const.SCREEN_WIDTH - (2 + const.NUM_COLUMNS) * const.BRICK_WIDTH brick_horizontal_space = empty_horizontal_space / const.NUM_COLUMNS empty_verti...
[ "jlafleche@zenefits.com" ]
jlafleche@zenefits.com
dde7d82754424f14d0b28a6142c13333535560f6
e3adbec6cd8d0b50880b3b606352a1c751d4ac79
/functions/singly_linked_list.py
7cadf3954044adea1f9fcd0cccd0b5268d96d8b1
[]
no_license
ZiyaoGeng/LeetCode
3cc5b553df5eac2e5bbb3ccd0f0ed4229574fa2f
c4c60b289c0bd9d9f228d04abe948d6287e70ea8
refs/heads/master
2022-04-07T08:19:58.647408
2020-03-12T08:56:13
2020-03-12T08:56:13
218,981,503
1
0
null
null
null
null
UTF-8
Python
false
false
211
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class ListNode: def __init__(self, x): self.val = x self.next = None
[ "593947521@qq.com" ]
593947521@qq.com
07a8d38422d30557d6ed10da8a9d60d2ec141308
3c397042e7fa0d7d4fa25cd75f0d10babd9f933f
/lab_8/mysite/dishes/urls.py
5290d59685f5e3ad3fc3fb854489224b5e6a6100
[]
no_license
StepanIonov/RIP_lab
f34f2a95fb8ddcfeeb703efd7088320f40ac1fc5
0fefaf77d664ed404d791422658a062fc3e9201c
refs/heads/master
2023-02-20T12:38:33.389360
2021-01-18T10:13:24
2021-01-18T10:13:24
295,768,234
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
from django.urls import path from . import views urlpatterns = [ path('<int:dish_id>/', views.detail, name='detail'), path('', views.index, name='index'), ]
[ "42943755+StepanIonov@users.noreply.github.com" ]
42943755+StepanIonov@users.noreply.github.com
8658832a7dcc4eabcb30779bae2a6408403a2d6a
3f5e290adefe73d55c4170029629c9f4794920f1
/rewrite_verify.py
6362a48d1f9e92fa3daea97e8de31e2f69f66ab9
[]
no_license
fengmu/mana1
d318b36294ab17f6ee8d4b4536a5ddad94e0dce5
7d64c33580e2fdc2cbd81e17124dec44d1d8858a
refs/heads/master
2020-12-24T13:28:28.937308
2012-12-11T09:30:43
2012-12-11T09:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,377
py
# -*- coding: utf-8 -*- ''' #============================================================================= # FileName: rewrite_verify.py # Desc: # Author: solomon # Email: 253376634@qq.com # HomePage: # Version: 0.0.1 # LastChange: 2012-10-28 18:31:19 # History: #=============...
[ "fengmu1225@qq.com" ]
fengmu1225@qq.com
1baef92bd7d86cf90bd97918be9c5310d34eab69
6ca2b1b16fce00730bc47a5e6d724aad7698a1f4
/settings.py
6b962dbdae1cfd07d515a8220fc6f1cfbe6390ea
[]
no_license
eddy-suiyun/02_Alien-invasion
72ef3801fb1c1f88743e92de75cf52ea94186b0a
4ba470369f033d788a890a739d0d608842eb8035
refs/heads/master
2021-05-25T17:17:26.037632
2020-04-12T13:43:17
2020-04-12T13:43:17
253,839,182
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
class Settings(object): """存储《外星人入侵》的初始化类""" def __init__(self): """初始化游戏的设置""" # 屏幕设置 self.screen_width = 1200 self.screen_height = 800 self.bg_color = (230,230,230) # 飞船设置 self.ship_speed_factor = 1.5 # 子弹设置 self.bullet_speed_factor =...
[ "125443673@qq.com" ]
125443673@qq.com
1e44102c3d0503284237207d931a11eff57d5169
11805f3f0ca426ae21b754526578fe6b69c9fd52
/emotion-analysis-3-master/read_excel/read_oneStu_allWeek.py
852b464b524bf620e6f7eedd64b3284516bced5e
[]
no_license
chensheng1/NLP_emotion
106838156224cfc1ab9491df908d92bfdfac2915
f43760e7493aa4d360dd0c4d0bca8ba100614612
refs/heads/master
2023-03-22T15:54:16.107975
2021-03-08T15:00:46
2021-03-08T15:00:46
345,604,118
1
0
null
null
null
null
UTF-8
Python
false
false
2,740
py
''' 读取某同学n的课前、课后和每周总结数据 ''' # -*- coding: utf-8 -*- import xlrd xlsfile1 = r"课前预习.xls"# 打开课前预习 xlsfile2 = r"课后作业.xls"# 打开课后作业 xlsfile3 = r"每周总结.xls"# 打开每周总结 xlsfile4 = r"实验练习.xls"# 打开实验练习 book1 = xlrd.open_workbook(xlsfile1)#得到Excel文件的book对象,实例化对象 book2 = xlrd.open_workbook(xlsfile2) book3 = xlrd.open_workbook(xlsfi...
[ "544740618@qq.com" ]
544740618@qq.com
d8e85972fade73cbb7841a166d847c90f11b5bd4
d7016f69993570a1c55974582cda899ff70907ec
/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/operations/_virtual_machine_extensions_operations.py
9e1af3df025f8ded444c980807a5abb4416ee1ed
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
44,661
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
ee714b917523630f20db920691fa7adf93352b79
b373081e3dd8ddc7520ca57841a0c17d2682ad74
/Source/systemrl/environments/cartpole.py
7dc0691b9031afdb006b8d35bac9120361147e0a
[ "MIT" ]
permissive
aarsheem/696-ds
f8e680cf2d2acef6dd04aa14f406d31cce946dfe
2d74b1e3f430e369202982d7ad8c56f362b00f76
refs/heads/master
2020-12-26T22:14:06.200655
2020-07-08T22:08:04
2020-07-08T22:08:04
237,663,363
2
2
MIT
2020-04-24T15:16:49
2020-02-01T19:05:05
Python
UTF-8
Python
false
false
5,216
py
import numpy as np from typing import Tuple from .skeleton import Environment class Cartpole(Environment): """ The cart-pole environment as described in the 687 course material. This domain is modeled as a pole balancing on a cart. The agent must learn to move the cart forwards and backwards to keep t...
[ "aarsheemishra@1x-nat-vl931-172-30-152-76.wireless.umass.edu" ]
aarsheemishra@1x-nat-vl931-172-30-152-76.wireless.umass.edu
d7057217c970f3bd51a646a4638bb77b219d723f
e055c9386652a4b2d271e81493f930e2e66515d1
/Problems/mixedCase/task.py
27342d93de5c0fe991cf2aa0069eaf621f70e2d2
[]
no_license
flo62134/hyperskill_python_tic_tac_toe
0d8e5bf893f754528bc36443598a58c8feec5872
36366860be5ec18835b7702bd26e29e81536de0f
refs/heads/master
2022-08-02T11:26:56.526051
2020-05-21T17:45:32
2020-05-21T17:45:32
265,679,123
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
lower = input() words = lower.split() upper_words = [word.title() for word in words] upper_words[0] = upper_words[0].lower() camel = "".join(upper_words) print(camel)
[ "florentbrassart31@gmail.com" ]
florentbrassart31@gmail.com
4e9df8b1a88f0a2c470ad97f303a25e010fa60f9
60a93f1c34617bd08f1862ef076dc77f766d37b2
/thirdParty/bullet3-2.88/docs/pybullet_quickstart_guide/WordpressPreview/BuildMarkdeepUtility.py
0738cdafd74b4278ae299b75c2dec90554cca285
[ "MIT", "Zlib" ]
permissive
dantros/MonaEngine
4f4fdbd2344f553f9bfd0189a4872a0581022f40
e3d0048c2fe2dd282b84686f0e31e5741714222b
refs/heads/master
2023-07-27T10:51:18.565020
2021-09-17T00:11:39
2021-09-17T00:11:39
395,851,979
0
1
MIT
2021-08-15T03:23:15
2021-08-14T01:32:20
null
UTF-8
Python
false
false
2,291
py
import re if(__name__=="__main__"): # Assemble the script which embeds the Markdeep page into the preview blog PreviewBlogPage=open("PreviewBlogPage.htm","rb").read().decode("utf-8"); HeadMatch=re.search("<head(.*?)>(.*?)</head>",PreviewBlogPage,re.DOTALL); HeadAttributes=HeadMatch.group(1); FullDo...
[ "byronaaronb@gmail.com" ]
byronaaronb@gmail.com
811e650b58eaf4337be5d070b3152062620dfaa4
1d1a21b37e1591c5b825299de338d18917715fec
/Mathematics/Data science/Mathmatics/02/inverse_matrix.py
5531c0cc7924c0fa9e1eb9313e95e425439086b8
[]
no_license
brunoleej/study_git
46279c3521f090ebf63ee0e1852aa0b6bed11b01
0c5c9e490140144caf1149e2e1d9fe5f68cf6294
refs/heads/main
2023-08-19T01:07:42.236110
2021-08-29T16:20:59
2021-08-29T16:20:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
import numpy as np A = np.array([[1,1,0],[0,1,1],[1,1,1]]) print(A) ''' [[1 1 0] [0 1 1] [1 1 1]] ''' # 역행렬(inverse_matrix 계산) Ainv = np.linalg.inv(A) print(Ainv) ''' [[ 0. -1. 1.] [ 1. 1. -1.] [-1. 0. 1.]] '''
[ "jk04059@naver.com" ]
jk04059@naver.com
f327af434bdb44b8db26624273fa576fedb584a9
371fe9a1fdeb62ad1142b34d732bde06f3ce21a0
/scripts/compute_path_pair_distances.py
32499ed5d2cd2871d18a77acc24343b70b16f798
[]
no_license
maickrau/rdna_resolution
971f3b7e803565c9432be69b8e2a2852f55b8b79
aab42310c31e655cbbc318331082fa3436d69075
refs/heads/master
2023-03-03T05:14:33.966930
2021-02-17T20:45:20
2021-02-17T20:45:20
339,851,442
0
0
null
null
null
null
UTF-8
Python
false
false
6,426
py
#!/usr/bin/python import sys graphfile = sys.argv[1] max_diff = int(sys.argv[2]) modulo = int(sys.argv[3]) moduloindex = int(sys.argv[4]) # name \t path from stdin def revcomp(s): comp = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'} return "".join(comp[c] for c in s[::-1]) def pathseq(p): global nodeseqs seq_no_h...
[ "m_rautiainen@hotmail.com" ]
m_rautiainen@hotmail.com
823cfd503c40f9c544e77c62fdbcc4bb86ec03d6
dd28aede0d492d265e27d491eb46be5bda03e26c
/experimento mnist nuevo/experiment.py
6fdcd91bdd6ac6aaa2e16f69a3c049eb628d7613
[]
no_license
beeva-ricardoguerrero/Floydhub_experiments
db008ccb75ca8e7a2ff952440c56076adfe69b2a
015b59b7d798e6c468d09ff5dead45edb108750c
refs/heads/master
2021-01-01T04:13:25.298975
2017-07-13T15:53:30
2017-07-13T15:53:30
97,140,562
0
0
null
null
null
null
UTF-8
Python
false
false
3,925
py
import json import logging import os import time import numpy as np import tensorflow as tf from tensorflow.python.saved_model import builder from tensorflow.python.saved_model import signature_def_utils from tensorflow.python.saved_model import signature_constants from tensorflow.python.saved_model import tag_consta...
[ "ricardo.guerrero@beeva.com" ]
ricardo.guerrero@beeva.com
582f4dc70b8e50a416444935ec568175df8bd5e6
c0f5512aa25f8a3ead1933d1faeaa1593716bc6c
/files/Python/10791756-djcasing-4.py
e73ce7d93b288a3a1f8842b1249da4844164fa98
[]
no_license
harthur/detect-indent
89cc56d02257fad57f76c32f57091503932ce7a9
c5764cc72a32722adc9f3667f6565c8529a19557
refs/heads/master
2016-09-05T12:58:59.686824
2014-09-08T05:42:39
2014-09-08T05:42:39
18,378,730
2
1
null
null
null
null
UTF-8
Python
false
false
1,141
py
import string from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect def case_insensitive(func, case='lower', code=301): """ Django view function decorator which can enforce the case of a URL path by redirecting to the properly cased URL. This *allows* for case insensitive matche...
[ "fayearthur@gmail.com" ]
fayearthur@gmail.com
17b48235e0f05f20c63ef835371d9913b5d0a9e1
2b7f5c15b0d6b90ffd85cb90f9e3d7f9b7a03a9b
/counting_bunnies.py
e9f365726f85f047068181854ad76a87de179b56
[]
no_license
dpatel698/Google-Foobar
67fa5943eed33e1aa81ead11d588069647446930
434b2232b292b0b2e3d63ba46b948628e15e3261
refs/heads/master
2020-12-22T12:34:24.274893
2020-01-28T16:42:32
2020-01-28T16:42:32
236,782,685
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
def answer(x, y): # your code here vertical_sum = 1 + sum(range(y)) if x > 1: horizontal_sum = sum(range(y + 1, (y + x))) else: horizontal_sum = 0 print(vertical_sum) print(horizontal_sum) return str(vertical_sum + horizontal_sum)
[ "dpatel0698@gmail.com" ]
dpatel0698@gmail.com
1459e00c12efcf943450d0d9fbb1d34e6ba7db4b
93d78f2dd852b90d295bd523fd0bc09a644ee0d2
/test/sql/test_operators.py
e8ad88511482f9009137ee1ea40257fb924e0846
[ "MIT" ]
permissive
mrocklin/sqlalchemy
ff13d4d07ba46a049da9611d356d07498e95337d
156f473de00024688404d73aea305cd4fc452638
refs/heads/master
2020-12-03T09:30:34.956612
2014-12-01T18:31:48
2014-12-01T18:31:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
60,743
py
from sqlalchemy.testing import fixtures, eq_, is_, is_not_ from sqlalchemy import testing from sqlalchemy.testing import assert_raises_message from sqlalchemy.sql import column, desc, asc, literal, collate, null, true, false from sqlalchemy.sql.expression import BinaryExpression, \ ClauseList, Grouping, \ Unary...
[ "mike_mp@zzzcomputing.com" ]
mike_mp@zzzcomputing.com
7d3a565b843d3a511283b8290b2e3e98f9f02a74
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/soisson.py
2f90d49960b18e683a39c2e7e75ccc653b9bb91e
[]
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
178
py
ii = [('WilbRLW4.py', 1), ('CarlTFR.py', 6), ('CookGHP2.py', 1), ('KiddJAE.py', 1), ('ClarGE.py', 2), ('BuckWGM.py', 2), ('WadeJEB.py', 1), ('GodwWLN.py', 1), ('BuckWGM2.py', 1)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
598aa5789fc89d20614a949df27117f073692147
b2c780661aec8076a0b6d00bf8ea0d443a117df6
/Popularity/DCAFPilot/test/utils_t.py
b5af29934995578af40c4def334385a5c2d302eb
[]
no_license
maitdaoud/DMWMAnalytics
894fa2afb8d83a5275f0abd61b74f4f839150cb0
fec7ef3e5240973db96ba53179940950002adbd8
refs/heads/master
2020-04-11T03:33:43.164136
2017-04-01T14:07:42
2017-04-01T14:07:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
#!/usr/bin/env python #pylint: disable-msg=C0301,C0103 """ Unit test for StorageManager class """ import os import re import time import unittest from pymongo import MongoClient from DCAF.utils.utils import popdb_date, ndays class testStorageManager(unittest.TestCase): """ A test class for the StorageManag...
[ "vkuznet@gmail.com" ]
vkuznet@gmail.com
201f20209bdbb0451b07c576336b8ce2de92ec95
786de89be635eb21295070a6a3452f3a7fe6712c
/DataSummary/tags/V00-00-05/src/cspad.py
12f8661db596a4ad88019f31c52e224d8b2a0a18
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,160
py
import os import psana import numpy import logging import event_process import pylab from mpi4py import MPI from common import strtype class cspad(event_process.event_process): def __init__(self): self.logger = logging.getLogger(__name__+'.cspad') self.output = event_process.ev...
[ "justing@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
justing@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
ad790c2993b23a15711a5f19aa89999275d6fc8c
32986e2c8aa585699f810534444c9a3ff1e4f269
/task4_testing.py
64f2871585898cfc8150f3430f8545e79e0eb39e
[]
no_license
mingYi-ch/aml_task4
5d24a3107a8ca00083c9c4b71a06fdfc7eb5947b
438050dd3f7e09cc34d34f5db65a5ea9b72e8c6d
refs/heads/master
2022-03-22T19:45:18.707357
2019-12-09T14:02:22
2019-12-09T14:02:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
import numpy as np import biosppy.signals.eeg as eeg import pandas as pd def test_eeg(eeg1, eeg2): # testing plot x_sample = np.concatenate((eeg1, eeg2), axis = 0) # transpose to put the signals into column x_sample = np.transpose(x_sample) # print theta # print(x_sample) # x_sample = np....
[ "myi@student.ethz.ch" ]
myi@student.ethz.ch
3c699961c03db0286e4b397de0a722d189504754
30e2a85fc560165a16813b0486a862317c7a486a
/datastruct_algorithm/jan.py
bb5cbcfb654440320b08cce91cc4251879eb8dfd
[]
no_license
muryliang/python_prac
2f65b6fdb86c3b3a44f0c6452a154cd497eb2d01
0301e8f523a2e31e417fd99a968ad8414e9a1e08
refs/heads/master
2021-01-21T11:03:48.397178
2017-09-18T04:13:27
2017-09-18T04:13:27
68,801,688
1
0
null
null
null
null
UTF-8
Python
false
false
2,328
py
import time import sys def perform(a, b, goal, failset, trueset): """a is limaL, b is limbL, failset is a list failseting action""" # time.sleep(1) # print(a, b) global lima global limb res = False if a == goal or b == goal or a + b == goal: return True if res is False and a > 0...
[ "muryliang@gmail.com" ]
muryliang@gmail.com
44e327bc73b3bedf3e3fae4de740348f8067cb99
671a669cc862f68d736a98b3d95bedf96cd7b09e
/Coreference/PDT/pdt_clusterization.py
b66174d38841135639be5bd2405124be4e692b1d
[]
no_license
Jankus1994/Coreference
e258b68c0a75ee3102614220f27c5d163e745c41
41b13ce6422ac6c3d139474641e75e502c446162
refs/heads/master
2021-01-23T01:55:56.732336
2018-05-03T18:06:40
2018-05-03T18:06:40
85,945,883
0
1
null
2017-03-23T13:08:14
2017-03-23T12:15:12
Python
UTF-8
Python
false
false
2,610
py
# Jan Faryad # 23. 3. 2017 # # pdt module to conversion of the coreferennce information from chains to clusters class PDT_clusterization: def __init__( self, list_of_corefs, init_cluster_id): self.list_of_corefs = list_of_corefs self.list_of_cluster_tuples = [] self.cluster_id ...
[ "noreply@github.com" ]
Jankus1994.noreply@github.com
8bae87091c7930ff91f08ddc1c7770485a685c56
cb27eabebe1a0b53ff16909f832780203cff063e
/script/script_template.py
25902ee4cb47ae732d3c541f10776ffe5c8abeb3
[ "MIT" ]
permissive
yota-p/kaggle_titanic
e31dfc3196d038c61336d2cbd814c76e14ace352
36d2c53711482195f519d9280abadf0d6afa9a15
refs/heads/master
2023-03-30T10:30:44.790817
2021-03-23T15:06:34
2021-03-23T15:06:34
343,035,079
0
0
MIT
2021-03-23T15:06:35
2021-02-28T06:14:06
Python
UTF-8
Python
false
false
427
py
import os import gzip import base64 from pathlib import Path from typing import Dict def main(): # this is base64 encoded source code file_data: Dict = {file_data} for path, encoded in file_data.items(): print(path) path = Path(path) os.makedirs(str(path.parent), exist_ok=True) ...
[ "930713yh@gmail.com" ]
930713yh@gmail.com
4853fa85b7e28aec71a8c26dce4015d65e359101
401ad378a3c5cf2faaa692680dba29726c7193d5
/preprocess_data.py
ba74d189f25e56c88448b036e1f9eb406d51dff5
[]
no_license
thaophung/ASL-recognition-Hololens-
75293a214dbf067ec799b5b0852dfcca840714b0
e90c546a6f27838be29e7f173baf685ef090dc92
refs/heads/master
2021-09-14T00:56:06.164850
2018-05-06T20:30:52
2018-05-06T20:30:52
113,247,151
0
0
null
null
null
null
UTF-8
Python
false
false
7,202
py
import numpy as np import scipy.misc import os, cv2, random import shutil def combine_list_txt(data_path): trainlisttxt = 'trainlist.txt' vallisttxt = 'vallist.txt' #testlisttxt = 'testlist.txt' trainlist = [] txt_path = os.path.join(data_path, trainlisttxt) with open(txt_path) as fo: ...
[ "noreply@github.com" ]
thaophung.noreply@github.com
1df3e72e11e7eb14e23c5cb608c39717d22fb745
bacd03dbc158458d3766c94655950b2de553089e
/dappx/migrations/0003_remove_userprofileinfo_city.py
f59a90eda0014ffe6786fa06578bc59de6ca5295
[]
no_license
abhifindatution/django
bdad14b35da3d55a912b37be1d48cc337d30f5b4
7ac66fcbc0a6975c23bda6e8f53d176c2dbcae6d
refs/heads/master
2023-05-03T21:33:44.124392
2019-08-04T11:58:53
2019-08-04T11:58:53
200,459,562
0
0
null
2023-04-21T20:35:32
2019-08-04T06:47:26
CSS
UTF-8
Python
false
false
333
py
# Generated by Django 2.1.1 on 2019-05-14 06:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dappx', '0002_auto_20190510_1323'), ] operations = [ migrations.RemoveField( model_name='userprofileinfo', name='city', ...
[ "rajjo@findatuton.com" ]
rajjo@findatuton.com
3724941a22eb118782c4c142d7dc6097e8d37e35
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/integer/Schema+Instance/NISTXML-SV-IV-atomic-integer-fractionDigits-1-3.py
32add0c922d5342c7b50eaabb85bc7ee39adc0d0
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
297
py
from output.models.nist_data.atomic.integer.schema_instance.nistschema_sv_iv_atomic_integer_fraction_digits_1_xsd.nistschema_sv_iv_atomic_integer_fraction_digits_1 import NistschemaSvIvAtomicIntegerFractionDigits1 obj = NistschemaSvIvAtomicIntegerFractionDigits1( value=825606520242485152 )
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
e5fef46757ac950b98d7bcd278ede4619963d734
11baa71016e83145d00f4b35316c77d40c205b6f
/lib/GA.py
ec1dbb10445469fc91ce3a859b60e4f2f8daefdb
[]
no_license
Syndorik/Genetic-Algorithm
5b61b5fea39e8042c66f669d7b24fbf3b9c8e43e
bb8899cba83489576ef61da1d5284ddea4a9a2a4
refs/heads/master
2020-04-25T16:53:02.096595
2019-03-10T19:34:36
2019-03-10T19:34:36
172,927,639
0
0
null
null
null
null
UTF-8
Python
false
false
14,215
py
import random import copy import os import time import math import csv from Tree import Tree from TreePop import TreePop import copy from joblib import Parallel, delayed import joblib """ try: from tkinter import * from tkinter.ttk import * except Exception as e: print("[ERROR]: {0}".format(e)) from T...
[ "alexandre.allani@telecom-bretagne.eu" ]
alexandre.allani@telecom-bretagne.eu
bb8c7aede0462de9cd8180f39a0e1b02e5216735
d3c4848338fe8a36a307c955e8a96f32fc880019
/tests/test_selenium_common.py
f430bf2ca7c458bc29d650063b205594ee3e569e
[ "MIT" ]
permissive
panarahc/product-database
d111555f5f801c18a7a46c7fd3a2173149d8acd3
af48bc3e580e3bd7b499990bb7c51aabed242f71
refs/heads/master
2023-04-19T16:09:08.115666
2021-01-17T22:23:45
2021-01-17T22:23:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
42,371
py
""" Test suite for the selenium test cases """ import os import pytest import time import re from django.urls import reverse from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.select import Select from selenium.webdriver.support import expected_co...
[ "henry@codingnetworker.com" ]
henry@codingnetworker.com
cca9f2e5ed6c7cd9fe744913449f05e61d1ed854
8a47ab47a101d4b44dd056c92a1763d5fac94f75
/力扣/简单练习/300-最长上升子序列.py
edecfbee733ea3c1f051716235583aa67c1a5524
[]
no_license
Clint-cc/Leecode
d5528aa7550a13a5bcf2f3913be2d5db2b5299f3
8befe73ab3eca636944800e0be27c179c45e1dbf
refs/heads/master
2020-09-14T07:35:41.382377
2020-07-01T01:27:18
2020-07-01T01:27:18
223,066,742
0
0
null
null
null
null
UTF-8
Python
false
false
1,663
py
# !D:/Code/python # -*- coding:utf-8 -*- # @Author : Clint # @Question : 给定一个无序的整数数组,找到其中最长上升子序列的长度。 def lengthOfLIS(nums): ''' 思路:遍历数组,当前的下一个元素大于当前,count+1,当不大于时比较count和max_count, 最后输出max_count 这题有坑: 输入[10,9,2,5,3,7,101,18],输出4,解释:最长的上升子序列是 [2,3,7,101],它的长度是 4 :param nums: :return: ...
[ "clint1801@163.com" ]
clint1801@163.com
3fb8bf3f113cfb1319ebe26fea72dc1f8a19c78b
c592c565b4f9259933738e7801e100f64227175a
/questions/migrations/0003_question_title.py
f247190d977f18d7fe37040ec80568f25e20ec86
[]
no_license
ericak11/questions_app
1eb5d3dbd886d2fa0aaab7080a689b8f8b575934
85fecce9f4113841a36518fd4c5e5916ff68e964
refs/heads/master
2016-09-06T01:53:48.477642
2015-01-05T15:23:21
2015-01-05T15:23:21
27,886,280
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('questions', '0002_auto_20141211_1832'), ] operations = [ migrations.AddField( model_name='question', ...
[ "kantor.erica@gmail.com" ]
kantor.erica@gmail.com
3039c444c18f0b492a472774de7ddcf70fefc723
01dd174a3a7d26226564711e32711f137513663f
/pyscf/grad/uks.py
cb2d2d1dd98fc530fe5f2ab8a3bcd9d5ad9f1214
[ "Apache-2.0" ]
permissive
cherishyli/pyscf
00cb09c873edc8890be8501414678cdfa54b177e
468a4bfc4ce067eb7dab6f9289d71122b219609e
refs/heads/master
2020-04-18T11:40:00.398066
2019-01-24T23:07:36
2019-01-24T23:07:36
167,508,739
1
0
Apache-2.0
2019-01-25T08:00:12
2019-01-25T08:00:12
null
UTF-8
Python
false
false
10,924
py
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
[ "osirpt.sun@gmail.com" ]
osirpt.sun@gmail.com
119da14a29035eb8a5b1c9ba0c64dc7cb316c170
fab39aa4d1317bb43bc11ce39a3bb53295ad92da
/nncf/tensorflow/graph/pattern_operations.py
23435d263c3de7adf57353e47709a005e220e0df
[ "Apache-2.0" ]
permissive
dupeljan/nncf
8cdce27f25f01ce8e611f15e1dc3036fb8548d6e
0abfd7103ca212888a946ba4d0fbdb9d436fdaff
refs/heads/develop
2023-06-22T00:10:46.611884
2021-07-22T10:32:11
2021-07-22T10:32:11
388,719,455
0
0
Apache-2.0
2021-07-23T07:46:15
2021-07-23T07:43:43
null
UTF-8
Python
false
false
3,416
py
""" Copyright (c) 2021 Intel Corporation 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 writin...
[ "noreply@github.com" ]
dupeljan.noreply@github.com
976828ea55563b1986da76957c19a1fc536486b2
6364bb727b623f06f6998941299c49e7fcb1d437
/msgraph-cli-extensions/src/userscontacts/azext_userscontacts/vendored_sdks/userscontacts/aio/__init__.py
03db4e735a0c8c4b412b41f6a92f232c27276d81
[ "MIT" ]
permissive
kanakanaidu/msgraph-cli
1d6cd640f4e10f4bdf476d44d12a7c48987b1a97
b3b87f40148fb691a4c331f523ca91f8a5cc9224
refs/heads/main
2022-12-25T08:08:26.716914
2020-09-23T14:29:13
2020-09-23T14:29:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
a1be5212f3088beec374525a35b087342ba34213
f269ca79b405a05a7a5b715b0fb6a416e78ddbea
/process_SimRNA_results.py
3b932be33b95ca9350a81644b5876fa245427cbb
[]
no_license
fryzjergda/simrna_scripts
ccccc3aa5811d2925aa29e765a30ec4f4add7f93
f6f81c586046d12d74ed592c7a5bbe9f3eed8178
refs/heads/master
2020-05-25T05:27:26.603044
2020-05-16T11:14:57
2020-05-16T11:14:57
187,649,955
2
3
null
null
null
null
UTF-8
Python
false
false
5,882
py
#!/usr/bin/python #created, Michal Boniecki, for automatic processing results from SimRNA runs, 2015.12.14 #this script prepares processes output data from SimRNA runs import sys, os, shutil from glob import glob if(len(sys.argv) < 2): print >>sys.stderr, "usage: process_SimRNA_results.py job_id_name" print ...
[ "twirecki@genesilico.pl" ]
twirecki@genesilico.pl
d4b3c37168303b568f64ff5fef401bc1cc1264b2
3400394303380c2510b17b95839dd4095abc55a4
/src/py310/lesson02/comments.py
a4dca2ef7c776bd871c81c1adcdd13adb12c2fce
[ "MIT" ]
permissive
IBRAR21/py310_sp2021
daf53b76decf060d72201a3db66f0f7c697876a7
584e37b9d96654c1241fc787d157c292301d5bf7
refs/heads/master
2023-05-30T16:43:09.614565
2021-06-09T21:41:14
2021-06-09T21:41:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,828
py
# --------------------------------------------------------------------------------- # # AQUABUTTON wxPython IMPLEMENTATION # # Andrea Gavana, @ 07 October 2008 # Latest Revision: 24 Nov 2011, 22.00 GMT # # # TODO List # # 1) Anything to do? # # # For all kind of problems, requests of enhancements and bug reports, pleas...
[ "akmiles@icloud.com" ]
akmiles@icloud.com
ccc5024e30b508be56f625b5cc2eb06203b0013e
f39d88e77080198681994a65fb0137523e23895c
/module_00.py
847c34d9966b7b3fbee3d61c7dd2e52d80ffa7ed
[]
no_license
v-mail-81/Project_0
536901b1c8e517daa48982005f71a404f714aa7e
8fcb01c1c6cb15e6502b918de93a23247ac6627b
refs/heads/master
2022-11-11T19:01:12.419937
2020-07-05T14:21:34
2020-07-05T14:21:34
277,103,854
0
0
null
null
null
null
UTF-8
Python
false
false
2,558
py
#!/usr/bin/env python # coding: utf-8 # In[79]: '''Загружаем модуль numpy для работы со случайными числами и массивом из них''' import numpy as np '''Определяем функцию game_core_v2 с аргументом number (загаданное число), которая будет угадывать число''' def game_core_v2(number): '''Первой попыткой предполагаем ...
[ "noreply@github.com" ]
v-mail-81.noreply@github.com
7334b51d4d6dd97c7c79768d9c96ddcd4c916b09
4917860c0be0b281af29ee0f1f92dcddfffb3a6b
/faust_proj/wsgi.py
7dc2c9726a9acaef51aef894bb4268df2d272b75
[]
no_license
Dineshs91/faust-example
fdb8238e8464eb971b8d65025efe83dd25151c37
99e19260a0ab591d91bb40ebea1b1bfc901ca1fd
refs/heads/master
2020-04-10T16:08:24.219541
2018-12-14T08:58:21
2018-12-14T08:58:21
161,134,463
1
1
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for faust_proj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "dineshpy07@gmail.com" ]
dineshpy07@gmail.com
2582af6476aaa57b460d1979815cf654b2556508
6ab022b549cfd105cedb3acd84679a663b770103
/home/migrations/0002_auto_20210123_0010.py
5a25e027d92b06540a1c45f6fc30104fb125e3bf
[ "Apache-2.0" ]
permissive
d-shaktiranjan/WebifyTask
2b358d6b80bbe723f10a8ebabeb0ff4f701a2c53
188c9519dd5d9fe406ed7ce4e27dd491240302da
refs/heads/main
2023-04-23T17:07:38.930584
2021-05-18T05:48:10
2021-05-18T05:48:10
331,989,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
# Generated by Django 3.1.4 on 2021-01-22 18:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='alltask', name='id', ), ...
[ "debatashaktiranjan@gmail.com" ]
debatashaktiranjan@gmail.com
d081c90ee2be7a970eccc901bbe411b6143cc227
bb98adfcca0865092761eb3ce95da6d3e016bc42
/wisdomgate/settings.py
73b2b8a4fe8ca2927991df9382aeb125f1648ec8
[]
no_license
iskenderserkan/wisdomgate
e2332afa3786e6440a046e65bdad4d5b48dd5cd9
258041aeefac7ae654726271fc1b1bc409fc7ddd
refs/heads/master
2021-01-25T14:56:45.081826
2018-03-04T00:24:59
2018-03-04T00:24:59
123,740,152
0
0
null
null
null
null
UTF-8
Python
false
false
3,249
py
""" Django settings for wisdomgate project. Generated by 'django-admin startproject' using Django 1.11.4. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import...
[ "iskenderserkan@gmail.com" ]
iskenderserkan@gmail.com
b6aedc802e87484a48e035f95f533be5d35b6c1d
8d90e93d5c7c430bba840783efea760eb37d4f3c
/Sword Offer/31.py
bf77d964602d4c023a1a558211a271d34b9607f5
[]
no_license
handsome-fish/Leetcode
a0639735d27979dc7c8c0a1e7fa381f17904b0ad
b3893a5cc6ff0f2311dcdef55766e3ba2a3ba812
refs/heads/master
2021-07-22T01:30:09.859679
2021-07-14T15:05:27
2021-07-14T15:05:27
178,343,527
1
0
null
null
null
null
UTF-8
Python
false
false
1,240
py
""" 剑指 Offer 31. 栈的压入、弹出序列 输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否为该栈的弹出顺序。 假设压入栈的所有数字均不相等。例如,序列 {1,2,3,4,5} 是某栈的压栈序列,序列 {4,5,3,2,1} 是该压栈序列对应的一个弹出序列, 但 {4,3,5,1,2} 就不可能是该压栈序列的弹出序列。 示例 1: 输入:pushed = [1,2,3,4,5], popped = [4,5,3,2,1] 输出:true 解释:我们可以按以下顺序执行: push(1), push(2), push(3), push(4), pop() -> 4, push(5), pop() -> ...
[ "gitfish@163.com" ]
gitfish@163.com
1a8275ca53430b7a7de208eaccbad36efa3e3dac
23e9b76b5702b364bba2e4565a1ab1b6eb5d1d21
/4. Project/face_tracking/face_tracker.py
e3316b4b9d8cd1f41be0010e42835409afee7f4c
[ "MIT" ]
permissive
gjustin40/Pytorch-Cookbook
5b346598019e540b05019e3fa465e9d1132c914a
52a7f4e8c053c775d8c6c90ab0926540b2e1f7cf
refs/heads/master
2023-02-27T19:42:49.179167
2023-02-14T06:22:13
2023-02-14T06:22:13
148,883,451
0
1
MIT
2022-12-09T05:49:21
2018-09-15T08:20:16
Jupyter Notebook
UTF-8
Python
false
false
2,418
py
from imutils.video import VideoStream, FPS from centroidtracker import CentroidTracker import numpy as np import argparse import imutils import time import cv2 prototxt = 'deploy.prototxt' model = 'res10_300x300_ssd_iter_140000.caffemodel' # model = 'opencv_face_detector.caffemodel' confidence = 0.8 ct = CentroidTra...
[ "gjustin@naver.com" ]
gjustin@naver.com
c8f2954d5848b31990dc4b5336d0ef62f6f1881e
1bf03446a30dbc51c0249c41a7b457581725dfed
/client.py
23473e0b776bb2dc84bf59cf407825c12e3dbbe1
[]
no_license
ichbinkenny/redefined-destruction-networking
567ca8ee643be53154d7f1072c95c70ca375b078
fc92f4957e3734226324dd1678d0c9306c80771c
refs/heads/master
2023-01-31T12:35:11.238835
2020-12-09T21:48:02
2020-12-09T21:48:02
273,066,306
0
0
null
null
null
null
UTF-8
Python
false
false
3,725
py
import socket import threading import sys import select client_socket = None address = "asimplenerd.com"#"192.168.72.1" # This will be the server's address on the local network. It is imperative that the client is already on the hostapd network! default_port = 1287 id = -1 end_flag = True close_message = "PLZCLOSENOW...
[ "kennethdhunter@gmail.com" ]
kennethdhunter@gmail.com
e5514210e89b80409333bef0bf14804be6c84f11
4546a96d55a2cc3736dbf668c45677b572735f08
/get_focused_output.sh
31c299ae5e1814901c72c08051bb5e66b3f4ee00
[]
no_license
teunissenstefan/scripts
eea268faee617acd80f8700b47e47e50032a0497
efab9151f4e93e616ec9846e841629b329be9596
refs/heads/master
2022-09-11T17:45:30.285304
2022-08-09T07:17:44
2022-08-09T07:17:44
244,189,944
0
0
null
null
null
null
UTF-8
Python
false
false
294
sh
#!/usr/bin/env python3 import subprocess import json try: outputs = subprocess.check_output(["swaymsg", "-t", "get_outputs"]) outputs = json.loads(outputs.decode('utf-8').replace("'", '"')) for idx, output in enumerate(outputs): if output["focused"]: print(idx + 1) except: print(0)
[ "stefanteunissen1@gmail.com" ]
stefanteunissen1@gmail.com
766d894a674bb679015ec516a8fdc1796ea7ebc7
46ae325c342957bdeddf9e92b2fbb97f769237f6
/Galois Counter Mode/Correc_TP1_AES.py
7a0dc8a2fb088d25a98f3ae96e1a4599db014564
[]
no_license
DenizSungurtekin/Cryptography-and-security
557b029bb0a8dabc2b42176916da317478085f6a
4050d5be02e7186ada87084008f60f515970c073
refs/heads/main
2023-03-17T14:56:18.055721
2021-03-05T12:10:28
2021-03-05T12:10:28
344,783,106
0
0
null
null
null
null
UTF-8
Python
false
false
11,154
py
# Here's the S-boxes as tuples. You can change their form if you prefer to # work with lists or other structures. S_box = ( 0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76, 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF...
[ "noreply@github.com" ]
DenizSungurtekin.noreply@github.com
821605a24dc98e2f6d96ac6410769972c52bcdd4
fa5fb155ba4bc5f4335859b8a93b73be8c1a2abb
/tt.py
7cb12887e5f30f3d9851b55e6de33ba0bb50c54c
[]
no_license
wujifan/test_allure
c9703a58d344bbb8825186f8c360595a5486506a
bf5cbb71b7a0781cba8d3a0da766592d680e8dc3
refs/heads/master
2023-03-31T09:44:10.391654
2021-04-07T09:26:44
2021-04-07T09:26:44
355,466,315
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
from base.init__driver import ini_data a = ini_data('test_data', ['name', 'exp_value'])
[ "wujifan4811@163.com" ]
wujifan4811@163.com
31a6c319b7c69134890d2911c524ff347b6efc76
4109762775f6a465639550b6de36b50450a209ad
/strategy/blackjack/playercheatstrategy.py
52da55b106d966347e46767a699c600de46c6a4c
[]
no_license
samuelcstewart/oosd
7f8fb79f6cb5ea7a211d5f0ea6278a1eb475a534
5f15cdd34ec3db0a4fcf01be5e2cb00b7f6e221f
refs/heads/master
2020-04-15T18:37:10.148250
2015-05-14T08:51:20
2015-05-14T08:51:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
import abc from strategy import Strategy class PlayerCheatStrategy(Strategy): """ Basic cheat strat, show the next card in deck """ def hit(self): print("Next card: " + str(self.game_state.deck.cards[-1])) return raw_input("h to hit or s to stand: ") == 'h'
[ "stewasc3@student.op.ac.nz" ]
stewasc3@student.op.ac.nz
700e1bb227aa8d04f4608999e5cb91fc629ffc26
0bc1cf3ce50a035dc85b56e32bd930c91a8776c0
/blog/migrations/0001_initial.py
91ae6deba16376ca31124388427bb7421762a9a4
[]
no_license
RiaLolwut/djangogirls
7c2fa64a2824b48fbbafc2f980d654f511562063
a81c14065bbf74ff04f5e8874b3acacc347651e9
refs/heads/master
2020-04-29T06:35:30.459881
2019-03-16T06:20:00
2019-03-16T06:20:00
175,921,534
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
# Generated by Django 2.0.13 on 2019-03-16 03:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
[ "riaparishseo@gmail.com" ]
riaparishseo@gmail.com
3b4b65765a6275e2b4fed60d9412aac3f7fb9665
d12b59b33df5c467abf081d48e043dac70cc5a9c
/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/passcriteria_985f11fda90dc3b8dac84a4a881b8740.py
6920d6cfe8478b76037b42d0c156e50d2daa5519
[ "MIT" ]
permissive
ajbalogh/ixnetwork_restpy
59ce20b88c1f99f95a980ff01106bda8f4ad5a0f
60a107e84fd8c1a32e24500259738e11740069fd
refs/heads/master
2023-04-02T22:01:51.088515
2021-04-09T18:39:28
2021-04-09T18:39:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,492
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
[ "andy.balogh@keysight.com" ]
andy.balogh@keysight.com
f26a1a8661049360f37f28aae77619d1416b9783
25d8dd91bcdb2ae02e260d81a4c6e79417ee213e
/hw/project/text_classification/mapreduce/knn/map.py
fd155d3551f0310add2108b0b3053e14538b4875
[]
no_license
huhuk/FBDP
4b885c2cccda24ffea4edcaad90e4495a6870819
95a4d3271c95d13db9ff1f7396177e34148bc970
refs/heads/master
2021-04-25T15:37:28.086901
2018-02-28T07:25:50
2018-02-28T07:25:50
109,667,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
#!/usr/bin/python3 import sys import pickle import numpy as np import scipy as sp from sklearn.feature_extraction.text import TfidfVectorizer k = 3 def load(filename): f = open(filename, 'rb') obj = pickle.load(f) f.close() return obj # count_vec = load('./tfidf.model') x_train = load('./x_train.mod...
[ "huhu_qs@163.com" ]
huhu_qs@163.com
ec356e53c4d259f06b48074389ec9b57fb66f575
199522cb43b4e2c7e3bf034a0e604794258562b1
/0x03-python-data_structures/7-add_tuple.py
96d715528f3d23cdf3d725a9838247a97a8e4635
[]
no_license
jormao/holbertonschool-higher_level_programming
a0fd92f2332f678e6fe496057c04f2995d24a4ac
360b3a7294e9e0eadcadb57d4c48c22369c05111
refs/heads/master
2020-09-29T01:36:20.094209
2020-05-15T03:27:06
2020-05-15T03:27:06
226,915,744
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
#!/usr/bin/python3 def add_tuple(tuple_a=(), tuple_b=()): if len(tuple_a) != 2: if len(tuple_a) == 1: tuple_a = (tuple_a[0], 0) if len(tuple_a) == 0: tuple_a = (0, 0) if len(tuple_b) != 2: if len(tuple_b) == 1: tuple_b = (tuple_b[0], 0) if len(...
[ "jormao@gmail.com" ]
jormao@gmail.com
4eff2793d09f4ab95e340f10730da9548630656b
f348191ea2ee92f4154f9f2819dbc11ba209dc8c
/app.py
74b0f6f02805b342507aef2101c130969aa6cbb6
[ "MIT" ]
permissive
ish-u/sparrow
f9be3e6bcd2df4a655fc18f4938fe7c95f2f09c6
18fb031a96c5443e6922c3b7d54f79cc4eb141bf
refs/heads/master
2020-12-03T12:08:21.958397
2020-01-05T09:58:24
2020-01-05T09:58:24
231,310,037
0
0
null
null
null
null
UTF-8
Python
false
false
5,732
py
from hashlib import md5 import urllib, hashlib from datetime import datetime from flask import Flask, escape, request, render_template, redirect ,session ,flash import sqlite3 from passlib.hash import sha256_crypt from functools import wraps from flask_avatars import Avatars def login_required(f): @wraps(f) def wra...
[ "anmolgupta520@gmail.com" ]
anmolgupta520@gmail.com
b9bb003ddc62e1d45453d22efe039b1eb758af9c
20ae4d697181fb9810e13213313f97071e28e8ef
/parse/__main__.py
5fa9d49de4d1330cc22a9f8513310b2c9a4cc402
[]
no_license
software-opal/nz-local-election
79afb0ad34a81f5be5018abe0062f0c159c4156a
904cd985ef9b225bf3c92c82fcbd66c68b1aa43d
refs/heads/master
2020-08-03T02:16:59.057271
2019-09-28T06:19:21
2019-09-28T06:19:21
211,593,768
0
0
null
2020-06-07T08:06:50
2019-09-29T02:57:20
Python
UTF-8
Python
false
false
2,985
py
import itertools import json import pathlib from . import ( COUNCILLORS_URL_FORMATS, DHB_URLS, MAYOR_URLS, REGIONAL_COUNCILLORS_URL_FORMATS, ) from .load import InvalidPage, parse from .visit import Requester ROOT = pathlib.Path(__file__).parent.parent DATA = ROOT / "public/data" LOOKUP = ROOT / "src/...
[ "leesdolphin@gmail.com" ]
leesdolphin@gmail.com
4494b119785b3c4ad00149d3407d60b1f571ca22
4c7e44b17782f1f1823238cf874ff298900d98ef
/config.py
c2878ccab1deee984f877ba8569500e6dc40ab83
[]
no_license
dynamodenis/blog-arena
c2195262f2dec199b159e6383a2b5f14a4046799
10be4fffe63c061b3c67c664458b45eee00e8b95
refs/heads/master
2022-06-29T18:36:06.261840
2020-05-09T07:10:48
2020-05-09T07:10:48
262,506,328
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
class Config: pass class ProdConfig(Config): pass class DevConfig(Config): DEBUG=True class TestConfig(Config): pass config_options={ 'development':DevConfig, 'production':ProdConfig, 'test':TestConfig }
[ "dmbugua66@gmail.com" ]
dmbugua66@gmail.com
9a29224011fd3cca3b90735ed27fe0b1c8ed6bb9
699b767e854162231914f4bce177382a9880f221
/LinkedList/AddTwoNumbers.py
7f503cc9821d09b900119e244d002187998d27d2
[]
no_license
XiwangLi/LeetcodeArchive
a66dc32f0a7248ff05cbe09dd0095191fefc602f
3de4a48f9f7de2970cf02751c1620281bae0947d
refs/heads/master
2021-04-28T02:57:55.604505
2019-02-28T01:07:51
2019-02-28T01:07:51
122,128,291
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ head=ListNode(0) curr=head val=0 ten=0 while l1 or l2 or val: if l1: val+=l1.val ...
[ "xiwangli2010@gmail.com" ]
xiwangli2010@gmail.com
954591c4ca9b4b8c04d67211df68bdaf6f07a24a
fdf616efcf505843621f830879ca3ff44e296772
/myproject/accounts/tests/test_view_signup.py
2c58c0ae28411268e1e00d0e5742581d73da65ba
[]
no_license
dym0080/learn-django
5cbab1c9696638ffe47a3335cf33d7638fe77523
2d9450098f516ed887de0a953b0945ee5047d9f5
refs/heads/master
2022-05-05T12:00:23.127079
2020-01-09T07:52:37
2020-01-09T07:52:37
228,332,281
0
0
null
2022-04-22T22:58:00
2019-12-16T07:53:45
Python
UTF-8
Python
false
false
2,749
py
from django.urls import reverse, resolve from django.contrib.auth.models import User # from django.contrib.auth.forms import UserCreationForm from django.test import TestCase from ..views import signup from ..forms import SignUpForm class SignUpTests(TestCase): def setUp(self): url = reverse('signup') ...
[ "308960474@qq.com" ]
308960474@qq.com
3d97b330f77024758577eaa3b15f7e554fac1016
d880f73ae1b791f73789ab51916e5eb74c6c2a23
/aiologger/filters.py
87cbba86d9771928ce63e25b5a45686b14645b7b
[ "MIT" ]
permissive
decaz/aiologger
d16e651f1358416e51f84d4103fb037f39f085c8
94e9c126280d1ede315a6fc3531ac17c21a2c33a
refs/heads/master
2020-05-01T05:00:02.343984
2019-03-03T16:57:51
2019-03-03T16:57:51
177,288,933
0
0
MIT
2019-03-23T12:56:44
2019-03-23T12:56:43
null
UTF-8
Python
false
false
146
py
import logging class StdoutFilter(logging.Filter): def filter(self, record): return record.levelno in (logging.DEBUG, logging.INFO)
[ "magalhaesmartins@icloud.com" ]
magalhaesmartins@icloud.com
5e3d18247eb1b3e3f1789add50668361ee4ebffd
f894c0969d30437b27ef4d0d81a99660bab10716
/learn_python/Day1/assignment1/quickpython.py
ee38744c52832b0503f6d108f472fea9ba41d649
[]
no_license
AnandSankarR/Data_BootCamp_2018
364357e73a47e60990fd43dd37f427823f0b40ab
c5e4f818722864f8f56df5387a9f9cbe849ae3e4
refs/heads/master
2021-05-03T13:01:31.131736
2018-02-22T00:56:25
2018-02-22T00:56:25
120,506,879
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
print("This File Works")
[ "anandsankar.r@gmail.com" ]
anandsankar.r@gmail.com
23c8d69f239e68820d41f4185adcd5f0106ad42c
799a1bbafe9ceb6fcf6530d176633a7f97980dad
/rosExploration/rrt_exploration/scripts/functions.py
ff7a90d07e7e15a5893aa3a916f02fcd97deeea5
[ "MIT" ]
permissive
dingjianfeng/rosExplorationNew
e6598ed4b0907d7bc8740acf4ea05d8bae9a1524
53b8b6bcdd3372c5e6fbaecae9f66f266dcf70c0
refs/heads/master
2021-09-01T06:38:27.366634
2017-12-25T11:45:22
2017-12-25T11:45:22
115,333,542
0
0
null
null
null
null
UTF-8
Python
false
false
7,206
py
#!/usr/bin/env python #coding=utf-8 import rospy import tf from numpy import array import actionlib from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from nav_msgs.srv import GetPlan from geometry_msgs.msg import PoseStamped from numpy import floor from numpy.linalg import norm from numpy import inf #_______...
[ "623395241@qq.com" ]
623395241@qq.com
b6061c81fb9c14cfe8a4b4a93e891fc90327de11
38444340385ab91a9148b10db3a981246b4496ff
/app/forms.py
cf23a56282b7fbe1de24973ded5f0f3faf55254e
[]
no_license
dannzii/info3180-lab3
e27d7e82b18c27402f4e32ff2c8857f72b728b44
9a8c14c83ac8bad1c1895e05ebf03430caed6464
refs/heads/master
2020-04-22T06:15:11.017922
2019-02-14T20:28:16
2019-02-14T20:28:16
170,184,314
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField from wtforms.validators import DataRequired, Email class ContactForm(FlaskForm): name = StringField('Name', validators=[DataRequired()]) email = StringField('Email', validators=[DataRequired(), Email()]) subject = StringField('...
[ "34076867+dannzii@users.noreply.github.com" ]
34076867+dannzii@users.noreply.github.com
80540c5cae67b520926b96635014c4e26aefccd2
2f1f7d0711e054a96f10e849bdac5efcb45c4f39
/deps/v8/SConstruct
c7b6cdd9f20818e0de94545202ba89fd4188bb46
[ "BSD-3-Clause", "MIT" ]
permissive
skyformat99/lbtt
ef25d0054ec539d6d77e25e5b0ce8febc4fdc0e8
6cf6418a639cc339615c3ecc6e78e1939a9cc1cb
refs/heads/master
2021-05-27T18:13:03.711188
2009-09-12T01:17:41
2009-09-12T01:17:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,173
# Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
[ "lucas@l3f.org" ]
lucas@l3f.org
1a406e49cacab5c4dcd0d7e60c97c70a3b1a7a36
bb05e1fafef1a62b85d5c97f10c9557cf7a240cc
/task_07_01.py
5bf2d6e493ddc44f970bb650a0474271f3285a79
[]
no_license
Nafani4/Home_work
3bbc192dc6a43c40fd0358dfec863241e7b3ab96
69ce5d4321b3fc6b4bf4db7191912c3d4f4f8907
refs/heads/master
2021-05-16T03:31:23.457108
2017-11-26T21:11:30
2017-11-26T21:11:30
105,476,626
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
def fibonacci (num): x, y = 0, 1 for i in range(num): x, y = y, x + y yield x if __name__ == '__main__': print(fibonacci(10)) for i in fibonacci(10): print(i)
[ "grebennikov.mikhail@gmail.com" ]
grebennikov.mikhail@gmail.com
0a884db25123476946a8d29963a9b291c969e426
aa89d7e6dfcf1da91fd5dfed6b966f342c24cc16
/p.py
b4757ebf5434fb383faf678e34598c858773c642
[]
no_license
nanfeng-web/mine-pictures
6aad709904b07acd288603f793759b707e9f4b04
7a7cd2f3de63feacac7fd6824b9fc030eb8e23b3
refs/heads/main
2023-08-07T09:52:05.801232
2021-10-01T09:02:44
2021-10-01T09:02:44
399,729,566
1
0
null
2021-09-23T23:58:45
2021-08-25T07:29:52
null
UTF-8
Python
false
false
149
py
import requests response = requests.get("https://api.nmb.show/1985acg.php") file = open("paqu","wb") file.write(response.content) file.close()
[ "noreply@github.com" ]
nanfeng-web.noreply@github.com
affeefebfe3fea12f782e19ec9b4436fcfec1e64
8489a961a13492fea2ef76f18b86fa2ecaec93c2
/web_app_interface/marfSite/manage.py
67388189c584ba2d010e526d7c135676b6f18c5e
[]
no_license
kavanomo/teamMarf
84ff8496488cc8f27a997fddbd550798ee6218d4
461d23144d26e8836e04e6c930a961fccef28465
refs/heads/master
2020-03-30T05:14:15.681749
2019-03-15T03:33:35
2019-03-15T03:33:35
150,788,570
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'marfSite.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
[ "robbie.windsor+git@gmail.com" ]
robbie.windsor+git@gmail.com
796a852c4ccdd0bc598e0b373567c854094d0cfd
45fb509bf21ac003a40fd404d7c0cc995e741672
/perceptron_algorithm/perceptron_algo_2nd_method.py
59807adb1a2c854110b8644f2b103f49899851f4
[]
no_license
FarahAgha/MachineLearning
0d17511f7495190dfd2368554428208c7d0eadf7
cf385135e016a63fb16bd326586fcd8ecb3c4355
refs/heads/master
2021-01-04T01:03:08.810401
2020-03-15T18:42:16
2020-03-15T18:42:16
240,314,331
0
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
# Perceptron Algorithm perceptron_algo_2nd_method.py # See https://medium.com/@thomascountz/19-line-line-by-line-python-perceptron-b6f113b161f3 for details. import numpy as np class Perceptron(object): def __init__(self, no_of_inputs, threshold=100, learning_rate=0.01): self.threshold = threshold ...
[ "you@example.com" ]
you@example.com
f85417abce36ad169336e4c143d0ed7ba2a666ea
1082d5cde908e101c51f69923212dcae4b4b60f4
/examples/sub_menu.py
9d7901f2f97b295d736199ba1b9a578957e289d8
[ "MIT" ]
permissive
SaxonRah/UnrealEnginePython
88039c62024d01672138c4adeecac0fc9729bed0
d5f3b2e7a42209af31cbbd47377633e8d452439c
refs/heads/master
2021-01-04T23:56:44.556697
2020-02-16T00:38:43
2020-02-16T00:38:43
240,805,780
7
1
MIT
2020-02-16T00:03:20
2020-02-16T00:03:19
null
UTF-8
Python
false
false
1,313
py
import unreal_engine as ue def open_submenu001(builder): builder.begin_section('submenu001', 'i am a tooltip') builder.add_menu_entry('sub_one', 'tooltip', lambda: ue.log('hello from submenu001')) builder.add_menu_entry('sub_one_2', 'tooltip 2', lambda: ue.log('hello again')) builder.end_section() def...
[ "roberto.deioris@gmail.com" ]
roberto.deioris@gmail.com
f9dd6d91e8aaee9919ed20cb74c14fc6f2d22c8b
44c81d8cc9c148c93cf9a77faec345693059c973
/fetch.py
568adf1e9271c6ebe976f93a3b0c8306a2ea428a
[]
no_license
neoatlantis/currency-data
26566a5131b814f324153db451ae9f879fda9b72
c19bc94d6d6ba6706f625e94e176b77bee455b04
refs/heads/master
2020-06-10T19:02:58.973856
2016-12-08T06:35:46
2016-12-08T06:35:46
75,902,576
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
#!/usr/bin/env python import os import time import requests import shelve import sys BASEPATH = os.path.realpath(os.path.dirname(sys.argv[0])) filepath = lambda *i: os.path.join(BASEPATH, *i) # check for api key try: apikeyFilepath = filepath('apikey') apikey = open(apikeyFilepath).read().strip() except: ...
[ "contact@chaobai.li" ]
contact@chaobai.li