blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5396130afb19fb7565ea155641dd2078b0d838e5 | 7431f68767f71ff763e01170f03cb72f22912d9a | /ImgProcess/ImgProcess/opencv_src/opencv-1.0.0/tests/python/highgui/cvQueryFrame.py | 9f4656598dfecf0eb96ef7addaf2bc9521707a66 | [
"BSD-3-Clause"
] | permissive | panyong198801/omr_C_plus_plus | 115d7c137510fb76e89e1daa38297493d932d6aa | 27316625eaa7004b9414348d43f2f7a0167bae75 | refs/heads/master | 2021-07-07T03:00:28.147954 | 2017-09-25T05:16:00 | 2017-09-25T05:16:00 | 104,538,415 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | #! /usr/bin/env python
"""
This script will test highgui's cvQueryFrame() function
"""
# name of this test and it's requirements
TESTNAME = "cvQueryFrame"
REQUIRED = ["cvGrabFrame","cvRetrieveFrame"]
# needed for sys.exit(int) and .works file handling
import sys
import works
# check requirements and delete old fla... | [
"py@mteach.cn"
] | py@mteach.cn |
f77dfc01a456c527b711da06d60acf67218c7d24 | 1fe46d2df2e4ad13ec92643c715fb8c2aa8b9e60 | /Bayesian_networks/bn.py | 8161d9e73dbe57fa9802b2ee2239c427a49a3814 | [] | no_license | ninikolov/MLAP | f05f5c39816362cdee7c398e233a2cc0172e5de8 | b70f4412fc21c8f2e918192136767142c96fcc00 | refs/heads/master | 2020-12-28T20:09:14.721553 | 2015-06-01T07:17:58 | 2015-06-01T07:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,355 | py | '''
Created on 25 Feb 2014
Code for MLAP Open Assessment, Part 2.
Bayesian networks.
@author: Y6189686
'''
from collections import OrderedDict
import csv
import itertools
import random
import time
import numpy as np
def read_data_file(input_file):
"""Read a csv data file and produce a numpy ndarray.
0s... | [
"Nikola Nikolov"
] | Nikola Nikolov |
941be4b8438792abfd124adeb719020767cd20a6 | 3b9d763180410bf0abf5b9c37391a64319efe839 | /otp/otpbase/OTPLocalizer.py | 3222f25761caa91c3b918961d47e157f00ac9608 | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | # File: O (Python 2.4)
from panda3d.core import *
import string
import types
try:
language = getConfigExpress().GetString('language', 'english')
checkLanguage = getConfigExpress().GetBool('check-language', 0)
except:
language = simbase.config.GetString('language', 'english')
checkLanguage =... | [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
92d6d409cc61eabd9d9d8c101f3019820125f502 | 7da4c8fc694ea88eb2b37bb903e4a694c197eca7 | /Box_Sync/lib/python3.5/copy.py | 489e65f88ce3bd88ff8b7591fbb5e19f26c64115 | [] | no_license | Michael-hsiu/Paper-Planes | 313f0cd2f57f96a3ff41e1048746389c53a30d58 | f19eae1984e493d88d81bebfae24d13ba751a3ab | refs/heads/master | 2020-04-05T10:14:38.354357 | 2017-09-01T06:43:45 | 2017-09-01T06:43:45 | 81,372,204 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | /Users/michaelhsiu/anaconda/lib/python3.5/copy.py | [
"michael.hsiu@berkeley.edu"
] | michael.hsiu@berkeley.edu |
4d37cb255f781336c1466d1edc90cebb7ef0e768 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_249/ch85_2019_06_06_22_44_10_896318.py | 540d8e6df78c3bf871b8d7fc86bdf1bce34efcbb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | with open('macacos-me-mordam.txt','r') as arquivo:
a=arquivo.read()
b=a.lower()
c=b.split()
x=0
for i in c:
if i== 'banana':
x+=1 | [
"you@example.com"
] | you@example.com |
a8c5acce8b25dcec81f3fe249e37e41278bda7a7 | 8a70f42d3ce1138761bbff76f336bf5ffd338730 | /array-1/3052.py | ea7ad73ec5cb54ceadb147bb06f2c7b08503ee47 | [] | no_license | sohye-lee/algorithm_study | 2d72d352b13e464809487ff5ce269676c8ff3e43 | 79648a3f1ee30d77ee7f584c210eedc5f1c17b7b | refs/heads/main | 2023-05-31T01:22:01.835138 | 2021-07-11T01:08:31 | 2021-07-11T01:08:31 | 378,082,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | nums = []
for i in range(10):
nums.append(int(input()))
def leftover(num):
return num%42
nums = map(leftover, nums)
print(len(set(nums)))
| [
"61291530+sohye-lee@users.noreply.github.com"
] | 61291530+sohye-lee@users.noreply.github.com |
0aac9721680fc55f72df8b2676889cf637aebadd | 441f9702776b4073a8458108a50386294d8848da | /实验心理学/阈限测定实验/python数据处理/恒定刺激法/test2.py | 499df301a9d9f3b55c3e70bdfddebedd91bcdae5 | [] | no_license | Lemonononon/Psychology-Learning-In-ZJU | 17a5c6c7a217f36cfe16f7d8a8848a0913be687f | a3373a9d40c0a6c825cd880d4efd81e31bc59c80 | refs/heads/master | 2023-05-08T12:34:27.065469 | 2021-06-03T08:32:17 | 2021-06-03T08:32:17 | 232,965,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | import numpy as np ##科学计算库
import scipy as sp ##在numpy基础上实现的部分算法库
import matplotlib.pyplot as plt ##绘图库
from scipy.optimize import leastsq ##引入最小二乘法算法
'''
设置样本数据,真实数据需要在这里处理
'''
##样本数据(Xi,Yi),需要转换成数组(列表)形式
Xi=np.array([6.19,2.51,7.29,7.01,5.7,2.66,3.98,2.5,9.1,4.2])
Yi=np.array([5.25,2.83,6.41,6.71,5.1,4.2... | [
"lemonon@zju.edu.cn"
] | lemonon@zju.edu.cn |
09dba8b2532852da052af347d2511e9e7e8db3c2 | ecd2b21b7bb6a47ffc45757021c6916ece3f7f93 | /K-State/CIS301/Assign-2/q1A.py | 5d00347e5ec2fb5f69a6268f060e9094f8d529ca | [] | no_license | amgregoi/School | 312bc9449f5584713a475f0e8a64af0805169425 | effb6b6d0667a19437efd15d15a43cf95fda6ac2 | refs/heads/master | 2021-01-17T06:50:39.438326 | 2016-06-23T05:03:40 | 2016-06-23T05:03:40 | 47,589,088 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # Q1.py
x = readInt()
y = readInt()
if y > x :
ans = y - x
"""{1.OK y > x premise
2.OK ans == y-x premise
3.OK ans > 0 algebra 2 1
}"""
else :
"""{1.OK not(y>x) premise}"""
ans = x - y
"""{1.OK not(y>x) premise
2.OK ans == x-y premise
3.OK ans >= 0 algebra 2 1
}"""
# prove ans >= 0 | [
"amgregoi@ksu-wireless-236-202.campus.ksu.edu"
] | amgregoi@ksu-wireless-236-202.campus.ksu.edu |
1c683d90daeadfafe005fbb19d7277ae13143a25 | 79f0c69251edd20f7927a4450d1be8902777f56a | /visualize.py | dbbaae45b39189e514ebc8c7ebafa854796a956e | [] | no_license | Dai7Igarashi/DCGAN | 887a63211ce71f0e5559e99bbd3d4e7f21b07015 | 502239cb462cd83f3cf2894497aaa6b71bb4615c | refs/heads/master | 2020-03-20T08:37:52.835501 | 2018-06-14T07:24:07 | 2018-06-14T07:24:07 | 137,308,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # coding: UTF-8
import os
import numpy as np
from PIL import Image
import chainer
def out_generated_image(gen, rows, cols, seed, iteration, xp):
np.random.seed(seed)
n_images = rows * cols
z = chainer.Variable(xp.asarray(gen.make_hidden(n_images)))
with chainer.using_config('train', False):
... | [
"40178733+Dai7Igarashi@users.noreply.github.com"
] | 40178733+Dai7Igarashi@users.noreply.github.com |
08e80c4ac2d82bc38c4733a226748b5b31e8685b | 42c25d423438afd39fa4ee79a69877dee6f6e7ce | /models/gannet/common.py | 39bbe425d61d2c0d45e40b01d5bb80de437443f3 | [
"MIT"
] | permissive | LiuShaohan/AnimeGAN-1 | 0d93bc67444fe635cc276f385a7935d384a3f795 | 1c050777e2f361e98cd53cd4a6373e89a86ffd35 | refs/heads/master | 2022-04-23T02:03:40.290782 | 2020-04-26T07:09:36 | 2020-04-26T07:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,407 | py | import tensorflow as tf
k = tf.keras
K = tf.keras.backend
kl = tf.keras.layers
from tensorflow.python.ops import nn
from tensorflow.python.keras.engine.input_spec import InputSpec
from tensorflow.python.framework import tensor_shape
from tensorflow.python.ops import nn_ops
from tensorflow.python.ops import array_ops
fr... | [
"597323109@qq.com"
] | 597323109@qq.com |
b1f024ff452af5ca6cf657236e16ffd2f19832a1 | 56ca9cbd29bf0bbd545b5857530fbbe8c6ffff95 | /training_api/gluoncv/auto/estimators/image_classification/image_classification.py | 3fbb08ba36958ba4a66598e61eb190433995b610 | [
"Apache-2.0"
] | permissive | hadikoub/BMW-Semantic-Segmentation-Training-GUI | b34bf819942dbe20a3a6df2bc44b6435ca3e6754 | 902f35a7e367e635898f687b16a830db892fbaa5 | refs/heads/main | 2023-06-13T05:00:55.631277 | 2021-06-30T15:34:26 | 2021-06-30T15:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,262 | py | """Classification Estimator"""
# pylint: disable=unused-variable,bad-whitespace,missing-function-docstring,logging-format-interpolation,arguments-differ,logging-not-lazy
import time
import os
import math
import copy
from PIL import Image
import pandas as pd
import numpy as np
import mxnet as mx
from mxnet import gluon... | [
"123.hadikoubeissy@gmail.com"
] | 123.hadikoubeissy@gmail.com |
76485426bb9446a75974abee66c0f5c0901297b7 | 41abc6daadc12dc0f28ece3a7ff885c3fa6bb1d6 | /total_crescente.py | fbde3ba973d2f9ef163fda35c1a070eb078d7443 | [
"MIT"
] | permissive | fabiobarretopro/Aprendendo-Python | fab0f6c08a03b6fda08dcb4df7419c1f1bdd7bb4 | a47acf6b9fdfdad55853e620db451a6a2e61bc6f | refs/heads/main | 2023-03-01T04:09:05.382774 | 2021-01-29T22:22:36 | 2021-01-29T22:22:36 | 321,541,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | resp = "S"
lista = []
totnum = 0
while resp == "S":
num = int(input("Digite um valor: "))
totnum = totnum + 1
lista.append(num)
resp = str(input("Quer continuar? [S/N] ")).upper().strip()
if resp == "N":
break
ordem = sorted(lista)
desc = ordem[::-1]
print(f"Foram digitados {totnum} números... | [
"romaobarreto@hotmail.com"
] | romaobarreto@hotmail.com |
6bb7779dafd0960ae37c5e18da495cc118513082 | f5c9a7881d5816af16dc8165958af3ddaaf6e54d | /keyboard.py | f33c2def1265b9cad0dc5f69230af03b2e3dc184 | [] | no_license | kishkoltz/Pygame-projects | cd039a74cb30d4629a24a31edc9c5d80a648e971 | 4f45bcb50ebdb9c6787e3d61b9e2f3a627a07cad | refs/heads/master | 2020-03-07T07:49:47.083219 | 2018-04-06T23:28:42 | 2018-04-06T23:28:42 | 127,359,788 | 0 | 0 | null | 2018-04-05T02:16:08 | 2018-03-30T00:04:28 | Python | UTF-8 | Python | false | false | 3,025 | py | # E:\ppython\app\python.exe keyboard.py
import pygame, sys, random
from pygame.locals import *
pygame.init()
mainClock = pygame.time.Clock()
WINDOWWIDTH = 400
WINDOWHEIGHT = 400
windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32)
pygame.display.set_caption('Input')
BLACK = (0, 0, 0)
GREEN = ... | [
"AB64420@savvis.ad.savvis.net"
] | AB64420@savvis.ad.savvis.net |
d4cf6e769295f8c41c5952664bf2190929cee3ed | d4c47276c8fbd15240aa228eda04ee8e338caf02 | /Python/Python Lesson/First/Lesson10/Sample7.py | 4e62f97f74dd3eab8feef9e103efde9cdc40f7f6 | [] | no_license | developer579/Practice | a745384450172fb327913c130303ab76492096f1 | 54084468af83afcc44530e757800c8c3678147c1 | refs/heads/main | 2023-05-06T01:36:06.222554 | 2021-06-02T07:04:03 | 2021-06-02T07:04:03 | 324,312,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import os
import os.path
curdir = os.listdir(".")
for name in curdir:
print(os.path.abspath(name),end="")
if(os.path.isfile(name)):
print("ファイルです。")
else:
print("ディレクトリです。")
print() | [
"69954570+developer579@users.noreply.github.com"
] | 69954570+developer579@users.noreply.github.com |
c5f6abc35b9a7866479d761fd1cbbe9b175d886c | 2db9dc919c1018fd968920a230dd17731aada1f6 | /setting.py | bf552986bb988d24f68f216d0f8a488e5fd5e002 | [] | no_license | Helo250/ops-audit | d6efc0cbcfbad4b8e434ce20575afa2762622117 | 71a6d0f49e2bbd42e26aede9f18ecb51d9be702d | refs/heads/master | 2022-12-09T12:14:01.811694 | 2019-11-07T06:25:45 | 2019-11-07T06:25:45 | 220,165,686 | 0 | 0 | null | 2022-12-08T06:56:20 | 2019-11-07T06:20:14 | Python | UTF-8 | Python | false | false | 2,218 | py | # -*- coding: utf-8 -*-
# Filename: setting
# Author: brayton
# Datetime: 2019-Oct-12 10:51 AM
import os
import yaml
import dill
import datetime
PROJECT_ROOT = os.path.dirname(__file__)
SERVICE_NAME = 'cmdb-audit-service'
SERVICE_ID = 'cmdb-audit-service01'
SERVICE_HOST = os.environ.get('SERVER_HOST', 'localhost')
... | [
"shenwei@huored.com"
] | shenwei@huored.com |
874a33c9d182ae552ade2e38239d1c022226c5c7 | 675cac8e63c6427e96cca90e5a9406df5a5b59d1 | /ex18.py | 4d7b192ec5f61928716557ede1d07bb41108c7eb | [] | no_license | agranado2k/learn_python_hard_way | a0b3f9ac46cd9af66d14b3c8efc78ad7ef17e689 | 771ed2aea8f25a77b36e69b0d6323436cec944ad | refs/heads/master | 2020-04-05T16:09:49.235040 | 2018-11-14T23:04:27 | 2018-11-14T23:04:27 | 156,999,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # this one is like your scripts with argv
def print_two(*args):
arg1, arg2 = args
print "arg1: %r, arg2: %r" % (arg1, arg2)
# ok, that *args is actually pointless, we can just do this
def print_two_again(arg1, arg2):
print "arg1: %r, arg2: %r"% (arg1, arg2)
# this just takes one argument
def print_one(arg... | [
"agranado2k@gmail.com"
] | agranado2k@gmail.com |
1c86d27e38edb36ba9212a3f592e493248fee0d9 | be61a9f30274514857ea34297719157f1e5b8447 | /fhir/resources/DSTU2/bodysite.py | 8d3a68655c6a3d01d5742057013718e73ddc7690 | [
"BSD-3-Clause"
] | permissive | jwygoda/fhir.resources | ceff3a620100d2e875136b86d3e82816c0e60a33 | 5053565570d1ca992d9971d20db813c53fd350b9 | refs/heads/master | 2021-02-05T02:59:17.436485 | 2019-07-18T10:57:33 | 2019-07-18T10:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/BodySite) on 2019-05-14.
# 2019, SMART Health IT.
from . import domainresource
class BodySite(domainresource.DomainResource):
""" Specific and identified anatomical location.
Recor... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
6a6fb7d10791e87785ef4b04d292d754cac96e74 | 12a012ace19a14fc2c4ce2daec7a9df94cd5d925 | /숫자 짝꿍.py | 55b4dcb72a2af3bc5d96acd7b0e4367906372cfb | [] | no_license | newfull5/Programmers | a0a25fd72c0a8a7932122cb72e65b28ecd29ff71 | b880a8043427f6aa7dc72caa3e46b1f6584a8962 | refs/heads/master | 2022-12-28T13:46:52.215347 | 2022-12-12T13:50:53 | 2022-12-12T13:50:53 | 211,209,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from collections import Counter
def solution(X, Y):
answer = ''
X = Counter(X)
Y = Counter(Y)
y_keys = Y.keys()
for k, v in X.items():
if k in y_keys:
answer += k*min(X[k], Y[k])
if not answer:
return '-1'
if list(set(answer)) == ['0']:
... | [
"noreply@github.com"
] | newfull5.noreply@github.com |
69f4d59b29de8bc418e9078ce321a4b3680987dc | 0642e86f639f3a14ccf0029cc07ce07ae43ed14e | /dashboard/migrations/0003_logbydate.py | 0f414444b3ffa2a1aa2c314da94e1ec9f14f2b36 | [] | no_license | towfiq001/mylogmonitor | ff88ff1a72717ceeeb9b3cba2cc0411aa9d9a1c5 | bd5409d69e80ab28face488e18a0baaeb03ad69e | refs/heads/main | 2023-07-17T14:58:58.768491 | 2021-08-29T09:48:07 | 2021-08-29T09:48:07 | 400,973,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # Generated by Django 3.2.4 on 2021-08-28 19:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0002_loghistory'),
]
operations = [
migrations.CreateModel(
name='LogByDate',
fields=[
... | [
"trtonoy@yahoo.com"
] | trtonoy@yahoo.com |
c58765992933303158855e4c04170fd68415b82d | 37b889b51e96e234289d5f585841ae02eb256d58 | /tictactoe.py | 25454430043f0d9aa00112a1b886e9ca3ca1f803 | [] | no_license | aambrioso1/Generalized-Tictactoe | 7306a9342ba82889eead71e64ef0389ff8dcd6e4 | e2aa605763893b68ec5dbdc0bccaef332001afb6 | refs/heads/master | 2020-05-18T08:45:04.211587 | 2020-03-25T02:41:51 | 2020-03-25T02:41:51 | 184,304,117 | 2 | 0 | null | 2019-05-05T17:49:59 | 2019-04-30T17:28:28 | Python | UTF-8 | Python | false | false | 4,368 | py | """
Tic-Tac-Toe Program based on a program found here:
https://www.geeksforgeeks.org/python-implementation-automatic-tic-tac-toe-game-using-random-number/
The size of the board is arbitrary and controlled by the size variable.
The user can input moves based on the move dictionary: { 1: (0,0), 2: (0, 1), ...}.
... | [
"noreply@github.com"
] | aambrioso1.noreply@github.com |
7c6675cfd79cfd95ce08113e603d7e0fa6f4c6be | 7569bb6b8d64b6d526bdc9f89927fda21845876e | /demo/normalize_intensity.py | 61db34106f11de2171c420b266a007b282103707 | [] | no_license | ActiveBrainAtlas/MouseBrainAtlas | e46077be7c0819daa7c95797422ea288263dcf78 | b6ca6afcfc88f6772b073b9ad2bf5d0b3bf840bd | refs/heads/master | 2021-07-03T09:01:23.073135 | 2019-04-19T23:24:19 | 2019-04-19T23:24:19 | 140,217,476 | 12 | 6 | null | 2018-07-09T16:58:47 | 2018-07-09T01:44:54 | Jupyter Notebook | UTF-8 | Python | false | false | 1,461 | py | #! /usr/bin/env python
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
description='Linearly normalize intensity to between 0 and 255')
parser.add_argument("input_spec", type=str, help="Input specification")
parser.add_argument("out_version", type=str, ... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
203ac1a069916f9294e948a6a187b71841823c70 | f88dca5043cfd0ea9c41867af32f6590bac63eda | /index.py | 1c3ef24389ff686d7c43864a16f5ce3b2f8f6de3 | [] | no_license | Jimmyopot/imran-ahmed-ds-algorithms | dd4e1856b4a7686938b3be89709a773bcbec21d7 | 7fcdd10ad6436fd56e7bc82e7d56077127ec0e1f | refs/heads/master | 2023-07-27T04:12:36.905540 | 2021-09-14T03:40:12 | 2021-09-14T03:40:12 | 405,817,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | import pandas as pd
import numpy as np
df = pd.DataFrame([
['1', 'Fares', 32, True],
['2', 'Elena', 23, False],
['3', 'Steven', 40, True]
])
df.columns = ['id', 'name', 'age', 'decision']
print(df)
print(df.name)
myMatrix = np.array([[11, 12, 13], [21, 22, 23], [31, 32, 33]])
print(myMatrix)
print(type(... | [
"jimmyopot@gmail.com"
] | jimmyopot@gmail.com |
1d480f4c67e3a9f992beed61a28c0a72eaffb130 | d69c727d66c3f77e54382376540e6406ba015463 | /posts/migrations/0002_auto_20161215_2239.py | b6f4aafa371945d48959a60557127f75918b6c75 | [] | no_license | 4dd4m/LearnDjango | a97a848fc8c9ba974dce82d474fec2770fbfb4e0 | 2e1af10d7c49056b3979e9d7fd9c24d9a24b206f | refs/heads/master | 2021-06-12T13:20:57.020884 | 2017-01-16T14:53:25 | 2017-01-16T14:53:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-15 22:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"87.adamtorok@gmail.com"
] | 87.adamtorok@gmail.com |
aea6c45cb7c1ce7db49246097c0bd8fda3eb7386 | 2b2ae404b63d362582779e6faff987db2b8f4927 | /manage.py | eb43a14d9eea76cab575c036009eb8404bd48617 | [] | no_license | kateapault/dog-watch-back | 8e57b2bdf493b27f7200c7a28756d6050efc8e06 | f7bad9bdc84f6197b5b069e3f8ea6ab4cdc653ce | refs/heads/master | 2022-09-19T07:49:46.185539 | 2020-05-28T21:22:43 | 2020-05-28T21:22:43 | 264,987,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dbackend_dog_watch.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"kateapault@gmail.com"
] | kateapault@gmail.com |
68e68cb798e8a69d6eddc3ace5d719af706c343a | 001babfcf8c4394cea56b670e523111804279e2d | /docs/conf.py | c716d12b23b3f96bec5abb2dd584e54ec9312247 | [
"MIT"
] | permissive | olayinkakings/py-gofiliate-client | d14e35ee78326f05f4eeae48a6f8c04d9bdeec50 | ad4e5489f2dd918e160050280d1e2f33e0c3f2bb | refs/heads/master | 2021-09-02T12:55:10.917814 | 2018-01-02T20:34:18 | 2018-01-02T20:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,177 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Gofilliate documentation build configuration file, created by
# sphinx-quickstart on Fri Dec 29 00:27:50 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
#... | [
"mgm@igpte.ch"
] | mgm@igpte.ch |
2866d78e6b817c873c49d49a86680e26f9606523 | 0080dd4d26c05a31d3957e9755d928411617e6a1 | /python/make_sp_v3.py | fe7731df4404bf061b650893729bd622ce0de82d | [] | no_license | coreywan/devnet-ucse | 3b7a1f67cd3b52138533ac0a5ad31fe45bfa982b | f778364317e0ecaa5cdc0c4b035f4c258ffa65e2 | refs/heads/master | 2022-12-27T08:08:05.859607 | 2020-10-08T17:36:34 | 2020-10-08T17:36:34 | 264,577,287 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py |
## Same as v2, but uses a named Template, instead of auto generating... This is more idempotent
from ucsmsdk.ucshandle import UcsHandle
from ucsmsdk.ucsmethodfactory import ls_instantiate_n_named_template
from ucsmsdk.ucsmethodfactory import ls_instantiate_n_template
from ucsmsdk.ucsbasetype import DnSet, Dn
NUM_SP ... | [
"coreywanless@gmail.com"
] | coreywanless@gmail.com |
d4034b82a70372a5050cc12b1e5b89ef9be48fab | 933f51a11f04caba7a14b3cbde2b1fa27d0b73c1 | /apps/authors/views.py | e00e3a741ffa45635d43b1565a394a082c1294b0 | [] | no_license | tonythanuvelil/djangraphql | 302705584d7cee0fcadf9b84d6febeabbe9a06e4 | e87f5fda962a37caeee96b2b75c2ac5d50be2328 | refs/heads/main | 2023-02-17T11:16:41.342367 | 2021-01-04T11:49:53 | 2021-01-04T11:49:53 | 326,666,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from rest_framework import serializers
from rest_framework.views import APIView
from rest_framework.response import Response
from .models import Author
class AuthorSerializer(serializers.ModelSerializer):
books = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
class Meta:
model = Author... | [
"tonythanuvelil@gmail.com"
] | tonythanuvelil@gmail.com |
23dbf980599ba328d73a87f1b015dd7d013cc36c | 630a342d40aaf6e4ae1d0cfe72325a9ca7cfae1d | /player.py | b9677896f7246437d78c64ed0fab450b4dc2ab54 | [
"MIT"
] | permissive | arthurpreis/pytruco | cc39abdfb10f65d50871cec7c5db7b9887ea1e36 | 948de00a70615135469087b2f6ea6a88cba0bf92 | refs/heads/master | 2021-01-01T17:18:54.790517 | 2017-08-14T20:54:17 | 2017-08-14T20:54:17 | 98,044,852 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | from stack import Stack
class Player():
def __init__(self, name = ''):
self.hand = Stack()
self.name = name
self.score = 0
self.round_pts = 0
self.turn = False
self.is_winning = False
self.won_first = False
self.won_second = False
self.won_th... | [
"arthur_p_reis@yahoo.com.br"
] | arthur_p_reis@yahoo.com.br |
75cc3315080017e013a5cb194ab7ca2bc7ffb60b | 0dbf6a52e119cc79d07fdb4722d0581b777fc04d | /gridworld/natural_net.py | e25d4ddc32772bafa24e908da4a465ebd4341be9 | [] | no_license | EYcab/natural-q-learning | 5313a21b197dcb145e3f2882425490cbc3d46ad7 | a30ea79a3eda4ac9867e68dc512c91c0fd105f18 | refs/heads/master | 2020-03-25T12:08:32.039333 | 2016-12-13T20:16:30 | 2016-12-13T20:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,980 | py | import tensorflow as tf
import numpy as np
import sys
slim = tf.contrib.slim
def _batch_outer_product(A, B):
return tf.batch_matmul(tf.expand_dims(A, 2), tf.expand_dims(B, 1))
def _one_sided_batch_matmul(A, B):
A = tf.tile(tf.expand_dims(A, 0), [int(B.get_shape()[0]),1,1])
output = tf.batch_matmul(A, B)... | [
"admb@stanford.edu"
] | admb@stanford.edu |
2088e8732b43b14bf4d5e0aa2157f4eb78054235 | c63d36071ca02405a0942fa3d814ac70a0665e4e | /xgboost_ray/data_sources/numpy.py | bfd632c575eb7d399791b097c579c0de338068d7 | [
"Apache-2.0",
"MIT"
] | permissive | ryantd/xgboost_ray | 6ad4b2c09bb579e13a9b3a30cb22b2769ac81e1b | 86a72d209e2a95e4962fe0b044544bc7e9e322ce | refs/heads/master | 2023-09-03T18:44:52.070689 | 2021-10-14T09:22:41 | 2021-10-14T09:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | from typing import Any, Optional, Sequence, List, TYPE_CHECKING
import numpy as np
import pandas as pd
from xgboost_ray.data_sources.data_source import DataSource, RayFileType
from xgboost_ray.data_sources.pandas import Pandas
if TYPE_CHECKING:
from xgboost_ray.xgb import xgboost as xgb
class Numpy(DataSource)... | [
"noreply@github.com"
] | ryantd.noreply@github.com |
844b785434e84611d0889a15664403f6b830d1c2 | 1788a78ca05cb3e1785e71c882455674613b5ce2 | /detect time/pattern of group/map_pattern_generate.py | bd9399c1d26e702f583b379938441ea1cca27fe1 | [] | no_license | yenhao/Bipolar-Disorder-Detection | 9dd2e8ccdfad3e195298c74a33547524b4d3dd8c | 1a815ec84f53bc509298c3345149bc0321ea36f0 | refs/heads/master | 2022-01-10T18:16:05.993288 | 2019-04-29T07:36:50 | 2019-04-29T07:36:50 | 72,731,683 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | # -*- coding: utf8 -*-
from nltk.tokenize import TweetTokenizer
from collections import defaultdict
import re
import sys, gzip, re, os, fileinput
def slideWindows(token_list, size = 3):
if len(token_list) > size:
return getPatternCombination(token_list[:3]) + slideWindows(token_list[2:], size)
else:
... | [
"yenhao0218@gmail.com"
] | yenhao0218@gmail.com |
2fe284082ab03918b59f2d77b288ec6dfc5693fb | 61061d1c05230fe66f9eee6e2066dc393103c039 | /classesandinheritance/unexpectedidentifiersusedict/c_dictofsubjgradebecomessub_gradeweight.py | c8c8d4ddbf661f651e6b674bd2fbe61630e8121e | [] | no_license | syeed-ode/python_scratch_work | 3b100028fa549d9904cdf5cb6c990d01e9f77c94 | a406d74ce0eff9a69970a54af717176661c1aaf8 | refs/heads/master | 2021-01-24T12:47:44.012107 | 2018-07-15T11:29:57 | 2018-07-15T11:29:57 | 123,149,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | """
This class builds off of overextendingaddinggradesbysubject
module's BySubjectGradebook. In BySubjectGradebook a dictionary
consisting of name to another dictionary is use. The inner dictionary
is a subject (the key) to grade (the value).
This class now needlessly converts the grade value to a ... | [
"sy_ode@yahoo.com"
] | sy_ode@yahoo.com |
db59de691e48bfdddb5a99fd5a9502f38286acfa | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /string/800.similar_RGB_color.py | 8f2df1e3f4ff4d578ff40098592e39750beb2beb | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | """
In the following, every capital letter represents some hexadecimal digit from 0 to f.
The red-green-blue color "#AABBCC" can be written as "#ABC" in shorthand. For example, "#15c" is shorthand for the color "#1155cc".
Now, say the similarity between two colors "#ABCDEF" and "#UVWXYZ" is -(AB - UV)^2 - (CD - WX)^2 ... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
493a6c08c2521ae5e90e427cd910cb8d03318ee6 | 1721e09c3b5d7f531765f831539ade6d84efe069 | /Test_Case/test_Main.py | c68125aae57a3fff4569dc21826787cfa90584df | [] | no_license | zhouzhenquan/API_test | b9589c4081d47fe293f046dfe6561aaa203a3a7b | 301a23121bbdf6f03f0120a37365e404253a0ed1 | refs/heads/master | 2021-03-04T09:57:56.603267 | 2020-08-04T13:08:10 | 2020-08-04T13:08:10 | 246,025,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | """
-- coding: utf-8 --
@Time : 2020/3/11 10:50
@Author : 周振全
@Site :
@File : test_invest.py
@Software: PyCharm
"""
import random
import jsonpath
import unittest
import os
from Library.ddt import ddt, data
from Common.Excel import operation_excel
from Common.Path import DATADIR
from Common.config import conf
from Com... | [
"17764509133@163.com"
] | 17764509133@163.com |
76cb29aedcd43a74cf7ea49d8d5f047c7aa64f37 | 34364898be2a85f3e6aa5c8769c5991be45b4a3d | /app/whatson/settings/__init__.py | 5477e8c0d8a233d156857c7624cc6f1db8c49fa8 | [] | no_license | MattSegal/whats-on-melbourne | e2e285f22dce57738f49accf840809df88c94dc4 | 169cbd72e7afd89411cf6e2076bddf2fa8367f6e | refs/heads/master | 2023-01-09T12:58:41.247657 | 2019-12-24T10:43:16 | 2019-12-24T10:43:16 | 131,386,234 | 5 | 1 | null | 2023-01-04T02:45:11 | 2018-04-28T07:43:13 | Python | UTF-8 | Python | false | false | 3,470 | py | # https://github.com/django/django/blob/master/django/conf/global_settings.py
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
GEOCODING_API_KEY = os.environ.get("GEOCODING_API_KEY")
# Application definition
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
... | [
"mattdsegal@gmail.com"
] | mattdsegal@gmail.com |
4a3d1286000f3ba9b2941d5ec3888fea244f28e7 | 3eae9c14c119ee2d6a7d02ef1ba5d61420959e3c | /modules/core/rwvx/rwlog/test/logtesttasklet-python.py | 036ec2e9deada682ce16d039342bdf1082038713 | [
"Apache-2.0"
] | permissive | RIFTIO/RIFT.ware | 94d3a34836a04546ea02ec0576dae78d566dabb3 | 4ade66a5bccbeb4c5ed5b56fed8841e46e2639b0 | refs/heads/RIFT.ware-4.4.1 | 2020-05-21T14:07:31.092287 | 2017-06-05T16:02:48 | 2017-06-05T16:02:48 | 52,545,688 | 9 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | #!/usr/bin/env python3
import asyncio
import gi
import logging
import time
gi.require_version("RwDts", "1.0")
from gi.repository import (
RwDts as rwdts,
RwDtsYang,
)
import rift.tasklets
import rift.test.dts
import rwlogger
@asyncio.coroutine
def fake_library_log_call(loop):
logger = logging.getLogger(... | [
"Leslie.Giles@riftio.com"
] | Leslie.Giles@riftio.com |
a637bb7b4a43c4ca0ea61ae7522fab6686801b8d | c3084ff4a1e8ec48647ef8f94d608c9ffa18e7b1 | /codigos/base.py | e90fc97cf4c2abcd27b358a91c08d7848445ae23 | [
"MIT"
] | permissive | fda-tome/n-body-simulations | 159d0c82646c0d9e80f828b4bc0fdfb67a7f23ff | 74a0d8bf64bc9bf819fd29d0223c0f3c986bce48 | refs/heads/main | 2023-06-27T10:41:44.914303 | 2021-07-28T23:12:33 | 2021-07-28T23:12:33 | 379,115,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,124 | py | import math
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import time
start=time.time()
fig=plt.figure()
fig2=plt.figure()
ax=fig.add_subplot(projection='3d')
ax2=fig2.add_subplot()
def gera_part(sis,v):
x=np.random.rand()/((7/4)**(1/3))
y=np.random.rand()/((7/4)**(1... | [
"tomefelipe0@usp.br"
] | tomefelipe0@usp.br |
6b371c7be1bc69ec9aa6c2668b074f453b427a01 | 5a3bd18734cc9f8e65f9e90f77bfc67eb0b05921 | /util_print.py | ee68844de827c39fdb97cb865ad7270c9eb922bb | [] | no_license | byshen/pycode | e027a965b2837147527712a44ea6e49934bd7714 | 3396b198f943e3817d432c9e8dc27ea786879057 | refs/heads/master | 2021-01-10T18:44:23.273696 | 2016-10-20T13:14:43 | 2016-10-20T13:14:43 | 71,464,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | #!/usr/bin/env python
"""
Use DPKT to read in a pcap file and print out the contents of the packets
This example is focused on the fields in the Ethernet Frame and IP packet
"""
import dpkt
import datetime
import socket
def mac_addr(address):
"""Convert a MAC address to a readable/printable string
Args:
... | [
"ahshenbingyu@163.com"
] | ahshenbingyu@163.com |
0e439f661afa48a26d8170c83e3e3f6d261bc440 | 70a08180ee6f60715107860e0c555ba56b74af94 | /covod/blueprints/web_app.py | 4f524f56e85db93c3420da1f79af0eb3983e3203 | [] | no_license | cau-covod/covod-backend | 3a765edbc8389a9d5e63204a0ad47783fe6b3bba | e0cf0436e8f080d5e6e254948ebc93917ec73c99 | refs/heads/master | 2021-07-17T02:04:25.543127 | 2020-12-15T19:16:22 | 2020-12-15T19:16:22 | 249,190,515 | 1 | 0 | null | 2021-06-02T01:15:59 | 2020-03-22T13:35:27 | Python | UTF-8 | Python | false | false | 388 | py | import os
from flask import Blueprint, send_from_directory
bp = Blueprint("web-app", __name__, url_prefix="/")
@bp.route("/", defaults={"path": ""})
@bp.route("/<path:path>")
def serve(path):
if path != "": # and os.path.exists("../web-app/" + path):
return send_from_directory("../web-app", path)
e... | [
"stu210876@mail.uni-kiel.de"
] | stu210876@mail.uni-kiel.de |
3ead27a4df00dc38f399d472b56eafd4d2af78bc | 02cf2e6a4063cd5a584dd98d89304330963c74b9 | /utils/prepare_vaildOnly.py | 6bff9cae70810fbe39dfbaa34ae3813d0fd29b6c | [] | no_license | uw-cmg/MedicalImgAnalysis-BleedingSitesDetection | 79c678067c7348233e4e41422715e2d18b937a32 | 79f72281d76a7accbad353e70ffb6d18569ff497 | refs/heads/master | 2023-05-05T06:06:00.760846 | 2021-05-24T21:40:05 | 2021-05-24T21:40:05 | 153,353,721 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,722 | py | #!/usr/bin/env python
"""
The preparing scipts that translate all the labeling results to the input for defect detection
In this script, only images with bbox are kept!
"""
"""
Project Information modify if needed
"""
__author__ = "Mingren Shen"
__copyright__ = "Copyright 2019, The medical image analysis Project"
__... | [
"mshen32@wisc.edu"
] | mshen32@wisc.edu |
8da02b46c15c892baa4bb3c427ce8bae3a5481f9 | 2a4de474b5dbfaa81a4374660f43395405d4e44a | /motors2.py | 1b4010719a2017cdbd87a56ab74b27eca996cfc9 | [] | no_license | amaclean2/robots | dfb9e990aa42a925297bda78df964b44ffdae17d | 77144138a0ddd3d8db85c39f908d6660083dde7e | refs/heads/master | 2023-06-20T14:00:04.353324 | 2021-07-22T22:02:24 | 2021-07-22T22:02:24 | 362,583,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | import RPi.GPIO as GPIO
import pigpio
import argparse
from time import sleep
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
pi = pigpio.pi()
ESC_GPIO = 13
parser = argparse.ArgumentParser()
parser.add_argument("--calibrate", help="set the calibration mode of the esc")
args = parser.parse_args()
print("calibrate "... | [
"andrew.n.maclean@gmail.com"
] | andrew.n.maclean@gmail.com |
be8b62d5ae26e8ae7d0be239c62bcceeb0b2bcda | ca580577c35d70758afcd44671fedc709dccab59 | /tools/matplot.py | 2269d65d63dc3e96282755e74fc88691b315e291 | [] | no_license | Mittttttto/data_mining | d4b09645d6369f5983be2db8418ce3c7f3263834 | 5ced845a4015de115002c28b76a7c4113fd69ed1 | refs/heads/master | 2021-08-12T00:49:10.417422 | 2017-11-14T07:34:07 | 2017-11-14T07:34:07 | 109,941,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | #coding=utf-8
'''
Created on 2017年11月6日
@author: Wentao Mao
'''
import matplotlib.pyplot as plt
import random
def drawlines(xs,ys,labels=[],xlabel_name="",ylable_name=""):
if len(labels) != 0:
for i in range(0,len(xs)):
color="#"+str(hex(random.randint(1048576,16777215)))[2:]
... | [
"376901333@qq.com"
] | 376901333@qq.com |
08bf084f5b32dcea69b751fca859a611b861dedb | f85b02c5d0e7bcbeb6b67025457f876fbf0bf4d0 | /websiteInformationGathering.py | 087a3467758043e4b76cebfbcbba3aadca64eb03 | [] | no_license | MrZello/basic-web-scraper | e88160ff4652f657f2be86fb37a6416586d7fdc7 | 7ef959e9060f08c2271201106ab8733e80b7b223 | refs/heads/main | 2023-08-25T11:26:56.720426 | 2021-10-28T00:13:45 | 2021-10-28T00:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import re
import requests
##url = 'https://www.secdaemons.org/'
url = 'https://www.cdw.com/content/cdw/en/locations.html'
infile = open('WebPath.txt')
txt = infile.read()
txt = txt.split()
infile.close()
sitePath = [] # in the case for multiple paths found, I want em saved
for each in txt:
resp = requests.get(url... | [
"pateltejendra23@gmail.com"
] | pateltejendra23@gmail.com |
bd091c89b075facb127eaf0ab26726accd824fb3 | 90116e2643e44b5b4d209af247f2f748f444b1fd | /dthm4kaiako/general/management/commands/sample_data.py | 2626d99949a63c7e2f215491077809fe35c56f9f | [
"MIT",
"CC-BY-4.0",
"CC-BY-2.0"
] | permissive | uccser/dthm4kaiako | 671451b52eaf7f8a7c06e55c8f46256822e6324b | e777619e168530fdf86e363b0139615e9d4f624c | refs/heads/develop | 2023-08-23T18:11:18.687381 | 2023-08-23T01:52:58 | 2023-08-23T01:52:58 | 94,200,639 | 5 | 4 | NOASSERTION | 2023-09-14T01:29:13 | 2017-06-13T10:25:10 | Python | UTF-8 | Python | false | false | 7,393 | py | """Module for the custom Django sample_data command."""
import csv
import random
from django.core import management
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.gis.geos import Point
from allauth.account.models import EmailAddress
from tests.users.factories import... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
8b108f840fa436c4c01ce3a4081400c6b630b4ef | 615471d97f8db246bb67a8a4302438e5ba8c11e9 | /vectorhub/encoders/text/vectorai/vi_encoder.py | 7e4514bc6135f34b8ea086c7546cce1f2283782c | [
"Apache-2.0"
] | permissive | huamichaelchen/vectorhub | 16cf154d2eed3a5df84c44ad89e19d6d550c9d2b | 5c041c7046f613989ba8ae1d9e4e6e3db110a684 | refs/heads/main | 2023-02-05T16:02:49.431577 | 2020-12-28T15:41:43 | 2020-12-28T15:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | """
Vector AI's deployed model. The purpose of this model is to allow developers to easily build encodings and see for themselves
how the embedding works. These models are selected to work out-of-the-box after testing for their success on our end.
To get access to Vector AI, we need to use
Example:
... | [
"jacky.koh@vylar.org"
] | jacky.koh@vylar.org |
7df8e7dcb7497bbd8e8adace4d40f0421fc8508e | ebc45124b5efbeb3c28ca68486d7cb03e470fa7a | /management/views.py | 12ed387c9631b57a84e797bf3b5376bff669656a | [] | no_license | 548893684/dormitory | a531c900f4c096761e863f21f11558bfe5a17005 | 5b772de6b4b8cce7b1181a7b13a5f3f36631e1b9 | refs/heads/master | 2022-09-27T00:43:40.415902 | 2020-05-23T13:22:21 | 2020-05-23T13:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.views.generic.base import View
from .models import Room
from django.core import serializers
from django.http import JsonResponse
# 二级联动View函数
class SelectView(View):
def get(self, request):
# 通过get得到父级选择项
typeparent_id = request.GET.get('module', '')
# 筛选出符合父级要求的所有子级,因为输出的是一个集合... | [
"573248399@qq.com"
] | 573248399@qq.com |
5ad084261fdef93083afbc9fea4120cc2cc38952 | aafa404d3d2eb9c61b4cfe54dbbb5fecf4c8bcd3 | /create_config_file.py | 07152a13602d62ccbb194ff564a5f99f091db22d | [] | no_license | JHoweWowe/RuneLiteBot | a336f90254562c225dfde986bff506a27788bab1 | 5a3a2238b67b2027996ba349cc6545dc7d27efec | refs/heads/master | 2023-07-06T19:29:15.321867 | 2021-08-05T16:59:20 | 2021-08-05T16:59:20 | 381,971,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # This file should only be used if configuration file doesn't work :(
from configparser import ConfigParser
config = ConfigParser()
config['settings'] = {
'bot_type': 'woodcutting',
'woodcutting_find_tree_attempts': '20',
'chop_and_drop_time_seconds': '15',
'drop_number_of_logs_per_cycle': '4',
}
with... | [
"howejust@gmail.com"
] | howejust@gmail.com |
b240df976221a90cb0c2acb49f4ccc4f81d22fbd | 197420c1f28ccb98059888dff214c9fd7226e743 | /adaptive_python_cource/82.Char_by_number_1/82.char_by_number_1.py | 7687c9695c677c2255a94afcbe5a8fa875877c5e | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | '''
Implement the program that returns the letter, which stands after the "\" (backslash) symbol in the ASCII table by a given distance N.
Sample Input 1:
26
Sample Output 1:
v
Sample Input 2:
32
Sample Output 2:
|
'''
n = int(input().strip())
ch = chr(ord('\\') + n)
print(ch) | [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
7058e2a67c748387a97454219ae8dfc4c3aa410c | 84bbee73c747763364656b70932a8956271a3dc9 | /general/dictionary.py | b7ba74b83a7bf6388346eb2639213450661a5e54 | [] | no_license | Nkaka23dev/data-structure-python | 51b7c99de78c02a79fee294d54136d38a3f59083 | 3093ab0ed156f78d917fb76abacf738c6a033f67 | refs/heads/master | 2023-08-18T00:11:05.374168 | 2021-09-23T13:08:24 | 2021-09-23T13:08:24 | 339,941,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | posts={
"author":"Nkaka Eric",
"title":"Greetings",
"body":"Hello all my people how are you.",
"posted_date":"26 June 2020"
}
# #two ways of getting value assigned to a certain key.
# print(posts['author'])
# print(posts.get('title'))
# #getting all keys or values
# print(posts.keys())
# print(posts.v... | [
"62412678+Nkaka23dev@users.noreply.github.com"
] | 62412678+Nkaka23dev@users.noreply.github.com |
00f7d91ff741fec35b98f785ed21c2febd03c95a | 5fe78169aeae80c6ff43c26930eeda7c8f9978ba | /MultiNodeSetup/scripts/run.py | ba087ea8240a2fb64c2bc7acb2c004220ab3a90d | [] | no_license | medhak19/HF-On-K8S | cfc3740602b6c9ff2c9aa0fc14314c6544318e08 | d6c45b7c392796003c8abf0aa508d0c21d5ef8c1 | refs/heads/master | 2020-08-01T02:51:52.265919 | 2019-11-05T06:55:23 | 2019-11-05T06:55:23 | 210,834,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | import os
import time
BASEDIR = os.path.dirname(__file__)
ORDERER = os.path.join(BASEDIR, "../crypto-config/ordererOrganizations") # it must point to the ordererOrgnaizations dir
PEER = os.path.join(BASEDIR, "../crypto-config/peerOrganizations") # it must point to the peerOrgnaizations dir
DESTDIR = os.path.join... | [
"medhak19@gmail.com"
] | medhak19@gmail.com |
0e886a4d40a9e5b4c9fe1dcc857b10bafca18967 | b4de5f08a92ef804c911f60336ebace7282e2783 | /innerClass.py | 9c1890df0c7164820f88c9fdda0d0b4b79a51591 | [] | no_license | RachanaDontula/beginner-learning | 201fc6fdf4afa0b47ce91242c6196ec914fd2609 | f7d5e92c5be95ebc2fc33991e71fdc61bb203d02 | refs/heads/main | 2023-01-31T13:23:18.953493 | 2020-12-18T13:59:23 | 2020-12-18T13:59:23 | 322,000,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | """ we can create object of inner class outside the
inner class and inside the outer class
or
we can create object of inner class outside the outer class
but by using outer class name to call it, eg: Student.Laptop()
"""
class Student:
def __init__(self, name, rollno):
self.name = name
... | [
"noreply@github.com"
] | RachanaDontula.noreply@github.com |
741dd3a381d4895e9db8da9f7b3a3cc655a75898 | e9bf5fb440305c7b17935438fd515ca2541babc4 | /app.py | 66c2e919c287c39720a77384ffaff4bf30654c3c | [] | no_license | jyothiesai/guvij | 748518673509d4849803fc22b03cd6b2b0b3392f | fdcd29f5548c12095f259ff2f74024317787b110 | refs/heads/master | 2020-04-16T01:42:44.848569 | 2019-08-07T13:24:44 | 2019-08-07T13:24:44 | 165,183,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #jyothi
A=raw_input()
B=raw_input()
C=raw_input()
for i in range(1,C+1):
ap=((2*A+((C-1)*B))*C)//2
print(ap)
| [
"noreply@github.com"
] | jyothiesai.noreply@github.com |
9fcfd57118f55b03c24f90b9e897a4733c0869a9 | fd72c01cb6b3d32995d8e82151d230f805022b9f | /misc/grd_utils.py | 1dcb8a7984913a735dfb0e971d491134923c7f48 | [
"MIT"
] | permissive | zokooo/Sub-GC | 1093a51bb19a30283803d0e72fe4264e34a18b37 | b99ede5163be8378d56b834a66b702b23a76e4e2 | refs/heads/master | 2023-05-25T10:43:29.245025 | 2021-06-16T17:36:52 | 2021-06-16T17:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,583 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
import numpy as np
import json
import random
import time
import os
import sys
def get_grounding_material(infos_path, data, sents, sorted_subgraph_ind, att_weights, sort_ind, \
... | [
"yzhong52@wisc.edu"
] | yzhong52@wisc.edu |
0ab6d700dc31f0dbf919f3e4e06303f7b31b39bb | 8161c66001d548424d47334317d5d6d36715a474 | /lib/utils.py | 936fd000a46012a94ef374eeb36da04a579680f9 | [] | no_license | PenXLa/Machine-Learning-Portable | 50e255d2fd2db5fe176dce491aafcbcd47d9872f | b05cea5e0c61eea9585cd3a9d16792f80ea48fd8 | refs/heads/main | 2023-08-30T11:53:02.380286 | 2021-11-10T06:12:32 | 2021-11-10T06:12:32 | 423,283,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | import os
from pathlib import Path
from tqdm import tqdm
# 获取当前运行环境
in_colab = False
num_workers = 0
try:
import google.colab as colab # 在Colab上
colab.drive.mount("/content/drive", force_remount=True) #装载google drive
in_colab = True
num_workers = 2
except:
pass
# 路径相关配置
root_path = Path(__file_... | [
"921417536@qq.com"
] | 921417536@qq.com |
2e7e22b17d66826aa86e2735ef5ee4ca5b4eaf57 | 7f097c8aafba8ea79b7d2e5277fa3c8e1826b6b7 | /app.py | 9f9c15141cb32b5ef4be221f6e7f090f986037d0 | [] | no_license | itilakGH/surfs_up | 50dcdf8a268f6a87c5437ffb8b7de746388cdd1d | 5b58deb9b7a5bd2662a043bf860272a0252de0c3 | refs/heads/master | 2022-07-03T23:16:25.160644 | 2020-05-10T18:56:20 | 2020-05-10T18:56:20 | 261,632,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | import datetime as dt
import pandas as pd
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#import sqlite3
engine = create_engine('sqlite:///hawaii.sqlite')
Base = autom... | [
"irentilak@gmail.com"
] | irentilak@gmail.com |
c99f08813a8dcb71e251730f8b08e6097aec3447 | ef904b441a35e3541f62f3a8745d306604e326d2 | /profiles/migrations/0005_auto_20170709_1446.py | aa141641e76cbcc90ea422635248f4721d8bf1aa | [] | no_license | dayoadeyemi/profile_displays | 51499436714433b55d384b090ca188d66debfc6e | ec1d6120fa24983abcec15b14e03a0152b120bf7 | refs/heads/master | 2020-12-02T06:39:12.517477 | 2017-07-14T18:07:49 | 2017-07-14T18:07:49 | 96,870,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-09 13:46
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0004_auto_20170709_1430'),
]
oper... | [
"dayoadeyemi1991@hotmail.com"
] | dayoadeyemi1991@hotmail.com |
d7df037cd3bd3a374ebab724073acc2e63500a18 | 35c5c0abdba70dcfe168dbdb4952bc12958df329 | /program3/animate_poly.py | 9da552980707a0c5b995d3481c8aada7254dbf31 | [] | no_license | yellowahra/4553-SpatialDS-ahla | 9b143332161d3799a28a073637bb9f1bf8c0c6c5 | b3066e7277ee26ed46cb1cb0d7a7af69e093b005 | refs/heads/master | 2020-04-15T07:57:21.713206 | 2016-10-13T03:33:09 | 2016-10-13T03:33:09 | 41,447,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,180 | py | """
@author - AHLA CHO
@date - 10/05/2015
@description - THREE POLYGONES AND THREE POINTS ARE MOVING
AND IF POINTS ARE IN THE POLYGONES, THEY ARE CHANGED COLOR
AND IF POLYGONES ARE COLLISION, THEY ARE CHANGE THE DIRECTION
"""
import pantograph
import math
import sys
import copy
"""
Point and R... | [
"ahracho216@gmail.com"
] | ahracho216@gmail.com |
c763e82f565660d259ebe1f7df8e09c610f1e643 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /F3M4PhqC4JdX28Qmx_2.py | e2d2b534da8fcf7ce4a9c3c2f395cac870ce0686 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """
**Mubashir** has started his journey from home. Given a string of
`directions` (N=North, W=West, S=South, E=East), he will walk for one minute
in each direction. Determine whether a set of directions will lead him back to
the starting position or not.
### Examples
back_to_home("EEWE") ➞ False
bac... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0c90c1e1fcfd54c1febcc38d681e1a711667b562 | d48261d78cc71adfec615d96308f71d057f5b596 | /flask/crawling.py | c9868b7fac25f18bcb6a2485ae1af6584af02dc0 | [
"MIT"
] | permissive | dayoungMM/TIL | 97cc33977d90bcac131460f498a228a50d300cf0 | b844ef5621657908d4c256cdfe233462dd075e8b | refs/heads/master | 2020-08-16T11:13:08.243190 | 2020-08-10T08:29:40 | 2020-08-10T08:29:40 | 215,495,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import requests
from bs4 import BeautifulSoup
url = 'http://www.op.gg/summoner/userName=hide+on+bush'
req = requests.get(url).text
data = BeautifulSoup(req,"html.parser")
tier = data.select_one("div.tabItem.Content.SummonerLayoutContent.summonerLayout-summary > div.SideContent > div.TierBox.Box > div > div.TierRankInfo... | [
"dalbeetm@gmail.com"
] | dalbeetm@gmail.com |
8785a1e1540d68240f224920fcb097fd73a6d483 | f584f3bfacb51a58b1bb3cdce2c4dd75c637c115 | /house_price/house_price/middlewares.py | 6c4083f8b989ef4763e5c6f316a45138c5aa7b46 | [] | no_license | cherryMonth/machine_learning | 22d25557807a8fa89c8cbbcbc2998e922ab84787 | 1e8d30add10ae46043b76e664e4250a3e2b22e3f | refs/heads/master | 2021-06-26T15:38:01.521896 | 2020-10-20T07:01:48 | 2020-10-20T07:01:48 | 152,702,488 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class HousePriceSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"1115064450@qq.com"
] | 1115064450@qq.com |
75c66dcb65846adfe916f3d6a503c31bec74ec4e | 80780f3e25eaf0fdefd91ba7c22eac09b46e8f8f | /bert_encoder/helper.py | c542af2013ff62567eb769f0114b259af24fdb3d | [
"MIT"
] | permissive | 4AI/bert-encoder | e4f5d6c06d98ea04f9a2163b16c557fce13db3f0 | 781b663f8e9f87fcdd14fce8469323cc4c60e74f | refs/heads/master | 2020-06-05T05:14:36.413819 | 2019-06-25T04:26:46 | 2019-06-25T04:26:46 | 192,325,235 | 4 | 1 | MIT | 2019-06-25T04:26:47 | 2019-06-17T10:26:32 | Python | UTF-8 | Python | false | false | 1,803 | py | # -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
import uuid
import pickle
__all__ = ['set_logger', 'import_tf']
class NTLogger:
def __init__(self, context, verbose):
self.context = context
self.verbose = verbose
def info(self, msg, **kwargs):
print('I:%s:%... | [
"mitree@sina.com"
] | mitree@sina.com |
92c6e398cf0e69452797dfee69cb0b9d2de5cce9 | 308265e5beb273751012988331c9889b25e3b96a | /python/basicUse.py | 526a38a67bee1cc1786a3443f1ccd1f2d8d1cb91 | [] | no_license | BitterPotato/CodeClips | fba257f7bba6e7467a06580d462675f262f87abd | bb92f94d46f5866143f788a0b4a24a88f2c40d6f | refs/heads/master | 2020-12-02T22:17:39.455253 | 2017-07-14T12:27:59 | 2017-07-14T12:27:59 | 96,109,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import urllib.request
import os
def getURLFileSize(url):
request = urllib.request.Request(url, headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64)'})
request.get_method = lambda : 'HEAD'
f = urllib.request.urlopen(request)
print(f.headers)
if "Content-Length" in f.headers:
size... | [
"yangwj116@qq.com"
] | yangwj116@qq.com |
f106b31fa6c7eddf6acc9f7db578e28b95f6ca7a | 0c1e27127922e26d82cb8eb9b474aeba5e5b5452 | /day21.py | 22adfa43af3631f58bac038618215ab3b908f473 | [] | no_license | cbeach512/dailycodingproblem | 0b3ceec2bca1459ddfdc2c6271e10e419066a8b3 | c3395799f112adc253e3304613f64e479db9f26d | refs/heads/master | 2020-05-23T12:08:48.854510 | 2019-11-01T19:33:50 | 2019-11-01T19:33:50 | 186,751,915 | 0 | 0 | null | 2019-11-01T19:33:51 | 2019-05-15T04:59:02 | Python | UTF-8 | Python | false | false | 941 | py | #!/usr/bin/env python3
"""Problem - Day 21
Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required.
For example, given [(30, 75), (0, 50), (60, 150)], you should return 2.
"""
def roomsNeeded(times):
if not times:
return 0
ro... | [
"cbeach512@gmail.com"
] | cbeach512@gmail.com |
951cd0971275b159e7a187e4260a5809357784d4 | 9b39224a75d23e24ca78a9e6f8f6433077df181f | /python/bin/paddle2onnx | c0e2041e9f93c30de258648c82403caf97eaaf63 | [
"MIT"
] | permissive | Yale1417/dazhou-dw | a9f1ec9270a9ee0fdec64f11e129bf6673295779 | 902b4b625cda4c9e4eb205017b8955b81f37a0b5 | refs/heads/main | 2023-07-13T07:00:34.065368 | 2021-08-20T03:45:56 | 2021-08-20T03:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/latent-lxx/Latent/Latent/dazhou-dw/python/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from paddle2onnx.command import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"latentsky@gmail.com"
] | latentsky@gmail.com | |
62fe8695d8ef863b66e223fcad6c8acee2c788f6 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/MR_FRAOption.py | a5d4e2002f28b66ffe25911a1ec975bccb15f8cb | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,476 | py |
'''
Purpose :Market Risk feed files],[Updated TermNB and TermUNIT]
Department and Desk :[IT],[MR]
Requester: :[Natalie Austin],[Susan Kruger]
Developer :[Douglas Finkel / Henk Nel],[Willie van der Bank]
CR Number :[264536,289168],[816235 04/11/11]
Date ... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
0bcd4629e096741ddaefb9625d4d79420cbb4f3c | 872fbbb0ebf65ebafe29c4d03bbb1e1a786f5895 | /venv/Scripts/pip3-script.py | c018fd2503b1b2bc05a63a91f45d501a3f34fb29 | [] | no_license | imklesley/Processamento-de-Imagens | 25edbee0979530f2643b69a8e09907fd7d4c944a | 7e86243c4837e45c442981cd55c750c3cbc267bd | refs/heads/master | 2020-05-14T22:28:31.312499 | 2020-04-22T00:47:29 | 2020-04-22T00:47:29 | 181,979,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #!C:\Users\klesley.goncalves\PycharmProjects\onedrive\AlgoritmosPI\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"imklesley@gmail.com"
] | imklesley@gmail.com |
32f19b66e0a9795e30cd42f69218bf8de8187d57 | de43b1f24df7bbff757e6c37feffd244331bd05c | /LSTM_CRF.py | 24bf8a2dd6f89f667ddcc767f200f87913736915 | [] | no_license | yuanxiaoheben/multi_task_ner_intent_analysis | 4d1fcf01c6cb56b7957c7dfedfb37ae8fd10c62e | a710ad58ea73787336dfc501abe912463a93547d | refs/heads/master | 2022-07-17T07:11:52.477006 | 2020-05-23T11:45:53 | 2020-05-23T11:45:53 | 266,324,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
from CRF import crf
max_seq_length = 100
PAD_TAG = "<PAD>"
UNKNOWN_TOKEN = "<UNK>"
START_TAG = "<SOS>"
STOP_TAG = "<EOS>"
tag_to_ix = {PAD_TAG:... | [
"noreply@github.com"
] | yuanxiaoheben.noreply@github.com |
f93c88a597971bfd272ceb312de511d9bfee132d | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/zope/interface/tests/test_sorting.py | f70932c31b7998bc77397830019339d22f8bb160 | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | /home/alex/myenv/zodiac/eggs/zope.interface-4.0.5-py2.7-linux-i686.egg/zope/interface/tests/test_sorting.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
bc2c4b12f9331ea2a352e78f94593e21b8e803ab | 2ae84bcfeba7bdb3e234eae4bdb3bce9009f2f98 | /scripts/contextMiddleware.py | 933244b3a3cd9b797e48b61c6c1027785f94fe4e | [] | no_license | jagorn/adaptive_controller | f18691c93e4499a3188af40b68b1a5de15749f75 | 8df4be31734b59213e269b10f87a469476ccf076 | refs/heads/master | 2021-01-10T10:31:39.454201 | 2015-06-11T23:25:24 | 2015-06-11T23:25:24 | 36,082,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | #!/usr/bin/env python
#
# Author: Francesco Trapani
#
# Class for the estimation of the contextual model.
# This class handles an ASP reasoner, which takes in input context assertions and outputs a contextual model.
# When initialized, the static knowledge stored in an lp file is loaded.
# Every time an input message ... | [
"jagorn90@gmail.com"
] | jagorn90@gmail.com |
7f76b6f55e2d2737ce361ccdee423c96d8e1e245 | e3c69a7715c87313ffcc3d537a48d1fa87fc8d22 | /Assignment4.6.py | c668a8ebd6ddfe6bfc38b84cb5a440ffb2018ae6 | [] | no_license | JEPHTAH-DAVIDS/Python-for-Everybody-Programming-for-Everybody- | 3b5c5a05318956e47bdd911d1b1e2f3a60ec60aa | 81bc27a7a3c38ee05f853c564b450e466185a935 | refs/heads/main | 2023-08-05T15:38:18.687307 | 2021-09-22T21:48:14 | 2021-09-22T21:48:14 | 409,170,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | '''4.6 Write a program to prompt the user for hours and rate per hour using input to compute gross pay.
Pay should be the normal rate for hours up to 40 and time-and-a-half for the hourly rate for all hours worked above 40 hours.
Put the logic to do the computation of pay in a function called computepay() and use the... | [
"noreply@github.com"
] | JEPHTAH-DAVIDS.noreply@github.com |
9613ce7c9e7be3a620ab2d54de4303375a9ff72d | 4db5677932f5bbaa030ed05aa35a457841646492 | /DataProcessing/SensorData/splitReadingsByTimestamp.py | a41e67ed7dea5103a38f85fa9926ff9c4250f790 | [] | no_license | magnumresearchgroup/TerrainRoughnessPrediction | 4dd63ebbb7ad3005b29e3162cee5247546fb558e | 0a3bb440cc2f5453dcd1b0c0e4d5f877546bdc85 | refs/heads/master | 2023-03-24T22:13:00.953074 | 2021-03-10T20:29:55 | 2021-03-10T20:29:55 | 346,482,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,166 | py | import csv
import shutil
from tempfile import NamedTemporaryFile
import os
def proAccelCal(subdir, file):
csv_file = open(os.path.join(subdir, file), "rt")
with open(subdir + '/accelerometer_calibrated_split.csv', 'wb') as new_file:
reader = csv.DictReader(csv_file)
fieldname = ['timestamp (s)... | [
"gabriela.gresenz@gmail.com"
] | gabriela.gresenz@gmail.com |
78a6c2fb6f5fe8debd90859769c70eaf59e60a9c | 909a3702702aa7424640c4cf0f8275eac5e6572c | /xmiddleware/__init__.py | 2e840218bde88b0258aca415b598eb055502352c | [] | no_license | xml-star/django5hna8 | 7784c1c7dd8be4c1a82ab1cb8c9d609992fedd35 | b6032951dff09ee5465d1a4fb1640bc2db99cc7f | refs/heads/master | 2023-04-18T21:18:33.372539 | 2021-05-06T08:31:04 | 2021-05-06T08:31:04 | 364,839,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | #coding:utf-8
__author__ = "ila" | [
"xml@qq.com"
] | xml@qq.com |
4b525ed1e0d68aebf75291826bfa4fe07130c8e0 | 46ce4e453cb0abcd3eec97646d2e91d57fdf36e8 | /5.9_ArrayPrimes.py | 0f2c9af89e0a48ece490d3267afcf6f1af52750b | [] | no_license | dzhang379-school/interview-prep | 4b1cdbae8d0ae0c0678e7df0a84d55ac00219c73 | 211fa3124e27dbfbcd2b5a46256f87b109ff0124 | refs/heads/master | 2021-10-24T18:55:23.555281 | 2019-03-27T21:30:03 | 2019-03-27T21:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import math
import time
def primes(a):
primes = []
for i in range(2, a):
j = 1
while j <= len(primes) and primes[j-1] <= math.sqrt(i):
if i % primes[j-1] == 0:
j = 0
break
j += 1
if j:
primes.append(i)
return prim... | [
"davis.zhang@vanderbilt.edu"
] | davis.zhang@vanderbilt.edu |
4f4792c1cb3ec7a2663e185f597e685b04fe2352 | 27986764b989c474ff70a2a2f7cfc5bb404a1ffe | /core/migrations/0019_auto_20180222_1032.py | 8e20e328c9bde8ee9e406fdaef55d098d820a675 | [] | no_license | Specialistik/e-market | 7b326d08bc5878e11bf3847d1c5737a6ed1593cd | f44d2e2bcffbf40c638da987efddcaef1da52f41 | refs/heads/master | 2020-03-27T13:25:39.283604 | 2018-09-08T02:18:08 | 2018-09-08T02:18:08 | 146,608,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-02-22 07:32
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0018_auto_20180222... | [
"widua33@gmail.com"
] | widua33@gmail.com |
21a95c049ff1ec133582d4a43892de6659a137ea | 38e4b7d0ee9f30497ae0b55454483ea72c44d254 | /jupyter/Data_Analysis.py | 0b299c8c2ad3bddb88a30da052df45a27c4a51f1 | [] | no_license | AlexSanford13/Planes_vs_Animals | 32fff130c9842d83226bbf57b0cb44e3c90130fd | 767cf6d80f29f4550dc95544ba2f5ffa87ff9a6e | refs/heads/master | 2020-03-22T04:17:12.138404 | 2018-08-01T18:38:08 | 2018-08-01T18:38:08 | 139,487,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,931 | py |
# coding: utf-8
# # FAA Data Analysis: Take 1
# ### This is a test analysis from the Hack Day
#
# These first two cells import the file using the CSV loader. This is a much simpler way to load it and parse the data using a tool to understand the CSV file. If I were to manually import this data, I would not as easil... | [
"alexanderleesanford@gmail.com"
] | alexanderleesanford@gmail.com |
ea5881c84e2d7c72a2589b891cc49e7d1d52593a | f0143f0a96626fc4f121a65ddf008dca209d6166 | /backend/settings.py | aa39da428a1e1eaf4f59d73f552659907871491d | [] | no_license | fmojica30/tektrackerV2 | bc7727c4c8736f08e9ff9bfcc83256b6cd10c579 | d2b8cbe7c99826cb4a78ea34bcc861104383dd4f | refs/heads/master | 2023-01-16T04:55:48.039370 | 2020-03-05T20:22:25 | 2020-03-05T20:22:25 | 245,257,299 | 0 | 0 | null | 2023-01-05T09:11:39 | 2020-03-05T20:07:13 | JavaScript | UTF-8 | Python | false | false | 3,822 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
im... | [
"fernando.mojica@utexas.edu"
] | fernando.mojica@utexas.edu |
b9839a83fa04c3c7d5e63958af93be0800935ab9 | 5accec0b658076d65f2294e28ff51717a2c4e3f5 | /account/admin.py | 16085186e3da4ad9b04d615d926e102b40be8327 | [] | no_license | boundshunter/myblog_12 | 5d35f9b04b205a3b8bbcbe6b2eacb170074c6e2f | ac46c69d4de0ddec3f4c489abc734fc594ea3f8b | refs/heads/master | 2020-05-09T03:15:47.898537 | 2019-05-31T10:40:56 | 2019-05-31T10:40:56 | 180,981,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from django.contrib import admin
from .models import UserProfile
# Register your models here.
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'birth', 'phone', )
list_filter = ('user', 'phone',)
admin.site.register(UserProfile, UserProfileAdmin) | [
"76686094@qq.com"
] | 76686094@qq.com |
9d09983250e3b34f7c8c3e3ece8a0d63845d942d | 2d7820a82ae720dbd160f8a1c196eec838937c83 | /tests/tsoc_c_test.py | cc577d97a074c4072202b86bd32ca7d3a4c71b9b | [] | no_license | uglyluigi/TediouSMS | d0b0639c960b4aa71a0b67f869025baf84d0f62c | 9cd48d0e02fd58b4b062debafca317f7c8286069 | refs/heads/master | 2020-03-10T19:32:01.779346 | 2018-05-14T18:36:24 | 2018-05-14T18:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import sys
sys.path.append('../')
from time import sleep as shleep
from tediousms import telesocket
if __name__ == "__main__":
big_socc = telesocket.Telesocket("localhost", 42069, "localhost", 42069, print)
big_socc.send_message("Hey! A message!") | [
"5006946+BillPepsiOfPepsiCo@users.noreply.github.com"
] | 5006946+BillPepsiOfPepsiCo@users.noreply.github.com |
e2102b7e1f8e067942746eb5d16acd0f0e6aef02 | dab52390ea50d5e68d1034ee67d08e2a10483d30 | /baseCode.py | 4f9b61da378fcce4fe33fb9d52417c12ec64010a | [] | no_license | JesseLee-zj/Jesse | 1614c1b32d56db704a49d18f1b90e46f5763e39b | 70ddb0c63d132e63e038b44e7eb052bedb29e77d | refs/heads/master | 2020-09-30T14:44:53.677289 | 2019-12-11T09:42:56 | 2019-12-11T09:42:56 | 227,309,324 | 1 | 0 | null | 2019-12-11T09:42:57 | 2019-12-11T08:03:34 | null | UTF-8 | Python | false | false | 90 | py | import os
import sys
def hello():
print("hello!")
if __name__=="__main__":
hello()
| [
"noreply@github.com"
] | JesseLee-zj.noreply@github.com |
2948fb4b17c532e41fdf6e31a6c6b2e8cb282c3e | 3a33cb14cf2ed7c1651532a975401f6927c361d0 | /importer.py | 858f2efcaee97b472bed0ad2070d86c65097c313 | [] | no_license | Ezzara/Mango-leaf-identification | 65747482e71bf0295ae9ae98717b77ce2ecbebcc | 3f4e2da06c8ac3cea1c7a1a155316f27ccf219ce | refs/heads/master | 2023-01-02T08:50:14.970731 | 2020-10-22T08:33:02 | 2020-10-22T08:33:02 | 266,675,221 | 0 | 1 | null | 2020-10-22T08:33:04 | 2020-05-25T03:33:24 | Python | UTF-8 | Python | false | false | 632 | py | #importing array of image
import cv2
#import numpy as np
import glob
X_data = []
files = glob.glob ("dataset/*.jpg")
for myFile in files:
image = cv2.imread (myFile)
#resize
scale_percent = 10 # percent of original size
width = int(image.shape[1] * scale_percent / 100)
height = int(imag... | [
"noreply@github.com"
] | Ezzara.noreply@github.com |
b139c4cbdcbe9c6bdafe3a4242857a14a8267202 | 445d171f940bf44f169d9fbf46b03df3a5e2b1d2 | /Waldenpy/05_Time.py | 950d8b41718f29b26088ff3551cda8937807239d | [] | no_license | YancarloOjeda/GitWalden | c804f8d62d7d46b1a65bf838940129614a3808b9 | 350f9a7e0003e644d430f171e2d1c44950219c2a | refs/heads/master | 2023-03-05T19:59:09.751544 | 2021-02-17T18:34:37 | 2021-02-17T18:34:37 | 278,161,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | """
Walden Modular Equipment SAS
Time
2020
"""
import Walden as w
#Variables
SesionTime = 10
#Control
CounterTime = 0
#Program
#Use Get_Time() to start time recording
TempTime = w.Get_Time()
while(CounterTime <= SesionTime):
#Use Timer to calculate the log time - Timer(Counter,Tempor... | [
"laurent.ac.ags@gmail.com"
] | laurent.ac.ags@gmail.com |
dc0755a55ce75ca7b9b98acb9d32c4c04663b834 | f4e7385ddfe8c93612542a7f40ca39e0ad7ee803 | /SANDBOX/python3/5_loops_branches/break_continue.py | 79c4541a06eb52eb032923a4bc8989a1757f1bf9 | [] | no_license | glennlopez/Python.Playground | f266f8a0427d6ab07d006ebf9619976e49d61b48 | e7e013b2d446d60d98bb1a1e611398eec4a2f3b8 | refs/heads/master | 2021-01-02T08:46:44.149994 | 2019-09-24T22:03:50 | 2019-09-24T22:03:50 | 21,843,220 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 332 | py |
starting = 0
ending = 20
current = starting
step = 6
while current < ending:
if current + step > ending:
# breaks out of loop if current next step is larger than ending
break
if current % 2:
# skips the while loop if number is divisible by 2
continue
current += step
pri... | [
"glennlopez@gmail.com"
] | glennlopez@gmail.com |
37cdd12e404a77afe13de58fb43b1400d1784fdf | 5e39212b8c5f0321da2389daeadad0641bdb13c3 | /cogs/diagnostics.py | 185895de428f94a1111573a7ad58c3a54fa86a4a | [] | no_license | tnorico/inferno-bot | 048d5e3af40f74d23bc7fbb54fd8211d5616fce9 | 88f4765a298fdc28b121e9a3bd4158e42e71d056 | refs/heads/master | 2022-09-17T07:51:19.347584 | 2020-06-01T08:35:12 | 2020-06-01T08:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | from discord.ext import commands
import datetime
import discord
start_time = datetime.datetime.utcnow()
class diagnostics(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_ready(self):
print(" ")
... | [
"noreply@github.com"
] | tnorico.noreply@github.com |
60b91f0e8caf15f502c8af1ad0aa0bb67367b4ea | f959c9fd84e8a3e15289c1870c0c3ac48e0f56fd | /main.py | 9d53805ce172e079ea46065fb75fb17a50de679d | [] | no_license | Souta-Hayashi/Madlib | 689cc9f98043eddab72ea1808e1f0f76d5bc15b7 | 62fc56c1388346b46690663ee75dbe7c5402c31d | refs/heads/main | 2023-09-05T20:05:37.908102 | 2021-10-31T07:00:18 | 2021-10-31T07:00:18 | 423,075,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from sample_madlibs import love, motorcar
import random
if __name__ == "__main__":
m = random.choice([love, motorcar])
m.madlib() | [
"you@example.com"
] | you@example.com |
1e810e0adfdae37c1b9071bef543f420e28849b9 | 98283ca88d19fe200c2ab065d5d43a8df03c7883 | /project1/settings.py | 85af0d6fdf8b56e87cc41b31f2b5e975424b4bdf | [] | no_license | akashpassi007/Django1 | 2181c6dfbe117440c659b2586ce72fb0fde36f0a | 38e37c7cb1708a6566f9b5eb60b83472b534610c | refs/heads/master | 2022-11-17T08:25:36.802065 | 2020-07-20T09:54:55 | 2020-07-20T09:54:55 | 281,070,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Django settings for project1 project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
f... | [
"akashpassi0@gmail.com"
] | akashpassi0@gmail.com |
9ce373b18f9684ed69a1d96120742cae51b6aa2f | 8c1ea60783fff7dc9e8158db6dc430c77069d962 | /trove/tests/unittests/mgmt/test_datastore_controller.py | fc36c7adc43d8799712f88e6ec9cfa17be3fb13a | [
"Apache-2.0"
] | permissive | zjtheone/trove | d10d7d4a259dc4a802228362e3864d2df1648775 | 3508e3e4d7925b59ab8d344e4d4952fd79366e15 | refs/heads/master | 2020-04-05T23:08:25.284121 | 2017-04-26T10:20:24 | 2017-04-26T10:20:24 | 50,925,493 | 0 | 0 | null | 2016-02-02T14:20:01 | 2016-02-02T14:20:01 | null | UTF-8 | Python | false | false | 6,930 | py | # Copyright [2015] Hewlett-Packard Development Company, L.P.
#
# 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 l... | [
"skm.net@gmail.com"
] | skm.net@gmail.com |
cdaa718eda61ecdac959615d75b705025165eefd | 0d8e4859792c76ec5376ecf26f37c7e3c2acefb7 | /hw3/src/my_model.py | ea016f1220ef544d0ab457a7f1e06d53c31a49e0 | [] | no_license | bugaosuni59/Deep-Learning-homework | ac7612e381c1351060dc951ff7563c59b2204474 | 6ba057db8eaebbbeb88d442ecb10064b95f01d31 | refs/heads/master | 2020-07-15T23:27:45.031932 | 2019-06-17T14:46:15 | 2019-06-17T14:46:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | import math
import torch
import torch.nn as nn
from torch.nn import Parameter
class MyGRUModel(nn.Module):
"""Container module with an encoder, a recurrent module, and a decoder."""
def __init__(self, n_token, n_input, n_hid, n_layers, dropout=0.5):
super(MyGRUModel, self).__init__()
self.dro... | [
"13654840887@163.com"
] | 13654840887@163.com |
6e4d29b3fc199f844faaea54ac101743bff00933 | 870208962d013032316e82eaed342d570cb88212 | /collector/url_collector.py | 3d5abd2da874014195bdec79ae4fd5c9ba48955b | [] | no_license | cerulean85/ttawb | b86c3f2a0f3b8f39dae272f3e350ecd63d5878fc | 5a0b59516bb9137e86d8b057a1100a5ae24fe77b | refs/heads/main | 2023-08-31T14:52:52.516128 | 2021-10-08T07:44:09 | 2021-10-08T07:44:09 | 414,887,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,445 | py | import time
from multiprocessing import Process
from bs4 import BeautifulSoup
import parallel as prl
import config as cfg
import kkconn
import modules.collect.dir as dir
from datetime import datetime, timedelta
conf = cfg.get_config(path=dir.config_path)
chromeDriver = cfg.get_chrome_driver(config_path=dir.config_path... | [
"zhwan85@gmail.com"
] | zhwan85@gmail.com |
9939a9df96b6bbddda388438ccb089d2b008617b | 8dfd4877abd96bfa5f03aa9231bd68782b0424fd | /entertainment.py | 1c030cc08ef615a52ac1599823bac87a132c76a6 | [] | no_license | aditya6jvas/Udacity-Trailer-website | b15a966c823c9e9e05ffe50c36132e593cb619f8 | aba4533e76c2c273fbe44fd930accf3b555be8fe | refs/heads/master | 2021-01-13T16:48:43.314776 | 2017-06-23T18:20:15 | 2017-06-23T18:20:15 | 95,019,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | import mvie
import fresh_tomatoes
# mvie.Movie(Title,Plot,Poster Link,youtube link)
# First Movie
usual_suspects = mvie.Movie("The Usual Suspects",
"Five criminals meet during a routine police line-\
up.Upon their release, they plan to pull off a dangerous\
heist involving precious ... | [
"noreply@github.com"
] | aditya6jvas.noreply@github.com |
737b34e8ff42a42d8849a58daf7968e491fef8c3 | 15e49badc73de83095d85400a2c5c8be41ea01b9 | /workspace-2/Ex-2/ex2/eval_space.py | f5e43c871a877d1fa88371421b1dba52c1445551 | [] | no_license | vishalkr92/NLP | 5452bd1a79bf12ba64b827465e93a0e081657368 | 1ddecd095eb340c21b43b73d5708604d3259812b | refs/heads/master | 2020-03-08T11:47:32.893096 | 2017-06-11T00:42:55 | 2017-06-11T00:42:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | #!/usr/bin/env python
from __future__ import division
import sys
from collections import defaultdict
tot1 = match = tot2 = 0
for line1, line2 in zip(open(sys.argv[1]), open(sys.argv[2])):
words1 = line1.split()
words2 = line2.split()
counts1 = defaultdict(int)
counts2 = defaultdict(int)
for word... | [
"chattepu@oregonstate.edu"
] | chattepu@oregonstate.edu |
5941093a6396fbedbe78998fc2240dbf6e599f76 | 4770c6f3aa2e7f2f861ddb65c87eaed3080e273a | /BoostedProducer/crab/config/QCD_Pt_170to300_TuneCUETP8M1_13TeV_pythia8.py | 78f205b331cf60868c06d8f49d49445b27bafbcb | [] | no_license | skudella/BoostedTTH | e62a6f0def7cb89d74405d9ce336ccb8641d2952 | 594abe59f50bee45411970d1848f4b935fc29aea | refs/heads/CMSSW_8_0_8 | 2020-12-28T09:27:03.643477 | 2016-08-16T08:03:54 | 2016-08-16T08:03:54 | 65,825,294 | 0 | 0 | null | 2016-08-16T14:05:12 | 2016-08-16T14:05:12 | null | UTF-8 | Python | false | false | 950 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'QCD_Pt_170to300_TuneCUETP8M1_13TeV_pythia8'
config.General.workArea = 'crab_projects'
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = '/nfs/dust/... | [
"shawn.williamson@kit.edu"
] | shawn.williamson@kit.edu |
1fb2085c8a73bd8f6f079618abbb96103995372c | 49061a53c82687f1ba506c4b8bb17d27fdf51ab5 | /btre/urls.py | 42dd23968184d48b83bea0460e5f02402e3e73c4 | [] | no_license | 88tuts/btre_project | 6c0aa138bf7f8c0589a22760db4f5f5004556844 | 23644f0f5b7b868e6a398ddeb256233e0f4bab06 | refs/heads/master | 2020-08-10T14:35:27.076558 | 2019-10-12T15:52:59 | 2019-10-12T15:52:59 | 214,361,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', include('pages.urls')),
path('listings/', include('listings.urls')),
path('accounts/', include('accounts.urls')),
path('contacts/... | [
"88tuts@gmail.com"
] | 88tuts@gmail.com |
373319cf154006e1ed50f343d88ca46f56004103 | 4b653379f3d9a3493004605df2ccf05df188c6c2 | /set2/ch09.py | f0febc69afc36612d04aeea11be8a394f5ea210b | [] | no_license | mohamed-aziz/cryptopals | 076755cc75afbe61ade9b76e98dc47b923ebf4ce | 71a340c1645a1a3466391fb997982f9cfd7437bf | refs/heads/master | 2021-05-07T08:56:18.964338 | 2019-12-07T20:09:59 | 2019-12-07T20:09:59 | 109,444,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py |
def paddpkcs7(s, n=16):
s = str(s)
char = ((n - len(s)) % n) or n
return s + char * chr(char)
| [
"medazizknani@gmail.com"
] | medazizknani@gmail.com |
fda95dbe3b911f374bef78d6ff5916c46e598e45 | 88283b3b03993c3e6f3af58442768f7908b596b9 | /trust_production/models.py | b45ac0937219f071e8b13d454026755c3c677b84 | [
"MIT"
] | permissive | KenjiMoreno/otree_trust_example | da9e48a7b20f85af23d3dbe21cd23dd39a27a907 | cee815806668f8562034eb1a52f0353574f517bd | refs/heads/master | 2022-12-07T13:01:56.320561 | 2020-08-19T22:12:08 | 2020-08-19T22:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | from otree.api import (
models,
widgets,
BaseConstants,
BaseSubsession,
BaseGroup,
BasePlayer,
Currency as c,
currency_range,
)
doc = """
This is a standard 2-player trust game where the amount sent by player 1 gets
tripled. The trust game was first proposed by
<a href="http://econweb.... | [
"a20141676@pucp.pe"
] | a20141676@pucp.pe |
5fea4201e6dd6434e660e167ed3e389c643f7bbb | 3fbb03e707435c9c4c77ecac8861de68f083db12 | /manage.py | 4bbca4be9b1028a906b0148bd3ab77a14cb5093e | [] | no_license | Renata77/nhfpc_v2 | 19a1a10ff61989b7af635e8cc918c40bbf7ba450 | a90f5a8d9718dffc77ed4eeea8fcf013bf323e7a | refs/heads/master | 2021-08-19T01:24:44.412453 | 2017-11-24T10:08:15 | 2017-11-24T10:08:28 | 111,884,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nhfpc_v2.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"yq_lv@outlook.com"
] | yq_lv@outlook.com |
6a4167fc2b2971c71a90f7c81342dcc470001773 | 99b08c082acf651799e2bbc7c8c7678d01a6b850 | /esque/clients.py | af69cdc2c339f537f0cc0e24f7f47e5148dbef63 | [
"MIT"
] | permissive | Bibob7/esque | 3324d8e6620093aac8df8bb6eb9fd1c3eedcedc7 | 759a244bde453020690e50e418bed93a91988a23 | refs/heads/master | 2020-05-28T10:28:30.693391 | 2019-05-17T13:04:50 | 2019-05-17T13:04:50 | 188,970,189 | 0 | 0 | null | 2019-05-28T06:45:14 | 2019-05-28T06:45:14 | null | UTF-8 | Python | false | false | 2,336 | py | from typing import Optional, Tuple
import click
import confluent_kafka
import pendulum
from confluent_kafka import TopicPartition
from esque.config import Config, PING_GROUP_ID, PING_TOPIC
from esque.errors import raise_for_kafka_error, raise_for_message
from esque.helpers import delivery_callback, delta_t
DEFAULT_R... | [
"jannik.hoffjann@real-digital.de"
] | jannik.hoffjann@real-digital.de |
ab80d0a8e6f5b52411767cfc9ad0aa34dc2b9eb0 | 30606312289c221030be643f75f51562c5f8f090 | /assignment4.py | 79a4637bf0c5dcf3c892339054669cca3efd9910 | [] | no_license | keerthiradelli/assignment-4 | 39dea4c8ab2966b8fa423d51dd960fb0396f05e3 | 9cfedf46d80655c4ed7d0aede3820e3f22516220 | refs/heads/master | 2020-06-05T09:31:24.109102 | 2019-06-17T18:01:36 | 2019-06-17T18:01:36 | 192,393,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,475 | py | Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for m... | [
"noreply@github.com"
] | keerthiradelli.noreply@github.com |
ca5f582568cb95a608ee1042b2354ed50a7f7cd7 | a8ffa5c777b56a339bd23e35ddce40bbe1bb0fa5 | /q56_circle.py | f49cbbbc46c3322ba29ba17d803fe403c03c054a | [] | no_license | rbmiao/python_tutorials | b9ae455cdd2d874751d29b90541b0d301b5e7dc7 | 53eaa85a965fa9d9a217a20f17e48bcfbc929759 | refs/heads/master | 2020-05-20T07:57:55.041901 | 2019-05-07T19:20:57 | 2019-05-07T19:20:57 | 185,463,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py |
#!/usr/bin/python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':
from Tkinter import *
canvas = Canvas(width=800, height=600, bg='yellow')
canvas.pack(expand=YES, fill=BOTH)
k = 1
j = 1
for i in range(0,26):
canvas.create_oval(310 - k,250 - k,310 + k,250 + k, w... | [
"rbmiao@gmail.com"
] | rbmiao@gmail.com |
44d0c455fe11971444f813e7f51388585af62ee3 | 32cf24b3865bfe5a11f8cf2c0a8902f8e1be9e67 | /switch/clapper/clapper.py | 443b8427743ebe7a3365b065efc559701747a769 | [] | no_license | mayhem/hippomanor-automation | e98d89c41b7de28530b5993742de88228b2a88f9 | b81dbb1011119947b0261399dc986f0b474122d4 | refs/heads/master | 2023-05-24T23:48:04.802177 | 2021-02-04T20:17:59 | 2021-02-04T20:17:59 | 162,196,327 | 0 | 0 | null | 2023-05-22T21:46:36 | 2018-12-17T22:15:01 | Python | UTF-8 | Python | false | false | 5,196 | py | from math import fmod, fabs
from utime import sleep_ms as sleep, ticks_ms as ticks
import ubinascii
import machine
import network
import json
from umqtt.simple import MQTTClient
from machine import I2C
from neopixel import NeoPixel
import net_config
import _config as config
CLIENT_ID = ubinascii.hexlify(machine.unique... | [
"rob@musicbrainz.org"
] | rob@musicbrainz.org |
9331b0babc7068e6005a3257b9c921948c944d2d | a86a216665c29e957e05600a1be07110d1b2cda6 | /journey/blog/migrations/0001_initial.py | 70508b9107bb33880bc6b163852409aed2130d79 | [
"MIT"
] | permissive | jfondeur/vaccine | 2f6e8aad5c10be49285ca8801111c0c4b6927db8 | fba4b4980803073f8e1934331df6032bdf79f090 | refs/heads/main | 2023-01-22T05:38:24.802359 | 2020-11-27T20:58:31 | 2020-11-27T20:58:31 | 315,332,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # Generated by Django 3.0.8 on 2020-07-16 23:52
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.AUT... | [
"jean@fondeurs.com"
] | jean@fondeurs.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.