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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2547875607f07003042d7a20224da3fbc356962f | 443d8ee8a2c65a489654f31f3c6d98e11aab149a | /Task2/models/word2vec.py | 6a8dd6309c28f098ad12dff162a3bf873ef95c59 | [] | no_license | cielzzz/NLP_Beginer | 64972b2b300f661f39f0604d880a49dcdb840bae | 8f8cc858eece53808f40af313489bbf689309fac | refs/heads/master | 2022-12-22T13:25:31.057727 | 2020-09-25T02:58:38 | 2020-09-25T02:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from pre_data_w2v import neg_sample
class CBOW(nn.Module):
def __init__(self, vocab_size, embed_dim, neg_num, dist):
super(CBOW, self).__init__()
self.emb_size = vocab_size
self.emb_dimension = embed_dim
... | [
"760605341@qq.com"
] | 760605341@qq.com |
0be073611147d4799992dcee756fa4e081ed6bce | fa76f3960ed91767395c6265902c1744bc284bcf | /NLPEnv/bin/easy_install3 | d5b60c9a2b2787fe992684ebc447570f9aef1ba3 | [] | no_license | zbigos/NLP2020 | 8c6ddd6d9b107b8748ea4d94a4b1170774e4b3f3 | e360ef202716307e6bfb30ebe8c4b107474b3681 | refs/heads/master | 2023-02-16T18:02:59.028668 | 2021-01-13T10:01:10 | 2021-01-13T10:01:10 | 302,106,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/home/zbigniew/Devel/UWR/NLP2020/NLPEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zbigniew_drozd@wp.pl"
] | zbigniew_drozd@wp.pl | |
33e9a57081fc33c1a6e5acc55e525535fd7782cb | eba7c553607745872a4a932ddaf68bf5425f9184 | /test2.py | 21d8e0a21f3470b919bdc1429638f34060193160 | [] | no_license | BrightHsu/demo | 7e74ebbd9153d7da9f55f7417fe6c7cb1b3ac2b2 | 94ae2a00e39cb0133e5a8f99bde640daff1ac0f3 | refs/heads/master | 2022-10-23T15:47:02.962184 | 2020-06-09T07:21:17 | 2020-06-09T07:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@Time : 2020/6/9 15:10
@Author : David Ben
@FileName: test2.py
@FileName: hsudavid@163.com
@Software: PyCharm
"""
print('test1')
print('test1')
print('test1')
print('test1')
print('test1') | [
"hsudavid@163.com"
] | hsudavid@163.com |
05438ec5f73e81422e3e7e285c51a2198830a2f9 | e1c4f2dc8f17f357ab9e5f05e39cce7017d73b69 | /deply/model.py | 48fcfe155eeb9b7cf42096cc2fe916d095ba7580 | [] | no_license | coker-felix/Deply | f903e32b41f0d9a8197602f6482d5af3289c8ae6 | c8618cca64648413919c9b1dba39cee50d841521 | refs/heads/master | 2023-01-10T01:33:06.539638 | 2020-10-30T17:09:55 | 2020-10-30T17:09:55 | 308,685,885 | 0 | 0 | null | 2020-11-01T17:34:44 | 2020-10-30T16:29:47 | JavaScript | UTF-8 | Python | false | false | 1,356 | py | import os
import numpy as np
import tensorflow as tf
from keras.applications.inception_v3 import preprocess_input
from keras.models import load_model
from tensorflow.python.framework import ops
from keras.preprocessing.image import img_to_array, load_img
#Load_model
Plas_spec = load_model('model_inception.h5')
graph ... | [
"felixwood84@ymail.com"
] | felixwood84@ymail.com |
2356b0c0ef247eac6f4c60a788c1a6f5bdcf1bd6 | 8bab45756c78e4da7854b899be23c075ff1a170c | /0x03-caching/3-lru_cache.py | d9d80241177193ae3221e6047c536c3521c3ba2c | [] | no_license | Jesus-Acevedo-Cano/holbertonschool-web_back_end | a8b06484b0705935229eb691be0de15b304339d9 | 0c068b19bb11d6194f97c0157cadffd7da44458f | refs/heads/main | 2023-02-17T23:46:24.844689 | 2021-01-09T03:44:57 | 2021-01-09T03:44:57 | 305,505,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/python3
""" LRU caching """
from base_caching import BaseCaching
class LRUCache(BaseCaching):
""" LRU cache class """
def __init__(self):
""" constructor """
self.cache = []
super().__init__()
def put(self, key, item):
""" Add an item in the cache """
i... | [
"jeacevedocano@gmail.com"
] | jeacevedocano@gmail.com |
ff4dbe617fb52bad7f06208e9aada23c2c39bbac | f334dcbc6766dfe3bff61e019d7e4ee31809c042 | /tools/data.py | d17606afa9c98c34d2ecc9a53f6297b1528a35e8 | [] | no_license | fwt11/Short-Term-Load-Forecasting-for-Electric-Power-Systems | 11648b563d9b9385758ff56f0b6c219fc99491c0 | 564913e4edd322c79daef503c450d884cdb255c1 | refs/heads/master | 2023-08-05T02:45:34.580505 | 2021-09-04T03:14:54 | 2021-09-04T03:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | import xlrd
import csv
import numpy as np
import pandas as pd
def save_data(data, filename):
with open(filename, 'a', errors='ignore', newline='') as f:
f_csv = csv.writer(f)
#f_csv.writerow(["time", "load"])
#f_csv.writerow(["time", "load","maxtemp","mintemp","avgtemp","humidity",... | [
"noreply@github.com"
] | noreply@github.com |
bb975513f0b9fccba8279d02d991e7476f2bdde2 | 13db353823e1c118eff8ab19e06bbc9fe03421ed | /TensorflowExamples/basicModules.py | ca59bb1d01d7759d3c9356fa3eabba4f15a1c880 | [] | no_license | Pol22/TCSVT-LightWeight-CNNs | 8d446fa6334ababebc475e2157a8f9ba50dd77f7 | f5ced9005f126edda89cb986159722189f7577a5 | refs/heads/master | 2023-03-10T06:48:55.927737 | 2021-01-22T00:19:14 | 2021-01-22T00:19:14 | 285,706,019 | 0 | 0 | null | 2020-08-07T01:14:55 | 2020-08-07T01:14:54 | null | UTF-8 | Python | false | false | 3,048 | py | from layer_CSVT import branchout, bottlenect, group_conv_dilated, group_conv_normal, batch_normalize
# In this file we are releasing the barebone skeleton of our modules.
# Users can takes these code snippets and plug in into their own
# realizations of LIST, GSAT, up/down sampling layers.
#==========================... | [
"noreply@github.com"
] | noreply@github.com |
e91824981b8e94f7b2eb6375ede494f624e1cc26 | e0db13bc8113fb7b383d0a8d09e09686668e2fb4 | /Data-Structures-and-Algorithms/Undirected-Graph-using-Adjacency-Matrix.py | 9b90ba566c0e5827a845026d3e22283f4d2d1964 | [] | no_license | nirmalnishant645/Python-Programming | dd66acd665af8933fa14b19d01300deb1eccbb7d | 70e97e6f35f125acfde3b38e1baa794a357b8a77 | refs/heads/master | 2022-06-03T12:41:56.483000 | 2022-05-12T10:54:59 | 2022-05-12T10:54:59 | 151,211,590 | 3 | 5 | null | 2020-02-12T05:48:59 | 2018-10-02T06:44:54 | HTML | UTF-8 | Python | false | false | 1,367 | py | '''
The Implementation will be same as Directed Graph, but this time the connection will be done both ways.
If v1 => v2 then v2 => v1
Or v1 <=> v2
'''
# Simple Graph Implementation
class Graph:
def __init__(self, number_of_nodes): # Initialise Graph Data Structure
self.number_of_nodes = number_of_nodes + ... | [
"nirmalnishant645@gmail.com"
] | nirmalnishant645@gmail.com |
bbf3d5f1de1e630cc6ac9a113054939237ca71b7 | cda5a09d7392934009eef306cf6f39efdf6b59fd | /DRF.py | 875ad7e8eeb6b13a3723e625df9f8cfa76ff5360 | [] | no_license | TingJiang0858/Fairness | 4cf8810d85669afa11498ec44c08715ef24b77b1 | 2f4890a1e0014cb3f95ee9060face11dfc999cac | refs/heads/master | 2022-12-03T11:49:21.387401 | 2020-08-19T23:22:45 | 2020-08-19T23:22:45 | 288,852,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | #!/usr/bin/python
import sys
import numpy as np
# input user and the resource
num_user = input("Please input the num of users: ")
num_res = input("Please input the num of resource: ")
print("Resources owned by the system: ")
total_resource = []
res = input()
data = res.replace(" ", "")
input_list = data.split(",")
tot... | [
"noreply@github.com"
] | noreply@github.com |
fdde462ec23e0151a6b473387539fb36d35269e1 | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/02-python-data-science-toolbox-part-2/e28_processing_data_in_chunks1.py | 31e985b2bc89768a7d90f08c68af9418f77a0890 | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | """
Processing data in chunks (1)
The csv file 'world_dev_ind.csv' is in your current directory for your use. To begin, you need to open a connection
to this file using what is known as a context manager. For example, the command with open('datacamp.csv')
as datacamp binds the csv file 'datacamp.csv' as datacamp in the... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
643a5ea73b84c59e68671a3ca7ff422df5d7f644 | 00d4b3a28e7638ac7e5767e8ce1fef5c339a194e | /data/triplet_data_processing.py | aadfc7c2dcacba9010c5e6d2ac7a261414725994 | [] | no_license | peternara/FashionPredictor-roi-pooling | a1b957975deeaf188bba2bb418a0b26247d0aacf | 7a6aa7b3b957b99eba910ff393aa0e1137b4c916 | refs/heads/master | 2021-09-26T10:02:07.354728 | 2018-10-28T23:36:14 | 2018-10-28T23:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,282 | py | """
Created on Fri Oct 5th 2018
@author: Xin Liu, Ziwei Liu
Create a DataProcessing class here, which is aimed to crop the region based on its bbox, and then to resize images
"""
import torch
import os
import sys
from skimage import io
from PIL import Image
from torch.utils.data.dataset import Dataset
import torchvis... | [
"zwliu.hust@gmail.com"
] | zwliu.hust@gmail.com |
ef56b386170030b760015622a675058453d58550 | f277621655e2d3f2387fada72a2b8e547e057ddf | /le python/test.py | 4bf489da5fcc2961dc05e4442e5dc5c0f12f7237 | [] | no_license | BlancArthur/ExerciceAndTest | 21854a7d79ba97c4f980dc1d8931f2ba58cab62a | 768b46232abc71f9b6b60182e63c7d0e92e6049b | refs/heads/main | 2023-03-26T16:32:57.100613 | 2021-03-24T21:50:46 | 2021-03-24T21:50:46 | 343,915,813 | 4 | 1 | null | 2021-03-09T00:10:27 | 2021-03-02T21:20:54 | Python | UTF-8 | Python | false | false | 1,752 | py | # -- coding: utf8 --
import random
import json
# quotes = [
# "Ecoutez-moi, Monsieur Shakespeare, nous avons beau être ou ne pas être, nous sommes !",
# "On doit pouvoir choisir entre s'écouter parler et se faire entendre."
# ]
# characters = [
# "alvin et les Chipmunks",
# "Babar",
# ... | [
"blancarthur33170@gmail.com"
] | blancarthur33170@gmail.com |
0299875d846eb14ec472024b35ab24f26d35684d | 061f98cd6291f028c9b5cfa288559b225a8cd296 | /concurrent_programming/mt.py | b67d0732e8c46eaf886c03c0df829203d32bf032 | [] | no_license | Ulysses-WJL/study | 8283f232d7dc968c78c0a9bef61fa4ed38ce46a0 | 98d3ced6346fbc6ccea49a250989034f9001508a | refs/heads/master | 2021-07-10T04:33:34.664113 | 2020-09-26T10:44:07 | 2020-09-26T10:44:07 | 161,896,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import time
import _thread
def worker(n):
print(f"函数起始时间:{time.ctime()}")
time.sleep(n)
print(f"函数结束时间:{time.ctime()}")
def main():
print(f"函数起始时间1:{time.ctime()}")
_thread.start_new_thread(worker, (4,))
_thread.start_new_thread(worker, (2,))
time.sleep(4)
print(f"函数结束时间1:{time.ctime... | [
"jianliangwu1171@gmail.com"
] | jianliangwu1171@gmail.com |
15d93cf1a55369cacbe0278f3d3a390a29053137 | f553a1e96929b3c1758c7f07fa065cb93fa8f89e | /myRecipeApp/migrations/0006_auto_20201210_2209.py | 66689408d09872dbcdf2442647853819d0cbfd0e | [] | no_license | xflox12/project_fim | ff0cc472090cb530939f504db5328199e158cd3d | c80b69460e45cb67d0bd0c08b9e382c94968e163 | refs/heads/master | 2023-01-31T02:52:37.011398 | 2020-12-16T19:14:50 | 2020-12-16T19:14:50 | 307,656,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # Generated by Django 3.1.3 on 2020-12-10 21:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myRecipeApp', '0005_ingredient_recipeid'),
]
operations = [
migrations.AlterField(
model_name='ingredient',
name='No... | [
"iris.haemmerle@gmail.com"
] | iris.haemmerle@gmail.com |
6f3b8bf4359fe1426b8a54457983381696f1c98d | 6d2456993e86fa8a8291726e64f86614032a6bcd | /authentication/migrations/0001_initial.py | a6d90a430e9ec88e35848fb2ab3d0045f66492b5 | [] | no_license | joannaksk/thinkster-django-angular-boilerplate | 11cebdd8ccde2b59f51551e781adf69a627931d5 | 49b85fc84541d09d99f5d94a4f2527d0a05d0105 | refs/heads/release | 2021-01-18T01:50:52.353571 | 2016-08-31T09:06:40 | 2016-08-31T09:06:40 | 66,702,218 | 0 | 0 | null | 2016-08-27T07:34:42 | 2016-08-27T07:34:42 | null | UTF-8 | Python | false | false | 1,350 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
... | [
"joannaksk85@gmail.com"
] | joannaksk85@gmail.com |
312aa26a98938f328a2eba660cd18cb8d9305fac | 57094f0d09fd3e74eeb511e94400c3ec97051ad3 | /Quax_dev_archive/quax_research/research/findif.py | 837a3116e26a36c17b410aed4ddeca71656b4abe | [] | no_license | adabbott/Research_Notes | cccba246e81065dc4a663703fe225fc1ebbf806b | 644394edff99dc6542e8ae6bd0ce8bcf158cff69 | refs/heads/master | 2023-05-12T20:26:58.938617 | 2021-06-02T17:15:35 | 2021-06-02T17:15:35 | 119,863,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # pip install fdm
import numpy as np
import jax.numpy as jnp
import fdm
import jax
# Function:
#f(x,y,z) = exp(1 * x + 2 * y + 3 * z)
def func(vec):
coef = jnp.array([1.,2.,3.])
return jnp.exp(jnp.sum(coef * vec))
findif_gradient = fdm.gradient(func)
jax_gradient = jax.jacfwd(func, 0)
inp1 = np.array([0.1... | [
"adabbott@uga.edu"
] | adabbott@uga.edu |
a07532aa4b7d8116dfb3cab8f53bd0495f8918f0 | bc4c0c9e034439da4ced6364cf6591c1e14c99a1 | /tests/integration/app/api_test.py | 18c6f9d976f99ef5f6aa6008f2e30f894a75450f | [] | no_license | hasier/tide-tech-task-flask | 20111d8ba0473919ce7722af9a6c4d929c9c84e3 | b159ac5c090199f43510cc63071fa9ac0fe0f0ed | refs/heads/master | 2021-07-05T20:38:55.193364 | 2017-09-25T16:40:50 | 2017-09-25T16:40:50 | 104,775,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,526 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import json
import pytest
from app import features, users
from app.finders import USER_FEATURES_FORMAT, USER_TOKEN_FORMAT
from tests.integration.utils import generate_authorization_string
@pytest.fixture
def global_features():
feat... | [
"hasier@jinnapp.com"
] | hasier@jinnapp.com |
5cdc2d4a8d76a829d96c2ed7591c5c88e3c42552 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/youtube-dl/2016/8/cmt.py | f24568dcc25740f7814c134f9e58e659e7f11855 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 1,765 | py | from __future__ import unicode_literals
from .mtv import MTVIE
from ..utils import ExtractorError
class CMTIE(MTVIE):
IE_NAME = 'cmt.com'
_VALID_URL = r'https?://www\.cmt\.com/(?:videos|shows)/(?:[^/]+/)*(?P<videoid>\d+)'
_FEED_URL = 'http://www.cmt.com/sitewide/apps/player/embed/rss/'
_TESTS = [{
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
79eb01e2b3ea229ffdcd8620512e8b6ea1605ca4 | f86202fe01c203d6974e35daf6afbf0506607078 | /src/restrepo/restrepo/db/scan_images.py | 79dc823572a861edabf9260163f30c23a6afdfc7 | [] | no_license | sejarah-nusantara/repository | f83701697bd14b920b6dc825509124bcad4c5891 | 350d15823b3931f01f2db657b20cd93ac7d10a70 | refs/heads/master | 2021-01-25T13:06:10.833973 | 2018-03-02T04:22:14 | 2018-03-02T04:22:14 | 123,528,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from sqlalchemy import Table, Column, Integer, String, Boolean, ForeignKey
from restrepo.db import metadata
from restrepo.db.mixins import DictAble
scan_image = Table('scan_image', metadata,
Column('id', Integer, primary_key=True),
Column('scan_number', Integer, ForeignKey('scan.number'), index=True),
Col... | [
"github@gerbrandy.com"
] | github@gerbrandy.com |
ba661605c33bc97a360545d8ba5b4e9de8ab3769 | 4ca44b7bdb470fcbbd60c2868706dbd42b1984c9 | /20.02.23/백준 2589.py | e74d174f72d9f3fb56f4e43329178cf1902b773a | [] | no_license | titiman1013/Algorithm | 3b3d14b3e2f0cbc4859029eb73ad959ec8778629 | 8a67e36931c42422779a4c90859b665ee468255b | refs/heads/master | 2023-06-29T17:04:40.015311 | 2021-07-06T01:37:29 | 2021-07-06T01:37:29 | 242,510,483 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | # BFS
# N, M = list(map(int, input().split()))
# arr = [list(map(str, list(input()))) for i in range(N)]
# dx = [-1, 1, 0, 0]
# dy = [0, 0, -1, 1]
# for i in range(N):
# for j in range(M):
# clone = []
# for i in range(N):
# clone.append([])
# clone[i] = arr[i][:]
# ... | [
"hyunsukr1013@gmail.com"
] | hyunsukr1013@gmail.com |
dfc0feb317cf6bd4b82e6d55a8e2183e13948bd5 | d957b7167e7e24ac8432a936434bf7b561201fd8 | /backend/users/migrations/0002_auto_20200611_0743.py | 2207997a2eb78db89cfd152ff95d46a6c050546f | [] | no_license | crowdbotics-apps/digital-rehab-18007 | ee0f874fab956f47a7db4ceb5578da6ab8872294 | 19c9b4575112bae81db0dc5b8a6446266ed308cd | refs/heads/master | 2022-10-09T14:43:48.195386 | 2020-06-11T07:57:43 | 2020-06-11T07:57:43 | 271,390,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.13 on 2020-06-11 07:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="user",
name="name",
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
419158be3b5a132147ea027dbc6dc9886aa221a5 | 8fa705c4e410075cf4fe0e7e66d27085097fff6a | /builder/builder_inheritance.py | 9c42b01a1dc756c5d5ac9ca5f94b6f1cd50d9ca5 | [] | no_license | abaker2010/python_design_patterns | 427478a4b378ddf60b36a47ac2bbc5ae1de63ce5 | 5a3e6e1af542e2b45f01e9522882360768a755d7 | refs/heads/master | 2023-03-17T10:34:50.581434 | 2019-09-01T23:01:13 | 2019-09-01T23:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | class Person:
def __init__(self, name):
self.name = name
self.position = None
self.date_of_birth = None
def __str__(self):
return f'{self.name} born on {self.date_of_birth} ' + \
f'works as {self.position}'
@staticmethod
def new():
return PersonBu... | [
"tuvo1106@gmail.com"
] | tuvo1106@gmail.com |
d93d0dd79f44036af57b9124fc0a49af6d8f58dd | 8553e0b06161d288100750cda973924ee4030e17 | /clustack/blueprint.py | 4dfa4e64602ade14f0636b61a7ba98577f3a14d4 | [] | no_license | mrmh2/clustack | 0b635fec2c459f7a6db724aead84a36fb6bd7254 | 4b1e820e82ef8cbae400b69f156574050e72698a | refs/heads/master | 2021-01-19T03:23:20.122454 | 2015-04-13T12:47:07 | 2015-04-13T12:47:07 | 28,097,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | import os
import yaml
import settings
def load_blueprint_yaml(filename):
"""Load a blueprint from the given YAML file."""
with open(filename) as f:
yaml_rep = yaml.load(f)
name = yaml_rep['name']
bp = BluePrint(name)
bp.version = yaml_rep['version']
if 'dependencies' in yaml_r... | [
"mhartley@cantab.net"
] | mhartley@cantab.net |
330d12351784814b9fb1496a924b48d2eee503c3 | 2455e68bb9896ac6b2bd19ad7083422cebaf3dc5 | /raspi/programs/helper123/packets.py | 603d3a32a7e81c99b8cba06bb025ab875687e5ec | [] | no_license | migeek/PiMega_Sproject | c522bc1a28071f73e3583a9fe8bf01e66c1f4425 | cd121203eb798e23e51438e37aae7e56d4912050 | refs/heads/master | 2022-10-21T00:55:58.970660 | 2020-06-11T00:42:08 | 2020-06-11T00:42:08 | 269,461,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | MAX_PACKET_LENGTH = 100 # TODO: update as necessary
# packet types
PACKET = {
"DIGITAL_DATA": 239,
"DIGITAL_READ": 16,
"ERROR": 255,
"LED_LOW": 170,
"LED_HIGH": 85,
"PIN_INIT": 240,
"PIN_ACK": ... | [
"jrumpf@calpoly.edu"
] | jrumpf@calpoly.edu |
b9bef0f75824b48976c496462972dc73cf4a365c | 4448a67a258614081e84f282a05505b48a6aa513 | /samples/iterative_training/pins/rough_dataset/node_config.py | 8e66e0e4fec2a74d0ec2084f921372ced2314bec | [
"MIT"
] | permissive | Trevol/Mask_RCNN | 769ea85098dadf56ae21d2387d90b2a2dd4bbd3d | 18308082e2c5fd5b4df5d6e40f009b3ebd66c26d | refs/heads/master | 2021-06-08T07:11:29.930794 | 2019-12-31T15:03:19 | 2019-12-31T15:03:19 | 141,144,560 | 0 | 0 | NOASSERTION | 2019-10-03T13:31:20 | 2018-07-16T13:45:37 | Python | UTF-8 | Python | false | false | 603 | py | # return platform.uname().node
# import os
# return os.uname().nodename
from collections import namedtuple
import platform
NodeConfig = namedtuple("NodeConfig", ["workingDir", "IMAGES_PER_GPU", "visualize"])
nodesConfigs = {
"trevol-gpu-nb": NodeConfig(
workingDir="/HDD_DATA/nfs_share/mask-rcnn/pins/rough... | [
"iamvovan@mail.ru"
] | iamvovan@mail.ru |
b233689d7c8d7ff894a1cdb3d4f2baa407cb4653 | 5a7f6c19878258d1df3f5ca6afc3f17b67cbce5a | /classify.py | 74b4440f4cf324b60a311964edadb8b9aa8b6185 | [] | no_license | Redace10/Pokedex | 4c3a300f2951c9cf7c1ec69294af2a56f34a6a43 | 26c8b76103e760e382001e309076c870345a02c6 | refs/heads/master | 2021-10-18T17:52:51.074242 | 2019-01-17T00:29:40 | 2019-01-17T00:29:40 | 152,818,532 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from keras.preprocessing.image import img_to_array
from keras.models import load_model
import numpy as np
import argparse
import imutils
import pickle
import cv2
import os
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-m", "--model", required=True, help="path to... | [
"lee_myung_jae@hotmail.com"
] | lee_myung_jae@hotmail.com |
6ab7ed765a076692f744c4c6666abd20a0766d57 | 2291721aa804edef47506a0a3dcd01f0cee32d47 | /readData.py | f8b231a694307a31eda7910e234a6c4fc3e2362d | [] | no_license | EricLeuty/ENPH454_Computer | a515eebc8b9f66cfe1b170db3164b24be81d1342 | 8f1eae103b148cc7bfe6bb5774af3052c90beac1 | refs/heads/master | 2023-03-17T10:58:48.531281 | 2021-03-12T19:00:18 | 2021-03-12T19:00:18 | 345,202,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py |
import json
import pandas as pd
# settings for data
# if true, then program will print data and error messages to terminal
VERBOSE = 0
# base name for program to write files to in the current directory
FILE_HEAD_NAME = 'test_'
# reads configinfo from file
def readconfiginfo():
file_path = './Data/' + FILE_HEA... | [
"16eal@queensu.ca"
] | 16eal@queensu.ca |
2be4af79a3dba86e178b1261f2508b270348fa24 | 22cdf30aa46a7d52fb269ad22ff83b4f796652ad | /k8s-api/core/views.py | b2876349838bc12eb49129e1ae6b2d70d3b354fc | [] | no_license | bratushka/k8s | 2341d76cd06d873b7d0118847253d7ab1fd5cfc3 | 5648b2aeceda6c428fb8fbe933ea91965ab3537d | refs/heads/master | 2023-03-22T05:16:58.530145 | 2021-03-06T07:16:27 | 2021-03-06T07:16:27 | 343,314,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import logging
from django.conf import settings
from django.db import connections, OperationalError
from rest_framework import decorators, permissions
from rest_framework.response import Response
from .exceptions import ServiceUnavailable
from .services import Async
logger = logging.getLogger(__name__)
@decorator... | [
"bratushka.v@gmail.com"
] | bratushka.v@gmail.com |
213ef1b77f8e07d5c2fdc1ab149810835ad873f7 | eb9cb0b1f68cc40fb1148031d12592611d315f22 | /practice35.py | 0f514e01cd0a7f48302b97daa4a7614dc05d6c70 | [] | no_license | tzejan/programming-challenge-practices | 7911f96ea45d66bcccf3658fb63fadfccbf54430 | 1574d6105e178b5753e971f111809565d49b1ddb | refs/heads/master | 2021-04-27T00:20:37.485219 | 2018-04-30T04:33:47 | 2018-04-30T04:33:47 | 123,797,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | #https://www.hackerearth.com/practice/data-structures/hash-tables/basics-of-hash-tables/practice-problems/algorithm/alien-language/
def isSubString(s, p):
p_dict = dict()
for c in p:
if c not in p_dict:
p_dict[c] = True
for c in s:
if c in p_dict:
return True
... | [
"tzejan@gmail.com"
] | tzejan@gmail.com |
f725bdee8281015d8184b8eceb377b35aee0f3a9 | 4ca3c003ec680bf3e8bc27103d15fab941fe0b69 | /data_manager/migrations/0006_auto_20160304_0025.py | 2d89a8c04e22dcbb1c32bcbc1b0d2f08782ab020 | [] | no_license | MidAtlanticPortal/mp-data-manager | b4287aebd770fc6e0cf9ee462ec5fc4c4d954bed | b2cae81d27cac70e39fe52ca8793e5d761bcd4e0 | refs/heads/master | 2021-07-12T05:21:19.279510 | 2020-03-30T21:59:18 | 2020-03-30T21:59:18 | 44,763,701 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('data_manager', '0005_layer_wms_version'),
]
operations = [
migrations.AddField(
model_name='layer',
... | [
"drew@pointnineseven.com"
] | drew@pointnineseven.com |
60976fb7199a41181a2723dbc091beeaff5eb112 | 4cea817833a6097560e272c8e8ecff3683fedff0 | /tools/getvendorprops.py | b6a159711d0bf282ae6362b65144dddfe178b684 | [] | no_license | ngiordano/android_vendor | 4bffb488845bbf492fbc7397efd6b01767afbe89 | 1785a371e365f6a2a2dc533ae0974b840cad01c4 | refs/heads/master | 2020-04-18T07:18:44.678719 | 2012-10-29T21:09:59 | 2012-10-29T21:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | #!/usr/bin/env python
import os
import sys
import urllib2
import json
import re
from xml.etree import ElementTree
product = sys.argv[1];
device = product[product.index("_") + 1:]
def exists_in_tree(lm, repository):
for child in lm.getchildren():
if child.attrib['name'].endswith(repository):
r... | [
"ngiordano75@gmail.com"
] | ngiordano75@gmail.com |
f054090518610eef7e91a188cf6eddfc36451fae | 92782460989bc10540c85804215832b465a6474a | /spell/__main__.py | 45b2f2907893f3d1ded09b0872d5dd381c92b1d3 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | malaikannan/open-tamil | 805ccd2b9bd88df23127425c7bcebaf97f337352 | 99f0c4484cd07a98cf77146c754592e5c26f6965 | refs/heads/master | 2022-07-19T12:35:36.956062 | 2020-05-21T07:41:06 | 2020-05-21T07:41:06 | 266,903,297 | 2 | 0 | MIT | 2020-05-25T23:54:56 | 2020-05-25T23:54:56 | null | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/python
#(C) 2016 Muthiah Annamalai
#This file is part of open-tamil package
from .spell import main
if __name__ == u"__main__":
main()
| [
"ezhillang@gmail.com"
] | ezhillang@gmail.com |
691878e8fd0abf26bc9f4f94fb29813abe14078b | ca4c5a4e551c0010de742d8cf853e2c5d7e9c447 | /push-config-change-template-pyez-yaml-jinja2.py | c05b248b421bf2f861e8f7499916624e65ab9b6c | [] | no_license | fernandescris/push-config-changepyez | 54a010f561982a7547c413f2274c2d022856d346 | da6fb571799ccc70a33a020014b15e5ee3597b96 | refs/heads/master | 2020-03-25T16:01:55.397924 | 2018-08-07T19:29:43 | 2018-08-07T19:29:43 | 143,911,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from jnpr.junos import Device
from jinja2 import Template
import yaml
import sys
from glob import glob
dev = Device(host = '172.19.64.26' , user='csim', password='Juniper123' )
from jnpr.junos.utils.config import Config
cu = Config(dev)
dev.open()
# YAML file.
with open(glob('datavars.yml')[0]) as fh:
data = yaml.... | [
"noreply@github.com"
] | noreply@github.com |
f35307b0ff0effcaa11f2e2c0c4b5dea567b27ee | b2f3f148592242ab4232e8c751b49794cc4e566a | /src/contact/forms.py | db729480f9b4a24344baf97fac35992dec035621 | [
"Apache-2.0"
] | permissive | tingcar/PSEP | 0e1207581b0a8a30e86e78604ac34b4d933c2867 | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | refs/heads/master | 2016-09-06T13:27:07.774806 | 2015-08-26T06:56:45 | 2015-08-26T06:56:45 | 21,908,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django import forms
from .models import Contact
class ContactForm(forms.ModelForm):
class Meta:
model = Contact
fields = ['full_name','organization','email','message']
| [
"tingcar@gmail.com"
] | tingcar@gmail.com |
6fdfbeb35e62d8c18a865ee9eff34cc303f77ce4 | e35ffef188a8b72000ae9402b9143b9f35cf95ca | /web3/utils/filters.py | ccdec69050ed01b26cf2d405c2b6f66fe6989572 | [
"MIT"
] | permissive | riccitensor/web3.py | 7dd9215b6d6755340cfc85c37d06cb076b3518de | 73bfb0f7bab1f035cb9c4ce9a8660cb664e61c58 | refs/heads/master | 2020-12-11T09:16:53.374513 | 2016-08-07T01:11:25 | 2016-08-07T01:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,915 | py | import re
import random
import gevent
from .types import (
is_string,
is_array,
)
from .abi import (
construct_event_topic_set,
construct_event_data_set,
)
def construct_event_filter_params(event_abi,
contract_address=None,
argument_... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
6a6cf4b751fa004d5cfc1e62a5369ea775629cb0 | a890bab24ed856721f05ff8ff116af873416c461 | /src/articles/admin.py | 02a848f6aa4a3dc61ab14a5189bebe9c69b86924 | [] | no_license | sflyntr/ecommerce4 | 3d39cd5957c86ef612f36ac9eddf70af4a9dd2fa | 86582a065b263e892335b45a06255a1ab4866291 | refs/heads/master | 2023-02-09T05:17:53.525195 | 2020-12-31T14:00:19 | 2020-12-31T14:00:19 | 325,811,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.contrib import admin
from .models import Article
class ArticleAdmin(admin.ModelAdmin):
list_display = ('title', 'body', )
# prepopulated_fields = {'slug': ('title',)}
# instead of this, use signal or model save override
admin.site.register(Article, ArticleAdmin) | [
"dongsoon.jung@deliveryhero.co.kr"
] | dongsoon.jung@deliveryhero.co.kr |
21f9277c9fef88f7925787fee898a0cb732d2a86 | eaff968e3750daa0e02dc8a3086d6493c9b52a53 | /get_other_faces.py | 4e3a2f1433029033afb9ab002da8295a30404051 | [] | no_license | PureDark233/FaceRecognition | c4cd1b699a83853a95818850492c145cdb3fa437 | 81583d60e6569ec6805ea99f8da49410cb414a65 | refs/heads/master | 2021-10-28T13:52:50.307988 | 2019-04-24T02:55:34 | 2019-04-24T02:55:34 | 115,905,191 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | import cv2
import dlib
import os
import random
output_dir = './other_faces'
size = 64
if not os.path.exists(output_dir):
os.makedirs(output_dir)
def relight(img, light=1, bias=0):
w = img.shape[1]
h = img.shape[0]
for i in range(0, w):
for j in range(0, h):
for c in range(3):
tmp = int(img[j, i, c] * l... | [
"zfan1998@foxmail.com"
] | zfan1998@foxmail.com |
256d839014b330d4e703d361a17af3129d237b65 | d62f89aa86d9bcee34a66e642021bb402d1de428 | /src/database/__init__.py | 7845c63e06cfacd8ce81662593131e05d98bd050 | [] | no_license | htorianik/pyiboard | 45ab97248754169090f31ee7bbc2ca1aff1b1956 | 95318adea998c3c00e5846f07131f679a8f6bd8e | refs/heads/master | 2022-01-20T16:09:12.548699 | 2019-02-01T11:21:07 | 2019-02-01T11:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py |
from src.database.models import *
from src.database.database import db
| [
"deadstonepro@gmail.com"
] | deadstonepro@gmail.com |
0f75d4c567923407f7902ccfd348eaaa301e91e4 | e64ef305972f385a6027c946669cfe10e6c68f5c | /test_20181016_3_loop.py | c622ec00f2c8533d8ebb82e44d011afbb148b4e6 | [] | no_license | rolandsneilands/RTR105 | 5cbbe2dd56dd065fd75c325f331ae6e96d50aba8 | 3af1345eb2de8bd786fbfd98a1edb49f72ca53af | refs/heads/master | 2020-03-28T01:02:43.481783 | 2018-10-17T08:56:17 | 2018-10-17T08:56:17 | 147,471,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | '''
n = 5
while n > 0 :
print(n)
n = n - 1
print('Skaitļi!')
print(n)
'''
'''
#šeit cikls bija bezgalīgs ,jo 5 ir lielāks kā nulle
n = 5
while n > 0:
print('Lather')
print('Rise')
print('Dry off')
'''
'''
#Jo nulle ir vienāda ar nulli
n = 0
while n > 0:
print('Lather')
print('Rise')
print('Dry o... | [
"rolands.neilands2@inbox.lv"
] | rolands.neilands2@inbox.lv |
0fbadb09aacb27df0585831223c047df21462888 | dcad54c6ed17004baa5d658a069ffdea11762928 | /host/nodeserver/src/sktserver.py | 97be4c0ba2728a9050a59e9381f9d76a815caa2f | [
"MIT"
] | permissive | jbernardis/mycmri | ab7cd4e77ff3f9f5e029f57fc4241e073336747f | f5012f687648844a12e7d220646a2e8843fdbddf | refs/heads/master | 2023-01-23T08:39:25.931732 | 2023-01-10T16:53:39 | 2023-01-10T16:53:39 | 196,320,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | import threading
import socket
import select
import logging
class SktServer (threading.Thread):
def __init__(self, ip, port):
threading.Thread.__init__(self)
self.ip = ip
self.port = port
self.isRunning = False
self.endOfLife = False
self.socketLock = threading.Lock()
self.sockets = []
self.newSockets... | [
"jeff.bernardis@gmail.com"
] | jeff.bernardis@gmail.com |
c4f8b804a42a206eeb42a6259dba76b30f2ee55c | 11acccf8a6fee1cb233955b1d4d1e029523376b6 | /OpenConstructorOptimization/myClasses.py | e56865d76d73d944d6a5c2fc99011d2b56f2b878 | [] | no_license | jtpils/geometric_optimization_for_3d_reconstruction | 85a525f346a3a48f14b47b95069efe5dad1466df | 96980dbaabcabbc0a022a3ad09a8a9a2c0fd3e02 | refs/heads/master | 2020-05-17T17:20:59.320451 | 2018-11-22T22:43:54 | 2018-11-22T22:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,274 | py | # MyClasses
from costFunctions import *
import cv2 # OpenCV library
class stru:
def __init__(self):
self.raw = None
class MyPoint3D:
def __init__(self):
self.x = None
self.y = None
self.z = None
class MyRodrigues:
def __init__(self):
self.r1 = None
se... | [
"negativespade@gmail.com"
] | negativespade@gmail.com |
fee4e1d37330f42b34263f994d91a021098befbe | 81537f77ddfa3820e7a224173b8249af2d665987 | /microcosm_flask/paging.py | dd014de3020195af3815195585789346b2ef9e63 | [
"Apache-2.0"
] | permissive | pokey/microcosm-flask | efa0ae6c39f0ecf85c79f3d2ef607af8bad80635 | 77dd32f4c670c1a6f2ac70dd37d2a3f05d118707 | refs/heads/develop | 2021-01-13T14:58:48.889868 | 2017-01-10T22:55:17 | 2017-01-10T22:55:17 | 79,353,026 | 0 | 0 | null | 2017-01-18T15:23:13 | 2017-01-18T15:23:13 | null | UTF-8 | Python | false | false | 3,576 | py | """
Pagination support.
"""
from marshmallow import fields, Schema
from microcosm_flask.linking import Link, Links
from microcosm_flask.operations import Operation
class PageSchema(Schema):
offset = fields.Integer(missing=0, default=0)
limit = fields.Integer(missing=20, limit=20)
def make_paginated_list_s... | [
"jesse.myers@globality.com"
] | jesse.myers@globality.com |
1faaee759d71a3204acc0d6acb362ab7ac73ab70 | 796e30e3bf0d1105f9090c56a47022f00b207e28 | /manage.py | 622d7aa1e5dc631a7274b488ec069524c8bc20b3 | [] | no_license | Omodi/ToolShare | 77a465472a4a6559844e918b9779690d3fb712cc | 81a2d04e6cda6e767bd7939c3b3d79e2a2f909ad | refs/heads/master | 2021-04-12T08:07:04.176804 | 2018-03-20T18:15:56 | 2018-03-20T18:15:56 | 126,062,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "_261_ToolShare.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"sgreenberg@pfpcyber.com"
] | sgreenberg@pfpcyber.com |
78ec746175809e03465ab3c1d327ae68cb431ec3 | ed17ca55fedd70cc336271e40634b09791437db5 | /products/migrations/0002_auto_20201204_0247.py | 2b725f84fddbe8f837b129604041dbd116466796 | [] | no_license | wecode-bootcamp-korea/14-2nd-MyLittleTrip-backend | a5c8beb0a30ed7ef92fba04499036d4ccfbe2add | d9720f51a30028a866fd62d6c66a1a7e4525ce5f | refs/heads/master | 2023-01-24T13:40:18.601842 | 2020-12-09T19:03:35 | 2020-12-11T03:49:04 | 317,109,595 | 0 | 3 | null | 2020-12-11T03:49:05 | 2020-11-30T04:21:54 | Python | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.1.4 on 2020-12-04 02:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='region',
name='region_code',
... | [
"53214510+lordmyshepherd@users.noreply.github.com"
] | 53214510+lordmyshepherd@users.noreply.github.com |
7c165096a748da77555069066489ea01b72351ae | daa45b4836f31e8fe892cfc487e3bfca6fcfd8ea | /main.py | 2c77d9d00f8e09de86a0f5ef83ac8ff98d62251c | [] | no_license | zhaoyu611/LearnLSTM | c2d77be87a9187e15f10bc634917f5ba1587e3a3 | 833d4c610760134d3c78545b68381a634ba14866 | refs/heads/master | 2021-08-17T09:11:32.707204 | 2017-11-21T02:24:59 | 2017-11-21T02:24:59 | 109,002,432 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,808 | py | from __future__ import print_function
import numpy as np
import tensorflow as tf
from tensorflow.contrib import rnn
import layers
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./data/", one_hot=True)
# Training Parameters
learning_rate = 0.001
trainin... | [
"zhaoyuafeu@gmail.com"
] | zhaoyuafeu@gmail.com |
4149f876ae704375cbe56b5b19d6c127d0596283 | 544ea63f26282bf8fc8173df4a2054108062320d | /test_digging_dict.py | 912c094dfea1a39bcaedde62d6840171e684976a | [] | no_license | Idate96/Relational-Deep-RL | 70670275fd260be6cd50f38bc4dde17dc37f98ac | b3361037046f5211217501f6dafa23e37ab1b4b0 | refs/heads/master | 2023-05-31T05:35:12.699927 | 2021-06-11T14:58:17 | 2021-06-11T14:58:17 | 370,044,904 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,906 | py | import os
from random import seed
import numpy as np
from gym.envs.registration import make
from stable_baselines3 import SAC, PPO, A2C
from stable_baselines3.common.evaluation import evaluate_policy
from stable_baselines3.common.policies import ActorCriticPolicy
from stable_baselines3.sac.policies import MlpPolicy
imp... | [
"lorenzoterenzi96@gmail.com"
] | lorenzoterenzi96@gmail.com |
0821677dd140982bafff1543bf3a17373cbffbaf | 6669d4c42e70e4306e4503b5b2a7b0a837f0e69f | /nytimes.py | de94b0468e472fb848efd4345eef8696468c14d2 | [] | no_license | HacktheUniverse/amnhvis | 3b6d2f4b23f38a4460df21d827ff783cee8b9876 | 44aff9f2cd0cddf429cff795a2925d2caf5a9a04 | refs/heads/master | 2021-01-15T10:50:59.980125 | 2015-01-21T03:29:01 | 2015-01-21T03:29:01 | 26,367,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import time
nytimes_url = "http://api.nytimes.com/svc/search/v2/articlesearch.json?page=1&&fq=section_name:("+"\"U.S.\""+")&begin_date=%s&end_date=%s&api-key"
nytimes_key = "SECRET"
outfile = open("headlines.csv", "w")
for year in range(1982,2015:
for month in range(1,13):
start_date = "%d%02d%0... | [
"bkey23@gmail.com"
] | bkey23@gmail.com |
a58533d3e0ece739374952851246a130ea035d13 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/traits/ui/qt4/toolkit.py | 95a3bc996def22c143270a1727135aa6b5b892ba | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 50 | py | # proxy module
from traitsui.qt4.toolkit import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
774169a13597979728d4a96d7031d0645e817fed | d346691ac828f619bfaaa9a9613cdcb877e08fac | /portfolio/admin.py | e87ef42d94cfc973babd131cf1bfb84208150dbd | [] | no_license | davidcast973/personal_portfolio | 4421139f5d4d840e6b89fe5288aa6c3c7f00d863 | bfa4934609fa41742d37c08c8849fc8cea276d68 | refs/heads/master | 2023-04-22T03:10:49.107831 | 2021-05-22T05:10:58 | 2021-05-22T05:10:58 | 369,675,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.contrib import admin
from .models import Project
admin.site.register(Project) | [
"dcastellanosc1300@alumno.ipn.mx"
] | dcastellanosc1300@alumno.ipn.mx |
f868444874f8e2c042cdc6c795c510828559a82d | a17b29e233e9e935037b07812e0f27e0c1f17739 | /null-scripts/exception.py | 6a67387f3c64b1d7bae32260e2c7d14033f7adb1 | [] | no_license | solidmonster/python_scripts | 14e4c512184db100032bf64b5370da2b60f0dda7 | edce2415c7ff084813fde671c14259342d54fef4 | refs/heads/master | 2020-05-15T21:14:04.042297 | 2019-04-21T06:08:11 | 2019-04-21T06:08:11 | 182,494,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #d = {"message": "All Good"}
d = {"message": "All Good", "status": "OK"}
#l = [1,2]
l = [1,2,3]
try:
print d["status"]
print l[2]
except KeyError as e:
print "Got Key Error"
except IndexError as e:
print "Got List Index out of range"
finally:
print "In Finally"
| [
"noreply@github.com"
] | noreply@github.com |
2ba70767dd7a6fdb1eafaa1ff13b4bd00f269013 | 83e96abe109d65a922679df75cf3108d9130f88b | /python_classpractice.py | 0340d03973ccd6958ed6e016b5015c0e465968af | [] | no_license | AStudentCoder/ICS3Uredo | 6c2934154ae4d86f62916e21d4a0987283809709 | dbfd5348fdfb929a6c119aab8c87a801bf4c87b4 | refs/heads/master | 2020-01-23T21:42:47.994742 | 2016-11-24T15:46:59 | 2016-11-24T15:46:59 | 74,686,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | class DogInfo:
increase_weight = 1.01
num_of_dogs = 0
def __init__(self, name, breed, age, fur_colour, weight): #The things in brackets are arguements
self.name = name #These are instance variables
self.breed = breed
self.age = age
self.fur_colour = fur_colour
... | [
"noreply@github.com"
] | noreply@github.com |
c2fd8b8efffd3ac4fbe02bc239488bae9da88036 | 53ca18982713503646c06535615fef1f5627f721 | /Python/chatbot.py | 1b60f095041be171dfcdc31f47272601bf59661a | [] | no_license | imaasthag/imaasthag.github.io | 7592305146926affc41040c193719dea47322b77 | 3546820761863e1e17b84b6c105cca10e609f309 | refs/heads/master | 2020-03-22T18:57:38.628472 | 2018-08-02T20:56:46 | 2018-08-02T20:56:46 | 140,494,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # --- Define your functions below! ---
def intro():
welcome = ("Hi! I'm Chatty bot!")
print(welcome)
def process_input(text):
if (text == "Hi!"):
print("Hello There!")
is_valid_input(text, valid_responses)
elif(text == "Square up!"):
print("Be there or be square :D")
elif (t... | [
"gwc@gwc13s-MacBook-Pro.local"
] | gwc@gwc13s-MacBook-Pro.local |
41f96ad6f39417ec82693c76a26dcce3c3ac0026 | c6e939cb87210a3776189aeb1e61be6e9e44ae42 | /vowels7.py | b7c36bfc1b1b1bf9a070e60e110bc3698ec3979b | [] | no_license | Devansh-Maurya/Python-3-codes | 06bfe70dc7bc9de4f4b80d68aee1a6fb8c41a8fd | fb1f48f5e7a74b8184aed0679f0b37fdfbb24092 | refs/heads/master | 2020-03-07T14:26:33.128772 | 2018-03-31T11:37:27 | 2018-03-31T11:37:27 | 127,526,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | vowels=set('aeiou')
word=input("Provide a word to search for vowels: ")
found=vowels.intersection(set(word))
for letter in sorted(found):
print(letter)
| [
"Devansh233@gmail.com"
] | Devansh233@gmail.com |
aac382f39e2452efcba1854c62e3333cdaec4128 | b6febb2ed59daf6c9dc1b0000fa43e41c6cd9aef | /modules/Stochastic_methods/alternative_version_assignment1_TRASH/integrals_estimation.py | dd103f04a09875e361705a69cb49a5ebd6468138 | [] | no_license | Gustavroot/TCD_MSc_HPC | 358a39a3e3b7c4bee3478ef6cdee13e2ef1467fa | a70d4d65f1535c302826f98fed53b9ba82535cbd | refs/heads/master | 2021-01-12T02:05:31.552865 | 2017-04-26T09:44:19 | 2017-04-26T09:44:19 | 78,472,054 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | #Program for estimating integral with the Monte Carlo approach
import pyranlux
#Function to call the RANLUX random numbers generator
#IMPORTANT: the generated random numbers live in the interval
#including 0 and excluding 1. N is the cardinality of the
#set of random numbers to retrieve from RANLUX
#Source for wrappin... | [
"tavroot@gmail.com"
] | tavroot@gmail.com |
bdc4b50832daa23779baf1ddce94fb0fda27d228 | 8c3755e907a8f7fbae4e5e3334aa9332f8f705bb | /python_example_scripts/stack_lifo.py | d367791a5ad2ff1345144dca57c6111f3d7a842d | [] | no_license | xaneon/PythonProgrammingBasics | 20c9db82f621a41735856a0b008bf2c328d8e4b5 | accf4d16034d33e616b5ebe46f69c1130b09f85e | refs/heads/master | 2020-06-13T13:47:02.995326 | 2019-07-01T13:45:29 | 2019-07-01T13:45:29 | 194,235,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import random
import os
import time
def print_gegenstande(gegenstande):
os.system("clear")
for i, gegenstand in enumerate(gegenstande):
print(str(len(gegenstande) - i) + ". " + gegenstand)
def eliminate_fifo(gegenstande):
if len(gegenstande) == 0:
print("Kein Gegenstand mehr uebrig.")
... | [
"bonne.habekost@gmail.com"
] | bonne.habekost@gmail.com |
9391b31cd13597c6fe1434a51e63e7aec430beb3 | 3647a797d42fd51b4290f9bb3c56b80cebd1c17f | /lesson215.py | 83d846bf66e88a1f14a6e902be2e796be4870611 | [] | no_license | ipcoo43/algorithm | 1ff8193b0adc92056fbbb7cafcbf76afa6dc7543 | 7088e6a6f71f6c32feab0806cb9337a8c45755c3 | refs/heads/master | 2020-05-17T21:15:37.671199 | 2019-05-03T03:04:48 | 2019-05-03T03:04:48 | 183,966,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import glob2
print(list(filter(lambda x:'LIFE IS TOO SHORT' in open(x).read(), glob2.glob('./data/t*.txt') ))) | [
"ipcoo43@gmail.com"
] | ipcoo43@gmail.com |
9124186352a1646a5ed633096678d7702793dcee | 6cdaaf2a8a2e690ed5bff4abc3f91b9925caf374 | /lecture_6.py | 76be901a70c05bdba752b1ffb80a0ac9c40fef0c | [] | no_license | jenjong/Python_lecture | 7a1624adf4501c1c8aa56bc456ac3ac3d4c2971a | a2537f12d68e563ad6288c9ddea8493d2de673aa | refs/heads/master | 2020-03-23T00:07:14.191149 | 2020-01-28T23:44:12 | 2020-01-28T23:44:12 | 140,845,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 1 21:50:11 2019
@author: Jeon
"""
s1 = set([1,2,3,1,4])
a = {}
type(a)
a = set(a)
type(a)
result = 0
def add(num):
global result
result += num
return(result)
add(3)
add(4)
# Class
class Cal:
# Intialize the value used in the instance
def __init__... | [
"jj.jeon@gmail.com"
] | jj.jeon@gmail.com |
713764dbe1bfe88ca4cc885f88d5e21752f625ac | bae9d2588a1f6970a2fe5125a9bbfa562c2622d2 | /1050.py | bb0c23d6b64df4dfc0294e2dba8c7c59adaeba34 | [] | no_license | cloudhee/algorithm_codeup | 16bf9c339c29c16371f8f05582d6c7805c9ba251 | 1c5eace9608936df14001545fe12ec04aa12e11a | refs/heads/master | 2022-08-07T01:16:43.796958 | 2020-05-18T13:27:56 | 2020-05-18T13:27:56 | 260,847,047 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | a, b = input().split()
x = int(a)
y = int(b)
print('%d' %(x==y))
| [
"cloudhee25@gmail.com"
] | cloudhee25@gmail.com |
f6f34425bb913829a0b73158130c63a8ddf7f2bd | fe7c8ec76fa8b0bcd98589a4b94a931dbb6b175d | /main-board/software/pawn/pawn_include/examples_python/scratch/reading_output.py | a395a73ca75a202e438f0e3342565b83ad743746 | [] | no_license | z80/supply | a75d8e3da10e93756fc877e46aea8f88d09737d7 | 720091f0af33241a97c1a33869e9a4989c630dcf | refs/heads/master | 2021-01-02T22:39:06.130853 | 2014-02-11T08:55:57 | 2014-02-11T08:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 15:12:04 2013
@author: z_80
"""
#Socket client example in python
import socket #for sockets
import sys #for exit
#create an INET, STREAMing socket
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error:
print 'Fai... | [
"bashkirov.sergey@gmail.com"
] | bashkirov.sergey@gmail.com |
13de009f608bec4093971ef862a89b8809f7cee7 | 6e029ba64976e21912d58e5781738eeeb02e86fd | /api/serializers.py | 25d764c6e17752504fb98de97f84ae036a37e6ab | [] | no_license | prastamaha/django-rest-crud | 6ad36adff5f7472957a9ac6d6983f53229b4b145 | 6d67c987a6dbc14c1bfd595628eade880526a38e | refs/heads/master | 2021-03-04T09:24:38.676698 | 2020-03-09T12:02:04 | 2020-03-09T12:02:04 | 246,023,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from rest_framework import serializers
from .models import *
class SiswaSerializer(serializers.ModelSerializer):
class Meta:
model = Siswa
fields = '__all__'
class TugasSerializer(serializers.ModelSerializer):
class Meta:
model = Tugas
fields = '__all__' | [
"prastamaha@gmail.com"
] | prastamaha@gmail.com |
4d04e2a27689830ba778283459cef93ab50d4eda | 33f159315e61dbaf3e032a3dc60261c5232da41f | /plan_management/admin.py | dc7e0d3394da84904828e2c630db703123d3aa40 | [
"MIT"
] | permissive | ssrVktr/rfidstation | 8b70ad95bd9f83584467aae59303c976d4dd647f | 0115290376a5b75a1c7da922df31942c351887e8 | refs/heads/master | 2022-05-06T06:41:35.327692 | 2018-09-28T03:18:04 | 2018-09-28T03:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | from django.contrib import admin
from .models import Plan,ApplicationStatus,Plan_Summary,SummaryStatus
@admin.register(Plan)
class PlanAdmin(admin.ModelAdmin):
list_display = ('department','user','year','date_of_application','application_status')
raw_id_fields = ('user',) # 一对多人性化
filter_horizontal = (... | [
"847834358@qq.com"
] | 847834358@qq.com |
b6fa1efaa794a7a60877ebf4753cc19a49117b67 | a859aadea24af173a175c2d01910314487ec6fbf | /common/coco_caption/pycocoevalcap/eval.py | 1947f13ea55f7a0df5153ed2c5e8c352ae50a0fe | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | jiahuei/tf-sparse-captioning | cc52cbef5590b47727ea89f265011c9ab58aebad | 9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1 | refs/heads/main | 2023-04-07T05:27:28.395758 | 2021-04-19T11:27:28 | 2021-04-19T11:27:28 | 359,341,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | __author__ = 'tylin'
from common.coco_caption.pycocoevalcap.tokenizer.ptbtokenizer import PTBTokenizer
from common.coco_caption.pycocoevalcap.bleu.bleu import Bleu
from common.coco_caption.pycocoevalcap.meteor.meteor import Meteor
from common.coco_caption.pycocoevalcap.rouge.rouge import Rouge
from common.coco_caption.... | [
"tanjiahuei@gmail.com"
] | tanjiahuei@gmail.com |
00139f3beb054e0ce276be104c963623e3424ec3 | 8b19b62e8252728296bfee57675bcc28bcd4ede0 | /A681-economy-game.py | 76ff2870e40e33cfa44378050a83c623d9945696 | [] | no_license | maiquynhtruong/codeforces | 8aa5652da983fc6518b9de9e1884e3174bbbb166 | 2bac57b0d4cbb75b90b5c78b7504e09d469a6fa4 | refs/heads/master | 2021-01-11T03:43:39.032814 | 2018-02-11T20:54:49 | 2018-02-11T20:54:49 | 71,415,499 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | n = input()
for a in range(n / 1234567 + 1):
for b in range(n / 123456 + 1):
t = n - 1234567 * a - 123456 * b
# print 'a=', a, 'b=', b, 't=', t
if t >= 0 and t % 1234 == 0:
print 'YES'
exit(0)
print 'NO'
| [
"noreply@github.com"
] | noreply@github.com |
eab7c9529607979d93aef8ede19d1ebee0762e34 | 4f8f221be70dae8639d457d340ac3cb9fecd594f | /filters.py | bcf604f606a87c0ac8290708fb95f6a486041b4b | [
"MIT"
] | permissive | ESHackathon/roses-pdf-generator | a9eddbb102729e4447215c0547ba3a017eaf06a9 | 610436fbbed7b2f8b4f1670bc25ffd16f51c1147 | refs/heads/master | 2020-03-12T15:58:13.852026 | 2018-05-01T00:31:42 | 2018-05-01T00:31:42 | 130,703,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from re import finditer
def title(value):
matches = finditer('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', value)
words = [m.group(0).title() for m in matches]
return ' '.join(words)
def is_dict(value):
return isinstance(value, dict)
def is_list(value):
return isinstance(value, list... | [
"chris@digitalsolutionfoundry.co.za"
] | chris@digitalsolutionfoundry.co.za |
bbcf9a0c416ce4a30234e4b0393909109c12ac72 | 841d80c30ed6ea42ffe19a6705f4cf97a0b3a0c5 | /02-go-forth/tf-02.py | 926122bab95694b29031fe12c2fc6c599f8350ae | [
"MIT"
] | permissive | kimsikkong/programming-patterns | ecf13ecfff3b7f437a4a00fa6153fe4af5341a01 | 0c0781ab6365d60e0a370030b8e8c289bd74bb19 | refs/heads/main | 2023-03-11T21:31:10.980585 | 2021-02-24T13:13:10 | 2021-02-24T13:13:10 | 336,768,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | #!/usr/bin/env python
import sys, re, operator, string
#
# The all-important data stack
#
stack = []
#
# The heap. Maps names to data (i.e. variables)
#
heap = {}
#
# The new "words" (procedures) of our program
#
def read_file():
"""
Takes a path to a file on the stack and places the entire
contents of ... | [
"kimsikkong@gmail.com"
] | kimsikkong@gmail.com |
e9f6a3313db0e78044c3b244fcf7f6d050ace7fa | 11f4018e7a4b7fd704c6a1c27f65a5d588628ddf | /cms/admin/dialog/views.py | a936dc1cf2870b131ea4cc2c70baca4cb349931e | [
"BSD-3-Clause"
] | permissive | cherry-hyx/divio-django-cms | 155dbcb4902d67e0643ea27e0a12fb98857fdf54 | 577007f4249c3bdcf8922cd17e3a248b344788cd | refs/heads/master | 2022-12-03T15:15:59.013100 | 2015-05-08T09:56:23 | 2015-05-08T09:56:23 | 35,271,668 | 0 | 0 | BSD-3-Clause | 2022-11-22T00:35:40 | 2015-05-08T09:49:04 | Python | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
from django.contrib.admin.views.decorators import staff_member_required
from django.http import Http404, HttpResponse
from django.shortcuts import get_object_or_404, render_to_response
from cms.models import Page
from cms.utils import get_cms_setting
from cms.admin.dialog.forms import Permissi... | [
"hjb.123@163.com"
] | hjb.123@163.com |
7fcb10399c43e9bb204866d62b92da5561d26ca4 | 43520b04bc78c5cc7376f6f3d51b306240b5fa2c | /mutual_fund_tracker.py | a5e50cd921d1966f8e810400551b4177f2d5830f | [] | no_license | Hoozits728/mutual_fund_tracker | 1d834594e330cb831bd02547270f9feb153ec7d6 | 4eadf7098b4165a500638ab3abd61b62df5a62cc | refs/heads/main | 2023-05-09T04:09:54.651507 | 2021-06-05T11:38:05 | 2021-06-05T11:38:05 | 373,010,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,013 | py | import requests, bs4
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from openpyxl import load_workbook
impor... | [
"noreply@github.com"
] | noreply@github.com |
224e7ac3dff3f24f45821a832a7a16546a31d23f | fd60b97a4a506bbff92709c38136fda8e4a03274 | /Ben's Projects/Archived Projects/Self-Driving Buggy Rev. 2/Camera.py | af6d4f57c28feb56bfca0a855e95252d97f4b525 | [] | no_license | BPPJH/Self-Driving-Buggy | 3727795384f3a5d530c9bc0ab281a09dafa6748f | 7268b9e6bd6274f0520c7d57cda3af250316d913 | refs/heads/master | 2020-12-29T03:34:24.048157 | 2015-08-12T01:48:03 | 2015-08-12T01:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,905 | py | import cv2
import numpy
import copy
import time
import os
projectDir = os.path.dirname(os.path.realpath(__file__))
class Camera(object):
excludedSources = set()
increaseFPSActions = []
resolutions = {
"logitech": {
8: (1920, 1080),
12: (1440, 810),
23: (960, 54... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
137b72bb892f1120c7ec2ab4eff5fb5d3e9c2cb0 | a8352513aefba9cad2868eed987050e8d52dfc90 | /pyang/yin_parser.py | 934b6b15bd7e3a61f6518667c4752d23627695f2 | [] | no_license | vhosakot/yang_to_xml | a09c3e3dc39b7bfdf5202cc1750f46c171694a8c | d49b81331f973c1b9b46b054bc45baba9d721c4e | refs/heads/master | 2021-07-16T07:35:11.943175 | 2018-03-15T17:03:09 | 2018-03-15T17:03:09 | 125,398,882 | 6 | 7 | null | 2021-07-22T11:40:29 | 2018-03-15T16:52:05 | Python | UTF-8 | Python | false | false | 14,626 | py | import sys
from xml.parsers import expat
import copy
from . import syntax
from . import grammar
from . import error
from . import statements
from . import util
yin_namespace = "urn:ietf:params:xml:ns:yang:yin:1"
# We're using expat to parse to our own primitive dom-like
# structure, because we need to keep track of ... | [
"vhosakot@cisco.com"
] | vhosakot@cisco.com |
3f9176bfbc4b64d2b60c858a1ea0840683339b80 | c84a3895e6fdcaff5a9f97abe9c3efbecbad535f | /strategy/indicator/stochastic/stochastic.py | 70af686788a789545bdd38b4abffeef8074a6528 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cal97g/siis | 5a171eb34dd3f7ae6e19d8065ff1e2f8b6251319 | adc06e48e5df6ffd7bed6ee6b79d0aa3cfe80e0d | refs/heads/master | 2020-07-23T18:11:57.267225 | 2019-09-05T01:00:37 | 2019-09-05T01:00:37 | 207,663,001 | 0 | 1 | null | 2019-09-10T21:05:25 | 2019-09-10T21:05:25 | null | UTF-8 | Python | false | false | 4,547 | py | # @date 2018-09-02
# @author Frederic SCHERMA
# @author Xavier BONNIN
# @license Copyright (c) 2018 Dream Overflow
# Stochastique indicator
from strategy.indicator.indicator import Indicator
from strategy.indicator.utils import down_sample, MMexp_n, MM_n
import numpy as np
from talib import STOCH as ta_STOCH, STOCHF ... | [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
748842a5ab48a01478f00a061ed206a526973006 | f49c866f416a0c2cf89347aa2e0814553f4b5d52 | /models/bertmrc.py | 7c7830f2c6a292b529a226955bfb312002f5163a | [] | no_license | thunderboom/NER_MRC | 3fec4a4a821592fe9d092ac2b3b9b167dee25cb5 | a0f6a9a77ed7ed5d6ff4d46d114b83871480b1e7 | refs/heads/main | 2022-12-31T17:06:08.782889 | 2020-10-27T10:04:31 | 2020-10-27T10:04:31 | 307,647,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | import torch
import torch.nn as nn
from transformers import BertConfig, BertModel
from torch.nn import functional as F
class SingleLinearClassifier(nn.Module):
def __init__(self, hidden_size, num_label):
super(SingleLinearClassifier, self).__init__()
self.num_label = num_label
self.classif... | [
"470810634@qq.com"
] | 470810634@qq.com |
b59d6a7bc1e027931ad54bba4403d4737cec51d0 | ea03e79a0ed9f259c01de8ad21bc28b131c55676 | /Newton.py | 3976768cfd42eb80132c686517cf276ae5415893 | [] | no_license | carlos-paezf/Metodos_Numericos_Python | 056a006bab3789ad1599d8f62e6496ecfb48d9ca | d6f33a6eec3e791970f76bbf2ac43f2327f51b97 | refs/heads/master | 2022-12-23T06:27:45.238567 | 2020-10-06T13:04:43 | 2020-10-06T13:04:43 | 284,999,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | #Implementacion del metodo de Newton y algunos casos de salida
from math import *
def expo(x):
return x**2+exp(-2*x)-2*x*exp(-x)
# retorna expo(x)= x^2 + e^-2x - 2xe^-x
def expoprima(x):
return 2*x-2*exp(-2*x)-2*exp(-x)+2*x*exp(-x)
# retorna expoprima(x) = d/dx(expo(x))
def trig(x):
return cos(x)-x
# reto... | [
"carlos.paezf@usantoto.edu.co"
] | carlos.paezf@usantoto.edu.co |
d890f0f16cb9c525e64f3d27adce3144869654a3 | b41ee2ba54f9499d39c04193199537784830d3f9 | /group_E/app.py | 0652fd25557fd2588aefd463293906d6d3d758a2 | [] | no_license | Lumos-az/OMS_Backend | 96b369f681ade3f8e3824c7d13896be1e78cf288 | 7e059c638d13d1586d242e5bfaa1ac9a928b7cdf | refs/heads/main | 2023-06-03T07:55:57.407443 | 2021-06-19T15:16:19 | 2021-06-19T15:16:19 | 374,044,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from flask import Flask, config,render_template
from flask_cors import CORS
from flask_mail import Mail, Message
from config import Config
from models import db
from routes import routes
from resources import email
from common import gloVar
app = Flask(__name__)
db.init_app(app)
gloVar._init()
CORS(app, supports_crede... | [
"angzhan.he@zju.edu.cn"
] | angzhan.he@zju.edu.cn |
ea705c99f1a068f0c6dc1d222ccc5d6689eb7768 | 07b781182e2b43dc32a4d411f69babb0d5f860fb | /app.py | c36d626630a2c64efe42a17285ddc0c324131a9c | [] | no_license | ALDrinkwater1989/task-manager | 18aa99eeb77cc4f15e81233ee1cf7f4bab6a91aa | 7a5263b2c674a55729baf071ce0069e0a6fd3680 | refs/heads/master | 2021-06-15T03:57:26.017839 | 2020-09-30T15:03:50 | 2020-09-30T15:03:50 | 206,148,646 | 0 | 0 | null | 2021-06-10T21:56:11 | 2019-09-03T18:44:46 | HTML | UTF-8 | Python | false | false | 3,108 | py | import os
from flask import Flask, render_template, redirect, request, url_for
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
app = Flask(__name__)
app.config["MONGO_DBNAME"] = 'task_manager'
app.config['MONGO_URI'] = 'mongodb+srv://root:rootUser@myfirstcluster-lrum9.mongodb.net/task_manager?re... | [
"ubuntu@ip-172-31-13-249.eu-west-1.compute.internal"
] | ubuntu@ip-172-31-13-249.eu-west-1.compute.internal |
bb419730c6e1aa4ee9fc60c451ce07dde54790ce | 5885a4d63704a475a4d7b3b1a01e5be764d85b9a | /Textcorrector/Textcorrector/urls.py | 2c81acfe3eec4a18f938be7d1b45eee9e449f575 | [] | no_license | Sorabh-Singh/python | e66410b6a73a237e316de11d6139a00a11cc84b6 | 5e5add144669db06fe7ac2a82333faa40824625a | refs/heads/master | 2022-11-22T01:46:05.457558 | 2020-07-29T04:12:13 | 2020-07-29T04:12:13 | 261,828,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | """textutils URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-bas... | [
"sorabhsingh4@gmail.com"
] | sorabhsingh4@gmail.com |
445b077002aef32591662da3bace4d10a23b6301 | 7085f2c2b2520061c8310d379d4120c936aaa656 | /PlaceServices/search/urls.py | e64811fa1a37655989b6c63f59722e9b7d01fbb6 | [] | no_license | nerostamas/place-search-api | e951c4efbf1451b972bbb623391a3ba30501d35b | e2af05865b6b840fdcc957fa28a9191ffb5ee3dc | refs/heads/master | 2020-03-19T08:00:18.933507 | 2018-06-05T11:31:00 | 2018-06-05T11:31:00 | 136,167,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.urls import path
from . import views
from rest_framework.documentation import include_docs_urls
from . import views
from rest_framework import routers
urlpatterns = [
path('search', views.Search, name='home'),
]
| [
"nguyenphuc9119@gmail.com"
] | nguyenphuc9119@gmail.com |
70b9ff857f052de1494af6f15324f7f6a36b5a94 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/input/__init__.py | 073192a4d4a4bb57b86582751ad2f0503f45db8e | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | # Embedded file name: scripts/client/input/__init__.py
pass | [
"55k@outlook.com"
] | 55k@outlook.com |
f5d5006b4072569ff8d31a684c502b88385bc785 | ba161fa3baa680dd505add264299538770d1df90 | /app/views.py | 97bdff8cfd6248e32c9cef7983cc352d388dddda | [] | no_license | lowlevel-1989/django_channels | edb9e515f3ae401fcda405da8b4492ac3a578488 | 75c5510823ddaf1cc16dcc63d26fe2eda731aa3b | refs/heads/master | 2023-08-12T01:29:26.231493 | 2020-02-07T12:41:16 | 2020-02-07T12:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from http import HTTPStatus
from django.http import HttpResponse
from django.shortcuts import render
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
def index(request):
return render(request, 'app/index.html', {})
def hello(request):
channel_layer = get_channel_layer()
... | [
"vinicio.valbuena89@gmail.com"
] | vinicio.valbuena89@gmail.com |
b6d47032e2e00c209bdde8b046df5c30cbbd2c42 | e6e87811f67c17e8c02fb8966fb1a082f5fd99a8 | /lib/python3.7/hashlib.py | 235476df2cf34c5b4933cdaa1b2436bf10a7618a | [] | no_license | matheusglira/Projeto_ToDo | 18975ad8b3807392f39089dea01c84dd43dce433 | 9dafa271c94d1f7149dc06c7d6267d8205ff2440 | refs/heads/master | 2020-12-15T00:27:59.655877 | 2020-01-19T21:32:01 | 2020-01-19T21:32:01 | 234,926,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | /root/anaconda3/lib/python3.7/hashlib.py | [
"mathgomes16@gmail.com"
] | mathgomes16@gmail.com |
df76e4d9c50d400b858e53bcf1a7475c36c787b8 | 12727b0e298171ff0f313ae458a9f57df5fdf6f7 | /CODE/Backtesting/backtest2.py | 0c6d962f88dd60e2942b310a0276b9334d629505 | [] | no_license | IanMadlenya/Stock-Portfolio-Recommendation-Engine | f8693e7b3483ccc9a2730d4baf89fd070f6490c0 | 29d42ff207297c95c8167db7db9172b33ce7b535 | refs/heads/master | 2020-03-27T20:58:14.993908 | 2018-05-08T23:49:01 | 2018-05-08T23:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from optimization import *
from marketsim import *
#Backtesting 1-week predictions model
capital = 1000000.0
ret = 0.005
time = 5.0
date = '2018-03-27'
pricefile = './data/prices_short.csv'
predictfile = './data/predictions/short_term.csv'
title = 'Backtest of Portfolio made using 1-Week Projections'
optimal_port, po... | [
"noreply@github.com"
] | noreply@github.com |
90f3fd457bb6be4986e3cb9a139ce1bb796a0b93 | 260133e46c0c88fd20f2ed18309c5f46508b7fb9 | /opengever/core/upgrades/20180427113547_remove_repository_favorites_registry/upgrade.py | d35786bcd9e9437d14564de8a7f13537174a91fb | [] | no_license | robertmuehsig/opengever.core | 4180fbea1436fade9b33232a293b0d43ebfc6c51 | 63b3747793d5b824c56eb3659987bb361d25d8d8 | refs/heads/master | 2020-09-08T14:55:00.340222 | 2019-11-08T10:16:02 | 2019-11-08T10:16:02 | 221,163,734 | 0 | 0 | null | 2019-11-12T08:08:59 | 2019-11-12T08:08:54 | null | UTF-8 | Python | false | false | 209 | py | from ftw.upgrade import UpgradeStep
class RemoveRepositoryFavoritesRegistry(UpgradeStep):
"""Remove repository favorites registry.
"""
def __call__(self):
self.install_upgrade_profile()
| [
"e.schmutz@4teamwork.ch"
] | e.schmutz@4teamwork.ch |
0d2ef567ee3eaa7a581b47885130216e71a3bb31 | af1f72ae61b844a03140f3546ffc56ba47fb60df | /tests/aat/api/v1/client/models/network_generator_read_write_ratio.py | 62485f958ac63441c42c5c9fb48e1e30f1d3eace | [
"Apache-2.0"
] | permissive | Spirent/openperf | 23dac28e2e2e1279de5dc44f98f5b6fbced41a71 | d89da082e00bec781d0c251f72736602a4af9b18 | refs/heads/master | 2023-08-31T23:33:38.177916 | 2023-08-22T03:23:25 | 2023-08-22T07:13:15 | 143,898,378 | 23 | 16 | Apache-2.0 | 2023-08-22T07:13:16 | 2018-08-07T16:13:07 | C++ | UTF-8 | Python | false | false | 3,758 | py | # coding: utf-8
"""
OpenPerf API
REST API interface for OpenPerf # noqa: E501
OpenAPI spec version: 1
Contact: support@spirent.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class NetworkGeneratorReadWriteRatio(objec... | [
"noreply@github.com"
] | noreply@github.com |
11f17b0221eee5547d8cfd0d834b89a443035ad0 | 0134f131eeecac937dd291993343c595c61b5053 | /mc_studies/chic_fidcuts_effects.py | d90accea02a166cea841d603a9347418fdb033d3 | [] | no_license | tmadlener/chib_chic_polFW | f11e1874d63fae44b0e941fc4af98ad99e9541a1 | 9f3ac9dd9ce72a824660bde0224fead511259225 | refs/heads/master | 2021-08-29T05:15:38.819574 | 2021-08-13T09:51:48 | 2021-08-13T09:51:48 | 117,083,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,474 | py | #!/usr/bin/env python
"""
Script to check the effect of fiducial single muon cuts on chic2 / chic1
polarization ratio
"""
import ROOT as r
r.PyConfig.IgnoreCommandLineOptions = True
r.gROOT.SetBatch()
from utils.hist_utils import combine_cuts, set_bins_to_zero
from utils.plot_helpers import mkplot
from helpers impor... | [
"thomas.madlener@cern.ch"
] | thomas.madlener@cern.ch |
394296c770bc6de32195c47b77cd7fa32ce151f3 | 1c5086d2f59d415deba30c834c663639e4ed9ff1 | /SWdaily/SWdaily/urls.py | 217784e9c9c0dbc689f747f908aeb48b276c974f | [] | no_license | fooltomb/shuweidaily | 823116e62f8505977ce77185dc63d88bc8c1b657 | b4426cfae334292fdede8a793df510f15e737cae | refs/heads/master | 2020-04-09T21:34:20.377103 | 2018-12-06T02:51:11 | 2018-12-06T02:51:11 | 160,606,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """SWdaily URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"fool_tomb@sina.com"
] | fool_tomb@sina.com |
8960da880284c15f72e54dabd018b9acc02dd26f | a44033c18e3751adbcdc7d7d5d7cb17d2f638761 | /jolivia.py | f39fa35e1fa1d01060714ffde532a22aa34b2b42 | [] | no_license | sheilla400/sheilla | c846ad23996c60717be6bdf44bc733eaf59c19cb | 5b69c5a1fec7c4e234bb4dafc73979f9d7deaca4 | refs/heads/master | 2020-07-05T05:34:56.647773 | 2015-09-11T11:53:25 | 2015-09-11T11:53:25 | 42,304,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py |
student_list=[]
library_list=[]
class Student(object):
def __init__(self, sname, sidno, my_bag=[] ):
self.sname = sname
self.sidno = sidno
self.my_bag=my_bag
class Book(object):
def __init__(self, bname, bidno, bcost):
self.bname = bname
self.bidno = bidno
self.bcost = bcost
class Librarian(object):
... | [
"oliviaatto@yahoo.com"
] | oliviaatto@yahoo.com |
7ef84a85f450a07a280e556b11a4dd7a13925d09 | 23d5e8d75e61fa79c3ab98db52bcdc089b588fa3 | /strings/Sliding window/567. Permutation in String.py | 2debe8213c4a01795bb0088978bf6468c565ea6b | [] | no_license | Jusawi/Interview-practice | 65dfb41fdc04c57804c7772d487bac2236814e5c | 079ccf78c038080ff8440dd7f5a180133995a146 | refs/heads/master | 2020-04-09T17:25:28.376076 | 2019-01-19T16:51:43 | 2019-01-19T16:51:43 | 160,480,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | class Solution:
def checkInclusion(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: bool
"""
if not s2:
return True
l, r = 0, len(s1)
cnt1 = collections.Counter(s1)
cnt2 = collections.Counter(s2[l:r]) #creating a window
... | [
"noreply@github.com"
] | noreply@github.com |
7e79390d455220975ac004588a1c09d832522655 | b7ed10bea2f8c68d150c0afd747041a8c854669f | /app/pspnet.py | 72205dd91687129c959eaaa8a0e652451f671cab | [] | no_license | chandpes/Capstone_DL_Object_detection | 668ad22c9be7035e54d8cb3d461f60ec3a2a4ea6 | d06631ddf58b00a65aa7ea0427f3390dde4c81f7 | refs/heads/master | 2021-09-05T09:20:29.549072 | 2018-01-26T01:38:10 | 2018-01-26T01:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | ../models/pspnet.py | [
"jerome198246@gmail.com"
] | jerome198246@gmail.com |
5f6db726cab842d555f28e9f96b0b5c6f11124d3 | 953a76d0bdefc9eeb1cd0cc977f3992f18061502 | /DecimalToBinary.py | 1d1ca504b97ea6d569e54b1a42e3ff6019cc73e8 | [] | no_license | a7med-m7md/Recursion | 36c2e5512b80dbea466947428d25a0d50bf352ff | f5cf049c83bd7df507002b520fd7fb54dd3cf882 | refs/heads/main | 2023-06-24T21:10:30.765201 | 2021-07-27T05:47:41 | 2021-07-27T05:47:41 | 389,849,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def decimalToBinary(num, result):
if num%2 == 1:
result = str(1) + result
else:
result = str(0) + result
if num != 0:
return decimalToBinary(num//2, result)
return result
print(decimalToBinary(100, ''))
| [
"noreply@github.com"
] | noreply@github.com |
cb9cd4c1e436fc4e3e3a0a4bf0d9ea2dff11c930 | 1972d43f0b060dd8df5c0923a90f857e57a53d8f | /note/day03_all/day03/bytes.py | 003990dd57c3ca034aa2e9eb2d683e17f4329e1b | [] | no_license | mangodayup/month02-resource | ef2c7b9a35c1c1101654043595d2ed03b40b9a88 | 25c1f756a5ee77976e56046dc53eec99a7514b98 | refs/heads/main | 2023-03-09T09:38:29.037826 | 2021-03-03T06:16:00 | 2021-03-03T06:16:00 | 344,022,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | """
字节串使用示例
是否所有的字符串都能转换为字节串 是的
是否所有的字节串都能转换为字符串 不是
"""
# 定义一个ascii编码的字节串
byte1 = b"Hello world"
print(type(byte1))
print(byte1)
# 定义一个非ascii编码的字节串
byte2 = "你好".encode()
print(type(byte2))
print(byte2)
# 将字节串转换为字符串,与encode()相反
print(byte2.decode())
print(b'\xcc\xbf\xb5\xe5\xa5\xbd'.decode()) | [
"chenjr@pku.edu.cn"
] | chenjr@pku.edu.cn |
33c009e1626b9615e78b48377047189f3e89ced6 | 2a96175221d4b8e709626042d8ce24159a5d2e25 | /login_register/migrations/0001_initial.py | 86e7e77c67902cf60cc8786cba721798e65e98da | [] | no_license | lotrdinesh/cards | dccffcbc0468d9761ae65a9d26b6694f5cb43bd5 | 497f64bff80fe277be4cfbd4c1d264bff4dc4e78 | refs/heads/master | 2021-01-20T18:20:31.446363 | 2016-08-19T05:17:32 | 2016-08-19T05:17:32 | 63,751,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-20 20:03
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | [
"dinesh.maheshwary@gmail.com"
] | dinesh.maheshwary@gmail.com |
625879e3911e010bd8903f3fd874f78d66525f34 | c3859cc36667525186cd1ac3db2a17b328d96203 | /proj1-search-python3/search2.py | 5eaeb859346a27743de55b23c40d33828f8aaac7 | [] | no_license | JamesKang26/Pacman | 44921245476a0c5773bd0231e3e689226550047f | e12de1485e130a38c03d4a319923d39f7f485f5e | refs/heads/master | 2023-05-29T12:18:10.502520 | 2021-06-11T23:13:42 | 2021-06-11T23:13:42 | 284,323,474 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,552 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"jameskang@Jamess-MacBook-Pro.local"
] | jameskang@Jamess-MacBook-Pro.local |
23c7be5ff9c7b6043058933bba65a84526f0ceb2 | ace27bb3aab6d3ff4512896b8b79b73c2fe236e0 | /Revenue_Prediction.py | c5b2183b4ce2463a25c737d76008b37f8ff9a5d1 | [] | no_license | ssongyy/Revenue-Prediction | 25b5f6f6753f6b8ffaa75b027bc9c5c2ed1603f4 | 536b6ac1eec782061681819bedc05ce9e9595363 | refs/heads/master | 2020-08-05T21:33:45.689373 | 2019-10-04T02:11:19 | 2019-10-04T02:11:19 | 212,719,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,242 | py | #!/usr/bin/env python
# coding: utf-8
# # Assignment 2 by Yaxuan Song
# The data I collect to excel is quaterly net sales from the webset of ULTA(http://ir.ultabeauty.com/financial-reports/quarterly-reports/default.aspx)
#
# The data is starting from the first quarter of 2010 and will end at the second quarter of 20... | [
"noreply@github.com"
] | noreply@github.com |
9e078f1458979d7a3d09c203a3f32b237137b22c | 84a4bef191d0d431cbba569c89a16c92a2c42703 | /nowplaying/player/dbus.py | 8aff36220c82ec404af0af7af77342070ef1596e | [
"WTFPL"
] | permissive | valerauko/nowplaying.py | 22aa5b099580ffcc00cd964ad9da94639517d89c | 16e998f1d7a9d52eb12d16f6d1c02daea549efad | refs/heads/master | 2023-07-20T16:21:47.904059 | 2023-07-14T10:47:23 | 2023-07-14T10:47:23 | 93,943,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #coding=utf-8
from dbus import Bus, DBusException
BUS = Bus(Bus.TYPE_SESSION)
INTERFACE = 'org.freedesktop.DBus.Properties'
NS = 'org.mpris.MediaPlayer2.'
PLAYER = '/org/mpris/MediaPlayer2'
| [
"valerauko@gmail.com"
] | valerauko@gmail.com |
ab0ea4f90f5163784652dfb3afb83b9c095b376c | 76baf5ff0e8717ab6a17575bc9c126e7eb4e2f28 | /docker/shummie/shummiev58.py | 9a7880440e45168b937a2c6f6d116ae5eb46d44a | [] | no_license | nmalaguti/halite-bots | f0e8caf3e9898884e6476ff5d36884a2f4e07309 | 82efde39f83b5c34719d31396c7659d2c2f18c03 | refs/heads/master | 2023-07-15T01:20:00.784928 | 2023-06-29T02:49:35 | 2023-06-29T02:49:35 | 73,758,433 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,668 | py | # ==============================================================================
# Imports
# ==============================================================================
import functools
import itertools
import logging
import math
import numpy as np
import random
import scipy.sparse
import sys
import time
import copy... | [
"nick@narmi.com"
] | nick@narmi.com |
b030bbc0b490794fda719334257c7e383831b83f | cbd2a8701f8f8d82db35bb5b1e352903ef9f892c | /posts/migrations/0001_initial.py | 7555ecb6afd70af163f4b94e66720183bff0c4d5 | [] | no_license | fenglhs/JustPLayProject | ee10e1a1feaf6af754ca3549bc42a2bc57ba108b | 4f5b5601e234201a32bacb359fb5cd5226191da9 | refs/heads/master | 2022-07-05T06:23:21.210956 | 2020-05-11T01:51:10 | 2020-05-11T01:51:10 | 262,909,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 3.0.3 on 2020-05-11 01:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"fenglhs@gmail.com"
] | fenglhs@gmail.com |
513550197ac8860db3ff6b36329530df2a8072e8 | c3c068ccb903246b1ed7f0af32c6ae0b7127e787 | /tictactoe.py | 54a23fc01d5d5b3aeb3d3422baf2e31213166c77 | [] | no_license | nulvonoid/tictactoe | 174a9c00d8bf73fb0da964c64e2dce74ec534e5c | 0933b45776c57b85a69ec250660466868c65a42b | refs/heads/master | 2022-06-18T11:25:55.216610 | 2020-05-08T12:16:59 | 2020-05-08T12:16:59 | 259,623,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | theBoard = {'top-L' : ' ','top-M' : ' ','top-R' : ' ',
'mid-L' : ' ','mid-M' : ' ','mid-R' : ' ',
'low-L' : ' ','low-M' : ' ','low-R' : ' ', }
def printBoard(board):
print(board['top-L'] + '|' + board['top-M'] + '|' + board['top-R'])
print('-+-+-')
print(board['mid-L'] + '|' + board['... | [
"nulvonoid@gmail.com"
] | nulvonoid@gmail.com |
8fc2afcede871737457342555709b933a389391a | f56343ddeb47b8de0666f00e500fd72d6f115f73 | /node_modules/mongodb/node_modules/kerberos/build/config.gypi | ec387994adc7a8188295edd3e5e43a3a215d9af9 | [
"Apache-2.0"
] | permissive | granmoe/Backbone-Node.js-Boilerplate | fbf3645145327a8bf60087e1247b161dd7665886 | 98736a1c7adc19ccf0248e3730fa70a41665d9dc | refs/heads/master | 2021-01-19T17:48:19.014937 | 2014-12-24T02:25:38 | 2014-12-24T02:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_byteorder": "l... | [
"mattgranmoe@gmail.com"
] | mattgranmoe@gmail.com |
5bf30909a51a91c72bcc59c07bdbbff10e1fb1bd | 349fddc9a99a80a17f2d77561c39c5740f29d29a | /hello_world/CatchMouse.py | 1642aa95141b05840fca10c470677cfac558c907 | [] | no_license | WatsonJay/python_test | f6d3a7367aa564b07088c554e8978513e126d5e5 | 461f4e76544fac69cc5e5c04bb8c4855edc80055 | refs/heads/master | 2021-06-24T07:02:27.535967 | 2021-06-18T12:53:58 | 2021-06-18T12:53:58 | 139,412,798 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | import turtle
import time
import this
boxsize = 200
caught = False
score = 0
#functions Keypress
def up():
mouse.forward(10)
checkbound()
def down():
mouse.backward(10)
checkbound()
def left():
mouse.left(45)
def right():
mouse.right(45)
def quitTurtles():
window.bye()
#limit box
def chec... | [
"446725026@qq.com"
] | 446725026@qq.com |
8397ff8119dc799e3deac3fdd0aa9bedf2c22261 | 0faa6fc013560b4c5acf64413d186019816a7582 | /chainedSCT/__init__.py | 9060c9628716ffba3b2324edd46528202b7eee2c | [
"MIT"
] | permissive | MSBeni/SmartContactTracing_Chained | f4deceb6107cfbf0f050a8f8943dd85caa1b43b8 | b667ef6e04ea4e3206760f9dc2035d425b6e26f5 | refs/heads/master | 2023-07-30T01:05:31.383298 | 2021-09-09T17:36:16 | 2021-09-09T17:36:16 | 328,707,374 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from . import extraction
from . import transformation
from . import Loading_Blockchian
__version__ = '0.0.1'
| [
"andrei.sokurov.bitco@gmail.com"
] | andrei.sokurov.bitco@gmail.com |
d8837545c4bcada4b843f3c7aafa6795ee1262e0 | 55618de78308c6bd652879d6cddb769cca7119eb | /maskrcnn_benchmark/data/datasets/evaluation/seed/__init__.py | 5ee384d2e8dd5abba64f376ca90a3d2628e7c16f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SilvioGiancola/seeds_faster | 6303b1f28527415d97f1fa4f76327492fb2a1f21 | 4c6a1f1fa71beff7c9d0722d134eb1291f57983e | refs/heads/master | 2020-06-22T01:13:19.842470 | 2019-07-17T21:43:46 | 2019-07-17T21:43:46 | 197,597,346 | 1 | 0 | MIT | 2019-07-18T13:57:07 | 2019-07-18T13:57:07 | null | UTF-8 | Python | false | false | 582 | py | import logging
from .seed_eval import do_seed_evaluation
def seed_evaluation(dataset, predictions, output_folder, box_only, **_):
logger = logging.getLogger("maskrcnn_benchmark.inference")
if box_only:
logger.warning("voc evaluation doesn't support box_only, ignored.")
logger.info("performing voc... | [
"merey.ramazanova@nu.edu.kz"
] | merey.ramazanova@nu.edu.kz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.