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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
295fd8f0cd83c7bab2343e031e45924340617e17 | 9342a741739e00d231d8a476bf551d6d7f886dd6 | /src/rnn_classifier/test.py | db82a28751b8b809b10ddef281ca6a2a81a70052 | [] | no_license | salmedina/Vehice_Action_Classifier | b23fe5bfdcf448c6a07b04e8f96fc95fb087302e | 4d8d11ea81ad50b28bfcb10f360d7f6f4cfea061 | refs/heads/master | 2020-03-29T20:28:56.427539 | 2019-11-07T19:15:10 | 2019-11-07T19:15:10 | 150,314,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | import sys
from myconfig import *
sys.path.append(diva_util_path)
from diva_util import *
seglen = 40
for vid in train_vid_list:
actlst = parse_diva_act_yaml(train_annot_path+vid+'.activities.yml')
geomlst = parse_diva_geom_yaml(train_annot_path+vid+'.geom.yml')
geom_id_dict = get_geom_id_list(geomls... | [
"benken.tyhu@gmail.com"
] | benken.tyhu@gmail.com |
5f5eae5db39e8c4718c5b27e5925778f98491218 | 2719a9cdfea21b5dc00faa2388e295a767652c56 | /find_duplicate_files_test.py | f69aff7ae94d70b8d478bfd38ef22d3f1ff39695 | [] | no_license | NoemiMolnar/duplicate-finder | d74648409d5539e29b08681127b0b99f1213dcbb | bcbc4ae3c6a6633d143430ec87d395ea92ea2e20 | refs/heads/master | 2020-04-01T02:10:28.618050 | 2018-10-13T08:52:05 | 2018-10-13T08:52:05 | 152,767,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | #!/usr/bin/env python
"""
This module contains test(s) for the find duplicate files module.
"""
import unittest
from get_file_content import get_file_content
from find_duplicate_files import find_duplicate_files
from output_simple_list import output_simple_list
from output_grouped_list import output_grouped_list
clas... | [
"noemi.m.molnar@gmail.com"
] | noemi.m.molnar@gmail.com |
dcbee15b406d40c38ef6ce0dec541398d089e4d7 | 8668830f34ce260565217ea3b49e090778780b44 | /firestorm/tests/test_ad_rep_invite.py | fe126c8036952fa2492bb012f029a19ed764b682 | [] | no_license | wcirillo/ten | 72baf94da958b2ee6f34940c1fc3116660436762 | a780ccdc3350d4b5c7990c65d1af8d71060c62cc | refs/heads/master | 2016-09-06T13:39:03.966370 | 2015-07-02T12:37:36 | 2015-07-02T12:37:36 | 15,700,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | """ Unit tests for AdRepInviteTask. """
import datetime
import logging
from django.core import mail
from common.test_utils import EnhancedTestCase
from firestorm.factories.ad_rep_factory import AD_REP_FACTORY
from firestorm.factories.ad_rep_lead_factory import AD_REP_LEAD_FACTORY
from firestorm.tasks.ad_rep_invite im... | [
"williamcirillo@gmail.com"
] | williamcirillo@gmail.com |
40b0bd0357b079a2561206ad0c89d01228a7601a | 43a2e1acd93905e1ad244ab06b9383122cfcd507 | /train.py | eaf298688275ef8b7247e1688b5507d1d68901ae | [
"Apache-2.0"
] | permissive | OceanChip/PaddlePaddle-MobileFaceNets | f41dbcceb39543133f87aa495481c0d8c0435bf9 | 535e18bbb65d94af3bb1924e7192f3632094f2e5 | refs/heads/master | 2023-08-11T23:10:22.960985 | 2021-09-22T06:54:00 | 2021-09-22T06:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,901 | py | import argparse
import functools
import os
import re
import shutil
import time
from datetime import datetime, timedelta
import paddle
import paddle.distributed as dist
from paddle.io import DataLoader
from paddle.metric import accuracy
from paddle.static import InputSpec
from visualdl import LogWriter
from utils.rec_... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
e2011cfe0770056ee9f383b010dd491f4fe48bc4 | 8d90176f719e4bb61efa75803d62fe9e54a90f6e | /jscad/urls.py | 1b08ae02932e81aed9964690bb4fb84d8551a50a | [] | no_license | chriscauley/modifi3d | 969f2c52d3cd263db6b918c5747d25d07a00b63d | 74dc12f9fba16f17cd6456595ddd275b9c9045cc | refs/heads/master | 2021-01-23T02:39:38.332483 | 2019-09-09T12:30:49 | 2019-09-09T12:30:49 | 23,629,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'jscad.views',
url(r'item/(\d+)/([^/]+).jscad','item_source',name='item_source'),
)
| [
"chris@lablackey.com"
] | chris@lablackey.com |
fcb9745bc425c7d4fe22ae9dabb2a51a33e692b1 | 9d1d106b813efe5c1b04d241d0faa49c229b9548 | /tensorflow-triplet-loss/data/transfer_from_np_to_tfrecord.py | acafa416a24dfe2844290a6e62a00c5911b2e572 | [
"MIT"
] | permissive | younglittlefat/deep_learning | 1205d3179a32a49c9bd99958792c7d3fecffd7e9 | 4ba845fd1bcc88139abfb73deefe31d2ffda33ad | refs/heads/master | 2021-05-06T20:36:34.391666 | 2018-05-17T00:56:45 | 2018-05-17T00:56:45 | 112,330,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | import sys
import os
import codecs
import tensorflow as tf
import numpy as np
tfrecord_dir = "./tfrecords"
def _int64_feature(value):
return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))
def _float_feature(value):
return tf.train.Feature(float_list=tf.train.FloatList(value=value))
def _byt... | [
"younglittlefat@gmail.com"
] | younglittlefat@gmail.com |
e8b6718f19be532b98435b092f2507b9db975a06 | d5be74d2de6fa0ded61d6c3ee7c91a403c0f90db | /quantarhei/utils/vectors.py | d3051f6c330212a837c95f778baa6133d189a8d8 | [
"MIT"
] | permissive | tmancal74/quantarhei | 43cf9d4be857b8e6db1274ebb8a384f1545cd9ad | fa3042d809005d47106e53609e6a63aa780c477c | refs/heads/master | 2023-05-11T06:57:36.368595 | 2023-05-02T13:10:18 | 2023-05-02T13:10:18 | 63,804,925 | 20 | 22 | MIT | 2022-12-21T14:10:00 | 2016-07-20T18:30:25 | Python | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
import numpy
from .types import check_numpy_array
X = (1.0,0.0,0.0)
Y = (0.0,1.0,0.0)
Z = (0.0,0.0,1.0)
Dxy = (1.0,1.0,0.0)/numpy.sqrt(2)
Axy = (-1.0,1.0,0.0)/numpy.sqrt(2)
def normalize2(vec,norm=1.0):
""" Normalizes a vector to a specified size """
vec = check_numpy_array(vec)
... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
78381c91182aa366096be702631b720cff9241bc | 4e04c150e529c8435bbed0287207397a776be7ea | /ball_blast/MeetY1Project/game.py | 1bbea6db345ff5933ccdd46be17c13af99d333f7 | [] | no_license | rayan20-meet/project | 5cb87749f9eeda38087db39a57515a7e4ab2cfcf | e2fb2d0d1162e68dcfece7d6e59596db91f26fcf | refs/heads/master | 2020-04-26T19:36:44.451253 | 2019-03-04T16:27:36 | 2019-03-04T16:27:36 | 173,780,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | from turtle import *
import random
import math
from blast import Blast
from shoot import Shoot
from tal_maya_ball_blast import Ball
import time
import turtle
turtle.hideturtle()
bg = turtle.Screen()
bg.setup(800,800)
bg.bgpic("/home/student/Desktop/space-game-background.v1.gif")
turtle.bgpic("/home/student/Desktop/s... | [
"noreply@github.com"
] | rayan20-meet.noreply@github.com |
bda08816a833d5480975d0bb2b57d8a1697e6210 | b334e50581f1f61b0b05627ce63645128069f230 | /python/14_Longest_Common_Prefix.py | 1893e5d197445f1bfa5e8fc8bc73e2d0cea032a7 | [] | no_license | evanwangxx/leetcode | 7846a61e272fd807ce850582d32f0b4d7a33d26d | 25c4b7d04c3482a8e3625bed66d110a61b572aa0 | refs/heads/master | 2021-06-07T06:24:40.671226 | 2020-04-17T09:50:05 | 2020-04-17T09:50:05 | 152,075,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # Write a function to find the longest common prefix string amongst an array of strings.
#
# If there is no common prefix, return an empty string "".
#
# Example 1:
#
# Input: ["flower","flow","flight"]
# Output: "fl"
# Example 2:
#
# Input: ["dog","racecar","car"]
# Output: ""
# Explanation: There is no common prefix ... | [
"neptunewang@tencent.com"
] | neptunewang@tencent.com |
8a04359094b0c1b7015d695ae3b6b99155ad5e0c | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/mcallister73/foi_response_statistics_for_nhs_trusts.py | cbf8d1bfbf2042cb16a7d965252a0f9078b09076 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,002 | py | import scraperwiki
import BeautifulSoup
import re
import sys
from scraperwiki import datastore
# FOI request statistics for nhs trusts from WhatDoTheyKnow.com #
# function to extract the request statistics
def extract_dictionary(next_html):
#print "extract_dictionary"
nhs... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
66039f29a268cb937080c45a942f5a73faf09f85 | a907bc8de9186fad3139a02cccc2c47031fd4484 | /setup.py | a5fdfa0bd2b700af566484563afe0692c490b32a | [
"BSD-2-Clause"
] | permissive | turtlebender/troposphere | 2da1c6bf1e7da4d36080d2cb759e911ca1d4bfb3 | 55aba0bd23b61a41612a4ccf52ddf68dbd8c9bee | refs/heads/master | 2021-01-15T19:34:40.541812 | 2013-03-27T20:13:20 | 2013-03-27T20:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from setuptools import setup
setup(
name='troposphere',
version='0.2.6',
description="AWS CloudFormation creation library",
author="Mark Peek",
author_email="mark@peek.org",
url="https://github.com/cloudtools/troposphere",
license="New BSD license",
packages=['troposphere'],
scripts... | [
"mark@peek.org"
] | mark@peek.org |
d46380d79d1478b600e2897568e1074c816c7e9d | 95186364f23ba4944854236a4ce08fcdc52a597e | /python/4일차/입력프로그램.py | 7c582f300c7badfcf0213c1452c3781a33231b20 | [] | no_license | GriTRini/study | acd1a9d9a45dbd7045aa8121811a64d65a382af3 | 4031ccf93d0c1e91ab708f1d17df9dbc9cb3a071 | refs/heads/main | 2023-07-31T07:01:33.376363 | 2021-09-04T14:30:26 | 2021-09-04T14:30:26 | 370,933,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | f = open('out.txt', 'w', encoding='utf-8')
for i in range(3):
num = input('num : ')
f.write(num + '\n')
print('파일저장완료')
f.close()
| [
"cd2918@naver.com"
] | cd2918@naver.com |
03ca9f7cb52cd83a5598fad32ace8d825b7a8fcf | fc4845bb92eb0f3a0f0b0e40f296491c3f32e865 | /automlkiller/models/clustering/spectral_cluster.py | 505025096f1b901433b184a78252ff2845d527f1 | [
"Apache-2.0"
] | permissive | toandaominh1997/automlkiller | df082d9bf43dcc88eb626bb2b83521afaf3bc91d | c5f451cfb05d8287bec0d26a9b14e2c1b452861c | refs/heads/master | 2023-01-20T20:26:15.731197 | 2020-11-29T17:26:52 | 2020-11-29T17:26:52 | 315,043,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from sklearn.cluster import SpectralClustering
from automlkiller.models.model_factory import ModelFactory
from automlkiller.utils.distributions import np_list_arange, UniformDistribution, IntUniformDistribution
@ModelFactory.register('clustering-spectralclustering')
class SpectralClusteringContainer(KMeans):
def _... | [
"toandm2@onemount.com"
] | toandm2@onemount.com |
f86f6d6d1d76ec9702ef7edc02f26812a837efbd | e5e4d5061bb9e39c808f20edb92e0b35fd6c07e2 | /syn.py | f0ac2903b298a1d94fd6279000ad2697c64b7115 | [] | no_license | SilamArasu/Wikipedia-Link-Retrieval | 90b7d53aec1ea4596ec553d7f702a2ae2230129f | b26109561fe3ca407e2ee6a45267e4ff90d70391 | refs/heads/master | 2020-07-06T23:53:06.475093 | 2020-03-29T06:09:19 | 2020-03-29T06:09:19 | 203,177,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import nltk
from nltk.corpus import wordnet
# Gets related terms from the nltk wordnet library
def related_terms(word):
synonyms = set()
for syn in wordnet.synsets(word):
for l in syn.lemmas():
synonyms.append(l.name())
return set(synonyms)
# Computes the degree of similarity between two words
def comp... | [
"45484418+SilamArasu@users.noreply.github.com"
] | 45484418+SilamArasu@users.noreply.github.com |
debc1d83d1618bdefb8a383823b854b36686475f | 54784ef24d64fff27e90a08edabe82b2545a538d | /ros/src/tl_detector/light_publisher.py | 1a7c0671d243b6148f39e280f621eb1baaf8d067 | [
"MIT"
] | permissive | RTarkunde/CarND-Capstone | 3c87ec00e30845706bccc06913e9255e353ee60d | 83926a7ecdd3310b683524d63c936771f5832ed3 | refs/heads/master | 2022-11-24T13:49:44.341508 | 2019-09-18T03:02:17 | 2019-09-18T03:02:17 | 209,309,438 | 0 | 0 | MIT | 2022-11-22T00:23:20 | 2019-09-18T13:00:37 | Makefile | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
import rospy
import tf
import cv2
import time
from styx_msgs.msg import TrafficLightArray, TrafficLight
from std_msgs.msg import Header
from geometry_msgs.msg import PoseStamped, Quaternion, TwistStamped
import numpy as np
import rospkg
import math
class TLPublisher(object):
def __init__(sel... | [
"rtarkund@yahoo.com"
] | rtarkund@yahoo.com |
67aa6f59d838dc4cc4ed7a426a38f713a2c81d59 | 3e721fca7d38ce657ceb79093588c9b57811bc06 | /proyect/aplicacion1/apps.py | 7180dcf9a9f9dc2024258343b8e6bf43c396ca6e | [] | no_license | Michell15678932/Primera-Evaluaci-n-de-Desarrollo-de-Aplicaciones-WEB-II | 1d83620972fd7f8a8ec207813e9ead276885cbfb | 3daca4efe78bbe92f53d2d2337c4192c8f06ec37 | refs/heads/master | 2023-07-29T17:12:11.720597 | 2021-09-11T23:44:27 | 2021-09-11T23:44:27 | 404,900,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.apps import AppConfig
class Aplicacion1Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'aplicacion1'
| [
"mickiro789@gmail.com"
] | mickiro789@gmail.com |
350a39c673f7e277a4f6070fa5d8cf3309c25e14 | 1bdc5a480d54eac55f2779bc018fc48603f357e1 | /train.py | 898f0a25df140b14f451f0ee87aa8602c55b2fde | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | abcSup/captionamerica | 4d099078eadd4f729431ad442ae323f43d7c6a35 | e34e5f794a7e1b519b6f876720325c97cedc4a85 | refs/heads/master | 2022-02-20T10:39:16.123327 | 2019-09-19T00:56:14 | 2019-09-19T00:56:14 | 105,931,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | from os.path import join
import numpy as np
import h5py
from keras.callbacks import ModelCheckpoint, TensorBoard, EarlyStopping
from configuration import Config
from model import get_model
from data_generator import DataGenerator
from data_generator import CustomSequence
num_train_epoch = 30
num_finetune_epoch = 200... | [
"kristan97@hotmail.com"
] | kristan97@hotmail.com |
d57f37d1606004d68e120ce8b75611161043cf5e | f7876d3c40b01c8dfe564d650729fb7eb5d8dbf6 | /birthdaybot/persistence.py | 9e27399039241e211cfc002c8475d8307f59e81c | [] | no_license | ShinyShingi/BirthdayTelegramBot | 64c535c6f3fce8d74b250bd7e66e9cc72323e999 | 1b51a95c98d334cbe732433178b4239c3f740d19 | refs/heads/master | 2023-03-20T20:18:18.635957 | 2020-07-29T14:31:30 | 2020-07-29T14:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,628 | py | """
This method implements the inheritance from the BasePersistence class to provide the persistence of the bot.
"""
from birthdaybot.db.database import Database
from telegram.ext import BasePersistence
from collections import defaultdict
from copy import deepcopy
class BotPersistence(BasePersistence):
def __init... | [
"kofffsh@gmail.com"
] | kofffsh@gmail.com |
fa628e6b45e49100d2e7a8eac3793aac4082bf30 | 900a7285b2fc4d203717e09c88e8afe5bba9144f | /axonius_api_client/tests/tests_api/tests_assets/test_fields.py | 7e7c0fdd1955ccdfcb4009f8fc0bd000728adb8b | [
"MIT"
] | permissive | geransmith/axonius_api_client | 5694eb60964141b3473d57e9a97929d4bff28110 | 09fd564d62f0ddf7aa44db14a509eaafaf0c930f | refs/heads/master | 2022-11-23T01:43:52.205716 | 2020-06-12T14:15:38 | 2020-06-12T14:15:38 | 280,499,094 | 0 | 0 | MIT | 2020-07-17T18:35:48 | 2020-07-17T18:35:47 | null | UTF-8 | Python | false | false | 18,743 | py | # -*- coding: utf-8 -*-
"""Test suite for assets."""
import pytest
from axonius_api_client.constants import AGG_ADAPTER_ALTS, AGG_ADAPTER_NAME
from axonius_api_client.exceptions import ApiError, NotFoundError
from ...meta import (FIELD_FORMATS, NORM_TYPES, SCHEMA_FIELD_FORMATS,
SCHEMA_TYPES)
def... | [
"jimbosan@gmail.com"
] | jimbosan@gmail.com |
85586a9aa388a3da1afb95388a12ea3118e794e6 | ea215e23733a02cb1f5e35a593cdfbc1f9a1c26f | /python语法基础/06.匿名函数、文件操作/08-读入数据.py | 326aefde725dd9559ffecde059815cb81ef946a9 | [] | no_license | XiaoqingWang/python_code | 288ce365aa0b90a475306e2b3c6a9f90748d7b3a | cbe623c9316e7ae83277482b2ef3e4a47f04a753 | refs/heads/master | 2020-03-30T05:51:14.213923 | 2018-01-28T08:16:58 | 2018-01-28T08:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | f = open("xxx.txt", "r")
content = f.read()
print(content)
f.close() | [
"1216938752@qq.com"
] | 1216938752@qq.com |
196b422eb35ab2bb9e2b625a3517a0eb98868d34 | 9afbcb367de9bf055d531d285bc299a9ca3040fe | /django_session/app01/views.py | 0c8261d29e36376540f9346f423e2e2196894c87 | [] | no_license | mysqlplus163/aboutPython | a41a5bc2efd43b53d4acf96e7477e80c022cf657 | fa7c3e6f123158011d8726b28bfcd0dee02fa853 | refs/heads/master | 2020-03-21T05:06:19.949902 | 2018-03-14T16:04:54 | 2018-03-14T16:04:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.shortcuts import render, redirect, HttpResponse
# Create your views here.
def login(request):
print("login...")
if request.method == "POST":
print(request.POST)
request.session["user"] = request.POST.get("username")
return redirect("/index/")
else:
return rende... | [
"liwenzhou7@gmail.com"
] | liwenzhou7@gmail.com |
69bcfdf83c33919af92c429df5abbb676d5fa80e | ffa1663df6c89fd2342ff11e180374ea6b50c50a | /30_days_of_code_challenge/day_4_class_vs_instance.py | 75affb0db15a1ac60e7478bac5b6f2ea7ec568f4 | [] | no_license | mandybawa/HackerRank | d919a08fd4de60bcb8068bc290c88d240aa1fbd1 | 6ddf4396f0eb4e6241162573634ab12d7e64cfb1 | refs/heads/master | 2020-12-04T21:32:32.049760 | 2020-02-11T12:50:20 | 2020-02-11T12:51:46 | 231,908,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # Task:
# Write a Person class with an instance variable, age, and a constructor that takes an integer, initialAge, as a parameter.
# The constructor must assign initialAge to age after confirming the argument passed as initialAge is not negative
# if a negative argument is passed as, the constructor should set to age ... | [
"mandeepkaur@constellation.ai"
] | mandeepkaur@constellation.ai |
c686e702e0087727365ef2bd4566c0817162c4d9 | 9b2eb0d6b673ac4945f9698c31840b847f790a58 | /pkg/test/test_query_details.py | 142ecb411b374b9eb5230324a05514b3e97d53c3 | [
"Apache-2.0"
] | permissive | Apteco/apteco-api | 6d21c9f16e58357da9ce64bac52f1d2403b36b7c | e8cf50a9cb01b044897025c74d88c37ad1612d31 | refs/heads/master | 2023-07-10T23:25:59.000038 | 2023-07-07T14:52:29 | 2023-07-07T14:52:29 | 225,371,142 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # coding: utf-8
"""
Apteco API
An API to allow access to Apteco Marketing Suite resources # noqa: E501
The version of the OpenAPI document: v2
Contact: support@apteco.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
i... | [
"tim.morris@apteco.com"
] | tim.morris@apteco.com |
4ea5e2cf870de6176f770c5f8c3b3935d8803997 | 283076c1bb3a5610308f262a6091b6ca996ada53 | /lib/kseval/models/starcraft.py | 56495e4128f2f81e5103004e97aeb765bd0b2b29 | [] | no_license | amirbachar/kickscore-kdd19 | 09c5f676c1cf7366dc90d00e7e837117531bd472 | 8a30b9cc8667dc1c203d0893c05df5d4d5fd50c2 | refs/heads/master | 2022-01-20T05:31:23.415728 | 2019-07-25T19:58:01 | 2019-07-25T19:58:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | import abc
import kickscore as ks
import numpy as np
from .base import PredictiveModel, iterate_dataset
from math import log
SETTINGS = {
"wol": {
"path": "kdd-starcraft-wol.txt",
"idx1": 30828,
"idx2": 43159,
},
"hots": {
"path": "kdd-starcraft-hots.txt",
"idx1":... | [
"lucas@maystre.ch"
] | lucas@maystre.ch |
25e20bb0b3030b740809685abdf8aec701ccc499 | 9df5fa4c65df58e30aa23736d44309c228bd2bf7 | /CSTraining/CodingSchool/Bootcamp - Intuition/bfs.py | a394fc1bafd3da7474033b7e4f6eda70bfa95f52 | [] | no_license | mwijaya3/Training | db385bbf7001c27fc2be24290c6ae90595c9b96d | 1fdbf995be056a04c96cb834f321e35e1c9e3752 | refs/heads/master | 2020-04-19T08:32:29.977548 | 2018-09-20T19:59:43 | 2018-09-20T19:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py |
class Node(dict):
""" Definition for a node in a graph """
# Visit State
UNVISITED = 0 # not visited or on frontier (while)
FRONTIER = 1 # on frontier, waiting to be visited (gray)
VISITED = 2 # visited (black)
def __init__(self, key):
""" constructor
initializing the fields as key=value pairs in... | [
"aferlitsch@gmail.com"
] | aferlitsch@gmail.com |
5fd74abcb614eb1436c05ade8440cd438a2c2b1b | 8dc64db8a0d7ddb8778c8eae2dac9075b9a90e2b | /env/Lib/site-packages/dns/rdtypes/__init__.py | c3af264e48fd7718c7e7c6d108b48e0ba35844f7 | [
"MIT"
] | permissive | theXtroyer1221/Cloud-buffer | c3992d1b543a1f11fde180f6f7d988d28b8f9684 | 37eabdd78c15172ea980b59d1aff65d8628cb845 | refs/heads/master | 2022-11-22T22:37:10.453923 | 2022-02-25T01:15:57 | 2022-02-25T01:15:57 | 240,901,269 | 1 | 1 | MIT | 2022-09-04T14:48:02 | 2020-02-16T14:00:32 | HTML | UTF-8 | Python | false | false | 1,072 | py | # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and ... | [
"jaddou2005@gmail.com"
] | jaddou2005@gmail.com |
77e8c1d9be9b563cc355464958f3da7249df01d7 | 921acb2b2faa5f5e3a0614b136d8782412d15e94 | /wave_native_cdk/wave_native_stack.py | fffb687a77d0b6ad1053e89a62ec7cec37b8b011 | [] | no_license | rdghosal/WaveNativeCDK | 422c2849bcdf0000ad04fca05574cba031dd7c25 | 525bba990ff404133aeed6a70f7e9fa4435eeb44 | refs/heads/master | 2021-01-07T00:01:44.928020 | 2020-02-19T03:07:25 | 2020-02-19T03:07:25 | 241,520,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import os
from aws_cdk import aws_rds, aws_ec2, aws_s3, aws_s3_assets, aws_elasticbeanstalk, core
class WaveNativeStack(core.Stack):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kwargs)
# The code that defines your stack goes here
... | [
"rdghosal@gmail.com"
] | rdghosal@gmail.com |
73bb40f773a6186cf0f1432517bb00476cc09595 | 1b6e89a5b4ca98378325cf6b16661b9519f164b7 | /run_file.py | 67ba6e526c90ef773493848ea01b8e2a9cce2023 | [] | no_license | msDikshaGarg/KNN-Perceptron-MLP | bbcd11058d1f14d3fb247a1d250df6688c33c953 | 339613a4d019fafdc13c09d6f39f7445ef4e3b8f | refs/heads/main | 2022-12-24T07:13:22.561701 | 2020-10-07T01:51:28 | 2020-10-07T01:51:28 | 301,885,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | import classifiers as models
import numpy as np
import sys
if(sys.version_info[0] < 3):
raise Exception("This assignment must be completed using Python 3")
#==========================================================Data==========================================================
# Number of Instances:
# 569
# Number ... | [
"noreply@github.com"
] | msDikshaGarg.noreply@github.com |
a9948b4ec7caf4566893e720ced1dd75cfd40472 | 49bf70e32aff3c9eec3385aa7db32014cca5255c | /graph/env.py | 8cce220c61627789f88c80cef1a8a594772932f0 | [
"MIT"
] | permissive | felipefelixarias/a2cat-vn-pytorch | 2919b58b245dfd598949ea8ce3bfd8d5acdee82c | 6e1b97c58be2405ef860718a91ecd2b07bc4b65f | refs/heads/master | 2022-11-07T11:36:56.847076 | 2020-05-07T03:07:56 | 2020-05-07T03:07:56 | 254,767,673 | 0 | 0 | MIT | 2020-04-11T01:08:43 | 2020-04-11T01:08:42 | null | UTF-8 | Python | false | false | 8,216 | py | import gym
import gym.spaces
from graph.util import step, is_valid_state, load_graph, enumerate_positions, sample_initial_state, sample_initial_position, direction_to_change
import numpy as np
from operator import add
import random
class OrientedGraphEnv(gym.Env):
def __init__(self, graph, goal, rewards = [1.0, 0.... | [
"jonas.kulhanek@live.com"
] | jonas.kulhanek@live.com |
f038a680df255cdd84a21bae4b91b3abf65afb7e | ba4b91646add81d34617415be5792891b552f772 | /ir_config_parameter_multi_company/models/ir_property.py | df3d75322980ddd6d6bd2389c9f7bc0bb9b284c4 | [] | no_license | ShaheenHossain/multi_webstie | f718911b116d73b092a5e8e05cacd58c8f028d1d | 23f50ab1fb314af69d844f80f1fd082bc15f96f3 | refs/heads/master | 2020-08-31T23:31:41.823364 | 2019-10-31T16:47:56 | 2019-10-31T16:47:56 | 218,814,415 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from eagle import models, api
class IrProperty(models.Model):
_inherit = 'ir.property'
@api.multi
def write(self, vals):
res = super(IrProperty, self).write(vals)
field = self.env.ref('base.field_ir_config_parameter__value')
self._update_db_value_website_dependent(field)
r... | [
"rapidgrps@gmail.com"
] | rapidgrps@gmail.com |
e04a21c7d6887b03bbc9c20dc1a7a5e7b7df95d5 | 4e465ecc24ea243fa7556cb5526c405e9d1dad17 | /nb_back/serializers.py | f38dc76c8c5f58d8e20f437b232e0b7b51c5acb1 | [] | no_license | ismaelpontes/webdevbook-noticias-backend | e9cd571f48d36236a7c2e7746aa036c33cd6eec2 | 226cf9e89e358ff821962f0c26094876f7016f41 | refs/heads/master | 2021-09-28T00:43:08.259700 | 2018-11-12T22:10:09 | 2018-11-12T22:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py | from rest_framework import serializers
from rest_framework.fields import empty
from .models import *
from django.contrib.auth.models import User, Group
import logging
logger = logging.getLogger('noticias-back')
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields =... | [
"jgomes@ceulp.edu.br"
] | jgomes@ceulp.edu.br |
43b8fb8293d1f2261578ead6092373bcd434cd23 | efe72fe75338af2146e6249261866420bb758b37 | /app/routers/users.py | f03b74ff541d7db143a31017294ff9c2def00637 | [] | no_license | nerdburn/cred-python-api | ad451b0ca50b8138a31dce88decb0419f3d19958 | 35fc015101e36b38e62fe1222e634872efdb1059 | refs/heads/master | 2022-11-10T18:51:48.281008 | 2020-06-20T06:28:40 | 2020-06-20T06:28:40 | 273,591,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | from datetime import datetime, timedelta
import jwt
from jwt import PyJWTError
from fastapi import Depends, FastAPI, HTTPException, status, APIRouter
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from passlib.context import CryptContext
from pydantic import BaseModel, EmailStr
router ... | [
"shawn@nerdburn.com"
] | shawn@nerdburn.com |
d41a3fdee01878c3167ab8b9dce19207a3b9225e | 79bc99d3f30eacccac49ac07df0ed98b8bf7a3aa | /search_endpoint.py | b9a2180cd8aad55d12d5bcd63570893d3a3ca8a9 | [] | no_license | nggih/sofwerx | 0c404787123257a242aa00125f293dc1f98465a4 | c05b01809538063332c7c4f8a2cf006cc3317f6f | refs/heads/master | 2020-12-30T13:21:11.547696 | 2017-05-13T22:21:50 | 2017-05-13T22:21:50 | 91,205,925 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import os
import requests
from requests.auth import HTTPBasicAuth
# our demo filter that filters by geometry, date and cloud cover
from demo_filters import Vessel_Search
# Search API request object
search_endpoint_request = {
"item_types": ["PSScene3Band"],
"filter": Vessel_Search,
"satellite_id": "1005"
}
res... | [
"noreply@github.com"
] | nggih.noreply@github.com |
87d344c58c39f29ed1036e5883d70eed3ce97045 | 7b2199662df445cb992ea536cd8fcfc1e9558ff7 | /03-Theano/106-Linear-Regression.py | 7b8ceb5e35a8334c5fc21140485a842d63ebfb02 | [] | no_license | bansheng/tf_note | f5371cd6e879568452ad3fe11bb74cfa95261b7c | 1a0d1609b0583ac728eecd7bf1ff927d43c38703 | refs/heads/master | 2020-05-02T04:32:47.355741 | 2019-09-09T12:03:02 | 2019-09-09T12:03:02 | 177,752,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | import theano
import theano.tensor as T
import numpy as np
import matplotlib.pyplot as plt
class Layer(object):
def __init__(self, inputs, in_size, out_size, activation_function=None):
self.W = theano.shared(np.random.normal(0, 1, (in_size, out_size)))
self.b = theano.shared(np.zeros((out_size, )) ... | [
"dyadongcs@gmail.com"
] | dyadongcs@gmail.com |
0b0cdf32484388667f0ad71e7e44f924843ee956 | 090fbd7c125cf3e2747c22a981f90fc0035bd1dc | /cse4309/hw6/value_iteration.py | 704aa77b807c50e677c2b24b45b056eacd447888 | [] | no_license | addonovan/school | e661e1e32a06d95b82088c3b5bbac69450ce0f7c | 3594ca4decfeacfef75cdc6b593bb893f0efd06c | refs/heads/master | 2021-05-25T12:07:45.259361 | 2020-03-14T04:25:27 | 2020-03-14T04:25:27 | 127,382,457 | 0 | 0 | null | 2020-03-14T04:25:28 | 2018-03-30T04:44:57 | MATLAB | UTF-8 | Python | false | false | 4,155 | py | # Austin Donovan
# add1620
from enum import Enum
import math
import numpy as np
import os.path
from random import randint
import sys
from environment import Environment, TileType
from robot import Robot, Action
#
# Value Iteration
#
def action_utility(utilities, state, action):
"""
Calcualtes the overall ut... | [
"noreply@github.com"
] | addonovan.noreply@github.com |
5c37c15f7ee2829109dffaecabcd2ab49cbc3cfa | 1f7aa6f21e113535e799cdb84b943a5fe9725890 | /reconciliation_scripts/match.py | cbaceb845be4868d18bc8b1c2eec635faaf013ca | [] | no_license | ezl/recs | 14911bdfc9e35e95b9b9427c5046ba94effe41bd | 906c5ffd7d325b218b81aa56746c00134822099b | refs/heads/master | 2020-06-04T03:23:26.457283 | 2011-02-15T02:04:29 | 2011-02-15T02:04:29 | 1,366,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,473 | py | from optionscity import OptionsCity
from newedge import NewEdgeWebsite
oc = OptionsCity(host="10.51.132.92", user="eric", passwd="ziu", db="optionscity")
OC_positions = oc.get_positions()
OC_trades = oc.get_trades()
ne = NewEdgeWebsite(userid="ERICLIU", password="Newedge1")
ne.connect()
NE_positions = ne.retrieve_po... | [
"ericzliu@gmail.com"
] | ericzliu@gmail.com |
7acf4162defb50b77e972102390709cfca2861f2 | e1fb5b619359d5e91d99c555c7c47b65995c63d2 | /client.py | 9fab4168694c9b9c18c7c795afed00969361698f | [
"MIT"
] | permissive | kacao/async_square | 76526747e3d281b82c9c7fe5fa0a042f374932a9 | 075c5810e96bef27bba8334ba3410ca441eca2de | refs/heads/master | 2020-08-02T16:09:18.978424 | 2019-09-28T00:58:14 | 2019-09-28T00:58:14 | 211,423,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import aiohttp
import asyncio
class Client:
def __init__(self, api_key):
self.api_key = api_key
self.headers = {
'Authorization': 'Bearer %s' % config["api_key"],
'Content-Type': 'application/json'
}
async def fetch(self, url, params, session=None):
if... | [
"khanhncao@gmail.com"
] | khanhncao@gmail.com |
f4c32a719ecb906620f028665698a70cf5f1af9a | e10551916a2dfc6f8fdbdece8e2b45d82f249bc1 | /document_service/app/db_connection.py | 5c1e3012af9d138ed5142091599bbe85d560f73b | [] | no_license | overmesgit/cogent | 71367836583a8544fbd3d8fc946a7b5134cf5f3a | 90c68853ffd929c5be76b9bb383330b74595e5e0 | refs/heads/master | 2023-08-15T18:38:38.646959 | 2021-10-11T03:20:19 | 2021-10-11T03:20:19 | 414,568,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import os
from redis import Redis
redis_con = Redis(host=os.environ['REDIS_HOST'])
| [
"artem.bezu@localfolio.co.jp"
] | artem.bezu@localfolio.co.jp |
f2313a933a7f5f4937398e9152afab0eee0d1305 | e2fd4132181dffadffa6f00dc4417f0e6517aa7b | /index.py | e3d95469fb248b4bccea91207e6c4bd58692d2ff | [] | no_license | bruno-leal/covid19-portugal-dash | 7ecba3f3b4e1cba3268bd9bbddc8713d546f2cf4 | 90dac9973cfefeb02ede23c42491e948e1726a98 | refs/heads/master | 2022-11-30T19:54:35.095849 | 2020-08-11T19:05:09 | 2020-08-11T19:05:09 | 264,713,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output
from app import app, server
from views import home, national, regional, local, maps
import data_handler as dh
app.layout = dbc.Container(
[
dcc.Location(id='u... | [
"bruno.leal@brivcase.com"
] | bruno.leal@brivcase.com |
fe4d5b1e385462a8b5231489ed0e541c2bc0eb15 | afc1abc145d150b32b6447f551cd5f5d8381fba2 | /leapday/models.py | 0d8c7bd0601d5587c6d9935ab51fe59c9a01fbda | [
"MIT"
] | permissive | Zerack/zoll.me | 3ca3d4ebef73de3d7aba073a641dffe26431d2ee | 4781c4f5e712137a4726ce4c4d30015e364756c5 | refs/heads/master | 2020-04-14T16:58:41.768025 | 2013-08-05T22:59:52 | 2013-08-05T22:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | '''
James D. Zoll
4/15/2013
Purpose: Defines models for the Leap Day application.
License: This is a public work.
'''
from django.db import models
# Note that this is pretty heavily denormalized for better query performance.
# Updates are done by a timed job, and can afford to be slow.
class Good(models.Model):
... | [
"zolljd@gmail.com"
] | zolljd@gmail.com |
14fc026351f132c8a3d1c72d56af027c3c0bf164 | 529ac67742e194405c792307d037293484c9c9ed | /08.深度卷积生成对抗网络-DCGAN/keras_02.STL.py | d386193dea749edffa439737f6273e514368abdd | [] | no_license | DingXiaoKe/BeginnerDL | 810707a7b54413ecef78d7cbc050cbeee62a5c8b | bf9fc82b0c5f3db99d905f6441e16638a7125e45 | refs/heads/master | 2020-03-11T06:22:34.505354 | 2018-04-16T20:35:21 | 2018-04-16T20:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,198 | py | from keras.layers import Input, Dense, LeakyReLU, Reshape,Conv2DTranspose, Conv2D,Flatten,Dropout,\
BatchNormalization, Activation, UpSampling2D, MaxPooling2D, ZeroPadding2D, Cropping2D
from keras.models import Model,load_model, Sequential
from keras.optimizers import SGD,RMSprop, Adam
from keras.utils import multi... | [
"jeffcobile@gmail.com"
] | jeffcobile@gmail.com |
217fb8aa600423c6be4bfa3ca278726e03d69d72 | ba7550a0182ac08f319cc7826f539d18669bc726 | /Step7_Area_CSV/Cre_Bax/Creat_SGZ_Area_CSV_Cre_Bax.py | 92cdef0391c616131e88bd449aab62cba8689e1a | [] | no_license | keriber/Hilar-Prox1-Cells-Quantification | 75c5d1c8ef1bc30ceb6f758975a6cc674259d124 | 474015d775c938d295df32ee694342a623778072 | refs/heads/master | 2021-01-22T05:05:27.535527 | 2015-07-12T16:16:33 | 2015-07-12T16:16:33 | 22,692,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 25 14:52:00 2013
@author: kbermudez-hernandez
"""
import os
import numpy as np
from pandas import Series, DataFrame
import pandas as pd
import re
#Code to make list of files and vdevide them in slide1 and slide2
path = "G:\Keria\Quntification_CreBax\SGZ\Area"
os.chdir(... | [
"keria.bermudez@gmail.com"
] | keria.bermudez@gmail.com |
647371f8a58889fce870589d6546fc9869a0ae28 | 8a79b2d419c803fa96aad9106a0fbc1adf7c95e0 | /todo/migrations/0002_auto_20200805_0853.py | ffff244dcc9806989a3102e508912430b943ea4b | [] | no_license | BADGUY0592/todolist-in-django | d88c78817c0beb83af18960153a1afa32269efc0 | 73ad4d22b2f5c7691e4dfd394ac2681035e6ea10 | refs/heads/master | 2022-12-02T14:25:01.100453 | 2020-08-15T03:10:29 | 2020-08-15T03:10:29 | 283,126,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 3.1rc1 on 2020-08-05 03:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='todo',
name='datecompleted',
... | [
"thebadguyisbck@gmail.com"
] | thebadguyisbck@gmail.com |
b6abacc8432bcbfde3c88b03c2c32d3875ec5160 | a2b84976da28ebca5ba20eba895d4f0748a16aca | /Model/ModelMFR/Surveillance/mobile_part_data.py | d5a5979629b8574cc47039ebe9afca73a9d5ae8f | [] | no_license | Igor9rov/TrackingAndIdentificationModel | f128439a856a370b520dd89c54b92dbea06aba7f | 4812a46681535e7f75e2bcdda902c73b4f229d90 | refs/heads/master | 2020-07-25T22:19:59.588998 | 2020-01-24T19:31:53 | 2020-01-24T19:31:53 | 208,440,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | from math import cos, sin, pi
import numpy as np
class MobilePartData:
"""Класс, содержащий данные по подвижной части антенны"""
__slots__ = ("gamma",
"eps",
"beta",
"corrupted_beta",
"matrix_gamma",
"matrix_eps",
... | [
"devyatyarov@phystech.edu"
] | devyatyarov@phystech.edu |
5ee440a12b0c08aa32db9a6bbcfae676730daa78 | 3e4b2c0b97b11fe9837fbf5d17a708fce6cf69b9 | /Search/public/NeuroML2_To_HTML/convert.py | 98c99491b4d55bb7231d09f3b8f11d3c2c11b9b9 | [] | no_license | JustasB/neuroml-db | 48a2c3337a8bd09cba70170aa10526c6d10712f3 | 382f56ab732a5ce71050d981a208f0f869c93fa5 | refs/heads/master | 2020-12-07T15:17:16.727888 | 2015-06-10T01:23:56 | 2015-06-10T01:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import lxml.etree as ET
import sys
try:
infile = sys.argv[1]
except:
print "Usage: convert.py _fileToConvert_"
sys.exit(1)
xsl_file = 'NeuroML2_To_HTML.xsl'
dom = ET.parse(infile)
xslt = ET.parse(xsl_file)
transform = ET.XSLT(xslt)
newdom = transform(dom)
print(ET.tostring(newdom, pretty_print=True... | [
"birgiolasj@yahoo.com"
] | birgiolasj@yahoo.com |
907bec29fd5d18481e0d83c1bc35cc3a3287219d | 0a5c895fa540bf5cef6b4388fd691ac532cd4fd2 | /stocktools/urls.py | fd4bc4bb844c390ad3d972d9d98574022107a371 | [] | no_license | BenTheNetizen/StockTools | 6223c5ffdf9e107132dd4864d31542ca773a8e83 | 12ddfcf58c54f51feb81039fb78f8654bdedd5ad | refs/heads/main | 2023-04-13T03:29:51.872839 | 2021-04-16T04:52:39 | 2021-04-16T04:52:39 | 351,594,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | """stocktools 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-ba... | [
"benisin5@gmail.com"
] | benisin5@gmail.com |
d9cf6b8204ba6f43386bd06b984cb51ac0edbaa6 | f046c23d73d3e60e97ea90d6961edad1139a6f8d | /Chrome_Extension_Tests/__init__.py | 78c7b143a88a7899a1de1a06c524ed7966c96d79 | [] | no_license | reidzesna/Zang_Products_Auto_Test_Python | 01bb3fe82d2874e9d0cb2c56764f9acdef3cca3b | 072983c5f38da2fd5e023991d860dcd329cb31cb | refs/heads/master | 2021-01-20T07:41:47.391009 | 2017-09-07T11:36:02 | 2017-09-07T11:36:02 | 90,029,500 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | '''
Created on May 17, 2017
@author: qcadmin
'''
| [
"qcadmin@ReidZ-PC.ex2010.local"
] | qcadmin@ReidZ-PC.ex2010.local |
755db2aff05eab3ccb6b05364252ec809845698e | b6166f9494b1e5867b0fd23b70d2479de7d2effc | /transform.py | 2b82a57a78c917273c74c7e414ca911e41324d0f | [] | no_license | SummerStoneS/depp_426 | b7f74af51c9c04274d78c40b71d97c071d4e56a0 | 83f2a79242298080dbed0180104b263dfe3ad6b0 | refs/heads/master | 2020-03-13T10:29:14.428323 | 2018-05-03T09:34:02 | 2018-05-03T09:34:02 | 131,084,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,383 | py | import pandas as pd
from time import sleep
from amap import AMap
from tqdm import tqdm
import numpy as np
import datetime
import re
"""
get_location: 将所有取货地址按照中文地址名字转化成经纬度,查不到的返回np.nan
split_location: 把上一步经纬度列解析成经度和纬度两列
转换时间
"""
orders_columns = ['订单号', '最早接货时间', '最晚接货时间', '开单体积', '接货地址']
static_cars_... | [
"sruo688@163.com"
] | sruo688@163.com |
503e6216af7bcfa3315bb2a4a4b0598830b093ae | 65e0a2c39f3397d28af194951cf7b83d850e44b4 | /.vscode-oss/extensions/ms-python.python-2019.4.11987/pythonFiles/lib/python/ptvsd/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py | c381f3f979ddbcd62518899b2baa46f98fa38817 | [
"MIT"
] | permissive | arjunchandran/newrepo | 45abce0d80c841ba8b7034a79cb1496c467d852f | e89f8fb734b09c4b2eb857bbf0e52d9fd5de91e5 | refs/heads/master | 2021-01-05T12:27:23.081811 | 2020-02-17T04:57:24 | 2020-02-17T04:57:24 | 241,023,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470,678 | py | # Automatically generated code.
# Do not edit manually.
# Generated by running: __main__pydevd_gen_debug_adapter_protocol.py
from .pydevd_base_schema import BaseSchema, register, register_request, register_response, register_event
@register
class ProtocolMessage(BaseSchema):
"""
Base class of request... | [
"user@localhost.localdomain"
] | user@localhost.localdomain |
01968ccfc10c8906002b14ee24cc1c38bf584d05 | fdab73ba3ec2e74190d3feea84606b069e8142d8 | /forum/templatetags/thread_extras.py | 56d81ba8468f55123ccbbbcf989e242eb1174710 | [] | no_license | Cvd2014/final_project | de9d9ec0a597e795d49074e38c6a4343a5f045c4 | cd2ecc57a1fb1f13198280719ee6a789d5224af1 | refs/heads/master | 2021-01-17T12:36:59.507174 | 2016-06-27T12:43:14 | 2016-06-27T12:43:14 | 57,976,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | import arrow
from django import template
from django.core.urlresolvers import reverse
register = template.Library()
@register.filter
def get_total_subject_posts(subject):
total_posts = 0
for thread in subject.threads.all():
total_posts += thread.posts.count()
return total_posts
@register.filter... | [
"ciaran.darcy1@gmail.com"
] | ciaran.darcy1@gmail.com |
c725b6994884317444e1b8e1810a24b1a71fc6b6 | 48c1b225220035002cdf26cdfda7e462bf45887b | /Balanceamento.py | 756a9a43d47bddd27ad1eaeef0cdb2c716b32753 | [] | no_license | Natanna99/ED2 | 5859f0e295bc09c030b5c235f2686b1ea09c6fb1 | c2ba9c63b1fb05043f09594bb3bddd9fad9f7db6 | refs/heads/main | 2023-01-24T09:29:38.927113 | 2020-12-06T17:11:19 | 2020-12-06T17:11:19 | 319,086,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import Tree
t= Tree.Tree()
t.insere(29)
t.insere(13)
t.insere(24)
t.insere(18)
t.insere(1)
t.preOrdem()
| [
"erzafairy79@gmail.com"
] | erzafairy79@gmail.com |
ac4e4a70866d6a91faef0a4e82b070473cf94505 | 56551ddc4668c550d1cf3261f01d22cfd85e3365 | /libraries/ExampleCamera.py | d38f7f23c68736142318e08a9ab9cf627bc6586a | [] | no_license | degrace1/Autonomous-Line-Tracking-Car | 6268c988c4c31eefb7340ad79dfc140ccf6a3edc | 276a6035e69d20ff08c199314a326885e65d27c2 | refs/heads/main | 2023-01-29T15:11:49.333796 | 2020-12-12T01:46:21 | 2020-12-12T01:46:21 | 309,524,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | from BallCapture import *
from ExampleCamera import *
from DistanceCamera import *
from imutils.video import VideoStream
import cv2
import imutils
# HSV threshold, we use the yellow color ball here
yellowLower = (26,43,46)
yellowUpper = (34,255,255)
#initilize a ball capture class
vs =VideoStream(src=0).start()
c =... | [
"2669561343@qq.com"
] | 2669561343@qq.com |
867372a05716df492868b9e1821f0f1eac39c54f | 0fe842da8a3b9202298e60a5e9c1bdbe01c6f06c | /test/make_pickle_v_1_3_3.py | 8482b882e3db001bcaac9eaec26405f8dc03e8ad | [
"MIT"
] | permissive | realmariano/GTC | 484e6e4d4e22fcb9337f8fec80c8c510f3fb0d19 | 25902c01e894b2d310c9700403fc52c19ee7c805 | refs/heads/master | 2023-05-11T15:49:57.665397 | 2021-05-13T22:49:43 | 2021-05-13T22:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | """
Script used to create 'test_file_v_1_3_3.gar' as a reference file
that must be readable by subsequent versions of GTC.
The unit test 'test_files_v_1_3_3.py' expects to find
'test_file_v_1_3_3.gar' in the local directory.
"""
import os
from GTC import *
ar = persistence.Archive()
x = ureal(1,1)
y = ureal(2,1... | [
"blairdhall@gmail.com"
] | blairdhall@gmail.com |
e5819dd6a730bdb1c9966178b30aa69e05859b21 | 6596a5861fd1f6c8b7f866409784513db02d27b8 | /python/Two Sum/Solution.py | a247e55292f525af7fc500b89cf7191cd986db0e | [] | no_license | HaiFongPan/LeetCode | 3de579c5d7dd7bfa6b7533c5626d0499c42adead | c6dfd840d394405f01169d94da1b1e8c823e07ec | refs/heads/master | 2022-06-02T05:14:27.464185 | 2022-05-23T13:42:33 | 2022-05-23T13:42:33 | 23,945,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # -*- coding: utf-8 -*-
class Solution:
# @return a tuple, (index1, index2)
def twoSum(self, num, target):
dictNum = dict.fromkeys(num)
for i in xrange(0,len(num)):
if dictNum.has_key(target - num[i]):
for v in xrange(i+1,len(num)):
if num[v] + nu... | [
"leopan.me@gmail.com"
] | leopan.me@gmail.com |
8651aedc05201202ab849f7a2fc03cb57a94b9ef | eb4559cfc62afb4f9145d12854bae28ea81a126b | /CAMELYON16/deepMIL_multiscale_15inst_embed_10/main.py | 8236e3b4ad46300ee1ceac7195ee04e7fd5f66d4 | [] | no_license | zhangrenyuuchicago/PathHyperbolic | f38e45e0cea84df51a132247af61038913ea7bf9 | 7f009475db4ac33e9f27081263c92da45473275e | refs/heads/master | 2023-02-16T15:53:16.748427 | 2023-02-15T21:30:33 | 2023-02-15T21:30:33 | 275,686,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,610 | py | import torchvision
import torch
import SlideDataset
import pickle
import ntpath
import os
import numpy as np
import torch.nn.functional as F
from tensorboardX import SummaryWriter
from optparse import OptionParser
from datetime import datetime
from Model import MINet
from sklearn.metrics import roc_auc_score
from keras... | [
"zhangr@uchicago.edu"
] | zhangr@uchicago.edu |
32d0b1ecacdfe91bc82912e19118eb80bd30936b | 2ce0c07faa149768fa24c03a434ae4ccf4c237b6 | /update.py | 976f67a4c8bf38ff5e3b78eb34a7e10f914cc5fa | [
"MIT"
] | permissive | CzzzzH/ETSHelper | 2a80467e6358561126ee740ac9c3a87c4ae062a1 | c81b96330653ab2dc5f67e810869ead2039b15b4 | refs/heads/main | 2023-03-28T20:00:49.988041 | 2021-03-18T08:47:19 | 2021-03-18T08:47:19 | 346,248,834 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from gre_seat import gre_run
from toefl_seat import toefl_run
import json
import time
import datetime
import os
import traceback
def update():
print("Start Update !")
# 更新GRE考位信息
change_log = gre_run()
os.system("kill -9 $(pidof /usr/local/bin/geckodriver)")
os.system("kill -9 $(pidof /usr/lib/fir... | [
"morphling233@gmail.com"
] | morphling233@gmail.com |
84b5dbc4ea63754c6fb4567547d8f73a174ea383 | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /airflow/providers/amazon/aws/example_dags/example_s3_bucket_tagging.py | 9ded09ba70e3baec59645806115c40c6bea33854 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 2,227 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | coutureai.noreply@github.com |
520e6c48ff4c494fbb0a7f4f63eea63da963dbff | 894c3eaeda2f41d80b9b409784fc6daedcc12aa5 | /service20/migrations/0082_auto_20190217_2205.py | ebda5a16a648fc599a2710b40513a134b126bd55 | [] | no_license | ohsehwan/django_admin_nanum_osh01 | b1f3fc51e53d8f23c5b06d83c395f4cf085892f0 | bb9090c60ca215dd7f6b65959d7f154b4b4b9951 | refs/heads/master | 2022-12-21T07:25:05.912098 | 2019-02-19T03:40:43 | 2019-02-19T03:40:43 | 171,399,538 | 0 | 0 | null | 2022-11-22T03:26:10 | 2019-02-19T03:37:23 | JavaScript | UTF-8 | Python | false | false | 568 | py | # Generated by Django 2.1.5 on 2019-02-17 22:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('service20', '0081_auto_20190217_2205'),
]
operations = [
migrations.AlterModelOptions(
name='mp_sub',
options={'verbose_name... | [
"dxman@naver.com"
] | dxman@naver.com |
b1ed99bbdc23dc4e7924b7a158a5835860a7a3d3 | 499715b1ba009b2081547bbf70a2f9ef02ca1162 | /orders/models.py | 391886364be7d2343d0f0b28a7c41e13102a3c96 | [] | no_license | ariel-brassesco/CS50-Project3 | 09f84030ad3d93ec4af2871bf00e2b04dd974894 | cd7b99965f9f391b73bcfbd33d3a41fc36f2fbb2 | refs/heads/master | 2023-08-11T12:16:06.021418 | 2020-06-20T19:20:00 | 2020-06-20T19:20:00 | 273,132,885 | 0 | 0 | null | 2021-09-22T19:16:02 | 2020-06-18T03:28:28 | Python | UTF-8 | Python | false | false | 6,147 | py | from django.db import models
from django.db.models import Min
# Models for products.
class MenuItem(models.Model):
item_type = models.CharField('Menu Item', max_length=30, unique=True)
def __str__(self):
return self.item_type
def get_sizes(self):
sizes = self.sizes.select_related().o... | [
"ariel.brassesco@gmail.com"
] | ariel.brassesco@gmail.com |
cee0c5b145014f70f31ebe10711c150ecc647f51 | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2018/Assertion[4,0].Evaluation.spec | c6487fde85d442d46f9d1e4adf9959a75d0175ad | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 702 | spec | 1. Evaluate |Disjunction| with +1 as its _direction_ argument to obtain a Matcher _m_.
1. Return an internal Matcher closure that takes two arguments, a State _x_ and a Continuation _c_, and performs the following steps:
1. Let _d_ be a Continuation that always returns its State argument... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
3e51eb477a1493edf93e6f7d3c51183ac3f06340 | 5baac45bee5b6f541ace9afc1b59b6e394d43043 | /mosharov.ru/mosharov_site/mosharov_site/urls.py | 462ddc203abf89dbdabbed1267344e61538b6292 | [] | no_license | askovorodka/mosharov | 811248563fc2965a47a4c8f0ae87d01c8618e320 | dbd6bad95e0531cd61c8c6f08c263a1d3c8f9345 | refs/heads/master | 2021-01-25T03:54:31.718567 | 2018-05-21T12:58:58 | 2018-05-21T12:58:58 | 3,637,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from django.conf.urls import patterns, include, url
from mosharov_site.views import home, pages
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', home),
url(r'^pages$', pages),
# url(r'... | [
"andrey.schmitz@gmail.com"
] | andrey.schmitz@gmail.com |
a102abadacc2b327a8ab89d237c940477e194e6c | c7575317d903b4fea5acfa0a52bf6805150d428c | /MatchParser.py | 84f35e91d63b9c6eecac874b94b181398f4c26a3 | [] | no_license | foanwang/nssdparser | 89e662888f95af76b087ff06db04f6ea50de75e2 | e74588132e540186e2bb134458ee0dc362969a36 | refs/heads/master | 2021-01-07T21:09:58.001148 | 2020-03-09T09:42:59 | 2020-03-09T09:42:59 | 241,821,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,802 | py | from datetime import datetime
from mongoengine import *
from mongoengine.queryset.visitor import Q
import json
from model.team_basic_data import team_basic_data as teambasic
from model.league_category import league_category as league
from model.match import match
from model.dto import *
from model.raw_api_data import ... | [
"foan.wang@funpodium.net"
] | foan.wang@funpodium.net |
9f2e8183a87cc7d599418d98783575ad15544f1b | f947e38cf14a1aca05b47abbe93405a97c31e314 | /app.py | 129469ae681705908858d7960a1b365c9b91c303 | [] | no_license | oscarli916/OneTimePassword-OTP- | 0f9208be1546b74bb758cf9c78af315f4e853441 | c4d67258171a51a07d55e7abef2fe0eb145db12b | refs/heads/master | 2023-08-01T12:05:36.517280 | 2021-09-15T06:32:37 | 2021-09-15T06:32:37 | 406,640,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | from flask import Flask, request, session
from flask.helpers import flash, url_for
from flask.templating import render_template
from flask_bootstrap import Bootstrap
from werkzeug.utils import redirect
from werkzeug.security import generate_password_hash, check_password_hash
import pyotp
from datetime import timedelta
... | [
"oscar_li916@yahoo.com.hk"
] | oscar_li916@yahoo.com.hk |
90f55e46af96e2acd0d4e8f0651e121d21a6be50 | ad22b829448a35ee1d2ce80c3f4fa6661f4666cc | /p49.py | a75925f79cc7e17f8d9a4241674ff6751d5e1b63 | [] | no_license | JohnEFerguson/ProjectEuler | 487357f4f56541bc322cde8fd3baaacb2facb0b6 | d5f805bfb199df72cdba7643028b6922c93af5f7 | refs/heads/master | 2021-09-16T01:43:33.195624 | 2018-06-14T15:29:20 | 2018-06-14T15:29:20 | 115,482,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
#
# Jack Ferguson 2018
#
# Problem 49
#
# q:
# a:
#
from helpers.pandigital import get_pandigital_nums
from helpers.prime import is_prime
def check_prime_permutations(i):
if is_prime(i):
nums = get_pandigital_nums(str(i))
pos = set()
for n in nums:
if i... | [
"jef1@williams.edu"
] | jef1@williams.edu |
ad7fb6e1578e8b62d7e1d0e0ae1c2be7ec9ce6a4 | 25c83ddd3521376d67933bfcdd191974ac460657 | /mars/services/scheduling/worker/workerslot.py | 702873c9bab6d8ad0fa597d7c258a5111c260328 | [
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | AnirbanBall/mars | acb8468578e393eb596bfdfc08822407e9c84c6c | 1bfad0c04dcd8f47d4422537a397b51f3464deee | refs/heads/master | 2023-08-03T09:39:13.251627 | 2021-09-10T10:15:34 | 2021-09-10T10:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,304 | py | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | AnirbanBall.noreply@github.com |
8e842067b3c7178efa206985248ceb4db9fdc8a5 | d00b9bbcb14e5534d18f30d9fffe7a5231e8d17c | /game.py | 4b311adb847ac8c3bfb90a24624e1a0baf068719 | [] | no_license | Montana/py-chess | 66cab7dcdbcf23195d376ac6a9b7520be49fad23 | 6c91bac66c35cea53c1f5108c0e42b886fb64c1f | refs/heads/master | 2023-04-25T03:36:01.738449 | 2021-05-15T18:59:11 | 2021-05-15T18:59:11 | 367,717,067 | 1 | 0 | null | 2021-05-15T19:45:31 | 2021-05-15T19:45:30 | null | UTF-8 | Python | false | false | 5,045 | py | from moves import *
from piece import *
from enum import Enum
class IllegalMoveError(Exception):
pass
class Game:
def __init__(self, board = None):
if board is None:
self.setup_board()
else:
self.board = board
self.current_turn = "white"
self.... | [
"bsgreenb@gmail.com"
] | bsgreenb@gmail.com |
6aa5b9c547468626093dd1e1b0a3fa6cc1dcecfb | 4533d12dc4f724a5c50decf15e70b6cf69d8a052 | /src/you_get/extractor/nicovideo.py | 7d384f3146f3f7b5c00405d570f4c5a853b9bcc2 | [
"MIT"
] | permissive | shabeermothi/you-get | dd276c4c6155a83e4b24fa6913376bc6c00a80bf | 59e505b5bceaca6f223afbb55a3c79feb1eba144 | refs/heads/master | 2021-01-15T19:14:29.663048 | 2014-02-08T03:38:37 | 2014-02-08T03:38:37 | 16,658,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #!/usr/bin/env python
__all__ = ['nicovideo_download']
from ..common import *
def nicovideo_login(user, password):
data = "current_form=login&mail=" + user +"&password=" + password + "&login_submit=Log+In"
response = request.urlopen(request.Request("https://secure.nicovideo.jp/secure/login?site=niconico", he... | [
"mort.yao@gmail.com"
] | mort.yao@gmail.com |
9868e0ff63d7c2e5e044ffb7dfdba00dc89af939 | 555eaa076cc5d3a85e4a5b7db418d312a084bc23 | /Euler67.py | 39f2fca46e18b0e512f7bf7381da12af6b32e10d | [] | no_license | QuestionC/euler | 8b5c1f4014373354f14a30c18522e4615137d903 | 32a1c6f1572e5e4faf4780b9667391c5dbf475e3 | refs/heads/master | 2020-05-04T23:15:06.892080 | 2019-04-04T16:57:18 | 2019-04-04T16:57:18 | 179,537,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from array import array
f = open('p067_triangle.txt', 'r')
# f = open ('Euler67_test.txt', 'r')
heap = []
global max_depth
max_depth = 0
for linenum, line in enumerate(f.readlines()):
max_depth = linenum
for inner_index, x in enumerate(line.split()):
value = int(x)
index =... | [
"questionc@gmail.com"
] | questionc@gmail.com |
e5e322c8ce9a6e49b893fe091a93bf40f5588940 | 667bff70d8e189af7ab54faf879d6a9851b6418c | /Converter_Files/convert_schema_to_json.py | 7e69a0d83677552e30ebc3b5adda58dcb3da635b | [] | no_license | SpenDM/LabKeySchemaToMetadataConverter | ac034a740a62639df694272e8ed374544803ea4d | a67b71d4c2ed279af062bec41cbd3bde94b11b76 | refs/heads/master | 2021-09-09T09:04:14.617529 | 2018-03-14T14:30:35 | 2018-03-14T14:30:35 | 104,756,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,283 | py | import argparse
import os
from typing import List
from SchemaReader import *
def main(schema_file):
print("Checking schema...")
json_file = get_file_path_and_names(schema_file)
try:
with open(schema_file, "rU", encoding="utf-8") as in_file:
schema_lines = in_file.readlines()
... | [
"spencer.d.morris@gmail.com"
] | spencer.d.morris@gmail.com |
21360d446d3efefe75b79804bd9ee3f9c33d9122 | ed8847f5799981a0f61e634f3469853ce2e4d807 | /dfvo/libs/deep_models/checkpoint_logger.py | 9ef8b73eca4558fe923bcab4c6e1069b52311ee9 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT"
] | permissive | Arslan-Z/toposlam | 05179a1601eeaed20528c0dc5328a1ab258e04d4 | 3ec1dda210722d86bf77f101dca57ba27baa5833 | refs/heads/main | 2023-06-29T04:34:50.752890 | 2021-03-03T07:53:16 | 2021-03-03T07:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | '''
@Author: Huangying Zhan (huangying.zhan.work@gmail.com)
@Date: 1970-01-01
@Copyright: Copyright (C) Huangying Zhan 2020. All rights reserved. Please refer to the license file.
@LastEditTime: 2020-06-11
@LastEditors: Huangying Zhan
@Description:
'''
import os
import torch
from dfvo.libs.general.utils import mkdir... | [
"zhanhuangying@gmail.com"
] | zhanhuangying@gmail.com |
16378bf48bfd7238f44a28bed30982747dd094a3 | 37f8f912a3a58c279885af6c5d5df91e20209ebf | /day15.py | 8f76d8b9e1a3e4aec890aa4edaee226e4728a628 | [] | no_license | Parag357/30_Days_Of_Code | d9e81b17e4e56f2d55d8e5b1a70343eb2b247985 | 7e289c64001a9043fd70fbb88e66f3107d08bc00 | refs/heads/master | 2022-11-27T23:19:35.659214 | 2020-08-04T07:14:03 | 2020-08-04T07:14:03 | 280,176,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | class Node:
def __init__(self,data):
self.data = data
self.next = None
class Solution:
def display(self,head):
current = head
while current:
print(current.data,end=' ')
current = current.next
def insert(self,head,data):
#Complete this method
... | [
"psychoprg357@gmail.com"
] | psychoprg357@gmail.com |
a930af263368f408509f886a31e54dd514c98f32 | b1a10d673c5cda24fba4ab58eb312ac337914be5 | /nmt_try/models/bert2gpt2.py | 59553f98974aa58f94bf2d1cefe9f179c6ffec3a | [
"Apache-2.0"
] | permissive | cwza/nmt_try | c70574a048bbc8422dc25a5243457156511ac3bb | 2ac616a218cdc6470c48f4da1b44fa12e1ffc75a | refs/heads/master | 2023-04-13T09:56:38.595323 | 2020-02-26T12:27:27 | 2020-02-27T01:46:18 | 239,925,195 | 0 | 0 | Apache-2.0 | 2023-03-09T05:55:49 | 2020-02-12T04:16:19 | Jupyter Notebook | UTF-8 | Python | false | false | 6,311 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/03c_models.bert2gpt2.ipynb (unless otherwise specified).
__all__ = ['gen_attention_mask', 'BertEncoder', 'GPT2Decoder', 'Bert2GPT2', 'GeneratedBert2GPT2', 'generate_from_ids']
# Cell
from fastai2.basics import *
from transformers import AutoModel, AutoTokenizer, PreTra... | [
"cwz0205a@gmail.com"
] | cwz0205a@gmail.com |
9a1a4e319901d0a370dd8a355c45e35589a6a8e6 | 181f1809e0fdd60277a66d1ec62f801b202f9834 | /Aula_25/Phone/__init__.py | 8c8414a4f7ab3453d039879b66a8ff79551a8ec1 | [] | no_license | Donzellini/pythonCampinasTech | a1096af54b7013bad8b46f4a9b2683c7414bbba5 | 8ed19209eeba0582c56715e9e6eb7eeec16899c9 | refs/heads/master | 2023-03-07T00:16:34.031888 | 2021-02-25T00:50:35 | 2021-02-25T00:50:35 | 328,802,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from .Pots import Pots
from .Isdn import Isdn
from .G3 import G3
| [
"muriel.donzellini@gmail.com"
] | muriel.donzellini@gmail.com |
fcd556f98183b9086c4ff0e3a85ee27e1b8039cc | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/twilio/build/lib/twilio/rest/preview/hosted_numbers/authorization_document/__init__.py | 841596491a9c386e78df4a5bef448c1bc307ec56 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:309ff8b793431f10b723664f42c344c7e09025e2409c33e9826fa1db60574049
size 20006
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
e461e65423de835ed1aec2c692797091aec42829 | 3f28b697f570ded0502de70c706200005ab62525 | /env/lib/python2.7/site-packages/pandas/tools/tests/test_util.py | 9480ea7ee5bf80d19ca8f751edc3e549ca4fd090 | [
"MIT"
] | permissive | Ram-Aditya/Healthcare-Data-Analytics | 5387e41ad8e56af474e10fa2d1c9d8a2847c5ead | d1a15d2cc067410f82a9ded25f7a782ef56b4729 | refs/heads/master | 2022-12-09T12:49:59.027010 | 2019-11-23T20:10:55 | 2019-11-23T20:10:55 | 223,639,339 | 0 | 1 | MIT | 2022-11-22T00:37:48 | 2019-11-23T19:06:20 | Jupyter Notebook | UTF-8 | Python | false | false | 3,094 | py | import os
import locale
import codecs
import nose
import numpy as np
from numpy.testing import assert_equal
from pandas import date_range, Index
import pandas.util.testing as tm
from pandas.tools.util import cartesian_product
CURRENT_LOCALE = locale.getlocale()
LOCALE_OVERRIDE = os.environ.get('LOCALE_OVERRIDE', No... | [
"ramaditya.danbrown@gmail.com"
] | ramaditya.danbrown@gmail.com |
41b266851b432847dc080b742c50c7cddb33494a | 5eb58b2bcaacd5dd38bd57a1e745ccb65e654bdf | /bin/actuary.py | e2e8a255afbcc1488513a9e5d8c6fe5b545f758b | [
"MIT"
] | permissive | Amorymeltzer/dotfiles | f8cadb6df4f3978e3273a7f15b3b9cec02cb560e | f4b6d2fb25c54a7f191a9b387a38b14e8b1d6a71 | refs/heads/main | 2023-09-01T21:32:27.652765 | 2023-08-01T14:01:49 | 2023-08-01T14:01:49 | 24,949,592 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,460 | py | #!/usr/bin/env python2
import sys
import datetime
# Calculates death probabilities based on Social Security
# actuarial tables for a given group of people.
# Run with a list of ages/genders and an optional timespan (or year in the future):
# python actuary.py 63m 80m 75f 73m 10
# or:
# python actuary.py 63m 80m 75... | [
"Amorymeltzer@gmail.com"
] | Amorymeltzer@gmail.com |
2fcf3d10ceaace2b68cdc1f7e87469423b3a1a99 | 5471de6fd11cc36e8ad9c05ea25d13ae568ad060 | /Encapsulation/wild_cat_zoo/caretaker.py | cb50b88116632274b6627bd1d92478ccc541bc20 | [] | no_license | olgayordanova/PythonOOP | 75bbf9a20c612be7212de7bed59edccef1e02304 | 2d177d17bf50335b17f6246198b1cf85719de1df | refs/heads/main | 2023-03-30T18:59:56.751037 | 2021-04-03T19:48:37 | 2021-04-03T19:48:37 | 333,202,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | class Caretaker:
def __init__(self, name, age, salary):
self.name=name
self.age = age
self.salary = salary
def __repr__(self):
return f"Name: {self.name}, Age: {self.age}, Salary: {self.salary}" | [
"noreply@github.com"
] | olgayordanova.noreply@github.com |
b61244a1c5d4574f9ff50e1f6975f5d98ff2415f | 0b55b6c9a0532e1ccdc8e16b7742e84cf4bdbc80 | /tools/operations.py | 8ab6804f7237e55d394eb5ecc00f53a5f68f628c | [] | no_license | Skar0/gamesolver | 689d9dde4acf17855ddbeec65b4b2a7780696b7e | 8e511d7c15cfb92eae22f493305489f6c22c03bd | refs/heads/master | 2021-03-27T19:17:09.344159 | 2018-08-16T22:28:35 | 2018-08-16T22:28:35 | 97,278,415 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,018 | py | """
This module contains general-purpose functions used in several of our algorithms.
"""
import ctypes
import collections
from antichains.library_linker import createGraph_c, addEdge_c, displayGraph_c
def opponent(j):
"""
Returns the opponent of player j.
:param j: the player (0 or 1).
:return: its ... | [
"clement.tamines@gmail.com"
] | clement.tamines@gmail.com |
e41a883422139c5e3d037e4c99094e59853de45b | bfad51e4655139a4a7677e73a236821c85c61df0 | /utils/parallel_processing.py | 7b75f2132bb121b6f20dcc5b30b1918acb0688e5 | [] | no_license | pakaste/bayesian_t_mixed_model | 2e78cdcec6c7822e630ba084117d63c12ca94129 | 3757a205d6c7ecf4e7ca578902001c963bbdd8d5 | refs/heads/master | 2020-03-25T07:11:18.882796 | 2018-10-29T17:03:46 | 2018-10-29T17:03:46 | 143,546,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import multiprocessing as mp
from numpy.random import normal
from estimation.gibbs_sampler import run_one_chain
def multiprocess(processes, params, iters, n_chains, normal_params=(0.0, 2.0)):
"""
Uses multiprocessing for running multiple Gibbs sampler chains with different initial values.
Paramete... | [
"pauliina.karell@topdatascience.com"
] | pauliina.karell@topdatascience.com |
d492043cebddbfd6b8fc8bdfd50e22a7540891fa | e6ab8bb4d08848e194779f20fe9e36f0b8f63672 | /counter(a, b).py | 5f7b16a184d1d13c37a9e0281dc28b5b94f2a497 | [] | no_license | morykon/homework_ | a762887a38222843e7d3a1259ec5cfd2bf26317d | 29facf2a76421844cc8da8f639c5ba5ff7c46fcd | refs/heads/master | 2020-03-12T14:48:31.359260 | 2018-06-19T00:14:59 | 2018-06-19T00:14:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py |
# coding: utf-8
# In[111]:
# 1)
def counter(a, b):
c = list(map(int, str(a)))
v = list(map(int, str(b)))
res=list(set(c) & set(v))
ln = len(res)
if res:
print(ln)
else:
print('0')
# 2)
# In[112]:
counter(12345, 567)
# In[113]:
counte... | [
"noreply@github.com"
] | morykon.noreply@github.com |
dca2e663060763d3f2dbeeaebc01bc33ea648640 | 45a9f797e8c3005fd8f8f77fcc6d59087b45f9c8 | /apps/base/admin.py | 3ed6618c9e6ac8c2e8563999611b048a1fdb9095 | [
"MIT"
] | permissive | goobes/box | 529c99439a165e879095b0d1876e888d37c4f07e | 42e136d98b2a25ffd8717b3c8c9d97654cc15e54 | refs/heads/master | 2022-12-23T06:53:07.487899 | 2020-02-28T12:39:54 | 2020-02-28T12:39:54 | 121,276,604 | 0 | 1 | MIT | 2022-12-08T00:53:52 | 2018-02-12T17:11:23 | HTML | UTF-8 | Python | false | false | 2,258 | py |
from django.contrib import admin
from django.utils.safestring import mark_safe
from allauth.socialaccount.models import SocialAccount
from .models import Genre, Publisher, Author, Book, Profile, Item, Payment, Box
for m in [Genre, Publisher, Item]:
admin.site.register(m)
@admin.register(Author)
class AuthorAdmin... | [
"arunkakorp@gmail.com"
] | arunkakorp@gmail.com |
37145b4ae3972f800735a8b8cb5c858bff969032 | a735ae1bd7f0f15ee35c17cd1219a2890f25cd01 | /mysite/blog/migrations/0001_initial.py | bc8b8183e3f70f3e76ca33b06362c5686c482edd | [] | no_license | stevekutz/django_blog | 56e89a0be30c5af400fd4ea1865dfd16fc3292ca | 2605e6afa3c367d29a5ac441286532b96135a9df | refs/heads/master | 2022-11-28T20:17:11.756140 | 2020-08-02T01:16:15 | 2020-08-02T01:16:15 | 264,799,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | # Generated by Django 3.0.6 on 2020-05-19 01:14
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... | [
"stkutz@gmail.com"
] | stkutz@gmail.com |
e7556dba9e02cc59489acc277e99a95e1b278bd8 | dc40e4ee1ada66625c3851b8decdc2388a9de342 | /Python/grabWeb.py | ceceaf94c09a0b53ed186ecc9e495dbdacbc1e37 | [] | no_license | BaoLearns/Code | 85fbf3091af70d57c2e5c76349ae7ffa5645978b | 03931e9c7f6a0451489777213b8f3dc807ff84f3 | refs/heads/master | 2021-01-13T00:56:58.605701 | 2016-05-12T07:01:27 | 2016-05-12T07:01:27 | 55,779,989 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from urllib import urlretrieve
def firstNonBlank(lines):
for eachLine in lines:
#if not eachLine.strip():
# continue
#return eachLine
print eachLine
def firstLast(webpage):
f = open(webpage, 'r')
lines = f.readlines()
f.close()
firstNonBlank(lines)
... | [
"Royecode@163.com"
] | Royecode@163.com |
1443e2d53e6fa26b4f6180e46954831026119337 | 43ec943dd7c0bbf9ffe0664acf9c3a1fa980ef62 | /DaskBot1.0/modules/task_thread.py | 2b2a596ba5d24658a8332c8321aec6847998ce97 | [] | no_license | RyanLy/SkypeCheckin | 56a9b33587d74b3ace5957dc09a39d103af25ac8 | 9477b4df269cb47e372eec7f97b9774c10ac34d7 | refs/heads/master | 2020-04-06T05:33:05.562392 | 2018-06-05T07:41:16 | 2018-06-05T07:41:16 | 26,026,657 | 3 | 3 | null | 2017-03-03T06:39:26 | 2014-10-31T17:45:57 | JavaScript | UTF-8 | Python | false | false | 646 | py | import threading
class TaskThread(threading.Thread):
"""Thread that executes a task every N seconds"""
def __init__(self, task, **kwargs):
threading.Thread.__init__(self)
self._finished = threading.Event()
self._interval = 3600
self.task = task
self.args = kwargs
d... | [
"windask@hotmail.com"
] | windask@hotmail.com |
2813a23a9ccc1311c3ce976637552101da781197 | a730e6c54cd99beb00fe7b9c08ff92c5e1800bbf | /libretto/migrations/0047_migrate_caracteristique_programme.py | 5fa95b41fbfca40c1ebf9520ae51304356717f95 | [
"BSD-3-Clause"
] | permissive | pombredanne/dezede | 3d2f4b7bdd9163ae1c0b92593bbd5fae71d1cd91 | 22756da8f949e28b9d789936d58eabe813ef4278 | refs/heads/master | 2021-01-17T15:29:30.382243 | 2013-11-09T17:35:42 | 2013-11-09T17:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,170 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
CaracteristiqueDElementDeProgramme = orm['libretto.CaracteristiqueDElementDeProgramme']
PolymorphicCaracteristique... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
185e5d561e97907a26684e58720732b92aa9c3c0 | 20db56d2fb1cb0ef1fd189d442e0ec327d3bdf65 | /Game.py | 697270854ef5149e2cefc17f383862a76415ab68 | [] | no_license | osmo34/Space-Invaders-Pygame | c757f715eed06ca2fdadb82eb33502db646bcf29 | 4dce48f49392b7a91e27a1f2371a3b918b9c4b57 | refs/heads/master | 2020-04-03T08:15:47.005733 | 2018-11-13T21:58:17 | 2018-11-13T21:58:17 | 155,127,062 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33,788 | py | # space invaders clone 2018 - Steve O https://github.com/osmo34
# CS50 final project
# polishing TODO:
# player death - goes off screen, slides back on
# on death player blows up - pause, score on screen - then game over screen
# score on game over screen
import pygame
import random
from enum import Enum, a... | [
"noreply@github.com"
] | osmo34.noreply@github.com |
9ccf065b4b4ab8bc95682b6a4ec384525b18ce62 | 8e093064c914334df4b9fd3e4b489b82fb688b74 | /Lab/lab03/ok_tests/q03a.py | 8c7d7d3ea4216f2d4a18ac67136827ee85bb8aa3 | [] | no_license | keddinger/DS100 | f78de1f9a2c3b983010bbbfa3f7e97a584a14cf3 | 6ca567080bdf40ab3a1b805028aa733160c4f54c | refs/heads/master | 2023-03-28T10:17:51.904427 | 2021-03-31T02:01:47 | 2021-03-31T02:01:47 | 349,178,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | test = {
'name': 'Question 3a',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> set(calls["Day"]) == {'Friday', 'Monday', 'Saturday', 'Sunday', 'Thursday', 'Tuesday', 'Wednesday'}
True
>>> list(calls["Day"][:5]) == ['Sunday', 'Thursday', 'Thursday... | [
"kath.eddinger@berkeley.edu"
] | kath.eddinger@berkeley.edu |
1a06bbc21da4311b56698423f8aa212055723d16 | 4f120540689e17ce086a31832f2687108d9f2810 | /process2.py | 8fde232b81afd7d14da4b34d02bac3ca91c016be | [] | no_license | Park-liv/Capstone | 1979bdcbd4a12c5c99fd971c1a4eb50c897a75b7 | 907dc703ef7b7431c143e4e3cdfa47e16d443f72 | refs/heads/master | 2021-02-18T23:14:54.726082 | 2020-03-05T19:36:41 | 2020-03-05T19:36:41 | 245,248,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py | import numpy as np
from os import listdir
from os.path import isfile, join
def MD(act, num_label):
X = []
lenFile = []
files = [f for f in listdir('MobiAct_Dataset/{}/'.format(act)) if isfile(join('MobiAct_Dataset/{}/'.format(act), f))]
for i in range(len(files)):
if 'acc' in files[i]:
... | [
"52243152+Park-liv@users.noreply.github.com"
] | 52243152+Park-liv@users.noreply.github.com |
3c7d5dd083ab64ca003b497ca57b3112b93f8870 | e503dc955e2feaebade4327ca1fcde7d73843812 | /latextomd/prepandoc.py | e8be42e8260866c60a9686859a0b5b7d66f0efda | [
"MIT"
] | permissive | DavidCouronne/latextomd | 28eee67e61630aed147721b26dea1e318a5cdb1c | 30ed7f5beddecdd44832cbd26ccee85bc66e66f5 | refs/heads/master | 2022-12-23T06:00:10.093285 | 2022-10-29T06:09:43 | 2022-10-29T06:09:43 | 234,710,531 | 0 | 0 | MIT | 2022-12-09T08:58:54 | 2020-01-18T09:24:16 | Python | UTF-8 | Python | false | false | 478 | py | import codecs
import os
import re
class Prepandoc(object):
def __init__(self, latex_string="", export_file=""):
self.content = latex_string
self.export_file = export_file
def process(self):
if "\\begin{document}" in self.content:
self.preamble, self.content = self.content.... | [
"couronne.david@gmail.com"
] | couronne.david@gmail.com |
b040e8b3e60274af7ab371eb5d8158325791626c | dbc2449adae08dc08571211dd75d4179002e4b0e | /Session2 - Flask and APIs/1-pandas_numpy/pandas_v1.py | d03eee9c247400c0d849259ff6b4c78c3573a17b | [] | no_license | DominiquePaul/data-science-and-cloud-solution-course | b87a8142f81d8da3610f163bd8a6d4b6e226becb | f63f99142025717f56fffb7e6454d5a23943b578 | refs/heads/master | 2022-12-14T17:05:33.908968 | 2019-11-07T06:44:59 | 2019-11-07T06:44:59 | 219,464,395 | 0 | 1 | null | 2022-12-08T06:50:28 | 2019-11-04T09:32:27 | Python | UTF-8 | Python | false | false | 4,506 | py | """
This script serves as a basic run-through of the numpy and flask package. Its
purpose is not to explain all of the essential functions of the two functions,
but rather to demonstrate briefly what is possible and give you a feel for what
you can do with these packages, so you know where to look for when you have an
... | [
"dominique.paul.info@gmail.com"
] | dominique.paul.info@gmail.com |
abe6ec4da2d48927eb8deee11bcf648ef5c0d146 | c39c6f9d8339361d9a906d25955e55f49f8f5a67 | /multi-model-server-container/docker/code/serve.py | abe27ca62af76b785ad4deee65b941e93a456d83 | [] | no_license | cuiIRISA/sagemaker-custom-serving-containers | 5fb8e510cfa9192e6214fbc6b4a5aa285297e448 | 49e0f373dbfe204996cc70100eae78dfb5653be3 | refs/heads/master | 2023-02-09T20:25:22.329058 | 2021-01-04T16:33:04 | 2021-01-04T16:33:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from __future__ import absolute_import
from subprocess import CalledProcessError
from retrying import retry
from multi_model_serving import handler_service
from sagemaker_inference import model_server
HANDLER_SERVICE = handler_service.__name__
def _retry_if_error(exception):
return isinstance(exception, CalledPr... | [
"ec2-user@ip-172-16-37-5.eu-west-1.compute.internal"
] | ec2-user@ip-172-16-37-5.eu-west-1.compute.internal |
1115f2bd84bce227a005fe696998bc3c063ce07b | 56ce55f61fbd47fef9f7aead809c752d18f7b266 | /dj_polls/settings.py | 258ef8b7119da6000caf65d828d453a0ad83be13 | [] | no_license | rajalokan/dj_polls | a1b69ead36022d8a50bbb989b1807665f6abda14 | eb9058e77d6636cd155131656265c12b97e6b010 | refs/heads/master | 2020-12-31T00:54:09.778388 | 2017-02-01T04:04:24 | 2017-02-01T04:04:24 | 80,588,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | """
Django settings for dj_polls project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"rajalokan@gmail.com"
] | rajalokan@gmail.com |
76db24f39a4f84fc44bdd0d6c61fe60ac558333b | 15877f137879f9893d550285c973f086e581449c | /demo.py | 6fe50785413adf5c26b41e20092dd98cf113b719 | [] | no_license | liamkirsh/python-sword2-demo | 9526af216699d4e5ba2fc6ccbc94265f390e63eb | 22e293bcdfd1e241f3dadff9a2d4469ec5a7fcd9 | refs/heads/master | 2020-05-29T15:12:53.237291 | 2016-07-12T16:06:38 | 2016-07-12T16:06:38 | 62,222,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | #!/usr/bin/python
from sword2 import *
import logging
SD_URI = "http://localhost:8080/sd-uri"
user = "sword"
pw = "sword"
def main():
logging.basicConfig() # NSA is watching
c = Connection(SD_URI, user_name=user, user_pass=pw)
#import ipdb; ipdb.set_trace()
c.get_service_document()
assert c.sd ... | [
"liam.kirsh@cern.ch"
] | liam.kirsh@cern.ch |
84672ce35d56a82848c6674ea16400d957344c45 | 46feb53d24d3903158c9881dd8a66ccfd04c1329 | /cone_high_freq.py | caeafcf1ab99d2cac9638a0e8ef21c75ea037f27 | [] | no_license | itoledoc/coneHighFreq | 6aeaa91abd75593bb876e1449b1642f7a5269db7 | 6c8b97a120367334fdb6e8f87fa0a5dbbe16b446 | refs/heads/master | 2021-01-10T10:23:49.091904 | 2015-11-26T20:06:05 | 2015-11-26T20:06:05 | 46,750,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | #!/usr/bin/env python
import calcsens as cs
import longbaseline_cal as lbl
import pandas as pd
import os
import warnings
from optparse import OptionParser
warnings.simplefilter(action="ignore", category=FutureWarning)
if __name__ == "__main__":
parser = OptionParser()
parser.add_option(
"--bw", type=f... | [
"itoledoc@gmail.com"
] | itoledoc@gmail.com |
0d4d5a2018ede36d0a80544b4b0b97a70c2cbf64 | 558a86a0a8cb00866b4015265088701208c91ed0 | /chapter2/ex5.py | c418e1c37cb95f4be8d9a9136c0675c7beccc208 | [] | no_license | jColeChanged/Programming-Collective-Intelligence | 7bbce1a4bfc6374791c4ba73d524ce9605f5714a | 1434e8a4677a5790dc8a1ece65b5dd563a09fe7d | refs/heads/master | 2022-01-22T00:59:39.112720 | 2022-01-13T17:41:57 | 2022-01-13T17:41:57 | 15,484,924 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """
Exercise 5
"""
import pylast
from ex5secrets import API_KEY, API_SECRET, username, password_hash
network = pylast.LastFMNetwork(api_key = API_KEY, api_secret =
API_SECRET, username = username, password_hash = password_hash)
seed_track = network.get_track("Daft Punk", "Get Lucky")
def build_user_list(track):... | [
"jColeChanged@gmail.com"
] | jColeChanged@gmail.com |
40d4f1f0fa84bb7ab6095bd4201aa7c592d7808c | 3937b980585362f488a98a9fa30c8730afc8fd8f | /Analyze_performance-tc-train-data.py | c5beb270086ce6b9082db635ea9676f242543ee9 | [] | no_license | saadiabadi/Convolutional-LSTMs-for-Motion-Forcasting | 02effc6a881c7b8903bbbb511f4cc3b77b3895ca | 17c8329972d281244fdd5a15acef44676b8fe61f | refs/heads/main | 2023-06-09T06:28:15.498488 | 2021-07-05T16:06:23 | 2021-07-05T16:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,366 | py | import tensorflow as tf
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve, roc_auc_score
from tensorflow.keras.preprocessing.image import img_to_array, load_img
import plotly.graph_objects as go
import plotly.express as px
model = keras.model... | [
"noreply@github.com"
] | saadiabadi.noreply@github.com |
b9eec3c420a027dd0b839e06cf7655b8fbdd08e9 | 146fb568cd8d1427bf7afd8a0b2682eeb4fef127 | /ML.py | fcecf46d24e67e9602f0e3d7299bf9ad20476570 | [] | no_license | AiyappaND/automated_music_tagging | 8ecb3e03e2108c986b38347b633718193ca1edc3 | 5956bf463a920c89b63fbbcde90542571cb8e1ca | refs/heads/master | 2020-07-14T10:51:52.029354 | 2017-03-25T09:38:31 | 2017-03-25T09:38:31 | 205,303,997 | 1 | 0 | null | 2019-08-30T04:24:43 | 2019-08-30T04:24:43 | null | UTF-8 | Python | false | false | 5,038 | py | from collections import Counter
from sklearn.ensemble import VotingClassifier
from sklearn.metrics import confusion_matrix
from sklearn.neural_network import MLPClassifier
from Database_connections import getData, getTestData
from sklearn.naive_bayes import GaussianNB
from sklearn.metrics import accuracy_score
from s... | [
"aniruddha.achar@gmail.com"
] | aniruddha.achar@gmail.com |
3b30f04eaf59c5fbf94c07f8f730a49d1f183cce | 53fca43d15ce2271ee3b7a7be30c4467b27c2e67 | /Archive/rootme4.py | 6778a6920c928d4860d9bd49f946c2f9eaea8ba1 | [] | no_license | jeromeksi/ML | 89c1ff0d422c956b4e5d5b86b3aa3d825e8f645b | 450e0a77dbd79ff774c5718f6b01f28ba806b2c1 | refs/heads/master | 2021-02-13T00:07:12.342938 | 2020-03-11T16:44:17 | 2020-03-11T16:44:17 | 244,644,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from PIL import Image
from pytesser import *
im = Image.open('wjNL6.jpg')
text = image_to_string(im)
print(text) | [
"jerome.ksigzkiewiez@cbre.com"
] | jerome.ksigzkiewiez@cbre.com |
39d685f9482325819df2b7826e0f50f2a9136843 | 356acee6e0dc39c8c6cdd8f56fec1180aaebe184 | /python/208ImplementTrie.py | 8afc20c570a0c186f74cf976d122a973acffc881 | [] | no_license | helkey/algorithm | 775a761122ce1c6728295847c73cd771536a15e8 | a88f7507b6135d186d7fa126a5ed95f597affd33 | refs/heads/master | 2021-11-22T14:24:05.091827 | 2021-09-22T21:16:02 | 2021-09-22T21:16:02 | 175,725,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | """ 208. Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods.
https://leetcode.com/problems/implement-trie-prefix-tree/
Faster than 85% of Python submisisons
"""
# from collections import defaultdict
class Trie:
def __init__(self):
""" Initialize your da... | [
"rogerx123@gmail.com"
] | rogerx123@gmail.com |
af62c15b702f615df9f2f6609895f5222fe1b64c | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /docdb_write_f/db-cluster-parameter-group_modify.py | 867226508b9b77c117bf31b7682454987a3cb87b | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.