blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c39a1e707ad70117c53a5a37768619db47602a9a | 9dc9c9750bc614b4be34e0531a0f514fe0fa1591 | /PythonWithMongoDB/create_connection_with_mongodb.py | 70603de6e442ac5434d68eced9095d310e30dc6c | [] | no_license | kanik9/pymongodb_tutorial | 63d197290e55aedce313e40d86faa3e3df9198cd | 027a15f403b93aff141ebb6bfae851ab72386cdd | refs/heads/main | 2023-02-04T08:52:09.649209 | 2020-11-24T17:43:29 | 2020-11-24T17:43:29 | 315,708,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # Importing Library to use
import pymongo as mongo
import json
# Creating the Clint to interact with Databases
def create_connection_with_mongodb_and_database(conn_url, database_name):
my_client = mongo.MongoClient(conn_url)
# Create or find that database is exist or not .
"""
my_db = my_client["... | [
"noreply@github.com"
] | noreply@github.com |
dc7d7bd4394c458890459ebb5803e1455a8b1d35 | c7c99ae19d2699631cdf3631d29c29fce17bb849 | /src/classicfly.py | b6c19db236c209e49744ed4c8dc3b6d0416c351d | [] | no_license | sutharat-aum/web_blong | 63d0807dd63891acc7e9e59a576ab3aaf661865d | 4263f51a2f99c2d1c15b8b722621d76d90c2b078 | refs/heads/master | 2020-03-12T23:04:10.726632 | 2018-04-24T13:34:14 | 2018-04-24T13:34:14 | 130,858,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,092 | py | import re
from textblob.classifiers import NaiveBayesClassifier
train = ''
# raw_test = []
def processTweet(tweet):
tweet = tweet.lower()
tweet = re.sub('((www\.[^\s]+)|(https?://[^\s]+))', 'URL', tweet)
tweet = re.sub('@[^\s]+', 'AT_USER', tweet)
tweet = re.sub('[\s]+', ' ', tweet)
tweet = re.s... | [
"sutharat.aum@gmail.com"
] | sutharat.aum@gmail.com |
f6eee5249d888310e3e43f5e8fa34dbef6e80eeb | 3c1501a7b054b5eb74f69c45ed3d9feaefcafd84 | /posterousq/utils.py | 4a4143b4d3e0bb737e0b7aa5fe5a176af857b5a0 | [] | no_license | andrewwatts/posterousq | 20ce4eec51760b6bdba8838bc3895368ead799fe | eb7f804a3b1bc4efc183ac0a89fd990f8e9eef3e | refs/heads/master | 2016-09-06T06:23:31.360888 | 2010-03-05T22:30:53 | 2010-03-05T22:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py |
from django.db.models.query import QuerySet
from django.db.models import Model
from django.http import HttpResponse
from django.utils import simplejson
from django.utils.functional import Promise
from django.utils.encoding import force_unicode
from django.core import serializers
from django.core.serializers.json impo... | [
"andrewwatts@gmail.com"
] | andrewwatts@gmail.com |
d4da526b1b6a2167f6447cb28620af606f1feff5 | 58f38f1d69d4bfc650ad18e0045c36ae29c9d84a | /Django基础部分代码/chapter03/template_if_demo/template_if_demo/settings.py | 6480e6ae4c0c6464a93e7c33669bcc9dbf62e816 | [] | no_license | zjf201811/DjangoWebProject | 0670c61b89387901089bf67cf2423d9341f69913 | fab15784fb326ba4517951e180418ea54de03afe | refs/heads/master | 2020-04-18T12:03:08.798484 | 2019-05-06T03:59:46 | 2019-05-06T03:59:46 | 167,522,193 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | """
Django settings for template_if_demo project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
imp... | [
"thor201105@163.com"
] | thor201105@163.com |
c036ba3b64da28d622c15f664e00be0812108d6b | 7dea8668ea3bbe6afd37f54ee2e53bde2a13e08f | /.PyCharmCE2017.2/system/python_stubs/-1247972723/_codecs_tw.py | 9512e0dbc8c52d20c43660f371cda6fa0abade65 | [] | no_license | andrei1887/ubuntu | ccc149a64ad305944ba2741d87487e67c6c1ad80 | 6941309f6a782bd38989f6c13387a271b63ebb1a | refs/heads/master | 2021-07-24T09:38:53.242877 | 2017-11-05T13:38:05 | 2017-11-05T13:38:05 | 109,580,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # encoding: utf-8
# module _codecs_tw
# from /usr/lib/python2.7/lib-dynload/_codecs_tw.x86_64-linux-gnu.so
# by generator 1.145
# no doc
# no imports
# functions
def getcodec(*args, **kwargs): # real signature unknown
""" """
pass
# no classes
# variables with complex values
__map_big5 = None # (!) real va... | [
"andrei@naverisk.com"
] | andrei@naverisk.com |
d3dfcb1b2bd2933a3299c0fa3a39355d56245392 | 1bb5f02aecd8776616ce025a1d2de0a333a74ebe | /code/combine_dfs.py | 3cc050448140790e3464955732083788a7da2211 | [] | no_license | zhanghaizhen/projectRiley | 5fc1797e9cd1a75ec6364b25fe62db9e68dcf054 | d227d61b2e944eed03093405ba37e3f28c7122db | refs/heads/master | 2020-02-26T17:37:52.472374 | 2016-01-12T18:31:24 | 2016-01-12T18:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | import pandas as pd
# Files that contain extracted names, summaries, title, industry, location and html
#file_list = ['/Users/lekha/galvanize/capstone/projectRiley/data/withfirstname/withfirstname_holyoke.txt',
# '/Users/lekha/galvanize/capstone/projectRiley/data/withfirstname/withfirstname_utaustin.txt',
# '/Users/le... | [
"lekha.b@gmail.com"
] | lekha.b@gmail.com |
0e12c4c1d236ff6bcd3ab8cc64c14f44a5fe1dda | 32eee26d7747ab272a51e9918a5d2dc1bc10f98b | /src/classic_models/training/data_loader.py | a0b8aa0fbf9a94b169ecf4539bbf07dd73df33e9 | [
"Apache-2.0"
] | permissive | David082/daguan_competition_2021_codes | 5d61ec1c88c0be401212490ad2fc61cb4e5132b3 | b488dbab35d8914bc8f19a086b200ca2418d66f8 | refs/heads/master | 2023-07-26T23:36:53.290387 | 2021-09-13T11:36:16 | 2021-09-13T11:36:16 | 402,744,920 | 0 | 0 | Apache-2.0 | 2021-09-13T11:36:17 | 2021-09-03T11:21:40 | Python | UTF-8 | Python | false | false | 8,865 | py | import os
import copy
import json
import logging
import torch
from torch.utils.data import TensorDataset
from src.classic_models.training.utils import get_labels
logger = logging.getLogger(__name__)
class InputExample(object):
"""
A single training/test example for simple sequence classification.
Args... | [
"michael_wzhu91@163.com"
] | michael_wzhu91@163.com |
1aa7a136ae7cb233d95f19b085d75259a65915db | 133c25681d900c444748e05cb32e50494c56de19 | /pytest/exception/prod.py | 328e35800bca65a72e2b3580e659a323535f6531 | [] | no_license | HemingwayLee/python-cheatsheet | 7381fc1ce56c12689f9f8fd34256d4276bf436e6 | d42d30dd5f4f5b4051ad47805bb87e94bc7ff382 | refs/heads/main | 2023-07-14T08:42:56.781859 | 2021-08-30T07:00:14 | 2021-08-30T07:00:14 | 371,260,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | def foo():
raise IOError("this is IO error")
| [
"coherence0815@gmail.com"
] | coherence0815@gmail.com |
ff3c4eb92f0eb0df4b7a2ee1d381b4347e236670 | 65def97c300a7fcb817c01e07690ddfeb40ca6db | /programmers/programmers_hotel-room.py | 1d384e9d2c43f0100a504fddef30e6d3a357c36d | [] | no_license | ecpark4545/algorithms | 5cbbbc960823a2a7d8dc4dab4c0f0bc2a4eb76f3 | 8e1825e2b78c3897bde813520c1af5608a7c576c | refs/heads/master | 2022-12-14T23:51:42.508986 | 2020-09-03T07:34:05 | 2020-09-03T07:34:05 | 287,707,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | '''
https://programmers.co.kr/learn/courses/30/lessons/64063
'''
def solution_1(k, room_number):
answer = []
reserved_dict = defaultdict(int)
for want in room_number:
if want not in reserved_dict:
reserved_dict[want] = want + 1
answer.append(want)
else:
count = 1
while reserved_dict[want + count]... | [
"ec_park@korea.ac.kr"
] | ec_park@korea.ac.kr |
79a86c86b9951ff21518867f7139769571cc6ac4 | cac2cddf497c345e59fbd688fde85b83174eacb0 | /src/observatorio/policy/config.py | 1e0421da2f26df1c8ed6b5fa7370b4e6717d620c | [] | no_license | observatoriogenero/observatorio.policy | 74ac102ff64180ab09a04e9bd92b29228544109e | 69bbb4e8d90d444c85d9652baa640076a09dd372 | refs/heads/master | 2021-01-20T02:19:06.216489 | 2013-11-06T17:09:45 | 2013-11-06T17:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # -*- coding: utf-8 -*-
PROJECTNAME = 'observatorio.policy'
| [
"gustavolepri@liberiun.com"
] | gustavolepri@liberiun.com |
3718b80b3f210bd3e22c1c5a08f559e56bad00df | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=65/sched.py | c840f1d8aaa51cee48681dfe3e4420cbfb56d305 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | -S 0 -X RUN -Q 0 -L 4 86 250
-S 0 -X RUN -Q 0 -L 4 83 400
-S 0 -X RUN -Q 0 -L 4 72 400
-S 1 -X RUN -Q 1 -L 3 60 300
-S 1 -X RUN -Q 1 -L 3 58 175
-S 2 -X RUN -Q 2 -L 2 55 200
-S 2 -X RUN -Q 2 -L 2 48 200
-S 3 -X RUN -Q 3 -L 1 37 125
-S 3 -X RUN -Q 3 -L 1 31 125
-S 4 30 125
-S 4 26 1... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
5e03884088e7112a4fe74cab90f05bd21fd61391 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping17/StrippingLambdac2PKPiForXSec.py | d220bbc13f2a976b45ccebde6e2a9d69ff4e73dd | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,182 | py | '''
Lambdac cross-section lines
Adapted to current stripping framework by P. Spradlin.
'''
__author__ = ['Francesca Dordei', 'Francesco Dettori', 'Patrick Spradlin']
__date__ = '2010/07/15'
__version__ = '$Revision: 1.3 $'
__all__ = ( 'StrippingLambdac2PKPiForXSecConf',
'makeLambdac2PKPi',
'd... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2ffeb376330c272892f6061346fae16a7fa700ff | 16cf959acf8746bf65e1a74672209aa36645ab9d | /mergesort.py | 7becc7dad9ecf1e143183fd3af5f0ac2b6748b58 | [] | no_license | tlavr/typesnalgos | 5a504092f664b5af50cf74768b0de0a38fbf7179 | 5282b660ac44466ef6998bad5fc1ffa8353b26e3 | refs/heads/master | 2020-08-07T23:55:22.439841 | 2020-03-11T11:55:28 | 2020-03-11T11:55:28 | 213,630,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | def swap(arr, idx1, idx2):
tmp = arr[idx2]
arr[idx2] = arr[idx1]
arr[idx1] = tmp
def KthOrderStatisticsStep(arr, L = 0, R = None, k = 0):
if arr.__len__() == 0:
return None
if R is None:
R = arr.__len__() - 1
idx1 = L
idx2 = R
n = (L + R) // 2
el = arr... | [
"noreply@github.com"
] | noreply@github.com |
3625d474345339f010345b4ccfb5bdf39ed66e76 | 73ba3695936dc866b7b29103908db082e3e45fc8 | /tasks.py | 8bd04b8c083b8ccb702b3fa16ea8332bca75c61e | [
"MIT"
] | permissive | hinnefe2/evetrader | def79c0aee4e8017f5e85b2dc178fc6926322d38 | 2e6046bbdd68ae504c78c7701009e2bb85a2935d | refs/heads/master | 2021-03-27T10:06:20.119441 | 2016-09-10T03:49:24 | 2016-09-10T03:49:24 | 60,986,982 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,914 | py | import os.path
import sqlalchemy as sqla
import luigi
import pandas as pd
import config
from api import get_history, get_orders, get_transactions, process_history_json, process_orders_json
from features import build_all_features
class GetMarketHistory(luigi.Task):
"""Query the market history API endpoint for th... | [
"henry.hinnefeld@gmail.com"
] | henry.hinnefeld@gmail.com |
c34304324556e61ddbfe16ca0851db253ac802fc | 0e02e9bc6686e167b86a442ab708161af9d101db | /Packet Capture/capture.py | 285c87dbcc7740d7afcf8b3de6ff3542ea9916b0 | [] | no_license | ISKU/DataCommunication | b82810e47ff2176c99a49190b6c39ab1c0c3e099 | 25d29bd58cce498646c844ab585eec794e1d6f55 | refs/heads/master | 2020-12-02T20:49:31.612531 | 2016-09-09T19:01:33 | 2016-09-09T19:01:33 | 67,824,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,646 | py | import socket
import struct
import sys
socket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohs(0x003))
def hex2ip(ip):
integer_ip = int(ip, 16)
ip1 = integer_ip >> 24
ip2 = (integer_ip & 0x00ff0000) >> 16
ip3 = (integer_ip & 0x0000ff00) >> 8
ip4 = integer_ip & 0xff
return "%d.%d.%d.%d" % (ip1, ip... | [
"minho1a@hanmail.net"
] | minho1a@hanmail.net |
bce3515e128ef2eab804d6832929194214bb8fba | b92dbc099c816c7c655199ec71d281d21efc5fb4 | /personal/tests.py | ce6618cf4aa69650c7eaf889076c4de74ca71808 | [] | no_license | d00medman/portfolio | 56b24872bc135df1a13a7428e99d12adab5412cf | 848d47be1dbd32481ee73b17b497dbe4d79b2eb9 | refs/heads/master | 2021-01-01T04:14:32.053208 | 2017-07-13T20:14:50 | 2017-07-13T20:14:50 | 97,148,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
# Uses TDD principals discussed in class
# Create your tests here.
| [
"ajmollohan@gmail.com"
] | ajmollohan@gmail.com |
6b051f333d745c18800f9ac74748aaca8268a0b8 | 6edb274840d2ca5f3ed1925ea4df897f5669c597 | /rango/models.py | 751b683f4631b04fd5492ba6a32e39bf5f5a9749 | [] | no_license | germester/tango_with_django_project | 69931914565a9b27d54771d8a6ca5504490162b9 | 2199a0522dba43f60c5120bc84cb8c6ee3b5d839 | refs/heads/main | 2023-03-11T21:25:40.932589 | 2021-02-12T21:28:13 | 2021-02-12T21:28:13 | 329,886,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from django.db import models
from django.template.defaultfilters import slugify
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
views = models.IntegerField(default=0)
likes = models.IntegerField(default=0)
slug = models.SlugField(unique=True)
def save(self, *args... | [
"2472866c@student.gla.ac.uk"
] | 2472866c@student.gla.ac.uk |
470d50e680f818c48ac0f51ed31e23d08ea79daf | cf964b39d118201758460d46fc9dfb820cee0563 | /list_tupletolist_hal246.py | 308c4f85453eac67e28cc1780c2a7239cc69076b | [] | no_license | Jevon211/Python-Exercise | 0808fc9e2763c9f5e44641b81940b0afe874ba9a | aa348fa25e916275d6916c9165e368f464795460 | refs/heads/master | 2020-06-25T19:13:22.892685 | 2019-08-11T07:11:50 | 2019-08-11T07:11:50 | 199,396,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from __future__ import print_function
def main():
# bikin tuplenya
t = (10, 20, 30, 40)
print("t: ", t)
# ini convert tuple ke list
a = list(t)
print("list1: ", a)
if __name__ == '__main__':
main()
| [
"noreply@github.com"
] | noreply@github.com |
53b92a8d4c6b00bffe29318e9e195d30fe5b3c21 | 403ab0d7c905173ea35d364e4df0767d01c774f1 | /io_stream/datasets/msmt.py | 08ec1058fd64873dd0c6c096ff655524cf446a24 | [] | no_license | FlyingRoastDuck/Camera-based-Person-ReID | f97c64eea991b596ba91de8473e179bca4dd246c | 5cade2a02296d424f5e4a437ebb2f5cc05c40e41 | refs/heads/master | 2023-03-16T15:58:23.618650 | 2020-10-26T01:45:44 | 2020-10-26T01:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os.path as osp
from io_stream.data_utils import reorganize_images_by_camera
class MSMT17(object):
"""
MSMT17
Reference:
Wei et al. Person Transfer GAN to Bridge Domain Gap for Person R... | [
"jayzhuang42@gmail.com"
] | jayzhuang42@gmail.com |
be7073d054974518c65d1578f9c255828632c6db | 4d0fdbf6c87b44f8355714689b44872beb26c786 | /Code/Day 51/main.py | 8982cb6ea7fa2cee32802474373a5dc53d3745c7 | [] | no_license | harshit09saini/100-days-of-Python | 8d9db90a3d807e5bf01b508b0a26bc5a0fbd063f | 98408b29d5ad7648bf80172be7a33ef5c2a5c066 | refs/heads/master | 2023-06-30T19:14:00.117945 | 2021-07-16T05:42:24 | 2021-07-16T05:42:24 | 351,406,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py |
from get_internet_speed import GetInternetSpeed
from tweet_speed import Tweet
get_internet_speed = GetInternetSpeed()
get_internet_speed.get_speed()
download_speed = get_internet_speed.download
upload_speed = get_internet_speed.upload
tweet_body = f"hey @excitel_rocks, why is my internet speed {download_speed}down\... | [
"harshit.saini.harshit@gmail.com"
] | harshit.saini.harshit@gmail.com |
46fa44d469fb8d156b8d2b9a221e7fb4071e86e1 | c63800166dabc5de3d15f4fd6a6dc4e401c8455f | /yaya/log.py | 0abd9c382c6be626abab1c6c8112cca188f33401 | [
"MIT"
] | permissive | libyoung/yaya-engine | 53b901eac6dd5dcd93169a3bc17a7a63dd45b92a | 4df4b360ce90bab0e3a62a4ef482c38739b25695 | refs/heads/master | 2021-07-17T21:29:43.735616 | 2017-10-25T08:06:22 | 2017-10-25T08:06:22 | 104,694,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,992 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
##############################
# Create Time: 20170629
# Author: liuyang
# Email: czyang.liu@jrdcom.com
# Content: Log Object
##############################
import logging
from configparser import *
from xmlfile import StrAnalysis
import time
import d... | [
"liuyang@liuyangdeMacBook-Pro.local"
] | liuyang@liuyangdeMacBook-Pro.local |
b6b66a4cef930e66539a9b62c88a7eb8347904bc | 55bcc8b6d5eb2878405f71ad5559cc3c80f5edc9 | /nlpAnylise/nlpctrTwo.py | 30735dfca102be6fd889b08ca03eb4fb2bde0a4d | [
"Apache-2.0"
] | permissive | chenwangwww/ppython | 2989026d5ef6d8a733e8b62ef6d4d7bcd2783b38 | 13a2f1193714133701743bfdf1a8add61a29dd4c | refs/heads/master | 2023-05-03T01:15:01.828534 | 2021-05-13T06:13:55 | 2021-05-13T06:13:55 | 343,254,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,587 | py | #主语
# 谓语
# 宾语
# 主语的定语数组(定语的状语+介宾关系数组)[attStru, ...]
# 宾语的定语数组(定语的状语+介宾关系数组)
# 谓语的状语数组(状语+介宾关系数组) [{'adv': 谓语的状语, 'pob': 介宾关系},...]
# 并列谓语数组(并列谓语的宾语、宾语的定语数组、宾语的定语的状语+介宾关系数组)
# [[并列谓语, 宾语, [attStru, ...]], ...]
# 并列主语数组(并列主语的定语数组、定语的状语+介宾关系数组)
# [[并列主语, [attStru, ...]], ...]
# 并列宾语数组(并列宾语的定语数组、定语的状语+介宾关系数组)
# ---------... | [
"chenwangwww@sina.com"
] | chenwangwww@sina.com |
1b268e34d0e1341c168442e7a0fe514624cddac6 | 5fae1a7ce42bdbc33cbed8aa462efad6706e40d8 | /master_layer/src/master_layer/marker_dropper.py | ca4d462d6636c4003a660e0f98fb49348c8254ea | [
"BSD-3-Clause"
] | permissive | 7ayushgupta/Anahita | 47f1681a4cced0d5d0ddd8d37f2c90127d9de42a | c62185b1b2251f347936b90280983a429baf076f | refs/heads/master | 2020-03-18T18:43:50.682122 | 2019-06-25T12:04:43 | 2019-06-25T12:04:43 | 135,111,324 | 1 | 0 | BSD-3-Clause | 2019-04-20T16:38:12 | 2018-05-28T04:59:53 | C++ | UTF-8 | Python | false | false | 2,008 | py | #!/usr/bin/env python
import rospy
import numpy
from nav_msgs.msg import Odometry
from rospy.numpy_msg import numpy_msg
from geometry_msgs.msg import Point, Pose
from std_msgs.msg import Float32
from master_layer.srv import GoToIncremental
from master_layer.srv import CurrentTask
from master_layer.srv import ChangeO... | [
"7ayushgupta@gmail.com"
] | 7ayushgupta@gmail.com |
94c714cad95f1682d0942b46e9ad2a7be75ee956 | 5292566c30d7c7ae50c6879de5353b5f6b6cf810 | /itsybitsy/itsybitsy.py | 8c6fd5fea95c382bc6d91d34f7445be3ab39a2f1 | [
"Apache-2.0"
] | permissive | MattK360/itsybitsy | d93d99ffb8f08714d95c351bad05057e96a6af97 | b7a8ffeff1f883a3b54a900274bd33247dcb98f8 | refs/heads/master | 2023-06-02T14:06:41.095833 | 2021-01-04T23:52:00 | 2021-01-04T23:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | # Copyright # Copyright 2020 Life360, Inc
# SPDX-License-Identifier: Apache-2.0
__version__ = "1.0.1"
import asyncio
import getpass
import logging
import os
import signal
import sys
from contextlib import contextmanager
from termcolor import colored
from typing import Dict
from . import charlotte, charlotte_web, cli... | [
"patrick@life360.com"
] | patrick@life360.com |
74bd67b7f1b70fbc04b415556b44e401a7d51e95 | 87261940907c08fb3f1002e3472525d73eeb7e94 | /CSFINAL/graph-backEnd/.idea/product.py | cf97d7bda8d4321f9f04409131cbba83452aa736 | [] | no_license | alidete13/graphBackEnd | 04272ae0b800663377f50bf8e59929b5f33b9910 | 58695d49907384e2c74cf8270a2099f03a911957 | refs/heads/master | 2021-01-22T09:40:23.927029 | 2016-12-09T22:50:09 | 2016-12-09T22:50:09 | 76,075,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py |
from google.appengine.ext import ndb
class Product(ndb.Model):
"""A model for representing an Amazon product."""
average_rating = ndb.FloatProperty(indexed=False)
| [
"alidete13@smpanthers.org"
] | alidete13@smpanthers.org |
e8c6ac26b28b903aead049985c91ef28620ad82d | 687afef74eb89e8460704220fce6f5b9b5c9a91b | /PRE_RDP_Daily_Monitor/common/configdb.py | fd262a040385f19a82faf861af54f1f0972250fb | [] | no_license | lili4108/MyPython | fe67e09720d012bf0f734536296ee0cbdd34a62c | 1a80b632b6c788b090e357377e801d43e2bd1da0 | refs/heads/master | 2020-05-02T11:53:53.752586 | 2019-04-11T10:15:09 | 2019-04-11T10:15:09 | 177,943,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,077 | py | import os
import PRE_RDP_Daily_Monitor.common.connectionmanager as cn
from sqlalchemy import Column, Integer, String, DateTime, Boolean, func, PrimaryKeyConstraint, ForeignKey
from sqlalchemy.orm import sessionmaker, aliased, scoped_session
import PRE_RDP_Daily_Monitor.common.DBOperations as DBO
class ConfigHistory(c... | [
"lizi4108@gmail.com"
] | lizi4108@gmail.com |
f987dd1b47f3a8da28cf54648319b64200ae436c | 8a1bf59966d5d0ccf186ddf4531efea507eeeb5a | /tutorials/unittests/python/tests/test_age_group_finder.py | cdca5b51b5b7b78fd0e9352ef31e1234135abe69 | [
"MIT"
] | permissive | Deepthibr28/software-testing | 19061b963d6f82ac19ca4b499e3b29bf1d1a141b | 2c6698056567ebc5326c38c9d8011e982c2271ca | refs/heads/master | 2021-01-21T05:40:31.122862 | 2016-03-11T06:09:31 | 2016-03-11T06:09:31 | 50,257,802 | 0 | 0 | null | 2016-01-23T20:49:49 | 2016-01-23T20:49:49 | null | UTF-8 | Python | false | false | 754 | py | import unittest
from python.src import age_group_finder
class test_age_finder(unittest.TestCase):
def test_baby_age(self):
self.assertEqual('Baby', age_group_finder.find(2))
def test_toddler_age(self):
self.assertEqual('Toddler', age_group_finder.find(5))
def test_children_age(self):
self.assertEqual('Childr... | [
"deeptibr28@gmail.com"
] | deeptibr28@gmail.com |
d2b868e5626dbcb0e17433e45b014d888e1b9829 | d4b3ba0bfed9c5628d60ee8cb92eed1d39ea02bb | /test/spec/bookshop/sqlalchemy/model_to_dict_spec.py | e9e9d3de18f7057d6ccf41e450144096cb97e19a | [
"MIT"
] | permissive | jumblesale/genyrator | f8d6d90489b8fd746a42d4881988a68e04d5d15a | c4429f689e92e8447b0b944e7d9b434f99cae51d | refs/heads/master | 2022-12-26T11:52:41.463621 | 2019-06-20T08:22:43 | 2019-06-20T08:22:43 | 134,235,770 | 1 | 2 | MIT | 2021-06-01T22:27:39 | 2018-05-21T07:44:28 | Python | UTF-8 | Python | false | false | 3,766 | py | import datetime
import uuid
from expects import expect, have_keys, have_key, equal
from mamba import description, it
from sqlalchemy.orm import joinedload
from bookshop import app
from bookshop.sqlalchemy.model import Book, Author, Genre, BookGenre
from bookshop.sqlalchemy.model_to_dict import model_to_dict
from book... | [
"rob@robsollars.co.uk"
] | rob@robsollars.co.uk |
4b72629dfd9d729db00571df36d8ac62c9a7b471 | fd436530dc54c1d83dcf3890d7c7e46abe8a6c57 | /phoneid/forms.py | 92420505a5a1aa1d4895237c503365f020710165 | [] | no_license | umastotra/djangoSite | 1177c1a1e459320f4e5ee0116923e7ec730f30f4 | a48c7b06e33b0a63db0bcefb57d55d2f405a8a2f | refs/heads/master | 2020-03-25T00:45:54.983776 | 2018-08-01T20:59:28 | 2018-08-01T20:59:28 | 143,204,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from django import forms
class ContactPlusForm(forms.Form):
phone_number = forms.CharField(label='Phone Number', max_length=100)
zip = forms.CharField(label='Zip Code', max_length=100)
def clean(self):
cleaned_data = super(ContactPlusForm, self).clean()
phone_number = cleaned_data.get('pho... | [
"udharmapuri@telesign.com"
] | udharmapuri@telesign.com |
9fecafa3dbdfd31c4803d550e55891d559744111 | b4f71525f6651961abb83ff2c18bd6b1074132d4 | /main.py | a4169a5dfc6af10c125449a4d2796eb305cc9b5b | [] | no_license | zach-li-sudo/mapPred | abed79e26130ed9d37c1c04b17a47cd91a9d8a98 | 3af3a1e7f29bd089fafda8216ad15b50f4795877 | refs/heads/master | 2023-09-04T15:54:35.231947 | 2021-11-17T08:09:40 | 2021-11-17T08:09:40 | 427,869,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from gp import *
grid_size = (4, 7)
nums = 45 # number of heat values on each map
l = 300 # length of time series
# np.random.seed(1)
# Asin(0.01* t) + B
params = np.random.random(size=(nums, 2))
list_of_graphs = [heatmap_sequence_generator(i, params, grid_size) for i in range(l)]
gp = GraphPredictor(list... | [
"zhuoli@uvic.ca"
] | zhuoli@uvic.ca |
139c016af7f79462e082b80a92620a5b4400ef75 | 86e1bd3e5819f44f5e89c28399daced9232b4ac4 | /chainervr/models/deep_episodic_memory/deep_episodic_memory.py | 6138b3d28afcd8538f4bb471710ab5a70d53d802 | [
"MIT"
] | permissive | furushchev/chainervr | 3a8f3e44590ddaf667e126443d01473119dda672 | 7a8218c4054d9675bbbc4b3026166cfa5c493d86 | refs/heads/master | 2020-03-22T01:27:58.775031 | 2018-08-20T13:36:59 | 2018-08-20T13:36:59 | 139,307,282 | 7 | 1 | MIT | 2018-08-20T13:37:00 | 2018-07-01T07:01:10 | Python | UTF-8 | Python | false | false | 2,937 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Yuki Furuta <furushchev@jsk.imi.i.u-tokyo.ac.jp>
import chainer
import chainer.links as L
import chainer.functions as F
from .deep_episodic_memory_encoder import DeepEpisodicMemoryEncoder
from .deep_episodic_memory_decoder import DeepEpisodicMemoryDecoder
def ... | [
"furushchev@jsk.imi.i.u-tokyo.ac.jp"
] | furushchev@jsk.imi.i.u-tokyo.ac.jp |
72864e771d6882ba8c4a279bf2f68d846e9e9df1 | 455f47533d1d1f52b18b8f0b57fdb8913ca1ac0a | /Bipedal/VPG/vpg_frame_skip/model_vpg_small.py | 840b968402d4191b5b6d1cf5e5a9c5db43d481de | [] | no_license | guyeresearch/workout-torch-rl | 6880dfd79509ea01d7bed4ed4df2a458af7ef76c | 17a8a4eb528a59a1cd866d8a037671d6f762bf78 | refs/heads/master | 2020-04-30T15:07:38.145017 | 2019-05-07T01:30:11 | 2019-05-07T01:30:11 | 176,911,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import qn
# simple three layers
class Policy(nn.Module):
def __init__(self,dim_in, dim_out, hidden):
super().__init__()
self.fc1 = nn.Linear(dim_in,hidden)
self.fc2 = nn.Linear(hidden,hidd... | [
"113605074@qq.com"
] | 113605074@qq.com |
87f22f8ac5ddfdb3f2b16dac1083b9ea653a103d | 76a8dd0fd18ce9d7a02392ff4e310667a6946738 | /model/generator.py | 3134c01a793641493ad2f3c75eb74021f5109d3b | [] | no_license | foamtsp/CVProject | efda01cf00d02fcd0ead148c6b19f91a23880c13 | 5e1c401c4470e36830a526e7ee4564768c6370d4 | refs/heads/master | 2023-05-04T13:29:14.886064 | 2021-05-16T08:06:36 | 2021-05-16T08:06:36 | 367,810,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | from sconf import Config
import torch
from model.mxfont.models import Generator
from model.mxfont.train import setup_transforms
from model.mxfont.datasets.ttf_utils import render, read_font
from model.mxfont.utils.visualize import refine, normalize
from PIL import Image
import cv2
class FontGenerator:
def __i... | [
"wattanai.tsp@gmail.com"
] | wattanai.tsp@gmail.com |
ec76bb2abe446506c435fe22db9cc6d7e2420e7f | 314db9deb299c407520f59d0fe1cecb809294a0c | /conv.py | d8dce91fb65d91c178ccb76c4a6964bf64e5a43b | [
"MIT"
] | permissive | nicklashansen/deep-rl-algos | 1ea15c0429a59bd2e2e1b80f4835e91d7109541e | 265cd619db9110fb54e4ecae2186e70b1c1beab2 | refs/heads/master | 2020-08-14T08:07:25.317913 | 2019-10-14T19:59:08 | 2019-10-14T19:59:08 | 215,128,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | import torch.nn.functional as F
import torch.nn as nn
import random
import torch
import numpy as np
import gym
from collections import namedtuple
from agent import Agent, ReplayMemory, BATCH_SIZE, CUDA
class Conv(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size=3, dilation=1, strid... | [
"noreply@github.com"
] | noreply@github.com |
55dafea1e9e56d054351df240e5c585c6cf4354a | 173f168911999e6ceb7a7b12259e8440f1b9ed84 | /liuyanban.py | 9e741175350170d46b05b9839245ea9878f80ef9 | [] | no_license | MOOOWOOO/20160717-liuyanban | 1390d5d355f5472773cab913a05e8bce747636fd | 24f1e51608a95f1e0491a51f242e0819155a8c03 | refs/heads/master | 2021-01-20T19:30:50.398086 | 2016-07-16T18:28:49 | 2016-07-16T18:28:49 | 63,496,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # coding: utf-8
from flask import Flask
from flask import render_template
from flask import request
from flask import url_for
from flask import redirect
from model import Message
__author__ = 'Jux.Liu'
app = Flask(__name__)
@app.route('/')
def index_view():
message_list = Message.query.all()
return render... | [
"mooowooo@live.com"
] | mooowooo@live.com |
6d6a2403551a8048bc3395207f1f2226c216078c | 309c4de9123cda303433033698088e62194a2411 | /style_transfer_geisel.py | 8cdf499f1cf7f48b2afa20c212aa64b9167bab6a | [] | no_license | Qian1900/Style-Transfer | bb1ae6f0ee8750035a6913c602a8ab758161e8ac | 85c2ba807c8729f4a8f8ffa82aed9339a573dbe9 | refs/heads/master | 2020-05-26T17:18:51.056850 | 2019-06-09T22:07:38 | 2019-06-09T22:07:38 | 188,316,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,600 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from PIL import Image
import matplotlib.pyplot as plt
import torchvision.transforms as transforms
import torchvision.models as models
... | [
"noreply@github.com"
] | noreply@github.com |
0d95438b7cd9fa2216455676c233da0d40676533 | 280dee3aa31737800c58adaf5c7c1e61dd58e8b2 | /venv/Lib/site-packages/rope/refactor/occurrences.py | b27e74bf9f1a0e7edca57830f479c0bea45d3979 | [
"MIT"
] | permissive | Dharian/pythonProject | c30c8e23170afe122ae1c1e7d28baaa630c1e64f | 262d2b58d99befe668d29198bb28c98b75597a34 | refs/heads/master | 2022-12-17T01:07:51.891027 | 2020-08-27T16:36:55 | 2020-08-27T16:36:55 | 290,271,784 | 0 | 0 | MIT | 2020-08-27T16:36:56 | 2020-08-25T16:53:48 | Python | UTF-8 | Python | false | false | 13,372 | py | """Find occurrences of a name in a project.
This module consists of a `Finder` that finds all occurrences of a name
in a project. The `Finder.find_occurrences()` method is a generator that
yields `Occurrence` instances for each occurrence of the name. To create
a `Finder` object, use the `create_finder()` function:
... | [
"dopi.xd2@gmail.com"
] | dopi.xd2@gmail.com |
40467e57945cf6b7eff3126b918c239ddbaab55b | 57556239a34c23e294782ad03685a0826c8dec09 | /tictactoe.py | 9893ac03fd08636469d851d480c1e90664d5b79a | [] | no_license | tuliorc/tictactoe | 0af947ce944bb4c433288ae67226da4307a44958 | d96714979fe9a3563e8d8af45cc9e19f857762cf | refs/heads/master | 2021-07-15T03:42:19.788113 | 2017-10-22T14:26:31 | 2017-10-22T14:31:21 | 106,948,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,518 | py | import os
def print_board():
os.system('clear') # clears terminal from previous printed rounds
print(
" {n1} | {n2} | {n3} \n___|___|___\n {n4} | {n5} | {n6} \n___|___|___"
"\n {n7} | {n8} | {n9} \n | | ".format(n1=moves[1], n2=moves[2],
... | [
"trcarreira@gmail.com"
] | trcarreira@gmail.com |
99feea88e682c76d1322a1080ecae1c1df0c0d96 | dfa44974e206b7fd694c80dc5d61ab4f491740ae | /mpdr/src/testing/reading_encoder.py | 6a69b6a7c4fa703dcea9e251e44cd694a9b66b8f | [] | no_license | spencer-bain/Mobile-Robot-Package-Delivery | 9dbac5c5298c28303bbd30fdd969100105741be9 | 84ecdc4b1ded7c8103a1bbe4f00f351ccefe6c29 | refs/heads/main | 2023-05-07T11:25:06.051352 | 2021-05-17T21:24:05 | 2021-05-17T21:24:05 | 304,912,694 | 3 | 3 | null | 2021-05-03T18:45:06 | 2020-10-17T15:49:02 | Python | UTF-8 | Python | false | false | 4,167 | py | #!/usr/bin/env python3
#import rospy
#from nav_msgs.msg import Odometry
import spidev
import time
def encoder_node():
#TODO
#initiate node
pub = rospy.Publisher('odom',Odometry, queue_size=10)
rospy.init_node('encoders', anonymous=True)
rate = rospy.Rate(100)
#initial spi
lw_spi = spidev... | [
"noreply@github.com"
] | noreply@github.com |
79daec963e10fb204d7c5820ecf5dfa742767c35 | 208bc8b87cb20fc6e57c8c8846cbe947b2eec1f3 | /pyocd/core/memory_interface.py | 0bd655b77628999f3cd190bde3c656e1c7f96830 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | canerbulduk/pyOCD | 28c545f25ef9b2949a1cd49c00faeeda986a26fe | a61e8b8dc2050309510d9fe7ca63680aafe06749 | refs/heads/main | 2023-08-24T21:10:52.427697 | 2021-11-09T15:13:48 | 2021-11-09T15:13:48 | 426,275,463 | 0 | 0 | Apache-2.0 | 2021-11-09T15:08:22 | 2021-11-09T15:08:21 | null | UTF-8 | Python | false | false | 4,837 | py | # pyOCD debugger
# Copyright (c) 2018-2020 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"flit@me.com"
] | flit@me.com |
75738732f1f444b4a8f55db79e8378fbee80e1dc | 46577285b990bb2711cc718b99a24f78c53a7da7 | /파이썬 알고리즘_4기/자물쇠와 열쇠 사본/solution.py | 2f4518155d216a95b0238d57febf454450496e5c | [] | no_license | suwonraison900206/TIL | 890f02ff768c3a7d6ed647a27ba8da96b0cc06b4 | 2153623238bcc6965ec6983df9e7b207cc5aa361 | refs/heads/master | 2022-06-08T09:51:12.289608 | 2022-05-18T12:04:56 | 2022-05-18T12:04:56 | 235,004,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | def solution(key, lock):
answer = True
def turn_key(key):
key_lst = []
for i in range(len(key)):
a = []
for j in range(len(key)-1, -1, -1):
a.append(key[j][i])
key_lst.append(a)
return key_lst
lst = [[0] * (len(lock) * 3) for __ i... | [
"suwonraison@gmail.com"
] | suwonraison@gmail.com |
a22a36a6b679da7be87f38609da3f308a1fa91f1 | 977047c9315c1b85114865dc0eb58621feaf3abc | /django/manage.py | 5c10d914a4b1f5d804744b1770c6063b1154d820 | [] | no_license | ryuckel/docker_sample | 2e77e1c7b60a214f1f7db298164808106d3f5c20 | 030209baa6e82639c8878c638e11782aef9ce7ee | refs/heads/master | 2023-01-24T08:45:22.729621 | 2020-06-05T16:18:36 | 2020-06-05T16:18:36 | 225,552,378 | 0 | 0 | null | 2023-01-18T18:31:09 | 2019-12-03T06:59:18 | Ruby | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "examplej.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"bluce826@gmail.com"
] | bluce826@gmail.com |
8a959508ac26b15b9743881b4fc9a3c679b92d05 | 7c71bc54f4c3e6ea6d4219b2a0d9363eac74e329 | /py/pe/pe15.py | 0b71988e9fe2e9d27c15bea6b6426c1a2b421dcb | [
"MIT"
] | permissive | kittttttan/pe | e417d463bd25cdf4f80b58f75a896fdc3d32e48c | 6f87e4527793198c393700fedbdd52274fec5b44 | refs/heads/master | 2023-03-18T04:57:38.010714 | 2021-08-14T07:45:56 | 2021-08-14T07:45:56 | 8,831,387 | 0 | 1 | MIT | 2023-03-06T08:21:49 | 2013-03-17T07:30:51 | Python | UTF-8 | Python | false | false | 766 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Starting in the top left corner in a 20 by 20 grid,
how many routes are there to the bottom right corner?
"""
from utils import perm
from math import factorial
def pe15(m=20, n=20):
"""
>>> pe15()
137846528820
"""
# return factorial(m + n) // (fac... | [
"kittttttan@gmail.com"
] | kittttttan@gmail.com |
dc8f36a37ca8b86ce5242b25f7bab8a669a0c4dd | c22502ea764b5be1e7025a2e3d10ff24cbf284ed | /python_word.py | b1d78ecf234e40a23255fca454b7385273dd9758 | [] | no_license | lineway/lagouSpider | d594a93a567d8045c2c4511f598f9096ff18d381 | 0a73dba45c59cb72a3a5414cce4eb2cdb4831511 | refs/heads/master | 2021-05-07T02:02:47.839485 | 2017-11-15T13:47:07 | 2017-11-15T13:47:07 | 110,400,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import pymongo
import matplotlib.pyplot as plt
from wordcloud import WordCloud
import jieba
conn = pymongo.MongoClient('localhost', 27017)
db = conn.pythonweb_db
work_detail = db.work_detail
def write_file():
result = work_detail.find({})
with open('description.txt', 'w') as fp:
for i in result:
... | [
"zhangyiming07@163.com"
] | zhangyiming07@163.com |
89673a5966ae7356ef9eff43e2a87a6420672288 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/3/ising2d_microstates_run_20200506001321.py | 7e09e413f76c69e16147063ce74e71d6947cc7bc | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | from ising2d_microstates import *
################################################################################################
# PANEL DE CONTROL
################################################################################################
# Decide si corre algoritmo matrix squaring con aproximación de trotte... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
d54083b4d23bce17493d6e82f87530d70b70deb7 | 448e8c733221a5cc8fc5156e61bae841e30bf8ee | /empleado/urls.py | a21a2d0ae51c6e8c9e523619425b15bd6eb1e329 | [] | no_license | Jorge-Infante/Gestion_de_empleados_django | d2491526a995dfce39620301db40e03b1ca9838c | 67e29cdb6dd79d1ce41b3441696d31f2916c9973 | refs/heads/master | 2022-12-26T21:34:45.541052 | 2020-10-12T05:31:49 | 2020-10-12T05:31:49 | 302,495,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | """empleado 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-base... | [
"56237414+Jorge-Infante@users.noreply.github.com"
] | 56237414+Jorge-Infante@users.noreply.github.com |
5deca38bf8f3bda98b778ce5b8c2f2303750125d | a096dbc62e83530806b5398b53a1b54fb224ec71 | /8960 - Naive String Matching.py | 8564e4f21d44634e84f323247e9cf9236b97f2d9 | [
"Apache-2.0"
] | permissive | Candida18/Analysis-Of-Algorithms | 718e400d7b93580f5d4cf3c72e6107319c59ab1f | 92d8dd14a7d802c78d32e484c13fa4f6c8130396 | refs/heads/main | 2023-05-16T19:27:43.849582 | 2021-06-06T05:32:15 | 2021-06-06T05:32:15 | 362,466,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | """
/**********************************************************************************************************
NAME: CANDIDA RUTH NORONHA
CLASS: SE COMPS B
ROLL NO. : 8960
BATCH: C
TITLE: NAIVE STRING MATCHING
SUBMISSION DATE : 9th MAY, 2021
*********************************************************************... | [
"noreply@github.com"
] | noreply@github.com |
ba8f3c519d50faada4502a86a9bb4160e55d7746 | 49ce4b5f030bfca512635d9bab2ff52a0d42bb69 | /problem004.py | 976a7665f040b35225512a6761ec7fb40873fa25 | [] | no_license | aristotle333/ProjectEuler | 2931002b916802b29ada82b12c852c9a0df48f72 | e557a309b977b613c72cba2286a415827e0c65e3 | refs/heads/master | 2021-01-01T16:44:11.068576 | 2017-07-21T21:16:29 | 2017-07-21T21:16:29 | 97,906,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | '''
Problem 4
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers.
'''
# Returns the largest palindrome from the product of 3-digit numbers
def largestPalindrome(... | [
"leventid@umich.edu"
] | leventid@umich.edu |
e138d4cd15873c8cd7842deebeb5b7de661c466a | 34b9b39442bde1a3c8fa670ef60bcc84d772a067 | /Assignment 1_Deadline 26 Sept 2017/assignment1_step2_Genco.py | 33c73a5c7916d648c911af0a9973152d0dc85762 | [] | no_license | bnajafi/Scientific_Python_Assignments_POLIMI_EETBS | b398fc2754b843d63cd06d517235c16177a87dcf | 8da926e995dcaf02a297c6bb2f3120c49d6d63da | refs/heads/master | 2021-05-07T22:36:14.715936 | 2018-01-16T21:12:33 | 2018-01-16T21:12:33 | 107,265,075 | 38 | 86 | null | 2018-01-16T21:12:34 | 2017-10-17T12:24:04 | Python | UTF-8 | Python | false | false | 1,709 | py | H = 3 #height of the wall
W = 5 #width of the wall
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = float (raw_input("enter the thermal conductivity of the foam in W... | [
"federico.genco01@gmail.com"
] | federico.genco01@gmail.com |
4e6f0f52afbe2c0106b199ea0013a23f1f037b70 | 0cce795aa27dad904532d7d8c42fc19f17b09c9f | /omrsynth/_sandbox/offsetsynth.py | 2d69ad4fb0695d821793efc79b31075a8f1f400b | [
"Apache-2.0"
] | permissive | novotnj3/OMRSynth | 3c39231ac3d689792c1c239dac8818908d421b6e | 78e67c1be4205d6b72d3e152b68a9a5d033874f5 | refs/heads/master | 2021-01-11T01:55:04.366066 | 2017-10-16T19:37:37 | 2017-10-16T19:39:36 | 70,836,007 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,885 | py | import logging
import numba
import numpy as np
import skimage.color
import skimage.io
import skimage.util
import omrsynth.util.hilbert as hilbert
import omrsynth.util.io as io
class OffsetSynth(object):
_quantized_colors = 256
_sim_colors = 16
def __init__(self):
# Fill default synthesizer param... | [
"novotnj3@gmail.com"
] | novotnj3@gmail.com |
65ac4195a5a3a9edf018eb3a67a7ce8033813f0e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/Wellfleet-TI-RUI-MIB.py | 4cb13fe3eac166af78ef58402f7f017088e83a71 | [
"Apache-2.0"
] | 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 | 3,080 | py | #
# PySNMP MIB module Wellfleet-TI-RUI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-TI-RUI-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:35:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
5dbca4f77abbcf27decc3fc2b15a7295c0496a74 | 7fae23d734356d2016f13f231673ee9ea1b6efd5 | /catkin_ws/devel/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkState.py | f4f9e09cc9915ae8a183933b57272e86be88a698 | [] | no_license | Tidu09/Eyantra | 57c4fd01a39305ff01758ed021643d894e61e60f | 2bca1cdce1742e79f1550b832cda086dc22e946f | refs/heads/main | 2023-01-12T07:57:54.356909 | 2020-11-22T05:41:40 | 2020-11-22T05:41:40 | 306,226,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | /home/tidu/catkin_ws/devel/.private/gazebo_msgs/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkState.py | [
"uditsharma.2000@gmail.com"
] | uditsharma.2000@gmail.com |
bfd99852e69fe7ffaa50887a79dd2443937aae29 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Books/CrackingtheCodingInterview/1708_CircusTowerLCCI.py | e0a049aefcf9028bc196ec5e00e061eeb6f66683 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | """
有个马戏团正在设计叠罗汉的表演节目,一个人要站在另一人的肩膀上。出于实际和美观的考虑,在上面的人要比下面的人矮一点且轻一点。已知马戏团每个人的身高和体重,请编写代码计算叠罗汉最多能叠几个人。
示例:
输入:height = [65,70,56,75,60,68] weight = [100,150,90,190,95,110]
输出:6
解释:从上往下数,叠罗汉最多能叠 6 层:(56,90), (60,95), (65,100), (68,110), (70,150), (75,190)
提示:
height.length == weight.length <= 10000
来源:力扣(LeetCode)
链接:h... | [
"here0009@163.com"
] | here0009@163.com |
98ed171b8045bd058cf9da49c1655a00ebb83c31 | e4e717001a48ba9fe1ca79755d2e2d2c0cd30f7d | /5itest/read_imageTrue.py | 37e7ddd240a18d93a31d60312f8566b37a8ce9f8 | [] | no_license | Liyw-beep/PythonCode | 89acfe60a83ee0b5970857b18a13acf6badc9236 | 50b621f36471243eb9af7f973ca738f80523bfa6 | refs/heads/master | 2023-02-10T13:18:00.246852 | 2020-12-29T15:43:12 | 2020-12-29T15:43:12 | 324,068,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # 读取并识别验证码
# 调取第三方的api,读取不规则的验证码图片
import requests
import pytesseract
from PIL import Image
from ShowapiRequest import ShowapiRequest
# 识别图片验证码是属于【识别 英数-文件】,对应的是“http://route.showapi.com/184-4”地址
r = ShowapiRequest("http://route.showapi.com/184-4","359461","973cb85f8d50466ba8a11bf5bcb8835d" )
# r.addBodyPara("img_bas... | [
"liyw8788@163.com"
] | liyw8788@163.com |
35a54d60d1d4ccb5b97ae33ae83498cd19510e89 | ac913fcf7b4bf531126a84313a32b7de6f4b63d7 | /locallibrary/settings.py | e0a6ae74c6823b4c54a0059d178d4479d61e62d4 | [] | no_license | JaiJun/Django-MDN-Tutorial | 3fd9f3d996d6ddf12a862d238738046c47efba59 | 54c11737df70741b2a9df7c316f6c58a408658ff | refs/heads/master | 2023-04-19T08:47:15.355292 | 2021-05-03T14:41:36 | 2021-05-03T14:41:36 | 363,960,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for locallibrary project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"a24568771@gmail.com"
] | a24568771@gmail.com |
9075dd1014f657925ce2124e438848edeafc5986 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/inbound_nat_pool/_create.py | d0545878bf25bb35ef2c3afc23da82bba846e82e | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 121,667 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
80e996a133ff17d7370aa89e7ef381bddcc31707 | 5c4fd3210a5ee0563cfcd9664d8e1c4c1790b41d | /CNN_2D_1.4.py | 78f6b932195a095803a4ac2a721d028b8d939f45 | [] | no_license | sakhawath19/MIMO-detectors | 655da60c05d07b14333535b55318cd3b9bd905bf | d919f7c39830edfab5dd9cd4c61e41579242e398 | refs/heads/master | 2022-04-08T18:05:18.630365 | 2019-12-17T14:40:20 | 2019-12-17T14:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,122 | py |
'''................................................................................'''
import tensorflow as tf
import numpy as np
import pandas as pd
import time as tm
#from tensorflow.contrib.data import Iterator
from tensorflow.python.framework import dtypes
from tensorflow.python.framework.ops import conver... | [
"noreply@github.com"
] | noreply@github.com |
669f9b8d4e6ac445e4fb3282b928617be4215830 | 774fc1838b0e22ad89c2517d51dba0f4e3393949 | /Python101/Challenges/27.py | 3991f5cacaa8c87bb9cd37be3412b49c3fea57f6 | [
"Apache-2.0"
] | permissive | Yuma-Tsushima07/Python101 | 119e22cf69fceaa3b67a8b92b258d4bffb4bd64b | 2f1146f9c30914516fe5152a96779d98c2da9923 | refs/heads/main | 2023-05-06T19:19:48.568583 | 2021-06-04T16:59:42 | 2021-06-04T16:59:42 | 347,919,904 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | print("Challenge 27: WAF program to find the number of notes (Sample of notes: 10, 20, 50, 100, 200 and 500 ) against a given amount.")
def notes(a):
Q = [500, 200, 100, 50, 20, 10]
x = 0
for i in range(6):
q = Q[i]
x += int(a / q)
a = int(a % q)
if a > 0:
x = -1
return x
print(notes(880))
pr... | [
"63207324+Yuma-Tsushima07@users.noreply.github.com"
] | 63207324+Yuma-Tsushima07@users.noreply.github.com |
e0e9a5bebabcf4c0462a99d5fe63dfe203ebb11f | 8b46f0afd133e001686014582a7cf2efa9b2ae3b | /challanges/fifo_animal_shelter/fifo_animal_shelter.py | 156226c8630944ef1a43290e5d7f33e4b23bf005 | [
"MIT"
] | permissive | Patricia888/data-structures-and-algorithms | f6af0e88e7445062b8881bfd88783c88dcb546c6 | 8963acf857b9f7069eeeea2884b41376986c3d7c | refs/heads/master | 2018-09-07T17:30:48.099569 | 2018-07-30T23:40:30 | 2018-07-30T23:40:30 | 126,067,848 | 0 | 0 | MIT | 2018-05-15T02:08:32 | 2018-03-20T18:55:49 | Python | UTF-8 | Python | false | false | 1,633 | py | from .node import Node
class AnimalShelter:
def __init__(self, iterable=[]):
self.front = None
self.back = None
self._size = 0
if type(iterable) is not list:
raise TypeError('Invalid iterable')
for item in iterable:
self.enqueue(item)
def __repr... | [
"praftery8@gmail.com"
] | praftery8@gmail.com |
1d2f98b06a8591e290b45a95a985a1b7fdf78d10 | dfb7cea1a1875b36f9689d781fe2cf866957cc5c | /soldajustica/app/apps.py | 5e0ac44b8d7de4e551668e25e925c4d62e17ef2a | [
"MIT",
"Apache-2.0"
] | permissive | patrickporto/soldajustica | e1c84dfe636278109812dd5022c5787c94f437b3 | 191299012a8142c8d1c073f025a2ff2d1a2d267c | refs/heads/master | 2021-01-10T05:25:33.810919 | 2015-06-19T04:31:11 | 2015-06-19T04:31:11 | 36,825,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.apps import AppConfig
class PortalAppConfig(AppConfig):
name = 'app'
verbose_name = 'Portal' | [
"patrick.porto@concretesolutions.com.br"
] | patrick.porto@concretesolutions.com.br |
e91d18f44e943d4a0ee3da01b7b4e72486aa9e44 | 8842b6c16785c142dac9ccc2ffc3b449de048106 | /bin/data_cli.py | b12e8258c081b0a2921a67e18096251a1f416b27 | [] | no_license | JerBushau/mst_web_scrape | 05e05b190ca31eb065390e5dad7074d45e8adb98 | 739200f97c6a1bd6f9d16cd65264ccc1a719d7c8 | refs/heads/master | 2021-08-26T08:12:31.562138 | 2017-11-22T11:52:11 | 2017-11-22T11:52:11 | 105,015,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | """
Quick and simple CLI application to interact with the data collected by collect_mst3k_data.py
You must first run main.py to create you mst3k.json in order to use this CLI tool.
"""
import json
import random
def get_season():
"""Get season from user input"""
while True:
try:
season = ... | [
"exjerlock@hotmail.com"
] | exjerlock@hotmail.com |
103da40cbb391b6592cac3e559ff96bfbd0bcadf | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7_clickhouse/bluedon/bdwafd/newscantools/plugins/ChckDeadLinksScript.py | 624b61e9bc42c1fa2dd55d579de07834790dac83 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
import httplib2
import urlparse
import re
def run_url(http,ob,item):
try:
result=[]
url=item['url']
detail=u''
detail=detail.encode('utf8')
parse=urlparse.urlparse(url)
path=parse.path
if p... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
c036fa21adb1ab28be1434c031455509b869106b | de2ca48411209e9ce77dcfe5343e5b523b16ea8f | /TankyOffline.py | 0c8ad8a745b4bdd68d4eea8cac102b3b13d95f48 | [] | no_license | jas6zhang/TankyOffline | f99979b5ec2517507691c2147882dc756d6cdb94 | 4b399326fd323f9bd2d3134bcd2bdce19e23eb94 | refs/heads/main | 2023-01-19T12:06:22.121690 | 2020-12-04T22:44:49 | 2020-12-04T22:44:49 | 318,651,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | from pygame import *
from math import *
from playerControl import *
from projectile import *
from mapGen import *
from SpriteSheets import *
import os
os.environ['SDL_VIDEO_CENTERED'] = '1'
init()
running = True
screen = display.set_mode((1024,704))
clock = time.Clock()
world = gameMap(0,0,1024,7... | [
"noreply@github.com"
] | noreply@github.com |
094d8a0f4efce47b699633fee9386616a913a939 | 2383d66fec2babadad643c21fbd4acb5405c41ad | /dr/envs/driver.py | 7e5a9253ddfcc2f18d09eb39d6e7f8ef7e45b8f4 | [
"MIT"
] | permissive | jigangkim/domain_randomization | a39c279e0ec38e4cff36489c45139158d03245f3 | 07a309a9e824b5332219871abe8f0f657694b292 | refs/heads/master | 2022-04-26T18:09:19.067805 | 2020-03-30T13:27:07 | 2020-03-30T13:27:07 | 260,463,653 | 0 | 0 | MIT | 2020-05-01T13:18:25 | 2020-05-01T13:18:24 | null | UTF-8 | Python | false | false | 298 | py | from abc import ABCMeta, abstractmethod
class Driver(object, metaclass=ABCMeta):
def __init__(self, backend):
self.backend = backend
@abstractmethod
def get_parameters(self, env):
pass
@abstractmethod
def set_parameters(self, env, parameters):
pass
| [
"quan.vuong@nyu.edu"
] | quan.vuong@nyu.edu |
b6d34ca1a27774ce0a0b8b9e4cfd64aadcb5a6b6 | c9210fb40962f6d307cecb39be4286174f007ba0 | /which_day_v3.0.py | a9396f595399a0485a6f44a2e16c081b43016ab2 | [] | no_license | sunshine-mtt/Selenium | e3a10ea7f68d7e07afbc2736fa2c3b78a0be431e | 2c14ba52036031726e14637c3808420e2513eade | refs/heads/master | 2020-06-19T18:06:50.903210 | 2019-07-14T09:25:04 | 2019-07-14T09:25:04 | 196,814,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | """
作者:sunshine
功能:输入日期,显示其是一年中第几天
版本:2.0
1.0 输入日期,显示其是一年中第几天
2.0 将元组改为列表
3.0 将列表改为set无序集合
"""
from datetime import datetime
def leap_year(year):
# 判断是平年还是闰年
is_leap_year = False
if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0):
is_leap_year = True
retur... | [
"noreply@github.com"
] | noreply@github.com |
59e253422d7c2fbdb0f6c2206e07f988f016678a | 674386c404793a9d0c8295a29849857e8740f792 | /plot.py | 50ffc148e306a1730ca22d155c4191a7fdac52cd | [] | no_license | haruka0000/WebApp_by_Tornado | 225ee22c6183d5b9b9f0e7b27c7dc6ab27587e05 | 55a4faeb23aefa02e216f4e4745d3661c8e66352 | refs/heads/master | 2022-12-25T01:47:15.544209 | 2019-01-14T13:13:27 | 2019-01-14T13:13:27 | 165,650,098 | 0 | 0 | null | 2022-12-08T01:32:16 | 2019-01-14T11:30:51 | Python | UTF-8 | Python | false | false | 303 | py | import plotly
import plotly.graph_objs as go
def graph_01():
plot_obj = plotly.offline.plot({
"data": [go.Scatter(x=[1, 2, 3, 4], y=[4, 5, 2, 8])],
"layout": go.Layout(title="hello world"),
}, auto_open=False, output_type="div")
return plot_obj
| [
"h173335@edu.tut.ac.jp"
] | h173335@edu.tut.ac.jp |
f11fe1d0875462a37306fdcc12879f35057e5766 | 2631a2d6c3cf20522d772eb8e12b0d510cf20e5c | /wolf_country_l.py | 4ce69f5ab2dd744ac9848e4698310de96c9695a8 | [] | no_license | albas3216/wolf | 3073f4eb75467606284bf47ecb750a6ca71284dc | 909edad1ddd926ed31275b7d2c41227ea4890ff6 | refs/heads/master | 2022-12-20T20:22:38.166873 | 2020-09-29T13:55:11 | 2020-09-29T13:55:11 | 299,629,213 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,022 | py | #!/usr/bin/env python3
import requests
import json
import os.path
import sys
import pyproj
from functools import partial
from shapely.geometry import Point, Polygon, MultiPolygon
# Координаты волков
URLWOLF = 'http://riistahavainnot.fi/json/grid?bbox=-1176112,6272256,2076112,8127744'
# Координаты страны
URLCOUNTRY =... | [
"albas3216@yandex.ru"
] | albas3216@yandex.ru |
65dbd0c5c06edcb8fe4c9ae8ccd5cc9a10b7b849 | 70234806d109dc17bc7196dc11668009d1dec470 | /awscda/s05-l46+47-serverless-polly/get_posts.py | 5146d88f4665c04a0a0be544d8e46502eb1ee9e4 | [] | no_license | jlucktay/terraform-workbench | dd21e88620003896c2386f07251a031a69527a96 | aec7e8d88757785c1490435cf9334c1f25085456 | refs/heads/master | 2021-07-22T03:48:54.334592 | 2020-04-30T16:06:11 | 2020-04-30T16:06:11 | 153,442,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | import boto3
import os
from boto3.dynamodb.conditions import Key, Attr
def lambda_handler(event, context):
postId = event["postId"]
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table(os.environ['DB_TABLE_NAME'])
if postId == "*":
items = table.scan()
else:
items = table.... | [
"james.lucktaylor@cloudreach.com"
] | james.lucktaylor@cloudreach.com |
28e72ce0826469ac7fdc1aa38385860df85b39d2 | ccb2b37439729ac850bef86cab92fca6dc2ce137 | /sentiment-analysis-master/src/data/make-dataset.py | fd3ca843a52452440403443176b08141d02fec1a | [] | no_license | matthewlyf/sentiment-analysis | afeb63cf003b932f1a2898327d958a2e9c015880 | 8f868dfc697c9832c570a2c958ba4c5c75b36509 | refs/heads/master | 2022-10-21T11:40:09.898750 | 2020-06-18T00:38:27 | 2020-06-18T00:38:27 | 237,051,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,366 | py | #Initialise Database + Reddit
import os
from dotenv import load_dotenv, find_dotenv
#Step 1: find .env automagically by walking up directories until it's found
dotenv_path = find_dotenv()
#Step 2: load up the entries as environment variables
load_dotenv(dotenv_path)
database_url = os.getenv("DATABASE_URL")... | [
"noreply@github.com"
] | noreply@github.com |
9b5c78e2e6d4af962a6987739c9d3e2096a2b5a0 | 525217ef49151e5ee4939bdb52fc17372426b72f | /app_users/migrations/0004_auto_20201211_1453.py | 31d01a5a291f9078e8e9ccef15849d33fbd40237 | [] | no_license | coldwhiskeyman/blog | e0f4682525349aa14e9fe54053a2da68df2ce6e3 | a6be6b0c53a15bc8a4f4ab97464cc106f98cbe43 | refs/heads/main | 2023-03-04T16:35:47.343198 | 2021-02-11T17:18:17 | 2021-02-11T17:39:56 | 338,098,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Generated by Django 2.2 on 2020-12-11 11:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_users', '0003_avatar'),
]
operations = [
migrations.AlterField(
... | [
"eldiablo5783@gmail.com"
] | eldiablo5783@gmail.com |
f16744f50e18e59f1326b83f02cb864a6192f983 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4137/codes/1836_2604.py | 2d39fb44f590d1ffec7a63f648064058d2d0a792 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from numpy import*
from numpy.linalg import*
n = array(eval(input("Pagamentos:")))
for i in range(shape(n)[0]):
print(max(n[i]))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c3b158bb28631718a97c8775c810d7f2c682acce | e28c747aa859e18246109be06cb1b4697fab9aac | /setup.py | 4e00e43f62c527854d090988b25b47adb48a2bcf | [
"Apache-2.0"
] | permissive | mwacaan/direct | 0a28322cb48fb690e96783d628772af034a238d6 | 1180201478e3c1a02c764ce3e987c8b51320bb27 | refs/heads/master | 2023-01-15T08:47:26.538752 | 2020-11-23T20:22:23 | 2020-11-23T20:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | #!/usr/bin/env python
"""The setup script."""
import ast
with open("direct/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
version = ast.parse(line).body[0].value.s # type: ignore
break
from setuptools import setup, find_packages
with open("README.md") as r... | [
"jonasteuwen@gmail.com"
] | jonasteuwen@gmail.com |
5cb01c05221174a919960232eb3fdbabe308c355 | fb94faa56d5763607be6566925132f4957d751cf | /pyroms_toolbox/pyroms_toolbox/zview.py | 508a6b3ba23f1910f4321953d47cf1b4eeea0055 | [
"BSD-3-Clause"
] | permissive | csherwood-usgs/pyroms | 44e684ec0b20e242cf3743d128332be330209289 | be5e40a1720561bb18698f08a2c74b1906c73bab | refs/heads/master | 2021-01-24T23:51:00.789744 | 2013-12-30T20:46:15 | 2013-12-30T20:46:15 | 16,179,889 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,825 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm, colors
from mpl_toolkits.basemap import Basemap
import pyroms
import pyroms_toolbox
def zview(var, tindex, depth, grid, filename=None, \
cmin=None, cmax=None, clev=None, clb_format='%.2f', \
fill=False, contour=False, d... | [
"kshedstrom@alaska.edu"
] | kshedstrom@alaska.edu |
4ca4b1131083a1402e44491794857b4a54a9f307 | 02dad83f1cf7611fc46da908592c8eb9db3453e4 | /imdb100.py | 778a7e1844f1342117d3711855a429a6bf356df4 | [] | no_license | ruthwikreddy713/Webcrawling-basic | c2f832c714de53a6cf552c5846e1b61f3a8986cc | 46b9c46178d5b9883be55250c39bd1b549f7234b | refs/heads/master | 2023-03-08T00:50:54.450056 | 2021-02-12T11:50:42 | 2021-02-12T11:50:42 | 338,303,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as req
imdb1to50="https://www.imdb.com/search/title/?groups=top_100&sort=user_rating,desc"
imdb50to100="https://www.imdb.com/search/title/?groups=top_100&sort=user_rating,desc&start=51&ref_=adv_nxt"
top50=req(imdb1to50)
top50page= soup(top50.read(... | [
"ruthwik.reddy@students.iiit.ac.in"
] | ruthwik.reddy@students.iiit.ac.in |
5c9f9acc98f9f06e142294f6d1d24ef463dcd820 | c7a95286763d56e5d5f7c168ba6b5dc4b3efbcdf | /variables.py | 0d06f3608d73947fcb486af0d053fa63f555df9a | [] | no_license | cybersaksham/Bar-Code | c2bc952efc09b032136f5b346b9a4f92626fdd5f | ca63364503fa70bc7a135748d424e9a2f8486b78 | refs/heads/master | 2023-07-16T02:58:37.425706 | 2021-09-01T12:19:47 | 2021-09-01T12:19:47 | 390,627,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | # Global Variables
ICON = "icon.ico"
BACKGROUND = "#FFFFFF"
| [
"2020UCP1801@gmail.com"
] | 2020UCP1801@gmail.com |
92335748916a308230cd214a08c0217114e3cb23 | d2a1f3b633cddceb2832691f8626f3b1aa18a10b | /khang/lib/python3.6/genericpath.py | 930c1032f6af1fdd5f548c6e6d23f10c8ab0f55e | [] | no_license | Khang-9966/OpenCV | b5189ddaa07e38c3d906eac81dfaaeca73fc6e6b | 462b0a04faaa27abb1f6ec2d9e851e6cd064a796 | refs/heads/master | 2022-10-22T16:33:15.364975 | 2019-11-14T18:09:58 | 2019-11-14T18:09:58 | 167,556,012 | 1 | 1 | null | 2022-09-30T11:39:54 | 2019-01-25T13:58:52 | Python | UTF-8 | Python | false | false | 50 | py | /home/khang/anaconda3/lib/python3.6/genericpath.py | [
"dtkhangbk@gmail.com"
] | dtkhangbk@gmail.com |
2561a47c4d7afb0c4bf31d06192529c574366797 | 2fa016eeb6d4d4cc61fb0d43aa9f0fd1ad4ef2e3 | /python/函数/quadratic.py | 236d535788afe5e6a4ac3ede0dd3b40f57f946f1 | [] | no_license | juechen-zzz/learngit | 521e0d2c13d97248f6f8b1f2096f718dc497351b | 513d3e57f4e0fce72ca4ecd1f30be2d261ee9260 | refs/heads/master | 2021-07-04T17:20:58.456812 | 2020-08-27T02:08:05 | 2020-08-27T02:08:05 | 163,482,583 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # -*- coding: utf-8 -*-
##一元二次方程求解
import math;
def quadratic(a,b,c):
m = b*b - 4*a*c;
x1 = (-b + math.sqrt(m))/(-2*a);
x2 = (-b - math.sqrt(m))/(-2*a);
return x1,x2
r = quadratic(1,6,9);
print(r); | [
"240553516@qq.com"
] | 240553516@qq.com |
ba42d0af6e4c0e56d729274fcff51ccfaf4324da | 1546de7dca80c4af9c3ee0f9a67cde23bcb48681 | /netease_news.py | e7dc1605e6ec5ed2bfebfec46128d415556bac64 | [] | no_license | zhangkaixu/papa | aa7dbd6d824a090ea4ae6d78554633b3882850ac | f1fff172cf69ef5c08cd36b8e47060c26fddb83c | refs/heads/master | 2021-01-10T01:43:54.401426 | 2015-10-28T02:29:08 | 2015-10-28T02:29:08 | 45,024,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | #!/usr/bin/env python2
#coding:utf8
from __future__ import print_function
import papa
import json
import datetime
class NetEase() :
def gen_seeds(self):
yield ('sleep', 300) # rest for 300 seconds
yield ('forget',) # forget all the dynamic
yield ('dynamic', 'http://news.163.com/', 2)
... | [
"zhangkaixu@hotmail.com"
] | zhangkaixu@hotmail.com |
9feb637dfe6b6adc4b27cf16542f81ed6917ab21 | d5a43fad8ea3c78684c606506e6d575ff364ef4b | /binpoll_back/settings.py | 9072a6ec6a9990667c2a207cb1534664cfb9f97c | [] | no_license | pawel-antoniuk/binpoll-back | 9d3b38f2dd3da782a1227a5deb0f913047d90faa | 8ddf7e9a7305be76457d5ac606b353fcc3e6c78d | refs/heads/master | 2020-05-29T10:43:49.735320 | 2019-06-15T10:55:04 | 2019-06-15T10:55:04 | 189,096,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | """
Django settings for binpoll_back project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"pawelantoniuk@outlook.com"
] | pawelantoniuk@outlook.com |
79e11690ec8c2d1da50ab634cc848366d0f4f586 | 8f573605867c88c0eb6c8abda6e92bbc9f3e123e | /bin/getWMI.py | 6828377b762d4fcc6a6e7fb13ed41e37f57c91d7 | [] | no_license | oscarmarinmiro/WMI | 726c949594bcd93a93fe84b6706778440d8b67c7 | 915f333a5643199d4a00810f2b73769ce93b7a4c | refs/heads/master | 2020-05-17T05:23:37.162718 | 2014-05-11T10:45:15 | 2014-05-11T10:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | __author__ = 'Oscar'
import pprint
import re
import math
from getES import getCountFromWords, getTweetsFromWords, getTotalDocs
TOP_WORDS = 50
def getPMI (total, combined, first, second):
print "DATOSPMI"
print "%d %d %d %d" % (total, combined, first, second)
#
myNum = float(combined+1)
#
my... | [
"oscarmarinmiro@github.com"
] | oscarmarinmiro@github.com |
46cff41cf2f4186df4da0d2a9bc67633ba43561b | 2436422e8d584f1dd9fc27a403e02a5571b033b2 | /server/rest/views.py | 2635af1999df24bf3511af493d4d3a08bd53aa07 | [] | no_license | yhs3434/Study-Room | 20657a7d068edbc24cb27ddef49c6e18890a0fcb | 8b6804f02ba47517aa8e725f5531b7e0e5ac7315 | refs/heads/master | 2020-04-04T17:19:28.954492 | 2020-02-05T17:09:43 | 2020-02-05T17:09:43 | 156,116,178 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,511 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from rest_framework.decorators import api_view
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from .models import User, Group, Subject, Tendency
from .models import User_Group, User_Su... | [
"yoonhs3434@naver.com"
] | yoonhs3434@naver.com |
6bd299c841a3742d60ff8e250436a030c689d33c | 09f219011434100d2a925d0d13b9ec32344e71fc | /microscope/metaHandler.py | dfcfdeff86f5604d6c6e2a242d8e9f6ced381712 | [] | no_license | JonathanMortlock/PyDex | 55b8d4b04583f65b0f3ca73a7024b8f70cc29059 | c2b063a5736abb9adab330d84c99802b7af4dd58 | refs/heads/master | 2022-05-28T15:16:14.266774 | 2022-05-18T11:02:45 | 2022-05-18T11:02:45 | 239,520,288 | 1 | 0 | null | 2022-05-18T11:03:04 | 2020-02-10T13:37:35 | Python | UTF-8 | Python | false | false | 220 | py | """
a class to collect and calculate microscope metadata
"""
import numpy as np
from collections import OrderedDict
from astropy.stats import binom_conf_interval
from analysis import Analysis, BOOL
import fitCurve as fc | [
"jonathan.mortlock@outlook.com"
] | jonathan.mortlock@outlook.com |
b0cf9febae60c6a97766768835e4a2dd26a5c061 | e24db52fb64c06e859e36122008fe27d7f2b7a81 | /model/fixed_length_pqueue.py | c1d5e99db2b86d1534e97d1221d61c221a000d05 | [] | no_license | zhuowangsylu/sklearn-sknnsuite | 1cd7f46d4f0f54190db8262a35e987cf103e62d4 | 22fe386be643e309d6491e9a408711e3472e396d | refs/heads/master | 2020-12-08T09:20:49.940874 | 2017-06-10T20:24:56 | 2017-06-10T20:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import itertools
import heapq
class FixedLengthPQueue(object):
def __init__(self, length):
"""
:param length: max length of queue. Should be greater then 0
"""
self.pq = [] # list of entries arranged in a heap
self.entry_finder = {} # ... | [
"vasnetsov93@gmail.com"
] | vasnetsov93@gmail.com |
df6ed0a656f9ec810d286b827144bf78ca8db30a | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/views_20200404012439.py | 3dfd28a5bafc973ee616d892836f17b28524ad88 | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from django.shortcuts import render
def index(request):
return
| [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
dddd6cda918cb48bf76ad86de8b7c1fa704352ba | 9148b7ffaabb22b006bc006a2c353c63d35fd323 | /dna.py | ed8f0669567eee6269f6408c36a36d7d332e393c | [] | no_license | vricci/funny_projects | a83b37423362310eace966907d2b22a7c939921c | 663f9620a37cd5a5d51d671fcc933061af7b6857 | refs/heads/master | 2021-07-17T02:13:16.832543 | 2017-10-24T13:42:58 | 2017-10-24T13:42:58 | 106,510,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | # text_to_bits and text_from_bits are taken from user "jfs",
# source here https://stackoverflow.com/a/7397689
def text_to_bits(text, encoding='utf-8', errors='surrogatepass'):
bits = bin(int.from_bytes(text.encode(encoding, errors), 'big'))[2:]
return bits.zfill(8 * ((len(bits) + 7) // 8))
def text_from_bits(bits, e... | [
"noreply@github.com"
] | noreply@github.com |
5ed5483c4908f78b28e1597bb953502f98278bd9 | 01e17e117b83ba84fd85438885cbf6d90dc0d2aa | /TCPDumpHelper.py | 33a47c14ff133416d1e3024d916ce42df14dd5c2 | [] | no_license | samvram/wmn_track3_helper | d94fa3de44dd6ba6eb7ff30c163973714acc0155 | 87f66be5cdcccd4efc6ca5f343cf4cf702a1dd5b | refs/heads/master | 2020-04-02T03:19:31.120262 | 2019-08-08T11:31:11 | 2019-08-08T11:31:11 | 153,958,469 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,699 | py | import scapy.all as sp
import datetime as dt
class TCPDumpHelper:
def __init__(self, p):
self.path = p
# with Jan 1 1970 as reference, the exp_day is the no of seconds till experiment day
self.exp_day = 1539388800
self.ist_hour = 5
self.ist_mins = 30
self.Mac_IP_Ma... | [
"ankitvermajnp@gmail.com"
] | ankitvermajnp@gmail.com |
11200f37b78f5f334927a22fa23e29f3026b0814 | 41849d216752d422e63eb99a6fadfbe1b7d5e4bd | /chap03/Connections.py | daf5b0145c1d0342a22732f1a39a66ee125af77a | [
"Apache-2.0"
] | permissive | viekie/basic-deeplearning | 463c452e243dc9d8e69b90f205c758cdd60d711b | 6c9e55cd621504da3d7ea1627e6783c9819a1916 | refs/heads/master | 2021-01-20T08:18:59.324583 | 2017-10-06T05:49:32 | 2017-10-06T05:49:32 | 90,128,605 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
# Power by viekie. 2017-05-19 08:43:35
class Connections(object):
def __init__(self):
self.connections = []
def add_connection(self, connection):
self.connections.append(connection)
def __str__(self):
conn_info = 'connections: %s' % sel... | [
"boaldy@163.com"
] | boaldy@163.com |
dce6a087dc46a1567c7a21ce2c6ba34b9c64d689 | 26d523e8e9eb07307eb6f89fd8e52a534a14af60 | /examples/pushrodr/step3.py | 6c60f00eceea9cdaa97867310687bca4ee827905 | [
"MIT"
] | permissive | nightkr/Flask-Pushrod | 54932d6f9a8065d1f45c5d240dd5c5e31868e6a6 | 862184845d4f05cab2f73184f14b9ae4774e1d4b | refs/heads/master | 2023-02-09T02:16:30.959141 | 2015-07-07T11:28:57 | 2015-07-07T11:28:57 | 5,961,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | from flask import Flask, g
from flask.ext.pushrod import Pushrod, pushrod_view
from flask.ext.sqlalchemy import SQLAlchemy, Pagination
from sqlalchemy.sql.functions import now
app = Flask(__name__)
pushrod = Pushrod(app)
db = SQLAlchemy(app)
class Author(db.Model):
__tablename__ = "authors"
id = db.Column(... | [
"teo@nullable.se"
] | teo@nullable.se |
5ac89f328c1eacb2fa8b51a515f0060a3ef20e96 | d8f904497961150ac5a1e3e1f30b12941a85be99 | /server_minecraft.py | 5fdbc7b5d9993ce80f208c24a17425cca3a7a745 | [] | no_license | Jddanan/minecraft | 41f0e12e502c1870ffc3ac43be008bfaec4b4834 | 4a1450892bd8e74edffb8495e16842f9c0cfa9a1 | refs/heads/master | 2020-04-07T05:08:50.071581 | 2018-12-19T12:49:10 | 2018-12-19T12:49:10 | 158,084,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from sys import argv
from bottle import route, run, static_file, template
import bottle as b
@route('/')
def index():
return template("index.html", root='')
@route('/css/<filename:re:.*css>')
def css(filename):
return static_file(filename, root='css')
@route('/js/<filename:re:.*js>')
def js(filename):
... | [
"jddanan@gmail.com"
] | jddanan@gmail.com |
8d4d2be745e4a0a4e9050c73b357d021f5631589 | a03d497e2e1f040668a6589d56ffe0847a4f8e2a | /app/logger.py | 55d068212129d409d1f1ed9bd777460110f7c243 | [] | no_license | HarveyWang81/DuDuBaBa | 06aaf029fc112dedff4efb76e0492e33d3d2854c | 7ddc1f9d69922c49b679e5438008b495db9db162 | refs/heads/master | 2020-06-16T23:46:03.878519 | 2019-07-23T08:26:41 | 2019-07-23T08:26:41 | 195,730,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | #!/bin/env python3
# coding:utf-8
"""
# Author: Harvey.Wang
# Data:
# Desc:
"""
import logging
from logging import handlers
class Logger(object):
level_relations = {
'debug':logging.DEBUG,
'info':logging.INFO,
'warning':logging.WARNING,
'error':logging.ERROR,
'... | [
"lin.wang@t-systems.com"
] | lin.wang@t-systems.com |
cf67d8266fd1c7b49d932b7a0d593bdefd4d6ab8 | a67a987ed078da0a1de2908c8c0e08070dee65b1 | /genice/lattices/sTprime.py | 16592d7d2a4fb71ae63cafd4bb23059714c8213e | [] | no_license | Python3pkg/GenIce | ef1ce7ee2997c10e08dde75ac36050a653cd4fc5 | 1e9458b7bf8e0fd2ad5d0c4f8987cea0ae7ca0b0 | refs/heads/master | 2021-01-21T17:31:51.595858 | 2017-05-21T14:09:32 | 2017-05-21T14:09:32 | 91,962,047 | 0 | 0 | null | 2017-05-21T14:09:28 | 2017-05-21T14:09:28 | null | UTF-8 | Python | false | false | 1,457 | py | """
Data source: Smirnov, G. S. & Stegailov, V. V. Toward Determination of the New Hydrogen Hydrate Clathrate Structures. J Phys Chem Lett 4, 3560-3564 (2013).
"""
density = 1.2 #default density
bondlen = 1.2 #bond threshold
celltype = "rect"
cell="""
4.04345643838 3.18400949048 3.18412710497
"""
#esti... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
d562950847202015e50d7106bf49d9329dcff9e3 | 9482e01ee442682cabe5d596264a1b3f6e870b14 | /square.py | 7c8225731a44f67dcb038a82f9085f75b82a86e8 | [] | no_license | AaronOrenstein210/Slider | 37604df131f94d3b35f26b2dd0a88660da118fc5 | 37e4a6b26fe2a2d0d08284ca55cbf6d125ed2e66 | refs/heads/master | 2020-07-31T02:17:28.437382 | 2019-09-24T16:02:59 | 2019-09-24T16:02:59 | 210,447,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | # Created on 23 September 2019
import pygame
class Square:
def __init__(self, val, w):
self.w = w
self.val = val
self.surface = pygame.Surface((w - 2, w - 2))
if self.val != -1:
img = pygame.image.load("back.png")
img = pygame.transform.scale(img, (self.w, ... | [
"20aaron.orenstein@boiseschools.net"
] | 20aaron.orenstein@boiseschools.net |
da491aa33e74fab96dca65e83e33fb1a54c8bb69 | 48082c0eb0c7aa868e4a1d0bd3cada6833ca0588 | /actors/serializers.py | 186fa91f6bee66d5e6f5ded1a82e2efb8a74b54a | [] | no_license | HackyRoot/Mobile_Backend | 5620be05ddc6bcb3ca0681303934709a6d119265 | cf2b1db99718380c2d34b03fa43c5a1f74f6e62c | refs/heads/master | 2020-03-26T23:56:14.962511 | 2018-08-21T16:46:58 | 2018-08-21T16:46:58 | 145,579,251 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | '''
A serializer represents Django models as JSON objects.
'''
from rest_framework.serializers import ModelSerializer
from .models import Actor
class ActorSerializer(ModelSerializer):
class Meta:
model = Actor
fields = '__all__'
| [
"steveparmar6nov2011@gmail.com"
] | steveparmar6nov2011@gmail.com |
935d4a82c67ac0cb47e1f7e89420269cade05d65 | 165f265b8afa47df477b1f211eab014bb20cf3bc | /worldbuilder/migrations/0013_area.py | 138f9b99b5b6a4a2246a51275c8cf4af1f196254 | [] | no_license | mattrojr/mattosborne-xyz | 6160b63869aa7f74503c1a8bc6885f33efe734c4 | e4d4457ecbdd22ddd2f06a2e126a6749315f5a11 | refs/heads/master | 2021-07-18T05:04:56.872094 | 2017-10-20T20:09:48 | 2017-10-20T20:09:48 | 107,721,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-13 21:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('worldbuilder', '0012_auto_20171013_1757'... | [
"mattrojr@gmail.com"
] | mattrojr@gmail.com |
f3e39f3fea4e4ffb9e84579e97f189cc2745f7f3 | 3ca7ac75230d66605cef30b7f0f1321934a10102 | /mywificar/mywificar.py | b8c28e4661af342332405ed149c4b6825f37f2b5 | [] | no_license | jerryyip/Config-BBGw-Bluetooth-via-Web | acf32622daa968568e688c48c27b6097460aa024 | e18f259b2bdb812212b194d911b1be0dfaef5ddf | refs/heads/master | 2020-12-31T04:56:18.358233 | 2016-10-10T09:02:04 | 2016-10-10T09:02:04 | 59,273,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import MotorBridge
import time
MotorLeft = 1
MotorRight = 4
ClockWise = 1
CounterClockWise = 2
PwmDuty = 90
Frequency = 1000
motor = MotorBridge.MotorBridgeCape()
motor.DCMotorInit(MotorLeft,Frequency)
motor.DCMotorInit(MotorRight,Frequency)
def goFront():
motor.DCMotorMove(... | [
"563355085@qq.com"
] | 563355085@qq.com |
e02234ba0c5b8cd9dfb2f91ac9dc4b789beb104e | a0e5418d4f79587dd8ea6f9425a84ded3351d139 | /src/actions/conquer_action.py | 917e56d82ffd6f263150995370328040c06b611b | [] | no_license | thydungeonsean/Shinar_Genesis | db99f17c8d6afbf69a4950b46223b586e55c83cf | ac21f324c11db7c1a722f029a8186c5dc45c9097 | refs/heads/master | 2020-03-15T22:07:48.281124 | 2018-06-07T21:09:18 | 2018-06-07T21:09:18 | 116,487,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | from military_action import MilitaryAction
from src.enum.actions import CONQUER_ACTION
from map_tools import get_army_movement_options, get_conquered_points, in_player_domain
from src.enum.object_codes import *
class ConquerAction(MilitaryAction):
def __init__(self, state, player):
MilitaryAction.__init... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
2914f46c4107d66302a57d089a5b580c2b00da87 | b927111e1d248b46bd502dfe38e43aeb27355930 | /tests/test_provider_aws.py | 79237ee03204f430ca376e13da56297932728f01 | [] | no_license | ExpanseLLC/identityexchange | 6db1f5a551fbff1817b034acf22f6a4bfe8f2ce4 | 9e58365e9e8996639ccbd5028ada13290840673a | refs/heads/master | 2020-03-17T03:41:38.951548 | 2019-01-12T18:49:24 | 2019-01-12T18:49:24 | 133,246,415 | 4 | 0 | null | 2019-01-12T18:49:25 | 2018-05-13T14:51:30 | Python | UTF-8 | Python | false | false | 2,307 | py | import os
import sys
import unittest
from unittest import mock
from unittest.mock import MagicMock, patch
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from identityexchange import provider
class TestMethods(unittest.TestCase):
@patch("identityexchange.provider.open")
d... | [
"ryanwscott@gmail.com"
] | ryanwscott@gmail.com |
cfb35bf471134268b39e963d38b5d44009cbd811 | f92dff3781ce21b5a1fd18f30ab52a3976d254f5 | /backend/wallet/api/v1/urls.py | 4befa8658a0e2aa3f590ee382d837b3ab9016fa4 | [] | no_license | crowdbotics-apps/test-24800 | 41270507a49b02bc43fc89822b541cd99cb84005 | 6e7d5bb77af12c5d2c6e3f9f46b7d4d39d185267 | refs/heads/master | 2023-03-11T22:27:56.763867 | 2021-03-02T07:29:45 | 2021-03-02T07:29:45 | 343,671,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
PaymentTransactionViewSet,
TaskerPaymentAccountViewSet,
TaskerWalletViewSet,
PaymentMethodViewSet,
CustomerWalletViewSet,
)
router = DefaultRouter()
router.register("taskerpaymentaccount",... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b5b2df0dc12b38aa820fedbcdb2be4495adf3d23 | 5d4806c199245d75df175fd5c5e52011d3e38c8a | /python/plus_one.py | ae87f31f89e824cb0b9c317fe2d82f49883d2f11 | [] | no_license | jinghanx/chea | ebe92f272bdbf40f964ab7a608a4ef6c2254288c | cb3b60bb2e15f166402df1f68c35709a95d53eda | refs/heads/master | 2021-01-10T21:43:45.964823 | 2013-01-17T22:58:31 | 2013-01-17T22:58:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | #! /usr/bin/env python
def f(l):
if not l:
return [1]
carry = 1
for i in range(len(l)-1,-1,-1):
ans = l[i]+carry
l[i] = ans%10
carry = ans/10
if carry:
l.insert(0,1)
print l
f([3,2,5,9])
| [
"jinghanx@gmail.com"
] | jinghanx@gmail.com |
eddc2294b9e7de8ebb3df7b9a61a8492562080f9 | b5c343216f13ef4e4ee30274cca7a496848ccb9b | /blog/urls.py | 4a75949b9342fa90accc38da2d7a3054a245c288 | [] | no_license | nikhanal/blogproject | 3bced7b88e4822ed647ae7101e73d8254e226965 | eb09107415ebe15475f6425a3c409f41b6d918c1 | refs/heads/master | 2023-08-15T02:25:31.272914 | 2020-06-06T07:55:03 | 2020-06-06T07:55:03 | 267,789,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from django.conf import settings
from django.contrib import admin
from django.urls import path
from django.conf.urls.static import static
from django.conf.urls import url, include
from posts.views import index, blog, post
urlpatterns = [
path('admin/', admin.site.urls),
path('', index, name='post-list'),
... | [
"khanal.nishan28@gmail.com"
] | khanal.nishan28@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.