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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0dcf83210fc7b8fd635949e29c1c1f76450b0d2b | 98161af1d00f76fee3c6634ecd82badad10a3287 | /PG/pg_mcts.py | fb91bed10d53e6fc23794cf6157e135a158e37de | [] | no_license | joeleung00/DRL-for-Crack-Attack | 6e18e6c7a91fc66f485a9eb0d628e5d6daf09f3f | 1e5aabdc4c48dda0b7a05c4af98206c2608ca9b2 | refs/heads/master | 2022-09-16T21:14:37.296442 | 2020-05-28T07:11:32 | 2020-05-28T07:11:32 | 216,518,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,599 | py | import random
import sys
import math
from copy import copy, deepcopy
import sys
sys.path.insert(1, '../game_simulation')
sys.path.insert(1, '../cnn')
from GameBoard import GameBoard
from GameCLI import Game
from parameters import Parameter
from policy_net import Net
import pickle
from collections import deque
import nu... | [
"joeleung00@gmail.com"
] | joeleung00@gmail.com |
987e31305b1cc7f071b646a09fda38217bed64cd | 7a40b3a8d6e3ff8c7beb7f07459ade7e828696df | /mailer.py | a0309208527394c7fe5dc0973cbd5d4a3ee94d95 | [] | no_license | kpj/WAM | 02ec3bab643252488557f559b368308aa6ec109c | 47e1a5e7eefdd8a34464d232108897665a5eef5a | refs/heads/master | 2021-01-10T20:36:01.338988 | 2011-12-14T13:39:21 | 2011-12-14T13:39:21 | 2,919,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | ###############################################
# #
# Send SIGUSR1 to update the subscribe-list #
# example: killall -USR1 python #
# #
###############################################
import smtplib, imaplib, getpass, ... | [
"kpjkpjkpjkpjkpjkpj@googlemail.com"
] | kpjkpjkpjkpjkpjkpj@googlemail.com |
f5c9a73d8b790153413ae5e3b3afae4b84702db1 | 3d30cf9c7837f0570dec13da02564fad0671f7ae | /src/multiprocessed/error_investigation/this_gives_fnf_error_withOrWithout_manager.py | 9497bccad7fae4955d8cedf61afc6cc5c32ec88f | [] | no_license | phil-shenk/erosion | 6045cb902698aa89ff472ae1d0253a320b93a3fc | e8bf8580aa5452b20b93b4513dd73e5c074bfd7c | refs/heads/master | 2023-02-16T18:56:53.582280 | 2021-01-11T06:49:03 | 2021-01-11T06:49:03 | 287,793,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | import numpy as np
import multiprocessing
#from multiprocessing import shared_memory
from multiprocessing.shared_memory import SharedMemory
from multiprocessing.managers import SharedMemoryManager
import matplotlib.pyplot as plt
def initialize_shared_ndarray_for_reading(shape):
# make an array to store terrain
... | [
"shenk.philip@gmail.com"
] | shenk.philip@gmail.com |
466abeb5379b00a0e982d6cb3a40a44efd641980 | 6e0286c37278848f635b68fc675758cf44fe5837 | /money/admin.py | c82b45b2c9d92ba006a62a61422094f69bbaab84 | [] | no_license | davidbonnaud/monthly-money-tracker | 98846f8702edc2c88db57ba0b26bf9c2e9f97383 | ebf7464d7ba5cbd221d914034da8cda557e06509 | refs/heads/master | 2023-04-20T11:44:58.858901 | 2021-05-04T12:03:56 | 2021-05-04T12:03:56 | 364,242,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.contrib import admin
from .models import Transaction, Balance
admin.site.register(Balance)
admin.site.register(Transaction)
# Register your models here.
| [
"david@davidbonnaud.com"
] | david@davidbonnaud.com |
71d2a13f8caafddcea1f116f0df66bf877ac26e0 | 49eaaf069da00421918dd15f66bc5a02cbc2245a | /csp_bluetooth_demo/src/csp_bluetooth_demo_node.py | abf53f59d88a50532538a4ded29cb67a071fdc6b | [] | no_license | YuryXW/csp_bluetooth_practice | 471a73eded83c93887f9776404a9a90b9949c3d4 | afbef42b66353fa6461d19b4dcea994008112042 | refs/heads/master | 2021-08-19T08:01:13.278075 | 2017-11-25T10:58:48 | 2017-11-25T10:58:48 | 110,141,487 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,711 | py | #!/usr/bin/env python
## @package docstring
# This is the typical ROS template node for python.
#
import rospy
import sys
import signal
from std_msgs.msg import String
from duckietown_msgs.msg import Twist2DStamped
from duckietown_msgs.msg import BoolStamped
from std_msgs.msg import Header
#------------------------... | [
"SoulCrash@yandex.ru"
] | SoulCrash@yandex.ru |
bc03d8274188df69eac85d025d78dbfa59a16efd | 42321745dbc33fcf01717534f5bf7581f2dc9b3a | /lab/jax/linear_algebra.py | 618778d388a9415d7318fdcb5ef3dd6f36ac76e4 | [
"MIT"
] | permissive | talayCh/lab | 0a34b99fd60bc65fdfd1ead602d94dfb6b96f846 | 4ce49b68782a1ef8390b14ee61f57eeaa13070cf | refs/heads/master | 2023-08-25T04:42:06.904800 | 2021-11-01T18:22:00 | 2021-11-01T18:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import logging
from typing import Union, Optional
import jax.numpy as jnp
import jax.scipy.linalg as jsla
from . import dispatch, B, Numeric
from .custom import jax_register
from ..custom import (
toeplitz_solve,
i_toeplitz_solve,
s_toeplitz_solve,
i_s_toeplitz_solve,
expm,
i_expm,
s_expm,... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
eb4207d2b4d3b04a745f8b479e228557e21a8021 | 706b3537037ef3a779357ee7c747bc336ed670d1 | /hier_labels/model/old/data_utils_wo_error_analysis.py | 0ac4e96e8b35ce1c77d31100ab5c152d70a8d657 | [
"Apache-2.0"
] | permissive | medical-projects/PICO | 22dea30ab790861d403aad6ab0472cc40577292a | 5b134e32c804a73d960e28528aebf52dd02b8430 | refs/heads/master | 2021-10-01T00:10:29.411607 | 2018-11-26T06:55:12 | 2018-11-26T06:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,707 | py | import numpy as np
import os
# shared global variables to be imported from model also
UNK = "$UNK$"
NUM = "$NUM$"
NONE = "None"
# special error message
class MyIOError(Exception):
def __init__(self, filename):
# custom error message
message = """
ERROR: Unable to locate file {}.
FIX: Have you t... | [
"maxaalexeeva@gmail.com"
] | maxaalexeeva@gmail.com |
2d08f717b2851b1e9f4fc9e7217b39fbf022aadd | 88f25352d2c8b39d149187736bb260cb84097d93 | /lista4/rootNewton.py | 1ce24e0f01a47ba61667893f8bb07406bc59e0c3 | [] | no_license | ducast/alc | 0af83200aa73dc7f00657b3d6fdfad58ab517029 | dccc7426b0722b192a21226a9df534495f37c34d | refs/heads/master | 2021-01-23T14:46:58.863020 | 2017-06-11T21:49:39 | 2017-06-11T21:49:39 | 93,260,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from math import *
import numdifftools as nd
def rootNewton(f,x0,max_it,tol):
print ("==== Método de Newton para Raízes ====")
for it in range(max_it):
x = x0 - f(x0) / nd.Derivative(f)(x0)
tolk = abs(x - x0)
print (int(it),round(x,2))
if tolk < tol:
print ("Conver... | [
"eduardo-castanho@hotmail.com"
] | eduardo-castanho@hotmail.com |
80061a213c1bde5aef15c9b944e4fddf228b8218 | c95691559b7e94ccbd30d0295a852816bfd42f8a | /day25/day25.py | a48bdc73c07790270577bbe72ce4072fae2428da | [] | no_license | nsmryan/aoc2020 | 2fe515ca5f1db8711da00c9c921111d120d23b9f | a7810af1d2a0eff95d33da8d1378ba3b3a20b218 | refs/heads/master | 2023-02-03T05:32:08.817045 | 2020-12-25T14:54:21 | 2020-12-25T14:54:21 | 317,392,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | key1 = 8184785
key2 = 5293040
#key1 = 17807724
#key2 = 5764801
def step(value, subject):
return (value * subject) % 20201227
def find_loop(key):
value = 1
loop_times = 0
while value != key:
value = step(value, 7)
loop_times += 1
return loop_times
loop1 = find_loop(... | [
"nsmryan@gmail.com"
] | nsmryan@gmail.com |
4ab09766bdc8e293d8f7f6f4e76a8bc6a5df8c02 | fdc17d049336b24a645dcd585c070e4f7b1a3208 | /components/lifter.py | 440f7c4d7ce5eb5353dee4ca8544c96a8d2aa728 | [] | no_license | team1225/2018-CubeKong-py | 9c5e668719a6da50c53ea7295285649041d5b040 | 1652c4e8a648747e14583ab989bdc35973f21c45 | refs/heads/master | 2020-03-12T08:08:51.137977 | 2018-08-06T17:46:17 | 2018-08-06T17:46:17 | 130,521,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import wpilib
class Lifter:
# The lifting mechanism, will be injected in robot.py
lifter: wpilib.DoubleSolenoid
position: bool
def set_lift(self, new_position):
if new_position == True:
self.position = True
elif new_position == False:
self.position = False
... | [
"hfiantaca@gmail.com"
] | hfiantaca@gmail.com |
b789dcc8c2c8b5c5cc7429535c32875a9f690efc | 8cfee59143ecd307fe7d7a27986c3346aa8ce60c | /AI/1. Machine Learning/163_mnist-tocsv.py | cf18d04e18f98b2720fada6f34a867fd43f3f5a4 | [] | no_license | kiminhan/Python | daafc1fde804f172ebfb1385ab9d6205c7a45970 | dc6af486aaf7d25dbe13bcee4e115207f37d4696 | refs/heads/master | 2020-03-08T19:18:10.173346 | 2018-09-06T06:11:40 | 2018-09-06T06:11:40 | 128,288,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import struct
def to_csv(name, maxdata):
# 레이블 파일과 이미지 파일 열기
lbl_f = open("./mnist_/"+name+"-labels-idx1-ubyte", "rb")
img_f = open("./mnist_/"+name+"-images-idx3-ubyte", "rb")
csv_f = open("./mnist_/"+name+".csv", "w", encoding="utf-8")
# 헤더 정보 읽기 --- (※1)
mag, lbl_count = struct.unpack(">II", ... | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
494e005bf465f0567890224eb9e0fc3ebf7b085f | 595ff50f59cc29ee8ff8d5780971b81cdd768d21 | /manage.py | e4d1f918800657b994e5d21218941857761272e9 | [] | no_license | shermanxiong/scam-detection | 62a3c20dd08fa443ad91bf82e4062339a8fb6c45 | d8f33024cd0331f78bf8afe39ac82400464b5c08 | refs/heads/master | 2020-06-06T06:12:05.735943 | 2019-06-21T01:17:46 | 2019-06-21T01:17:46 | 192,660,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 637 | 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', 'scamDetectionTask.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"sherman.xiong@gmail.com"
] | sherman.xiong@gmail.com |
816e04e5d69c642ba2a24942f2af7ce25030a1a5 | 8c9402d753e36d39e0bef431c503cf3557b7e777 | /Sarsa_lambda_learning/main.py | e198580483ff22b2a9cc4c9141037276d21998a9 | [] | no_license | HuichuanLI/play_with_deep_reinforcement_learning | 9477e925f6ade81f885fb3f3b526485f49423611 | df2368868ae9489aff1be4ef0c6de057f094ef56 | refs/heads/main | 2023-07-08T04:52:38.167831 | 2021-08-21T14:05:36 | 2021-08-21T14:05:36 | 395,042,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # -*- coding:utf-8 -*-
# @Time : 2021/8/17 10:59 下午
# @Author : huichuan LI
# @File : main.py
# @Software: PyCharm
from maze import Maze
from Sara_Lambda import SarsaLambdaTable
def update():
for episode in range(100):
# initial observation
observation = env.reset()
# RL choose action ba... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
6d1251f96e95ba1a11e3cc90efb4ac438f43f3c2 | 2fc85575c373c9cd404b7a824e751ea984cbd1b9 | /ingredients/migrations/0001_initial.py | 547306c5c3d609a677c616c9fadc6cff85181ea3 | [] | no_license | ildecarz/bigbox | 3fd46e194346a10907fa33106e76df05b92bd7df | be45180fd979344b5412586cc92f13a331a2a8ad | refs/heads/main | 2023-05-05T21:23:53.353828 | 2021-05-28T13:55:52 | 2021-05-28T13:55:52 | 361,298,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # Generated by Django 2.2 on 2021-05-19 20:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"ildemarocarrasco@gmail.com"
] | ildemarocarrasco@gmail.com |
2c67af0e6a0e47698557d1c16075616c11e7da42 | 1ec59e88299c7af9df3854188736b706e89e01fa | /app/forms/public/profile_forms.py | 1f3f68864842f4660895d45a56b96a51956c26cd | [] | no_license | Chenger1/NutCompany_FlaskApp | 7484b04721766b42f9cc909d11c3e942bf3b3371 | c51129e04f2c9e35263d9e28810b4c2862932ef6 | refs/heads/master | 2023-08-06T09:08:27.532820 | 2021-09-23T19:52:25 | 2021-09-23T19:52:25 | 405,457,276 | 0 | 0 | null | 2021-09-12T10:55:47 | 2021-09-11T18:44:35 | HTML | UTF-8 | Python | false | false | 1,241 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField
from wtforms.validators import Email, Optional
from ..custom_field import CustomFileField
from app._db.choices import CountryChoice
class ClientPersonalInfoForm(FlaskForm):
fio = StringField('ФИО', validators=[Optional()])
email = ... | [
"exs2199@gmail.com"
] | exs2199@gmail.com |
dffff54fdbcd023f7ce8038ad836b2214eb95f3d | 4b4147ca5ad3cf6bd0235263fe8ec279d4ac4cc9 | /face3d/face3d/mesh_numpy/light.py | becc5fbc757e9f4ebe9cf39a03c07522c24a1b13 | [
"MIT"
] | permissive | weepiess/PRnet-train | e7d9f2ac75a977d5b25bac6bd50aa6d840a666ec | 16631e71623a1fbb7acf09d183ab460d0467564b | refs/heads/master | 2022-09-02T06:17:02.633333 | 2020-05-20T17:07:02 | 2020-05-20T17:07:02 | 259,006,451 | 1 | 0 | MIT | 2020-05-09T10:44:35 | 2020-04-26T10:51:44 | Python | UTF-8 | Python | false | false | 7,717 | py | '''
Functions about lighting mesh(changing colors/texture of mesh).
1. add light to colors/texture (shade each vertex)
2. fit light according to colors/texture & image.
Preparation knowledge:
lighting: https://cs184.eecs.berkeley.edu/lecture/pipeline
spherical harmonics in human face: '3D Face Reconstruction fr... | [
"1095215611@qq.com"
] | 1095215611@qq.com |
91e562078bece0259cf7a8eeb1a9714d1804c552 | 5d8c3150f28ab998326e38f1da420eb4e8d946c6 | /app.py | 7fd829b831371a7fdfadebdd9b241882fd616fac | [] | no_license | hoon0624/garbage-classification-heroku | 6bb587704a38a18c9a65735c4eb84e3b1db116bc | e3f2d1535db9097cfb2f0d5ca42230ed3566e889 | refs/heads/master | 2023-05-13T08:33:40.825155 | 2020-04-14T17:38:17 | 2020-04-14T17:38:17 | 254,552,658 | 4 | 3 | null | 2023-05-01T21:37:48 | 2020-04-10T05:35:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,649 | py | from __future__ import division, print_function
# coding=utf-8
import sys
import os
import glob
import re
from pathlib import Path
# Import fast.ai Library
from fastai import *
from fastai.vision import *
# Flask utils
from flask import Flask, redirect, url_for, request, render_template
from werkzeug.utils import sec... | [
"donghoon.lee@mail.mcgill.ca"
] | donghoon.lee@mail.mcgill.ca |
cb1b09b13545f6e89fee158e5b5e37ee7d392d73 | 59366342805d7b7682a8c45fd5c11b910e791c21 | /L8包/package/pack1/py1.py | b0fd52ca063138c053548e40274a039e81ea139e | [] | no_license | wantwantwant/tutorial | dad006b5c9172b57c53f19d8229716f1dec5ccd1 | 8d400711ac48212e6992cfd187ee4bfb3642f637 | refs/heads/master | 2022-12-29T05:41:12.485718 | 2019-01-07T08:28:33 | 2019-01-07T08:28:33 | 171,679,026 | 2 | 0 | null | 2022-12-08T01:21:22 | 2019-02-20T13:33:42 | Python | UTF-8 | Python | false | false | 214 | py | def foo():
# 假设代表一些逻辑处理
print('foo')
def boo():
print('boo')
# 单脚本的时候,调用方法
foo()
boo()
print(__name__)
#
# if __name__ =='__main__':
# foo()
# boo()
| [
"778042395@qq.com"
] | 778042395@qq.com |
35da58bdb8be02fba0f38d7f0bb56498199a2c1a | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/test/NightlyRun/test304.py | 73f9108132ad2bddc032b4278bf438f74d72234c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #Test Name: SquareSheetConstrainedStressSSA3d
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md=triangle(model(),'../Exp/Square.exp',180000.)
md=setmask(md,'','')
md=parameterize(md,'../Par/Sq... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
5be75593b7002ffbd31b4897bca03ea2ca701912 | cb938bb6201fb7ec3611623b54682a2252a0fc32 | /stud_comms/urls.py | 179f878fc5543e3e915ec1f32679e4628bab1528 | [] | no_license | JonoCX/2015-placement | 35e6ca11dac3841fcf785b4a787a5aadf403e5af | 385d70911cbc70cd9e030665caae44aa4504a685 | refs/heads/master | 2021-01-10T16:39:53.242741 | 2015-11-09T15:01:27 | 2015-11-09T15:01:27 | 45,845,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from core.views import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'stud_comms.views.home', name='home'),
# url(r'^blog/', include('... | [
"j.carlton@newcastle.ac.uk"
] | j.carlton@newcastle.ac.uk |
e095364f26d4002c10f2091881651d28c6288ec2 | d732fb0d57ec5430d7b15fd45074c555c268e32c | /misc/config_files/read_config_1.py | 7778e50073f61ca9d0f99726798d819291ac18a6 | [] | no_license | askobeldin/mypython3 | 601864997bbebdabb10809befd451490ffd37625 | 8edf58311a787f9a87330409d9734370958607f1 | refs/heads/master | 2020-04-12T08:01:16.893234 | 2018-02-01T18:23:23 | 2018-02-01T18:23:23 | 60,504,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
#
################################################################################
from configparser import ConfigParser, ExtendedInterpolation
import re
import myutils
parser = ConfigParser(interpolation=ExtendedInterpolation(), strict=True)
parser.SECTCRE = re.compile(r"\[ *(?P<header>[^]]+?)... | [
"askobeldin@gmail.com"
] | askobeldin@gmail.com |
b8137ddbd4d31ee1e675044996c2784fc45b202a | 28c1c3afaf5e70c0530b864ead16fa8762ef1ca4 | /ch05_Array/list_size.py | 78660ba7e14c0f9ebf85b4bc2b7a1d1726f1190f | [] | no_license | luoshao23/Data_Structure_and_Algorithm_in_Python | 8059381c21580e3e4f1276089b9fe4f96de385f8 | 051754963ca2eb818b981ba72583314a043e5df4 | refs/heads/master | 2020-04-29T06:29:02.148886 | 2019-05-15T02:46:48 | 2019-05-15T02:46:48 | 175,917,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import sys
data = []
n = 27
for k in range(n):
a = len(data)
b = sys.getsizeof(data)
print('Length: {0:3d}; Size in bytes: {1:4d}'.format(a, b))
data.append(None)
| [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
71d91862e4376636867c0d4e4cf9c0e031276eab | 192494cfac925b9134723185ce9e844b3b13abca | /texteditorlib/autotyping.py | 957de6010fb912e703b50d45e4598123b6a8ca73 | [] | no_license | mdsajjadansari/Text-Editor | 78145511bf7111c8f0e0074656eb466c88c750a6 | 342de71e494afe764d059926ddeaed1604dd8a70 | refs/heads/master | 2022-06-17T14:29:45.861129 | 2020-05-05T00:44:43 | 2020-05-05T00:44:43 | 259,432,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py |
if __name__=='__main__':
from Graphics import Tkinter
else:
from .Graphics import Tkinter
if __name__=='__main__':
from Graphics import Tkinter as tk, tkFileDialog, tkMessageBox
else:
from .Graphics import Tkinter as tk, tkFileDialog, tkMessageBox
import time
import threading
class AutoWrite:
def __init__(se... | [
"iamsajjadansari@gmail.com"
] | iamsajjadansari@gmail.com |
ca46b5a2afb0afc86c6767c17a30760e6a097ebe | af46ef78a8e680733efa0056e0388db529a523a3 | /list/is_instance.py | 4a52a23d6b36f6cba7246bfc4960f42ebeba6397 | [] | no_license | mjhea0/python-basic-examples | 90f3aa1cb1a1399a7fe7b1b7e07cced517433490 | aaf4a5458f3e016703b6677033ea17b9cc901596 | refs/heads/master | 2021-01-15T18:31:28.455291 | 2013-09-21T03:59:23 | 2013-09-21T03:59:23 | 13,141,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | #coding:utf-8
numList = [2000, 2003, 2005, 2006]
stringList = ["Essential", "Python", "Code"]
mixedList = [1, 2, "three", 4]
subList = ["A", "B", ["C", 2006]]
listList = [numList, stringList, mixedList, subList]
for x in listList:
for y in x:
if isinstance(y, int):
print y + 1
if isins... | [
"wang.bo@okcash.cn"
] | wang.bo@okcash.cn |
6b19f346e79e3bb234cd98628ac0189f74c1dc9c | 6c3bdcad87e2ddbc6d8e61419b62d91b898071ab | /sdk/python/config/listConfigRules.py | 51a7eddfa4e733f46e2266d99f1048c431a99d72 | [] | no_license | JaydeepUniverse/aws | c6b2a7f93668d7300223be46a418d436233ff9ad | 528043a78dc0a07bc8b0bb1193c7f440f8a5bd1a | refs/heads/master | 2023-02-22T00:41:32.376590 | 2021-01-16T10:17:22 | 2021-01-16T10:17:22 | 292,547,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | ## Do AWS CLI configuration - aws configure
import boto3
client = boto3.client('config')
rulesList = client.describe_config_rules()
for i in rulesList['ConfigRules']:
print(i['ConfigRuleName'])
| [
"noreply@github.com"
] | JaydeepUniverse.noreply@github.com |
3c7761a66a130162d48b33cc7bb6d62086a049f8 | 1b9dcc5051719fce3fdf6d64ef6b39adc10d5bb3 | /Tools/cve-search-master/web/minimal.py | 8ed4b0e2f7a93f31d4aeed408738049797a0376e | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | abuvanth/watchdog | 20e0358a6892206fcc794478d2d24c95c838fa4e | 0a0fae253bf4321cdfb83052f56555a5ca77f7b9 | refs/heads/master | 2020-10-01T20:23:53.950551 | 2019-12-12T13:57:56 | 2019-12-12T13:57:56 | 227,618,188 | 2 | 0 | Apache-2.0 | 2019-12-12T13:51:25 | 2019-12-12T13:51:24 | null | UTF-8 | Python | false | false | 8,912 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Minimal web interface to cve-search to display the last entries
# and view a specific CVE.
#
# Software is free software released under the "Modified BSD license"
#
# Copyright (c) 2013-2016 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2014-2016 Pieter-Jan Moreels ... | [
"mohan.kk@flipkart.com"
] | mohan.kk@flipkart.com |
48b2e11482852404b0d42df21d5e7252714aaf19 | 53bff3de85c6e04b448623a4f71b062b6a102974 | /PhysicalCuriosity/PhysicalCuriosityStudy.py | 7c0705c53a8edc453845c489f3ae6af609f8bd3b | [] | no_license | rinatrosenbergkima/pandas | 366f9e35f753f0dd5e3016d1e79d22028171e656 | 1ed61618105f776af072380da8b521f47f4236ae | refs/heads/master | 2021-09-27T20:28:16.485741 | 2018-11-11T16:32:12 | 2018-11-11T16:32:12 | 109,816,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,246 | py | #tutorial:
#https://github.com/QuantScientist/Deep-Learning-Boot-Camp/blob/master/day01/Intro_ml_models.ipynb
#https://github.com/QuantScientist/Deep-Learning-Boot-Camp/blob/master/day01/predicting_income_from_census_income_data.ipynb
# > this is how to install pandas
# > sudo easy_install pip
# > pip install wheel
#... | [
"rinat.rosenberg.kima@gmail.com"
] | rinat.rosenberg.kima@gmail.com |
b29c5e65d26f5c8c0c9f722d200de823dcf5af31 | a478489da108ec850795ac24f798a0ac75bb4709 | /Standard_deviation-master/graphs/class1.py | d9180f882b2dbfe906f689b678c6b6f76b08ae4f | [
"MIT"
] | permissive | LiamBrower/Class-105 | 9ff0f54f98b3bc1a2e0b659cc67995a0b7b1c604 | 11b2aeaf8ad5836bd2da113261bbfb7abd52d441 | refs/heads/main | 2023-08-16T07:13:37.831836 | 2021-10-12T23:53:30 | 2021-10-12T23:53:30 | 416,531,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import csv
with open(r'C:\Users\docto\Dropbox\WhiteHatJr\Class-105\Standard_deviation-master\graphs\class1.csv', newline='') as f:
reader = csv.reader(f)
file_data = list(reader)
#To remove headers from CSV
file_data.pop(0)
total_marks = 0
total_entries = len(file_data)
for marks in file_data:
total_mar... | [
"noreply@github.com"
] | LiamBrower.noreply@github.com |
32d8b228910b00555072d555646b4a470a56bb2b | 0ce37bdeab869e0b20dab275f0f7e1b3bf7dcb60 | /project/project/urls.py | bd5366ef2d10037ae18a26c664cd0fb65e54585f | [
"MIT"
] | permissive | amritharun/squirrel-tracker | c9fcd15a59f73b4d80d072c190b74f7bd3d2239e | e3d0223ede58b442c53a0fa931ed59d4443ed4a1 | refs/heads/main | 2022-12-30T19:40:56.716080 | 2020-10-22T19:58:40 | 2020-10-22T19:58:40 | 302,137,821 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"aa4053@columbia.edu"
] | aa4053@columbia.edu |
83416776a453799aedb29e38b0934f13e88a005a | c49e1cf78851aec6b3df5b4774d16020e919ed65 | /server/server/urls.py | d8c5d72f20c89ab8c18390b24afdb2f68626b3fe | [] | no_license | weeksling/product-tracking-portal | 5c3e41ae773f49440ff74adc4d3352133fe9485a | 4f10c573a18eeac19d6aed3bf3008d180ccb0a07 | refs/heads/master | 2021-01-06T20:35:14.141517 | 2017-08-13T23:30:39 | 2017-08-13T23:30:39 | 99,381,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | """server URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"weeksling@gmail.com"
] | weeksling@gmail.com |
ad703714edd63c2fc81280105c049bd81f3fb31a | 7d5af69c8ff72a003d171072e0f025400f309fc8 | /get_weather_pyowm.py | 38365653e54613d36283e50afb8d54fcdea697d8 | [] | no_license | elormcent/centlorm | a47f033e39fc9e093607e3705613fcd07bb8852d | ec7a60faa2dc2c196247ccd44d2fb6dbd7c2bdad | refs/heads/master | 2020-06-18T07:43:52.555439 | 2019-07-15T16:14:21 | 2019-07-15T16:14:21 | 196,219,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | import pyowm
from gpiozero import LED
from time import sleep
def Weather_Forecast():
city = input("Enter Name of City with space :- ")
country = input("Enter Name of Country :- ")
led = LED(17)#yellow
led1 = LED(18)#red
led2 = LED(27)#green
apikey = '51c6723dd2f51626dd... | [
"innocent.fiadu@htu.edu.gh"
] | innocent.fiadu@htu.edu.gh |
0f5ed518db714ea344380b6429275fec41ee5e98 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/test/webapps/graph_analysis_unittest.py | 8c279f8cf4de227a48180ac060fca8eb86fd07b9 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 4,714 | py | #!/usr/bin/env python3
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import csv
from file_reading import read_actions_file, read_enums_file, read_platform_supported_actions, read_unprocessed_coverage_tests_file
from test_anal... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
da0b836d9ee3e8f5c77c7ae1b030681c959bd465 | 0a4d0925577e77d2fc2f92a572e259fcbd3f0b9f | /assignment3/q1_window.py | 50e0ca73cdf52f1cf62e6f53e081992556f567a4 | [] | no_license | Jacobsolawetz/stanford-cs224n | 7a80c2c89625052771c0ef2c0e64703d34c74358 | 78db134c7cebd8e4afb36b454d522ad99be1561f | refs/heads/master | 2020-04-26T14:21:18.884356 | 2019-03-03T18:02:57 | 2019-03-03T18:02:57 | 173,610,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,404 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Q1: A window into NER
"""
from __future__ import absolute_import
from __future__ import division
import argparse
import sys
import time
import logging
from datetime import datetime
import tensorflow as tf
from util import print_sentence, write_conll
from data_util ... | [
"jacobsolawetz@gmail.com"
] | jacobsolawetz@gmail.com |
a99c2a5837c537a407dd87963f6047684fc42131 | 60b52f75e2b0712738d5ad2f9c2113e4d8016c1e | /Chapter01/Logistic regression model building/logistic.py | 9173bc687a2a76562df6ba94ab599b0b78764c5a | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Deep-Learning-with-TensorFlow | b63b40140882762841403467f9255612972f7ec7 | c81fdc1edf8f2275ea76a9900c92e7fae0ddf6ed | refs/heads/master | 2023-01-24T19:44:40.191675 | 2023-01-24T11:07:02 | 2023-01-24T11:07:02 | 100,028,897 | 96 | 77 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | import tensorflow as tf
import numpy as np
%autoindent
try:
from tqdm import tqdm
except ImportError:
def tqdm(x, *args, **kwargs):
return x
# Set random seed
np.random.seed(0)
# Load data
data = np.load('data_with_labels.npz')
train = data['arr_0']/255.
labels = data['arr_1']
# Look at some data
p... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
f680454ba7b5af9fc6dc8c24ff0cd85b369acce2 | 55c87755a4d7664e8155ac30a4a2e713afae802d | /check_eos_bisent.py | ec3f638cee49d57e460f0d2be868b876cd2e414d | [] | no_license | seppilee/eval_grammar | c67edb5e1ee5f85689d87939299fed97c0c0d335 | d103a5e187308409f673d0d8deb4e92a9d103eef | refs/heads/master | 2020-03-14T16:51:36.277125 | 2019-05-19T14:34:04 | 2019-05-19T14:34:04 | 131,706,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | #!/usr/bin/python
#-*- coding: UTF-8 -*-
import sys
import string
import re
reload(sys)
sys.setdefaultencoding("UTF-8")
def main(strRefFile):
hangul = re.compile('[^a-zA-Z0-9�꽦-�뀭媛�-�옡]+')
nLineNum = 0
lstRef = {}
# read reference file
fref = open(strRefFile, 'r')
while 1:
nLineNum ... | [
"seppi.lee@hanmail.net"
] | seppi.lee@hanmail.net |
499e15bc058b825877025eda2fa9a34fc9c1cc8f | b4314f089cbb4163a3dc063f0c708117e168f56d | /pytdjangoblog/urls.py | 8724a1344757d930c2178c83320f0ca504cb6d47 | [] | no_license | tinodau/LearnDjango | dd2551f8445a113f17347c7d13e855254fbad683 | ced3d29cd94bfe9a50d32c005d34fdf170d5a105 | refs/heads/master | 2020-06-14T03:33:01.159897 | 2016-12-04T01:12:11 | 2016-12-04T01:12:11 | 75,509,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | """pytdjangoblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"daulat.rachmanto@gmail.com"
] | daulat.rachmanto@gmail.com |
373478a5506e864208ef712885d48dbfca547532 | fd8db5460e29f1e756954bea8b1f19d68f0c46c8 | /gym_subgoal_automata/envs/base/base_env.py | ec4115d0faa1c83b04f0b1e2469f72fa881f5d90 | [
"MIT"
] | permissive | ertsiger/gym-subgoal-automata | 35080daf98bb4ee83381ded02f802f9f48db2005 | 1879a6512441cdf0758c937cc659931d49260d38 | refs/heads/master | 2023-08-24T19:27:21.767022 | 2023-08-15T09:53:08 | 2023-08-15T09:53:08 | 225,397,189 | 7 | 4 | null | 2022-06-21T23:36:27 | 2019-12-02T14:43:02 | Python | UTF-8 | Python | false | false | 984 | py | from abc import ABC, abstractmethod
import gym
from gym_subgoal_automata.utils import utils
class BaseEnv(ABC, gym.Env):
RANDOM_SEED_FIELD = "environment_seed"
def __init__(self, params=None):
super().__init__()
self.params = params
self.is_game_over = False
self.seed = utils... | [
"danielfb93@gmail.com"
] | danielfb93@gmail.com |
da05e53882fe0ea9e33aeee423de00ca20d345e3 | 11a68b37deda3060c76b190436b6e854264d37d6 | /agentredrabbit/agentredrabbit.py | c576fb932fa6820a776ceda46dd108119a9b0938 | [
"MIT"
] | permissive | publicbull/agentredrabbit | c97b98f2e95363da2e3176f5fdafcf35df55de9a | ef31c204904606bf5ef7c4060487a282e6d1d6e3 | refs/heads/master | 2021-01-18T16:19:11.763299 | 2013-09-02T12:53:51 | 2013-09-02T12:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,181 | py | """
The main method and signal handlers for agentredrabbit
"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
import logging
import os
import pickle
import signal
import sys
import threading
from config import ReadConfig
from utils import log_format
from transport import Transpo... | [
"rohit.yadav@wingify.com"
] | rohit.yadav@wingify.com |
503b7f9f5bea3e416854a4403b9bb08dcf02eee1 | d07a4d928cf5c7e9826d4bd57a4aa70d1bbf9756 | /accounts/views.py | bbf666c3e281c25419c044a945392b7d6e77d7af | [
"MIT"
] | permissive | codexplore-io/django-blog | 8c197cdffd09e1966be715a30de3ff8818ad03d1 | 3305ce98a0baf2ceafdaa66d78088407d93a8258 | refs/heads/master | 2020-05-17T11:05:31.832642 | 2019-04-26T18:29:26 | 2019-04-26T18:29:26 | 183,675,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | from django.shortcuts import render, redirect
from django.contrib.auth import get_user_model, authenticate, login, logout
from posts.models import Post
User = get_user_model()
# Create your views here.
def user_create_view(request):
if request.method == "POST":
context = {}
password1 = request.PO... | [
"tannersiciliano@gmail.com"
] | tannersiciliano@gmail.com |
05fb3c8bc1ba86519606a3ecb9ac40cccfed17ac | 2964ced169dd32ecccd9ba37f8cf3b866ec2309b | /apps/sections/models.py | 5d58a7f86874a8ca1ff32779001ada03959a6659 | [] | no_license | GanZiB4Fun/GanZiB-Web | d876de959575967c5f95daa1f561f98ac81b8750 | cdf6f11a91548b167e764adf64e18381da0d1c1e | refs/heads/master | 2021-03-24T13:26:20.344641 | 2018-01-15T11:10:15 | 2018-01-15T11:10:15 | 116,032,699 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/1/2 16:52
# @Author : GanZiB
# @Email : ganzib4fun@163.com
# @Site :
# @File : models.py
# @Software: PyCharm
from flask_sqlalchemy import BaseQuery
from apps import db
class SectionsQuery(BaseQuery):
def getall(self):
return self.a... | [
"ganzib4fun@163.com"
] | ganzib4fun@163.com |
31ad4b8319049da0c46adfbd3bb7d1f84e6ca502 | 364cad049756c8ae0882c4bddac36d27c9b9d5c9 | /ipynb/process_KITTI_data.py | 656c1171aa4f92c91f735fd90a4bad880e7c1487 | [
"MIT"
] | permissive | GarethZhang/PointNetLK | c03ee81425248749bad670b98257b7dfa02a7c8f | c5208880e3ebfabb8f0477bd0a012c88fd316aa6 | refs/heads/master | 2020-09-08T09:24:19.371643 | 2019-11-14T07:02:53 | 2019-11-14T07:02:53 | 221,093,069 | 0 | 0 | MIT | 2019-11-12T00:07:27 | 2019-11-12T00:07:26 | null | UTF-8 | Python | false | false | 491 | py | import pykitti
import os
import numpy as np
from scipy.stats import binned_statistic
import pickle
import cv2
def make_dir_if_not_exist(path):
if not os.path.exists(path):
os.makedirs(path)
return path
def ensure_file_dir_exists(path):
make_dir_if_not_exist(os.path.dirname(path))
return path
... | [
"gareth.zhang@mail.utoronto.ca"
] | gareth.zhang@mail.utoronto.ca |
aedf4a7758d37e8f75483ebed1e2b39b589cc08d | c25ba294568ac36a04ae241511dbe012b3eaccfb | /Server/20180916213520426/Python/Server/Mark.py | bf976db936969b8c0211cf4b42c24236795d288b | [] | no_license | biabeniamin/CatalogScolarTeams | 1a502bc78c63be1a61ec5917835e2319bb7402dc | 247005895379683c510866500bb4a9ebf088c6c5 | refs/heads/master | 2023-02-16T16:58:46.333565 | 2021-01-19T19:59:02 | 2021-01-19T19:59:02 | 320,657,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,974 | py | #generated automatically
from sqlalchemy.orm import backref, relationship
from sqlalchemy.orm import validates
from SqlAlchemy import Base
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy import *
from sqlalchemy.dialects.mysql import DOUBLE
from ValidationError import ValidationError, valida... | [
"biabeniamin@outlook.com"
] | biabeniamin@outlook.com |
dc19cf1d9e622a9dee15bf79c56443863a834648 | 860187a5081513d9b4a59260e4ba4e290c4f4638 | /quals/crypto/pqrsen/prob.py | 081cc3cbe2921af8625d14202f080d2196eb5057 | [
"MIT"
] | permissive | fraglantia/CTF-Arkavidia-6 | e0e89315bad16e4f2497aa93ffcc0543256166f6 | 97cc9f5d5fff158db83d9f7a411e7022c94b4b71 | refs/heads/master | 2022-04-01T13:40:26.602541 | 2020-02-14T06:10:01 | 2020-02-14T06:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from Crypto.Util.number import *
from secret import *
m = bytes_to_long(flag)
p = getPrime(2048)
q = getPrime(2048)
r = inverse(pow(p,3),q)
s = (pow(p,2,p*q) - pow(q,0x10001,p*q)) % (p*q)
e = 0x10001
n = p*q
assert(m < n)
c = (pow(r*m,e,n)*inverse(s,n))% n
c = pow(c,2,n)
open("pub.key","w").writelines(map(lambda x: x... | [
"munirabdullahm@gmail.com"
] | munirabdullahm@gmail.com |
e9e335201ab716e0b4e0c4dd41ecd24d930e054d | b7eb41b068614e04f38a969326f43d8f8119cb05 | /74_search_a_2d_matrix.py | ca546b4123fa5936447cab9c7edc0057dcffd1b4 | [] | no_license | YI-DING/daily-leetcode | ddfb6985bf5014886cba8d6219da243e0aa28d71 | a6d3898d900f2063302dc1ffc3dafd61eefa79b7 | refs/heads/master | 2020-05-19T06:07:21.557077 | 2019-07-19T16:31:46 | 2019-07-19T16:31:46 | 184,866,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | class Solution:
def searchMatrix(self, matrix: List[List[int]], target: int):
if not matrix or not matrix[0]:
return False
start, end = 0, len(matrix)-1
while start+1 < end:
mid = (start+end)//2
if matrix[mid][0] > target:
end = mid... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
123d18a02f05d17059d952a8169d5b7d13b2133e | 61bd4a9dfd606b3c9efd52f23848b7329b18a909 | /Pythonscripts/run_predictions.py | 071dc31901d1c69daae74de43dde6e21c174c466 | [] | no_license | philmcc/aistocks | e9e85dc65e5439793cc5caa4d851a9149ff762a1 | 0706ce7d63db271ee807cc1f6dba8cd178223612 | refs/heads/master | 2021-01-10T05:36:33.736881 | 2016-09-06T13:53:03 | 2016-09-06T13:53:03 | 46,048,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb as mdb
from pyfann import libfann
from datetime import date
from network_functions import save_prediction
mydate = date.today()
con = None
con = mdb.connect('localhost', 'root',
'fil1202job', 'stock');
with con:
cur = con.cursor(mdb.cursors.DictCu... | [
"pmcclarence@iparadigms.com"
] | pmcclarence@iparadigms.com |
2e897d9ec97d05599a782b93f0e1b52ef8e1ba62 | f9fb4f8073d963c349679e7f40b73dc711160991 | /py-casanova/Lesson2/exo_cc_lesson_2.py | d2dd6e44d1cc887025ca1997ed65bdfb2c64fd21 | [] | no_license | ouedraogoboukary/starter-kit-datascience | 83606196fc19cc3385ba8e846ef3014ff9e0b2e9 | f621d4a1d7826c79c7ebd3a5a07a0138199e6c82 | refs/heads/master | 2020-10-01T01:04:23.460810 | 2017-12-04T22:33:52 | 2017-12-04T22:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | #! /usr/bin/python3.5
import unittest
# Given a string and a non-negative int n, return a larger string
# that is n copies of the original string.
def string_times(string, n):
if not(isinstance(n, int)):
return "bad argument"
if not(isinstance(string, str)):
return "bad argument"
return ... | [
"pycasa@gmail.com"
] | pycasa@gmail.com |
beeb994bc275b0d7566e4102cb3cde213340d3ed | d7ae1e6da46ae8198aedff8c3a21db09c6829083 | /my1021_2_2.py | 54c29253165b444ada0bfbc5961cdaa67d83bc64 | [] | no_license | Aminoragit/Mr.noobiest | b503bbeac2777cd2fe6c5ba24d032f2204fe7bde | 5070e7c3215c8a6400879e52e55f47125bfca268 | refs/heads/master | 2022-03-26T18:22:31.989429 | 2019-12-27T00:31:08 | 2019-12-27T00:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | string_object = "python programming"
for ch in string_object :
print(ch)
| [
"noreply@github.com"
] | Aminoragit.noreply@github.com |
e15132e5771bf4da3f169285b889ad3627901912 | 63fdf9369b28cf956789a374ab9e237da250ab82 | /forgebox/ftorch/train.py | fc18cc026af955dc054aca3143e6fb4fdc7d2605 | [] | no_license | raynardj/forge | a9fc66a9cc6d08856a2ca83f4c6f6e76058ad8e9 | 81a10c443b31ed13dd615f58a4f322657e656244 | refs/heads/master | 2023-07-06T08:53:14.453836 | 2019-08-26T07:53:27 | 2019-08-26T07:53:27 | 168,506,241 | 7 | 0 | null | 2023-06-22T19:59:32 | 2019-01-31T10:24:54 | Python | UTF-8 | Python | false | false | 2,623 | py | import __main__ as main
from torch.utils.data import DataLoader
from collections import namedtuple
try:
JUPYTER = True if main.get_ipython else False
except:
JUPYTER = False
if JUPYTER: from tqdm import tqdm_notebook as tn
TrainerBatch = namedtuple("TrainerBatch", ("epoch", "i", "data", "trainer"))
from forg... | [
"raynard@rasenn.com"
] | raynard@rasenn.com |
f789b859c8548d0cde3a2a1d0d92f48e291ed514 | 3d12a844953e83b3ae13b1788fedf8cce5d33de9 | /program.py | a76c6d7312b50ae2c5d070b6cfb746b2b43d1d1e | [] | no_license | karthik0500/analyze | 8cd14ff01d8dea77564ad778cd752823a102fe71 | 9de5da46c994f65a307ca5a98ae45ff64020c614 | refs/heads/main | 2023-06-11T04:36:26.448762 | 2021-07-04T04:36:51 | 2021-07-04T04:36:51 | 382,659,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py |
import streamlit as st
import sklearn
import numpy as np
import pandas as pd
from sklearn import datasets
from sklearn.ensemble import RandomForestClassifier
st.write("""Simple Iris Flower Prediction""")
st.sidebar.header('User Input parameter')
def User_Input_Features():
sepal_length = st.sidebar.sli... | [
"noreply@github.com"
] | karthik0500.noreply@github.com |
a76f854b2570b8c9af51c1adba282901b8e156a8 | 71f6cc279029dde917e9d4e51abc8a30927eb520 | /rename_1d.py | 7bd596f84a1443eb11d8b957048e9e0b0a6a909a | [] | no_license | threeHardWorker/auto_tbdata | c2a03a4fb810c904c24c026b8730ea00ef07222e | b5371d7bca2ab80d8e340dce8bda3a07945af1f1 | refs/heads/master | 2020-03-18T17:29:42.143475 | 2018-05-27T09:27:56 | 2018-05-27T09:27:56 | 135,032,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import os
import sys
if len(sys.argv) != 3:
print('Usage: reanme.py <start date> <end date>\n')
exit(0)
path = 'c:\\tmp\\csv'
s = '10秒'
d = '10s_' + sys.argv[1] + '_' + sys.argv[2]
fs = os.listdir(path)
for f in fs:
os.rename(path + '\\' + f,
path + '\\' + f.replace(s, d)) | [
"stoneguo@126.com"
] | stoneguo@126.com |
5bfdfd70e551c90834a8033de5bf56429dacecac | b5e5792c66d61af45b9f93b1a289045f9dbbab96 | /api/migrations/0005_auto_20200509_0112.py | 1e84495100ebf6da261816be2b48bf2d4190df60 | [] | no_license | frankiegu/ecust_annotation | 4c39da1ac4ae643d388f6859f79195139634d2b0 | 115a15942c0ca3b32f06f74d23b3bce6c5ed0163 | refs/heads/master | 2022-10-12T04:15:25.272851 | 2020-05-11T00:39:57 | 2020-05-11T00:39:57 | 295,602,620 | 0 | 3 | null | 2020-09-15T03:19:14 | 2020-09-15T03:19:13 | null | UTF-8 | Python | false | false | 730 | py | # Generated by Django 2.2.5 on 2020-05-09 01:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20200508_0951'),
]
operations = [
migrations.AddField(
model_name='dic',
... | [
"kyrieming@126.com"
] | kyrieming@126.com |
cb51efd3406c8c2cc66cb2f9fbe807f889d82670 | ae043a0200f4dc087c30b2cadddc98d63577df71 | /scripts/Rigging/create_Obj.py | 463f6e7ea6ef48ab98c94840416b63b34ab1128b | [] | no_license | RiggerLiuqi/lqMayaScript | b7ba2dfcfc1a3581beedbba6d70ca0e68282cb38 | cb51742fa712b783744e6192f5b29b43155f392d | refs/heads/master | 2022-06-24T04:03:19.898782 | 2020-05-10T18:33:05 | 2020-05-10T18:33:05 | 262,835,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------#
# .@FileName: create_Obj
# .@Author: CousinRig67
# .@Date: 2020-04-20
# .@Contact: 842076056@qq.com
# -------------------------------------------------------------------------------#
from cre... | [
"842076056@qq.com"
] | 842076056@qq.com |
5805016b6deb1eb7bbccac74feb8dc8aebe20e1f | 682a16bc7705f16af80b87775780ecb41c7fb1d5 | /rs.py | 353aa60f04c850e268adb741b2de57ce7e5e8d74 | [
"MIT"
] | permissive | dannydeleon8998/RapeStresser | 4e4feea9d306c24ce4ca1575e4d6857e1c3eb4c5 | 3521997cb3baff5fd4955ca5fa4edc2d41f675b4 | refs/heads/master | 2022-04-27T07:39:55.382610 | 2020-04-28T02:29:29 | 2020-04-28T02:29:29 | 259,509,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,555 | py | # MIT LICENCE Taguar258 2020
# Please read the Licence to know your permissions.
argvexit = False
try:
import socket
import os
import sys
import time
from threading import Thread
import urllib2
import re
import redis
import pickle
import wget
import nmap
try:
imp... | [
"noreply@github.com"
] | dannydeleon8998.noreply@github.com |
ce7933230d5bc50519059d8bf563e142cacd0f9d | 4f1218079f90a65befbf658679721886d71f4ee8 | /python/hackerrank/birthdaychocolate.py | ef225e1789e29cfa011f85c8ddf433ee3d17c0b9 | [] | no_license | Escaity/Library | 9f57767617422a7930caf48718d18f7ebef81547 | b34d8600e0a65845f1b3a16eb4b98fc7087a3160 | refs/heads/master | 2022-07-29T16:18:33.073738 | 2022-07-17T10:25:22 | 2022-07-17T10:25:22 | 238,588,249 | 0 | 0 | null | 2021-08-17T03:02:34 | 2020-02-06T02:04:08 | Python | UTF-8 | Python | false | false | 213 | py | def birthday(s, d, m):
n = len(s)
cnt = 0
for i in range(n - m + 1):
bar = 0
for j in range(i, i + m):
bar += s[j]
if bar == d:
cnt += 1
return cnt
| [
"esk2306@gmail.com"
] | esk2306@gmail.com |
709c6e0719bab7bb2ce4a850c3240d1058ed4ca9 | c09545034e6a4c65e88ad5d0d214ce571b8e6ec6 | /jinritoutiao/items.py | f2826f48364055c55b3b98ed4de38e4ed55d1e84 | [] | no_license | hdxj/jinritoutiao | 5757fca221629c70e9261566ae7289c419502f75 | f306aabbd454f3adad8ebc5e1e8ca62d6636a490 | refs/heads/master | 2021-01-20T05:43:57.093773 | 2017-08-26T06:41:18 | 2017-08-26T06:41:18 | 101,467,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class JinritoutiaoItem(scrapy.Item):
abstract = scrapy.Field()
article_genre = scrapy.Field()
chinese_tag = scrapy.Field()
label = scrap... | [
"lqrschen@163.com"
] | lqrschen@163.com |
58b963b434f59c65974163b99df220974713b385 | 02779ff959cf88513d44162cf4ab076bb23cb471 | /satloc.py | a28b0b0ba143c660b6175e0b295e6b971bfc4839 | [] | no_license | WillFife/SatNav | 5432f970946c1d4c983dd39621042fbdc4582324 | 49520aa532f6e19b20b05a9fb5af0345c2e20683 | refs/heads/master | 2023-01-03T20:17:30.540351 | 2020-10-30T19:26:04 | 2020-10-30T19:26:04 | 291,811,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,852 | py | """
Retrieve the CSV file for navigation data for the
32 possible satellites at a time given by GPS week and GPS seconds.
Also create a CSV of the ECEF position and velocities from the given navigation data.
@author: William Fife
"""
# import dependencies
import numpy as np
import pandas as pd
import matplotlib.pyp... | [
"william.fife@utexas.edu"
] | william.fife@utexas.edu |
b77bc2acca6b6e0e86c89938bda7c5ab19c1574c | 7aebfaec6957ad67523f1d8851856af88fb997a6 | /catkin_ws/devel/lib/python2.7/dist-packages/xarm_msgs/srv/_GetAnalogIO.py | 6f4bb532c9a98d105e10d7d82b9913662901a07b | [] | no_license | k-makihara/ROS | 918e79e521999085ab628b6bf27ec28a51a8ab87 | 45b60e0488a5ff1e3d8f1ca09bfd191dbf8c0508 | refs/heads/master | 2023-01-28T06:00:55.943392 | 2020-11-26T05:27:16 | 2020-11-26T05:27:16 | 316,127,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,564 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from xarm_msgs/GetAnalogIORequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GetAnalogIORequest(genpy.Message):
_md5sum = "f1c58d245d5dbcbc33afe76f9fc1dff4"
... | [
"makihara@ms.esys.tsukuba.ac.jp"
] | makihara@ms.esys.tsukuba.ac.jp |
d5676fa17de1d686869f532cf7410e0555426ced | a75e7f434271f1ce4bc9e89f6cc10126aa1947e7 | /test/__main__.py | b6661dcb01917492dc29fa3c377d63eb7fd7c385 | [] | no_license | smutel/pylib | 53f0918ef897d5df5e2ecb7a6b0179bdd3647843 | 463873a0f9ff2052f740be632dde746be6e3b19b | refs/heads/master | 2020-06-15T16:26:16.476496 | 2016-11-25T14:15:44 | 2016-11-25T14:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2015-11-14 12:21:54 +0000 (Sat, 14 Nov 2015)
#
# https://github.com/harisekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send m... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
f7a23f0389fe8115da3ae140207cef638d3ed979 | cb3634622480f918540ff3ff38c96990a1926fda | /PyProject/leetcode/history/symmetric-tree—2.py | 6a7f516c3065f6a3a5169f67922957b4efac8b15 | [] | no_license | jacksonyoudi/AlgorithmCode | cab2e13cd148354dd50a0487667d38c25bb1fd9b | 216299d43ee3d179c11d8ca0783ae16e2f6d7c88 | refs/heads/master | 2023-04-28T07:38:07.423138 | 2022-10-23T12:45:01 | 2022-10-23T12:45:01 | 248,993,623 | 3 | 0 | null | 2023-04-21T20:44:40 | 2020-03-21T14:32:15 | Go | UTF-8 | Python | false | false | 725 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def isSymmetric(self, root):
if root is None:
return True
else:
return self.isMirror(root.left, root.right... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
ca233501fb5c9fda5f913bf4b8585651b383ef8a | 5ad3cdae21d6a594d2e499406bd3159c9e635ce8 | /yatube/posts/migrations/0005_auto_20210607_1847.py | e5b204084a85b0f5de89704ec3e5acc475a3829e | [] | no_license | Priest-4612/hw05_final | 18e24058a29de7b4533f8a1098210998277ace5b | 2ab6809b36a7c2f42c14a33deedca7cf8ce1cdf5 | refs/heads/master | 2023-06-15T00:50:48.783136 | 2021-07-12T18:39:31 | 2021-07-12T18:39:31 | 382,963,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Generated by Django 2.2.9 on 2021-06-07 15:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0004_auto_20210530_0018'),
]
operations = [
migrations.AlterModelOptions(
name='post',
options={'ordering': ['-pub_... | [
"prie4612@gmail.com"
] | prie4612@gmail.com |
916bdd6be2ab0c6f52deaa6390bed30b79c41458 | e2069d49028ca0e7640cb9bb65ae2ec93081790d | /classification_convert_crop.py | 27dba3be54b1844a07859604702244c381393b73 | [] | no_license | breadcrumbbuilds/classification-image-functions | 803879e331a4538ce4d3e3dc22045eb1b00b995a | 3a5c7082ca431c10a9ec636cca0e442680dc7a6d | refs/heads/master | 2020-07-07T03:17:55.613761 | 2019-08-28T18:27:25 | 2019-08-28T18:27:25 | 203,228,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,133 | py | """
Created on Fri Aug 16 09:47:57 2019
@author: brad.crump
Script converts and crops data, in future, add the option to not crop data.
Assumes that the input image contains "RGB" and "png".
Still from a naive approach, but has potential to be further generalized.
Use case:
If data has a substantial black backg... | [
"bradrcrump@gmail.com"
] | bradrcrump@gmail.com |
2fc6c3ca11a0533b9e305d1c97100d5ac134da5a | 7044043460c74a9c1c9d386bdeccb87289362f76 | /mysite/urls.py | 7794602ec06995938b9e62a0ce60bf93ca078cb7 | [] | no_license | KIMJONGIK/mysite | 6630682eca869b5122597baf2e2f59dd0b40869a | 84b908ea75602c7ca801eafb7dd975aadf70593b | refs/heads/master | 2022-12-09T14:33:38.741339 | 2020-09-16T11:48:53 | 2020-09-16T11:48:53 | 293,227,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"kji089@naver.com"
] | kji089@naver.com |
8fc33e667b9cd3bc3e640188e68f4aa66390f63a | 6bd4d4845ac3569fb22ce46e6bdd0a8e83dd38b7 | /fastreid/data/build.py | da5b4b0137cd82c4dc9cc869976c914e7c475f7a | [] | no_license | wodole/fast-reid | a227219acf2606124655d63fa88c0cf3e22f4099 | 9cf222e093b0d37c67d2d95829fdf74097b7fce1 | refs/heads/master | 2022-04-15T15:10:07.045423 | 2020-04-08T13:04:09 | 2020-04-08T13:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | # encoding: utf-8
"""
@author: l1aoxingyu
@contact: sherlockliao01@gmail.com
"""
import logging
import torch
from torch._six import container_abcs, string_classes, int_classes
from torch.utils.data import DataLoader
from . import samplers
from .common import CommDataset, data_prefetcher
from .datasets import DATASET... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
24f6ce5d1d7d247f113554d063d6fe5404344652 | fb75a89ca9f9c322edccb28a0d8ca2983c183b5a | /ram/krish/migrations/0002_auto_20190909_1207.py | e8e876ba255083a632b6f15ca0bb5ade59a11717 | [] | no_license | Nagateja453/rkmission_django | af205d931dae3159f948a63e3e293aee1dc4a709 | a882248d6316535fa742248ad97af66d8cc82b6c | refs/heads/master | 2020-08-02T07:43:50.307469 | 2019-09-27T08:56:47 | 2019-09-27T08:56:47 | 211,277,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-09-09 12:07
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
migra... | [
"rahulkiranreddy13@gmail.com"
] | rahulkiranreddy13@gmail.com |
56da23f9a0d297df1b7ab5e52d14a535ed9dc9fe | 6113c356eb4fae7bfb04c4bd2b121f130ef41a14 | /content/migrations/0022_projects_direction.py | 2ea9195795802a911667d7d1035d9100af739cdf | [] | no_license | slonidet/avcsite | 4e8950296551e80003a5f76b934a043b8fd2f02e | 8034a75bbe8f2e2973761502413df76e918e1c2b | refs/heads/master | 2020-06-17T19:37:43.085881 | 2016-11-29T14:40:03 | 2016-11-29T14:40:03 | 74,976,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-11-25 10:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0021_remove_projects_direction'),
]
operations = [
migrations.Add... | [
"dmitrysulin@gmail.com"
] | dmitrysulin@gmail.com |
b0445f7811e97fb43d9cdb3bfdad9449cab3f128 | e6376e614dbf63df8381af0333c81af5b1434bec | /python/08makechange_ice.py | 4eb6d4d5d7991fa90edaafc0c55a5e17846629ad | [] | no_license | billhowland/PythonLabs | 215082b56e17c5454e6e40a64ef44a55ae7ba689 | b287cefd64ed5f30b6e9db65fc9cd895e2f7da6e | refs/heads/master | 2021-06-24T23:53:41.265111 | 2019-05-28T02:02:17 | 2019-05-28T02:02:17 | 168,642,589 | 2 | 0 | null | 2021-06-10T21:23:57 | 2019-02-01T04:34:20 | Python | UTF-8 | Python | false | false | 832 | py | # makechange_ice.py
print('This program calculates coins for making change')
run = 1
while(run):
while True:
total = input('Enter the amount > ').strip().strip('$')
try:
total = (float(total)) * 100
if total < 0:
raise ValueError
break
exc... | [
"electronzero@comcast.net"
] | electronzero@comcast.net |
bda08bb1e8392fe0495c5b0f7bc2ba3dc882b580 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/tools/scan-view/share/startfile.py | 673935909f823467ad1dd737788133966d2a00e3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"NCSA",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-arm-llvm-sga",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 6,038 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility for opening a file using the default application in a cross-platform
manner. Modified from http://code.activestate.com/recipes/511443/.
"""
__version__ = '1.1x'
__all__ = ['open']
import os
import sys
import webbrowser
import subprocess
_controllers = {}
_ope... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
81c12aa06351a46d66c2728acf26102e592fa5da | 3abd7d66e5e3923383faaef19ff2cf8f1bd5f72e | /evaluate.py | 6ac5ea4412305a1c657353c9b256c5f3b061f87d | [] | no_license | Piaktipik/RVSS_Workshop | 9af190873bff179b3529bb3533262165bcf23109 | 35b5c822ef6da91e73be9322c9354aa62234cb31 | refs/heads/master | 2023-02-27T17:47:25.693839 | 2021-02-05T00:34:35 | 2021-02-05T00:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | #!/usr/bin/env python3
import ast
import numpy as np
import json
#
def parse_groundtruth(fname: str) -> dict:
with open(fname,'r') as f:
gt_dict = ast.literal_eval(f.readline())
aruco_dict = {}
for key in gt_dict:
aruco_dict[key] = np.reshape([gt_dict[key]... | [
"u6139430@anu.edu.au"
] | u6139430@anu.edu.au |
67f524f456ca9e7e1feca8663cf6713d9eca575c | 18670f3ce7e626a60423df66e090044054f35488 | /desy_r/private/secretsettings.py | b9019ce36c8f3917c03334e96365999a0558500d | [] | no_license | camrock1/desy-reporting | b64d5dd467a2f20c796c1382e1e3fbe857587a0f | c523dea758f22e3ee5c1a581bc78940665a1696a | refs/heads/master | 2022-02-12T16:43:01.044690 | 2016-11-04T02:38:27 | 2016-11-04T02:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | AWS_RDS_USER = 'alexlanders'
AWS_RDS_PASS = 'Manf0rd123'
S_KEY = '-#2^f&v4_0nd!6%9oi*stx1pb6ja=fuoyv%1kg_d=ypia*9(7+' | [
"alex.landers@me.com"
] | alex.landers@me.com |
bd7de553f05fa1f867155984ed21d76ea04a8ccb | e9db99651ec062fb0c924d01e5f29dfcd8e9ec1d | /clickhouse_import.py | 77dc9bc0e2eff61c0b1ca4a9de5e5060509edf41 | [] | no_license | whspr/clickhouse_py_xml_importer | b14c0a5847a36f077e0dbaf1ed4b1a3b389bd50a | ee686ae151f80c9c151a6890b47e5f47a2e8477f | refs/heads/master | 2022-12-11T17:09:36.445944 | 2017-05-27T15:40:59 | 2017-05-27T15:40:59 | 92,607,136 | 5 | 0 | null | 2022-12-07T23:56:12 | 2017-05-27T15:28:02 | Python | UTF-8 | Python | false | false | 4,002 | py | __author__ = 'whspr'
from lxml import etree
from time import time
import datetime
from infi.clickhouse_orm import models as md
from infi.clickhouse_orm import fields as fd
from infi.clickhouse_orm import engines as en
from infi.clickhouse_orm.database import Database
class Data(md.Model):
"""
structure of you... | [
"into.the.dissonance@gmail.com"
] | into.the.dissonance@gmail.com |
9d06f25c74335110a8269e61dfd06f9c67088181 | 71afd03278068857a979ba57b0892d4fb44387a2 | /tests/gdata_tests/contentforshopping_test.py | 79666626f5450b26025b783ea41c70cf440e3e2f | [
"Apache-2.0"
] | permissive | dvska/gdata-python3 | 9848717aca61f9e34ebfc3b4b291c6f75aaabc4b | a34c35901473e4ba7223ea4607136141301fbe88 | refs/heads/master | 2021-06-02T20:42:37.570392 | 2020-12-24T10:17:47 | 2020-12-24T10:17:47 | 93,769,460 | 19 | 25 | Apache-2.0 | 2020-12-24T10:17:49 | 2017-06-08T16:18:42 | Python | UTF-8 | Python | false | false | 3,411 | py | #
# Copyright 2009 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License 2.0;
"""Content API for Shopping tests"""
# __author__ = 'afshar (Ali Afshar)'
import unittest
from gdata.contentforshopping import client
class CFSClientTest(unittest.TestCase):
def test_uri_missing_account_id(self):
... | [
"OR"
] | OR |
579336648163e63ff39d3fbf581b6bad5c221ccf | 15a5387c4ad0327b4b08571e5f14fa83a0b686fd | /dec23/decrypt.py | a5b4873bd15ce0acf1f4ff57d33f1ee136ecd843 | [] | no_license | maennel/hackvent2020 | f0759d32a902aa7582e233233d45c84f1cc775c9 | 4b176d5ab322b205cd54e2325b2398e9fc51232e | refs/heads/master | 2023-02-10T23:10:53.643922 | 2021-01-04T15:42:33 | 2021-01-04T15:42:33 | 325,392,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,217 | py | #!/usr/bin/env python3.7
# coding: UTF-8
from __future__ import print_function
from __future__ import division
import argparse
import getpass
import os.path
import pprint
import random
import shutil
import sqlite3
import string
import struct
import tempfile
from binascii import hexlify
import Crypto.Cipher.AES # htt... | [
"mjeckelmann@gmail.com"
] | mjeckelmann@gmail.com |
b0d6aed1f1db0f7b5097cc2e16707e5b2225e718 | 33cb00ba2ce1fc763d20af2a27ca518c68f3ee8c | /FpGrowth.py | 80a12690bd8446326924dafa365c6faea60013a6 | [
"MIT"
] | permissive | MohanL/apriori-Fpgrowth | 50ac552ffad3992fa49c3da9412d0c6436238f18 | 8cc6477f7bc6c86224ca50775c8a46caa77ea07c | refs/heads/master | 2021-01-10T16:22:10.126249 | 2015-12-24T11:52:28 | 2015-12-24T11:52:28 | 44,637,957 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | """
Description : Python implementation of FpGrowth Algorithm
Usage $python main.py -f [filename] -s [minSupport] -c [minConfidence]
"""
from treelib import Node, Tree
from collections import Counter
import operator
from optparse import OptionParser
globNumberOfTransactions = 0.0
globOriginalList = None
globMinSup = ... | [
"mohan.liu.personal@gmail.com"
] | mohan.liu.personal@gmail.com |
8fbf9b7344092e08c9267f703b7859249d1f88ef | 8717d1fbd4e9634d13e87e65d503aaac6ce3f4ca | /apps/products/models.py | f93950d5e69330cfd4a6565b4ea1e58bf88e223c | [] | no_license | asakeev01/Caravan | 679c1eae26647e162ba9b2cacff9960c177b247b | 84328f0ba91252c3c941aec5325ed60b074b45d6 | refs/heads/main | 2023-04-03T12:17:50.856731 | 2021-02-16T15:06:07 | 2021-02-16T15:06:07 | 339,434,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | from django.db import models
from apps.categories.models import Category
class Product(models.Model):
name = models.CharField(max_length = 255)
description = models.TextField()
categories = models.ManyToManyField(Category, related_name = 'products')
def __str__(self):
return f'{self.name}'
... | [
"aidar.asakeev@gmail.com"
] | aidar.asakeev@gmail.com |
ac4fd9d309800d992975cd86089adb1fcd92fcef | 0c2023f797f1d2f35bac45755214f9aefe58c5a9 | /appium_xueqiu/page/market.py | b6b3a5623c806da67c8651a1804e41641db1b385 | [] | no_license | yofy01/Hogwarts | d844500697879e160cdc6d6df5edc09da0093517 | 56089fca86086bf8b4733e053829a93215c7b6d3 | refs/heads/master | 2023-07-14T16:08:07.952038 | 2021-08-23T13:37:39 | 2021-08-23T13:37:39 | 393,095,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # -*- coding:utf-8 -*-
from time import sleep
from selenium.webdriver.common.by import By
from appium_xueqiu.page.base_page import BasePage
from appium_xueqiu.page.search import Search
class Market(BasePage):
def goto_search(self):
'''进入搜索页'''
# click
self.steps('../page/search.yaml')
return Search(self._d... | [
"450552640@qq.com"
] | 450552640@qq.com |
402813e46363d893f713f9b23211050e901d6869 | 293f6cea829e02564c0623a3fcd7763ed1f5d6fd | /piplapis/data/available_data.py | b2ceeb63738aea86933643708e9d1e0390a3231e | [
"Apache-2.0"
] | permissive | ivosvetla88/piplapis-python | d6fdfee814ab4a1f7ba8fb4db7002dbec61d2ab0 | 7334de5fd0f815ec88905db2f95a59df80d6fbe5 | refs/heads/master | 2021-01-17T11:45:57.013803 | 2016-03-17T10:21:31 | 2016-03-17T10:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,439 | py | from piplapis.data.utils import Serializable
class AvailableData(Serializable):
children = ('basic', 'premium')
def __init__(self, basic=None, premium=None, *args, **kwargs):
self.basic = basic
self.premium = premium
def to_dict(self):
d = {}
if self.basic is not None an... | [
"josh.liberty@pipl.com"
] | josh.liberty@pipl.com |
bc264dca1a83cbfdac6a1a6a8e809acd0f706f6c | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/BGP4-MIB.py | 82ca958d84278f8a01207e0ae3316c34872f82b6 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 25,509 | py | #
# PySNMP MIB module BGP4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BGP4-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:35:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
65833106612dba86e94d7134a9ebee17684ede08 | a7f16c95f973905e880ad4dc277fbba890486654 | /wildlifecompliance/migrations/0549_callemail_dead.py | ceb5034f13c1d94a0e1fcfc6c4f99e9b1da06457 | [
"Apache-2.0"
] | permissive | dbca-wa/wildlifecompliance | 9e98e9c093aeb25dbb7ff8d107be47e29bcd05e1 | cb12ad9ea1171f10b5297cdb7e1eb6ea484e633d | refs/heads/master | 2023-08-08T14:37:05.824428 | 2023-07-31T02:57:23 | 2023-07-31T02:57:23 | 232,276,030 | 1 | 17 | NOASSERTION | 2023-07-31T02:57:24 | 2020-01-07T08:12:53 | Python | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-11-17 04:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0548_callemail_call_type'),
]
operations = [
migrati... | [
"thakurpriya1990@gmail.com"
] | thakurpriya1990@gmail.com |
b0d8a79b1e2380094e3fecd28ce37d7f093034af | e6378e26e05ddad794f770b83bc0471c13da6452 | /myproject_3/myproject_3/settings.py | fcf3991bded13e4db0091ee0c0c865cd9813120c | [] | no_license | dheerajgadhamsetty/REST_API | 122954bfc3dae2de0d218b8909792d3f75480903 | d370c7cce5ed6b325755ab243c20f58335cafbba | refs/heads/master | 2023-07-18T08:12:15.463796 | 2021-08-29T06:53:28 | 2021-08-29T06:53:28 | 400,971,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """
Django settings for myproject_3 project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"dheerajgadhamsetty"
] | dheerajgadhamsetty |
8e6659d0c00a5650bd1681c6f669fe5fc6f3a1b4 | 2891a904792376e20c3b481a556c3823a2a09625 | /src/spatial_stream.py | 4ae598257218b9e77f91486a19789e8f23196784 | [
"MIT"
] | permissive | ganler/2StreamConvNet-for-single-channel-series | 46dac979a2b5853804f2dd3415995c0ac0a61899 | c58c248c3a259cee4a4c14575bc95b643e56a6c6 | refs/heads/master | 2021-07-03T06:31:19.186924 | 2020-09-19T08:35:01 | 2020-09-19T08:35:01 | 171,025,708 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,435 | py | import torchvision.models as models
from torchvision import transforms
import torch
import numpy as np
from torch import nn
from src.spatial_and_motion_dataloader import * # self-made
if __name__ == "__main__":
key_word = 'spatial'
# DEVICE
# ########## !!! LOOK HERE !!! ############ #
use_gpu = 0... | [
"noreply@github.com"
] | ganler.noreply@github.com |
72e9179d8da40397dd4755d7c720ec0e48a57713 | 8fd559be6696d8913e60e9b8628c064305a828bd | /fruit/models.py | cb2399f1c5dc6965539d6864452b4e3562ea08fe | [] | no_license | shravanchandra/farmapp | 003bfd14804ae1b5026e3bd64b07891d5402ab3b | 8bbedf218660790497cae7d21b8092e4b39d490e | refs/heads/master | 2021-01-25T16:10:10.191844 | 2016-04-03T11:07:20 | 2016-04-03T11:07:20 | 51,570,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from django.db import models
from django.contrib.auth.models import User
from root.models import *
from api.models import *
# Create your models here.
class Fruit_Transaction(models.Model):
description = models.TextField()
farm = models.ForeignKey(Farming)
day = models.DateField()
delivery = models.For... | [
"Shravan.Kumar@polestartechnologyltd.com"
] | Shravan.Kumar@polestartechnologyltd.com |
e2305a194758b56976ba2b3d942a874de4f50a80 | bfe13b5458c5a3b8a212479ad8596934738a83d9 | /solar/solar_conv1d_1.py | b6c23eee1267e5d4790dbb3a0f5d9eff7cae0ab1 | [] | no_license | sswwd95/Project | f32968b6a640dffcfba53df943f0cf48e60d29df | fdcf8556b6203a407e5548cb4eda195fb597ad6e | refs/heads/master | 2023-04-21T23:03:24.282518 | 2021-02-15T00:55:16 | 2021-02-15T00:55:16 | 338,989,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,872 | py | import pandas as pd
import numpy as np
import os
import glob
import random
import tensorflow.keras.backend as K
import warnings
warnings.filterwarnings('ignore')
train = pd.read_csv('./solar/csv/train.csv')
sub = pd.read_csv('./solar/csv/sample_submission.csv')
# Hour - 시간
# Minute - 분
# DHI - 수평면 산란일사량(Diffuse Horiz... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
004c56bd494899dd28e119a7a35e0bbae4c986b5 | e99509d3239513e37742646632352d914f1132cf | /stability-1/bgpstream_stability.py | 6dad3e78a00a02b8e566d24841a76c0e77904db3 | [] | no_license | CAIDA/bgp-hackathon | 4c8eab6be2c28576dc6953837711a504f47af2e0 | b95cfd0d6b22f6d61f81e3eca93e177b3d08ae21 | refs/heads/master | 2021-01-17T07:02:35.859766 | 2016-06-20T21:06:48 | 2016-06-20T21:06:48 | 43,771,622 | 29 | 11 | null | 2016-03-07T23:02:00 | 2015-10-06T18:53:52 | Perl | UTF-8 | Python | false | false | 5,418 | py | #!/usr/bin/env python
#
# Copyright (C) 2015
# Authors: Nathan Owens & Andrew Mulhern
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any l... | [
"Nathan_Owens@cable.comcast.com"
] | Nathan_Owens@cable.comcast.com |
6420eb175c932c58d4a7dbb0d816742e4b73a937 | 10e3f9659affb4c74280ee27a6e485c8d7e86c56 | /pySamples/testGetAttrCurrentMod.py | caf4f2d91dc7c82e451f01b45b68844100f9c59a | [] | no_license | benwei/Learnings | a52a751e6ba9bbbbf7b51b0e6b6ac5e839a87cd3 | e020698c2be16bf7eb1c7fb9bf19276165cc0400 | refs/heads/master | 2023-02-04T22:27:00.182020 | 2023-01-19T16:52:31 | 2023-01-19T16:57:43 | 1,994,139 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import sys
def test():
print "getattr current mode run: test()"
o = getattr(sys.modules[__name__], 'test')
if o:
o()
| [
"ben@staros.mobi"
] | ben@staros.mobi |
b8650f08115fc04e8145f89e4f8811f0521fc19b | c4589dc8775e3005230b6a47a454d68d6725f7f4 | /twitter/mole/migrations/0001_initial.py | e950ff611a3d02afbec092873e6bb027a6b87505 | [] | no_license | mriverov/tip.twitter | 8338980bf81850265fdec5871e838af7c513b811 | 2790d6516d585f8693e9b44e1c0dfd50a1d89f5c | refs/heads/master | 2020-04-06T03:33:25.825610 | 2016-08-13T22:10:09 | 2016-08-13T22:10:09 | 19,164,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,715 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-13 05:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"mrivero@Marina.local"
] | mrivero@Marina.local |
f0ccc3a5a140f298542c4fcf90576bdb112694b0 | e1fb0c63140a4cfebbe1c72fc2e5e76202e1b0f0 | /niftidataset/transforms.py | 32d4ac7829bdd7510a3daec502d659cded1be58a | [
"Apache-2.0"
] | permissive | s-mostafa-a/niftidataset | d11c1036d64fc5d25952fda5bfbd7a78d1507b0f | fa0175cf08753e6294d04e259b9b447a6dd3fa88 | refs/heads/master | 2022-11-15T18:36:10.118969 | 2020-07-11T09:53:50 | 2020-07-11T09:53:50 | 277,276,675 | 0 | 0 | NOASSERTION | 2020-07-05T10:16:05 | 2020-07-05T10:16:04 | null | UTF-8 | Python | false | false | 27,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
niftidataset.transforms
transformations to apply to images in dataset
Author: Jacob Reinhold (jacob.reinhold@jhu.edu)
Created on: Oct 24, 2018
"""
__all__ = ['RandomCrop2D',
'RandomCrop3D',
'RandomCrop',
'RandomSlice',
'To... | [
"jacob.reinhold@jhu.edu"
] | jacob.reinhold@jhu.edu |
3936f486d98614476a1c024263c2f459ed44e998 | 16260b9e32245ab00f15911a610fa5de50830310 | /bilstm.py | c51bf074a961fbae1b659850d4f6c46b60f6fcba | [] | no_license | lorenzoscottb/semantic_author_profiling | 3c42a6f4ec5564d707e56183b8dcbe3abca8de00 | 5182a234aa0f1c7a42713a7a16e34da9a295566a | refs/heads/master | 2020-03-19T03:10:41.299438 | 2019-01-23T11:22:59 | 2019-01-23T11:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py |
import random
import logging
from numpy import array
from numpy import cumsum
from keras.models import Sequential
from keras.layers import LSTM
from keras.layers import Dense
from keras.layers import Bidirectional
from keras.utils.np_utils import to_categorical
from sklearn.preprocessing import StandardScaler
from pa... | [
"noreply@github.com"
] | lorenzoscottb.noreply@github.com |
b208b1c05aecfb3ed8bf1b22d72edc9eea8eac98 | cde798e18c5b134d5ca8beab102573e4b2e9a33b | /CIFAR/cifar10_data.py | ae150dac9e72e2411f42160f175a0f5f706940ec | [] | no_license | trifisch/ml-experiments | b9a6e3c96cf7a40fe541ce485ec6812c3424ab8f | 4e6ab63df2b69da027b9ea3eac4212364863162f | refs/heads/master | 2022-11-06T05:16:58.174506 | 2020-06-16T14:02:12 | 2020-06-16T14:02:12 | 267,070,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | import numpy as np
from sklearn.preprocessing import MinMaxScaler
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from tensorflow.keras.datasets import cifar10
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.preprocessing.image import Imag... | [
"trifisch@gmail.com"
] | trifisch@gmail.com |
96eee24baac64893bcfc7cf561ff29fe704e7ae1 | e902e5fc2d79203bff2e716a63054d3cdb667f23 | /Casa/wsgi.py | b2677e2dcad63b0cb8a4944a304a5877d20a98e9 | [] | no_license | amanjaiswalofficial/Casa | a6625f92019b11a8804d78c04f377cc5e7262634 | d9eea1b4b8b7bbb01ae67bcaf44a5e1b594bf847 | refs/heads/master | 2020-05-04T02:00:52.777164 | 2019-04-23T08:57:05 | 2019-04-23T08:57:05 | 178,918,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for Casa 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_SETTINGS... | [
"amanjai01.gmail.com"
] | amanjai01.gmail.com |
a269a7226604cf187ef5653174f1c4c263b1f6a7 | 92dd6a174bf90e96895127bb562e3f0a05d6e079 | /apply dfs and bfs/섬나라 아일랜드.py | d24817c5606aba77e667c87bdc35fa782e3a2e65 | [] | no_license | 123qpq/inflearn_python | caa4a86d051d76bf5612c57ae9578f1925abc5a9 | 5904cedabea9d5bc4afa3f1f76911dfccce754b5 | refs/heads/main | 2023-03-12T05:14:06.162651 | 2021-02-28T14:03:58 | 2021-02-28T14:03:58 | 338,735,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from collections import deque
n = int(input())
table = [list(map(int, input().split())) for _ in range(n)]
dx = [-1, -1, 0, 1, 1, 1, 0, -1]
dy = [0, 1, 1, 1, 0, -1, -1, -1]
q = deque()
cnt = 0
for i in range(n):
for j in range(n):
if table[i][j] == 1:
table[i][j] = 0
q.append((i, j)... | [
"45002168+123qpq@users.noreply.github.com"
] | 45002168+123qpq@users.noreply.github.com |
d3dc1c55df1dd5ceae50f340e72552e80372fff6 | 20755489698a4bfcc48d3b353a12a1b80085b923 | /persian-news-search-engine/SecondPhase/QPCL.py | 1a7d49cdef05ac8dd4fbe641e187a50f76d77ceb | [] | no_license | MehradShm/InformationRetrieval | 3f005447d5f53ec5a0b212e2308523cd5ab04ea8 | 2dcf0517ae4907f70ab2359c1bfb4564c8a58a01 | refs/heads/main | 2023-02-08T13:17:01.781851 | 2020-12-31T07:11:46 | 2020-12-31T07:11:46 | 325,738,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,021 | py | from UI import get_input
import numpy as np
import heapq
import pandas as pd
import random
import time
collection_size = 55109
def Load_Data(field):
df1 = pd.read_csv('data/1.csv')
df2 = pd.read_csv('data/2.csv')
df3 = pd.read_csv('data/3.csv')
df4 = pd.read_csv('data/4.csv')
df5 = pd.read_csv('da... | [
"noreply@github.com"
] | MehradShm.noreply@github.com |
0f58a8a16e9d3081549963a9efac5d9f24e9b245 | dd046ba0927e651fa490780ebdd5d30eaa292595 | /api/models.py | 804d5957d3cbd8c708992e8c2f829ef61b2f4cd0 | [] | no_license | ashrafulislamemon/django-rest-Frame_notes | 5760e66b3c0672d57bb8d9a8933e8df2f516cc42 | 0af50a60a050e37f8ea4b22006cee345223ffd36 | refs/heads/master | 2023-02-13T17:33:44.094721 | 2021-01-05T15:42:59 | 2021-01-05T15:42:59 | 327,042,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django.db import models
# Create your models here.
class Student(models.Model):
name=models.CharField(max_length=30)
roll=models.IntegerField()
city=models.CharField(max_length=30)
| [
"75039527+ashrafulislamemon@users.noreply.github.com"
] | 75039527+ashrafulislamemon@users.noreply.github.com |
410b397dc6a489aa072140828831f2d5c2b5bc1d | b70964419f820d7b5979e11c6b1dcc3ad6e2f32b | /my-projects/how-to-web-scrap/beautifulsoup-tutorial.py | d217108d769d10b59393bf32cf0eafc89c5c847e | [] | no_license | pedrogaldiano/learning-python | d381c8d149766e29579270945956f33aa28a867a | b036de991a926c021a97e60b6b8bba063b3e04b9 | refs/heads/master | 2023-06-05T15:24:07.670598 | 2021-06-12T00:37:55 | 2021-06-12T00:37:55 | 351,215,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from bs4 import BeautifulSoup
import requests
url = 'https://www.timesjobs.com/candidate/job-search.html?searchType=personalizedSearch&from=submit&txtKeywords=python&txtLocation='
html_text = requests.get(url).text
soup = BeautifulSoup(html_text, 'lxml')
jobs = soup.find_all('li', class_="clearfix job-bx ... | [
"noreply@github.com"
] | pedrogaldiano.noreply@github.com |
f0ca2ca8e3d495e1b3a28c35d67234789796811b | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/antlr3/treewizard.py | f598edde386f82916f466737236f3becde4458a3 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 16,576 | py | # Lint as: python2, python3
""" @package antlr3.tree
@brief ANTLR3 runtime package, treewizard module
A utility module to create ASTs at runtime.
See <http://www.antlr.org/wiki/display/~admin/2007/07/02/Exploring+Concept+of+TreeWizard> for an overview. Note that the API of the Python implementation is slightly differe... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
e517a4e977ffd0b1e18504e754d6ce20511c5237 | bcf9dd812926ffcbe57a3cfc821324913fec5391 | /opensoar/task/aat.py | a8f282a6c26cc0f662fcde6591a6e91e5472d0cc | [
"MIT"
] | permissive | jkretz/opensoar | 3e2c6fa817e87f55024f47556ea1619b3ed6b1bc | e330c4697284c1f79f85f1c2fc7400fd6246dbe0 | refs/heads/master | 2023-07-25T03:58:17.623761 | 2018-08-01T20:26:25 | 2018-08-01T20:26:25 | 153,887,721 | 0 | 0 | MIT | 2018-10-20T09:01:13 | 2018-10-20T09:01:13 | null | UTF-8 | Python | false | false | 15,624 | py | import datetime
from copy import deepcopy
from opensoar.task.task import Task
from opensoar.utilities.helper_functions import double_iterator, calculate_distance, \
calculate_bearing, calculate_destination, seconds_time_difference_fixes, add_times
class AAT(Task):
"""
Assigned Area Task.
"""
def... | [
"GliderGeek@users.noreply.github.com"
] | GliderGeek@users.noreply.github.com |
34017423ccd92177b7ccc9ac8445d31505fcfc05 | 20aadf6ec9fd64d1d6dffff56b05853e0ab26b1f | /problemset3/hangmanPart1.py | 98e635434a0aee5915adad9d46256d25316d340e | [] | no_license | feminas-k/MITx---6.00.1x | 9a8e81630be784e5aaa890d811674962c66d56eb | 1ddf24c25220f8b5f78d36e2a3342b6babb40669 | refs/heads/master | 2021-01-19T00:59:57.434511 | 2016-06-13T18:13:17 | 2016-06-13T18:13:17 | 61,058,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def isWordGuessed(secretWord, lettersGuessed):
'''
secretWord: string, the word the user is guessing
lettersGuessed: list, what letters have been guessed so far
returns: boolean, True if all the letters of secretWord are in lettersGuessed;
False otherwise
'''
# FILL IN YOUR CODE HERE...
... | [
"femi1991@gmail.com"
] | femi1991@gmail.com |
a13aff91ea61f82280ceae0feb8ad248185c068d | 8c365e5d817a0bb2000b9158f23dece49725978f | /Python/Algo/Sorting/binary_sort.py | 6da33ec142d6fbaa54691ef42772b0d3d4d9d501 | [
"MIT"
] | permissive | uddeshyatyagi/Ds-Algo-ML | 7974942f8e74bbaa3330af042c3b2bc7ff4be52e | 9cd5f0dd8ec2c6df44edd9fb7e1d37d22a986d2d | refs/heads/main | 2023-02-06T05:32:57.459332 | 2020-10-23T19:24:06 | 2020-10-23T19:24:06 | 305,129,611 | 0 | 1 | MIT | 2020-10-21T07:36:33 | 2020-10-18T15:11:54 | Jupyter Notebook | UTF-8 | Python | false | false | 2,733 | py |
import bisect
def bisect_left(sorted_collection, item, lo=0, hi=None):
if hi is None:
hi = len(sorted_collection)
while lo < hi:
mid = (lo + hi) // 2
if sorted_collection[mid] < item:
lo = mid + 1
else:
hi = mid
return lo
def bisect_right(sort... | [
"uddeshyatyagi775@gmail.com"
] | uddeshyatyagi775@gmail.com |
237ed5f539d9574b418d151c89a4c1c84834526c | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /287. Find the Duplicate Number.py | df0582aa45ceb74b6bdc850e22299524e03b7121 | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from typing import List
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
left = 1
right = len(nums)
while left < right:
mid = (left+right)//2
count = 0
for i in nums:
if i <= mid:
count += 1
... | [
"2281927774@qq.com"
] | 2281927774@qq.com |
691476e157765a1179b72bce27e53cd645aa1b05 | 4d5b1d7bf263449d001573ec0428bcedfc992cdf | /DS-Graphs-master/DS-Graphs-master/DS-Graphs/Detect Cycle in a directed graph using colors.py | 81e14889cd85dde7f90c9f2b00c7c579d5746610 | [] | no_license | sgupta117/Data-Structure-with-Python | bdb5b710a4c4b3e793be91973eb0a35ae4c42b96 | 82b3f10e2611e064705f41533df9aec81fa99821 | refs/heads/master | 2021-02-17T21:57:13.351016 | 2020-06-20T20:55:21 | 2020-06-20T20:55:21 | 245,129,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # Python program to deetect cycle in
# a directed graph
from collections import defaultdict
class Graph():
def __init__(self, V):
self.V = V
self.graph = defaultdict(list)
def addEdge(self, u, v):
self.graph[u].append(v)
def DFSUtil(self, u, color):
# GRAY... | [
"noreply@github.com"
] | sgupta117.noreply@github.com |
46faef68d9ce77da1132f09cf8c57f06fac2e31d | 0380b1062081604e2edf18efccc86bab14cb7705 | /test/models.py | 52ccd0ce12fb2033278ee4ea6bc202eff331dba1 | [] | no_license | Demch1k/microblog | acdb5f751bbf089122e1a124f9850e95e7fab9db | fd5beb95cc03ff2db44bd055e045d2ad5d01a454 | refs/heads/master | 2020-04-17T03:37:37.632063 | 2019-01-24T05:29:09 | 2019-01-24T05:29:09 | 165,824,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | from datetime import datetime
from test import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from test import login
from hashlib import md5
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.Stri... | [
"demch1k.mid@gmail.com"
] | demch1k.mid@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.