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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5233091305b44640cd97581d32e8076ff35c614c | c4c81058dd9fa111f706a5db7ee80064873271ba | /HLTrigger/btau/hltDisplacedmumumuVtxProducer_cfi.py | f0548d1fb7727e06c833cf979e4fa57f865861ab | [] | no_license | fwyzard/cmssw-cfipython | e142c3a3e707c599dae491333ec48522de3f2f34 | cae55b22a46433b55ea6ff5b36aecc043792d16c | refs/heads/master | 2021-07-25T21:04:42.950199 | 2017-10-24T06:29:00 | 2017-10-24T06:29:00 | 109,701,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import FWCore.ParameterSet.Config as cms
hltDisplacedmumumuVtxProducer = cms.EDProducer('HLTDisplacedmumumuVtxProducer',
Src = cms.InputTag('hltL3MuonCandidates'),
PreviousCandTag = cms.InputTag(''),
MaxEta = cms.double(2.5),
MinPt = cms.double(0),
MinPtTriplet = cms.double(0),
MinInvMass = cms.double(1),
... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
e8641f526333e9b9fbc46bb83deeefe383cd9bd1 | 069984c09a4cf60eaef8ebc78ea87242539ef5d2 | /data/data_loader.py | d7eca4f22b07ab70031ef9efe5cea8b6bcf0348d | [] | no_license | yanwengong/GWAS_SNP_analysis | be35baa73ae760c7ccaa3b7e8f8b94d2d3ecc17c | 1e95c1f04f34b749a05db861402df9ada63918ac | refs/heads/master | 2023-07-16T01:07:07.491231 | 2021-08-20T05:11:23 | 2021-08-20T05:11:23 | 385,704,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import numpy as np
import torch
from torch.utils.data import Dataset
from datetime import datetime
class Data(Dataset):
# The __init__ function is run once when instantiating the Dataset object.
def __init__(self, data):
# (n,) array, each element is string, dtype=object
self.data = data # fas... | [
"yanwengong7@gmail.com"
] | yanwengong7@gmail.com |
faeb284b5d4bbd6269cb6e66053c0cf5ead89327 | 5cf022e1659902521f1f04510db40176c511a35e | /lstm_segment_v1.py | f567ce49c3df5d9e02a55af888a03f71ae80bd7b | [] | no_license | lengyuewuyazui/cws | ff037806be84d2dbc156e2f1b611e14876ecaae4 | ea2775820c8b0599a2a6485972b2d2034509744e | refs/heads/master | 2021-07-09T13:22:17.145855 | 2017-10-09T08:02:55 | 2017-10-09T08:02:55 | 106,253,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,157 | py | # encoding: utf-8
'''
LSTM 中文分词
Refer: https://mp.weixin.qq.com/s?__biz=MzA4OTk5OTQzMg==&mid=2449231335&idx=1&sn=d3ba98841e85b7cea0049cc43b3c16ca
设窗口长度为 7,那么从训练样本中切分 xxxoxxx,根据前三个 x,后三个 x 和 o 本身,训练 o 的 tag (B/E/M/S)
为了能够处理开头和结尾的字符,要在训练文本和测试文本的开头和结尾分别 padding 三个 '\01' 不可见字符,作为 START/END
要求训练文本和测试文本没有空格;这里默认已经处理过... | [
"jinchen@jinchen-PC.lan"
] | jinchen@jinchen-PC.lan |
8456af16f4d0a33f448185e56d9a45f9cb8b797f | a9ec22bcf8bbc4c73d21691795d400b3cdd8e12e | /demo.py | 9911b3b271a0f313ed3b9d231d5cb63a6df6ae1b | [] | no_license | nehasmore/ManualTestSync | 6dce48979a062bf12eb4f693d1b4eb8284c5e3b3 | 3da9ddcfe516527606b5b7bf82dc8a531125d7fc | refs/heads/master | 2021-04-01T04:28:55.478541 | 2020-04-01T07:20:22 | 2020-04-01T07:20:22 | 248,155,959 | 0 | 1 | null | 2020-04-01T13:00:29 | 2020-03-18T06:31:54 | Python | UTF-8 | Python | false | false | 772 | py | import os
import requests
def main():
print(os.getenv('url'))
print(os.getenv('username'))
print(os.getenv('password'))
csrftoken = os.getenv('csrftoken')
sessionid = os.getenv('sessionid')
testpadurl = os.getenv('testpadurl')
project = os.getenv('project')
targetfolder = os.getenv('ta... | [
"neha.more@csaver.co.uk"
] | neha.more@csaver.co.uk |
ea84dc4184836dbcd834d26e7ab57d1afb8567a4 | a34457fc344ffe48ebd44d026c19ec336e5828c2 | /administration_system/api/exceptions.py | f41c2dab8afba4abf1c43a406da3bd9307536e38 | [] | no_license | fiiniefi/ProjectDB | 5ba9753f6136581eb215248d5451b0a9e38f2e9c | 2ad1c3af2ccffbd2596501e80111f3677dac5b5f | refs/heads/master | 2020-06-03T16:06:13.656105 | 2019-06-13T17:05:31 | 2019-06-13T17:05:31 | 191,643,040 | 0 | 0 | null | 2019-06-13T17:05:33 | 2019-06-12T20:53:02 | Python | UTF-8 | Python | false | false | 205 | py | import psycopg2
from abc import ABC
class DatabaseException(psycopg2.InternalError, ABC):
pass
class InvalidMember(DatabaseException):
pass
class InvalidRowCount(DatabaseException):
pass
| [
"marcin.drewniak1@vp.pl"
] | marcin.drewniak1@vp.pl |
8ea52b9d50b1d1209d63b9bd3634ae313ca554b2 | 15843fb76c292007ce9c8fdebff559e2439bb6d6 | /queryMatcher.py | 0bdc6699f722367ce4e1275b4dfeb4dd2732722b | [] | no_license | virajprabhu/Newsline | b17e815aa9efc09e13b80fa1d4d9b75b89ad3cf7 | daa347f3e09a51d1cd0e69175f8145a64c5c34a5 | refs/heads/master | 2020-05-30T14:43:23.811730 | 2015-03-16T19:36:38 | 2015-03-16T19:36:38 | 32,348,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | # Author : Animesh Das , Sujay Narumanchi , Shruti Rijhwani , Viraj Prabhu
# Information Retrieval Project - Group 6
# Libraries Used :
# python sklearn
# python scrapy
# python selenium
from __future__ import print_function
from sklearn.feature_extraction.text import TfidfV... | [
"prabhuviraj@gmail.com"
] | prabhuviraj@gmail.com |
423c1fd41217a2eb61094e5d27b3dcbec28a38fc | 98a5cf2f5579342e2018bdff2524d98079ef1566 | /0x08-python-more_classes/0-rectangle.py | 7d0d881aafc096350ea30bd2032ca9409793cf00 | [] | no_license | ja95aricapa/holbertonschool-higher_level_programming | 8b557b217ab45c33fb2f5439fbaa253c1901b1ea | 19a9e5d2d06cfcee349fdd64b5354e76c2a52e82 | refs/heads/main | 2023-08-05T12:54:32.953284 | 2021-09-22T14:53:58 | 2021-09-22T14:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/python3
'''
Define a class: Rectangle
'''
class Rectangle():
'''A class to represent a rectangle.'''
pass
| [
"2241@holbertonschool.com"
] | 2241@holbertonschool.com |
f827e9c01715a4a59c84f252e6e838591e327d1d | 3e09ddb5bc1b540b19720c713f21e7566dbaee2a | /utils/subtree_util.py | 6c342e9e67b34f1e7d631e908d97286aff2351ca | [] | no_license | little-pikachu/infercode | ee699b3262dd367e54fa307e61d7bbc9091504e7 | 9063131e61bbe37128b034798bf80709ae2ec744 | refs/heads/master | 2023-03-22T04:33:51.957772 | 2021-03-11T10:18:35 | 2021-03-11T10:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import argparse
from os.path import exists
import re
from os import path
from tree_sitter import Language, Parser
from pathlib import Path
def print_tree_line(id, data, root_node, reports, selected_node_types):
node_id = id
node_type = root_node.type
node_label = data[root_node.start_byte:root_node.end_byt... | [
"bdqnghi@gmail.com"
] | bdqnghi@gmail.com |
a98977fc8b89c5f5d215ed261a70c21aa885a849 | 5cf7b8e028a4f4d88fc6e57563632780f9490d67 | /utils/http.py | 519d6a37090bde18163240962d10706ac048fcad | [
"MIT"
] | permissive | QuirkyDevil/alex-boat-old | 75dff27ab020299982dfaa80e2bc567f4de87254 | 6ca1f883a13a49b0377d434e22bb25366ff64b26 | refs/heads/main | 2023-07-08T19:10:58.340517 | 2021-08-23T17:05:31 | 2021-08-23T17:05:31 | 399,185,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import asyncio
import aiohttp
from utils import cache
# Removes the aiohttp ClientSession instance warning.
class HTTPSession(aiohttp.ClientSession):
""" Abstract class for aiohttp. """
def __init__(self, loop=None):
super().__init__(loop=loop or asyncio.get_event_loop())
def __del__(self):
... | [
"81952913+QuirkyDevil@users.noreply.github.com"
] | 81952913+QuirkyDevil@users.noreply.github.com |
40fb34df46839112e06182347eb450f560b5c972 | 28bb42797cf3caa1dead53e6ffc7e719a3148d25 | /pareto_test.py | 5dad3fd45c76793744e5547c81e7cc7108a81e3b | [] | no_license | glkuzi/MonteCarlo | 3f5590cc5f3eee35621a1f847e40fa8263cd10bf | 4fac99656d82e9b210bc2e53e4cb613326ee0f1f | refs/heads/master | 2020-04-09T00:33:29.091721 | 2018-12-03T14:56:52 | 2018-12-03T14:56:52 | 159,872,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,165 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 25 01:19:35 2018
@author: User
"""
import numpy as np
import scipy.stats
import random
import pandas as pd
def csv_to_arrays(filename):
'''Функция для преобразования .csv таблицы в массивы numpy.
Входные данные:
filename - string, путь... | [
"noreply@github.com"
] | noreply@github.com |
fe58fe961797ab457ef2a590d71b62b7a4043775 | 13fdfd03d975c2b94d08a84f05f452c697186a44 | /atcoder/ARC/88/arc88c.py | 03e682083af6389256ee811627b3ebe1d4142096 | [] | no_license | poponzu/atcoder1 | 7243da9250d56eb80b03f1a8f4a3edb9df9e5515 | 64a52bac4cf83842167ca1ce1229c562dabd92a3 | refs/heads/master | 2023-08-22T02:10:52.639566 | 2021-10-09T14:23:46 | 2021-10-09T14:23:46 | 385,467,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | x, y = map(int, input().split())
ans = 1
# 対数計算ミスってた
# 検算にpythonで書いてcheckしようこれから
# 発想は間違っていなかった。
for i in range(60):
result = x * (2 ** i)
if result <= y:
ans = max(ans, i + 1)
print(ans)
| [
"grape.daiki.sora@icloud.com"
] | grape.daiki.sora@icloud.com |
2c0a397eb8da8ec105b36f31c12c3f6ea5877481 | 12358e534084cc00452329c9fed2fb943d6bb066 | /chat/filters.py | f149157c438308807a6fc0825fa04ab20d890a2d | [
"MIT"
] | permissive | purviljain/DJ-Comps-Book-Exchange | a83bae2937dc5609a911f0e9f064f8a6019ad373 | f33425999b3d3b5f8dfcd4d6365723b9a4cd1a97 | refs/heads/master | 2018-12-16T05:03:16.611801 | 2018-09-14T07:15:59 | 2018-09-14T07:15:59 | 116,996,975 | 0 | 0 | null | 2018-01-10T18:45:52 | 2018-01-10T18:45:51 | null | UTF-8 | Python | false | false | 399 | py | import django_filters
from django.contrib.auth.models import User
from django import forms
class UserFilter(django_filters.FilterSet):
username = django_filters.CharFilter(lookup_expr='icontains', label='Whom you want to message?',
widget=forms.TextInput(attrs={'name': 're... | [
"pujan2222@gmail.com"
] | pujan2222@gmail.com |
00faf752817b6df3eafe44e118e429961fda8078 | f24eeca35a0a94ebdcaa33895b1550d42e31a1d1 | /profile/-10/scriptTest.py | 110525d77a05fc3455345db8a1081d06c2fd24fe | [] | no_license | facupaisanito/SCAS4.0 | db9524e8872e9debc6884c13afd3a46d34b15959 | 9db11894ef37454c782da8a846fc902c30c1ea3e | refs/heads/master | 2020-03-28T06:52:06.354588 | 2018-09-07T19:28:34 | 2018-09-07T19:28:34 | 147,865,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,141 | py | #-----------------------------------------------------------------------
# ScriptTest for BA
# Version: 12
# Compatible with HW:
# Developed by Ignacio Cazzasa and company for CWG
#-----------------------------------------------------------------------
try:
import sys,os
except:
print "import sys,os in script... | [
"facu.higuera@gmail.com"
] | facu.higuera@gmail.com |
5baaf7f41da07336b45dd3e44764bd17d91174bd | 222c9d5f9bd0b0f262c30b485a4b966aaed0bd9b | /006.py | f7dd8252ae9fab9818eb9ab3409e7e4c6e26a5dc | [
"MIT"
] | permissive | fresky/ProjectEulerSolution | 598ae65d83999ae3ac569ca1e27aea3b306f8b75 | eed4e4e9965908d1047a61fcd0a4d1346c395548 | refs/heads/master | 2016-09-02T03:20:59.441285 | 2014-05-10T09:51:15 | 2014-05-10T09:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | sum = 0
for i in range(101):
for j in range(101):
if i!=j:
sum += i*j
print(sum) | [
"dawei.xu@gmail.com"
] | dawei.xu@gmail.com |
06a7d1cc33297ae4a3dde990c52105eb76b0a7a4 | 46890f9bbd0af1102ce5cf2c98019295a76f67fb | /the3ballsoft/users/migrations/0004_auto_20161004_1312.py | 65eb880217c5da867833fc6aed0125717994ea46 | [] | no_license | the3ballsoft/the3ballsoft-website | 1a870cec2816dedfcc30e366faca84d162db4f83 | 96a01c58b2a079e14d922c24bb0feea4357d7b40 | refs/heads/master | 2021-01-13T08:22:48.922675 | 2016-10-24T07:21:23 | 2016-10-24T07:21:23 | 69,994,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-04 18:12
from __future__ import unicode_literals
from django.db import migrations
import versatileimagefield.fields
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20161004_1304'),
]
operations = [
... | [
"genesisdaft@gmail.com"
] | genesisdaft@gmail.com |
c1fa15ad37bca2c90b9187310de36d12c4ba189d | 0b7d67816c876f000519c4fda688362e33a7abe3 | /Training.py | 22d8c082d589a6d330093c7721deaa405f3306c1 | [] | no_license | braikoff/TrialAndError | 0c6ff8e455e6848bf16bbea6bd76a1586d9fa218 | 0e15239b6989143bf9647fe4db631c2356a6d3e9 | refs/heads/master | 2021-05-15T10:22:45.913809 | 2017-10-24T20:56:17 | 2017-10-24T20:56:17 | 108,182,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,802 | py | #%1 line: Output%
print ('Hello, world!')
#%2 lines: Input, assignment%
name = input('What is your name?\n')
print ('Hi, %s.' % name)
#%3 lines: For loop, built-in enumerate function, new style formatting%
friends = ['john', 'pat', 'gary', 'michael']
for i, name in enumerate(friends):
print ("iteration ... | [
"noreply@github.com"
] | noreply@github.com |
c26f7634772cb749ee3a6b5784f4753109bafbe5 | 6f74c608167c36d5473903fe754ee09a3f02c118 | /venv/lib/python3.5/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py | a8bb3b0c2a60e16a440a11684a0c4c1baed170d1 | [] | no_license | riadnwu/SparkConnection | d44545f81c32c88e20789cbd9f678be52510e169 | e52e08ef15a60e07f48f53f3521d46191862d33a | refs/heads/master | 2020-03-24T21:37:21.218839 | 2018-07-31T16:54:46 | 2018-07-31T16:54:46 | 143,042,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/env python
"""
Script which takes one or more file paths and reports on their detected
encodings
Example::
% chardetect somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: special with confidence 1.0
If no paths are provided, it takes its input from stdin.
"""
fr... | [
"riadnwu@gmail.com"
] | riadnwu@gmail.com |
3f7ad64f6a7c833d05a8e07a162c6c8de8dacb21 | 4c9cfa4570d034c3e21944d3c53348153a14cd3f | /flux_runtime.py | 92115be3fabce6f581d1edc211b3717cdfbe993d | [] | no_license | michaelmathen/TrajectoryScanningExperiments | 4d2b3f17850245a5b8a975cc4c756395daeeacac | d6c6e39c21e153fdfdb617921b1d7db8e02b3e3a | refs/heads/master | 2020-05-18T03:38:01.681728 | 2019-04-29T22:22:06 | 2019-04-29T22:22:06 | 184,149,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | import flux_testing
import paths
import utils
import pyscan
if __name__ == "__main__":
#trajectories = paths.read_geolife_files(100)
trajectories = paths.read_dong_csv("/data/Dong_sets/Trajectory_Sets/samples/osm_eu_sample_100k_nw.tsv")
st_pts, end_pts = pyscan.trajectories_to_flux(trajectories)
st_p... | [
"michaelmathen@gmail.com"
] | michaelmathen@gmail.com |
bc84a9d59661a0626a5b7ef6f63bc252e9820fe9 | be6ebc62c50e2db47b749cc0d0deb49a5f723a9c | /python/pyp2pstrmsim/ppss.py | 64ccb31c341bb8540d96408ee3cb7bce37cfeb62 | [] | no_license | jollywing/jolly-code-snippets | ebeb9fd1d4fe0891ec081cf6db663a60abef58e0 | f453474f59e4384ae37295bf706fb6288f55c89f | refs/heads/master | 2020-12-24T16:31:52.023140 | 2018-10-08T10:15:30 | 2018-10-08T10:15:30 | 17,929,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,579 | py | #!/usr/bin/python2
"""
PPSS (Python based P2P Streaming Simulator)
my first python problem: a event-driven p2p streaming simulator
author: jiqing
update: 2012-07-21
version: 1.0.2
===============================================================
Copyright (C) 2009 jiqing (jiqingwu@gmail.com)
This program is free ... | [
"jiqingwu@gmail.com"
] | jiqingwu@gmail.com |
fe7c36c87cbcd95b486451126b116d1e7cdd26ec | f4ef5247ad75394272a66bca5cfb68c55581cb7c | /0x16-api_advanced/1-top_ten.py | 871adf90de6f108ab79f5ec38def973f8880bd77 | [] | no_license | AugustineArthur/alx-system_engineering-devops-1 | d6e48bc1e4d3990c340dab318ad71064a04e0b34 | 9ce83db502232e834522c1a49172277e778bbc0d | refs/heads/main | 2023-08-23T04:08:08.225245 | 2021-10-09T21:11:05 | 2021-10-09T21:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | #!/usr/bin/python3
"""
Contains the top_ten function
"""
import requests
def top_ten(subreddit):
"""prints the titles of the top ten hot posts for a given subreddit"""
if subreddit is None or type(subreddit) is not str:
print(None)
r = requests.get('http://www.reddit.com/r/{}/hot.json'.format(sub... | [
"fraoltesfaye.ft@gmail.com"
] | fraoltesfaye.ft@gmail.com |
269751f7432c6b3011370bc9f329c9432a8f265b | 9830360802428854384d6b27a172102de0e59c8f | /2902.py | d4a02794d38f68d3e4dc41bae137bb11e4388beb | [] | no_license | banje/acmicpc | d4009535ec31892f706333d812c92fddead08aa1 | 69d44a3b60d2a559563b5a1055bcc2290090e35c | refs/heads/master | 2022-07-20T20:01:56.623346 | 2020-05-16T11:30:17 | 2020-05-16T11:30:17 | 260,843,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | a=input()
b=""
for i in range(len(a)):
if ord(a[i])<91:
if ord(a[i])!=45:
b=b+a[i]
print(b) | [
"pak2t@naver.com"
] | pak2t@naver.com |
c0f2c54b513cda8972f4c3fd726ff8b8a2123fec | 829ff11164821195035406417865bbaec05c3dfc | /cifar_utils.py | 950809e8dbec7e3ee6cbe8d964de261756d3a842 | [
"MIT"
] | permissive | yukimasano/self-label | d45262771f05e2cf188cc7190b4b84fb7cd3f2b0 | 3891e376a82d1e4ac6de6d39505b692b8885c971 | refs/heads/master | 2023-07-21T06:41:17.966575 | 2023-07-16T21:46:54 | 2023-07-16T21:46:54 | 229,603,018 | 533 | 59 | MIT | 2023-07-16T21:46:55 | 2019-12-22T17:14:27 | Python | UTF-8 | Python | false | false | 8,042 | py | import torch
import torchvision
from PIL import Image
import torch.nn as nn
class CIFAR10Instance(torchvision.datasets.CIFAR10):
"""CIFAR10Instance Dataset.
"""
def __init__(self, root, train=True, transform=None, target_transform=None, download=False):
super(CIFAR10Instance, self).__init__(root=roo... | [
"yuki.m.asano@gmail.com"
] | yuki.m.asano@gmail.com |
247f055462626c6b6a9df14e8daaeaa654c1b657 | 9ef6dde178e3bc8ff9c7c5c9c7888451f1133feb | /jl6583/assignment5.py | 31660f54685c25f7572138d1a622854d6cf8acda | [] | no_license | xz1082/assignment5 | 2d568f9f063da65804c10f8939f140c264a3ab4a | aca54cb9445de38021b5a92fc91c5ce0ccf879fc | refs/heads/master | 2020-12-02T15:03:31.305458 | 2014-10-18T00:01:57 | 2014-10-18T00:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | '''
Created on Oct 9, 2014
@author: jiayi lu(jl6583)
'''
import math as mt
class interval:
def __init__(self,init_str = ''):
if type(init_str) == str:
bound_list = init_str.strip(' []()').split(',')
self.l_bound = int(bound_list[0])
self.u_bound = int(bound_list[-1])
... | [
"jiayi.lu@nyu.edu"
] | jiayi.lu@nyu.edu |
96f3d6b6b5992dd3ad311167dbd5f7757d1aa977 | 786de89be635eb21295070a6a3452f3a7fe6712c | /pytopsana/trunk/examples/ex_cspad.py | c3e4a63c747ba8ffe656b7d27f458dd554177fdd | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/bin/env python
##-----------------------------
import sys
from psana import *
import pytopsana
##-----------------------------
ds = DataSource('exp=cxif5315:run=169')
evt = ds.events().next()
env = ds.env()
src = Source('DetInfo(CxiDs2.0:Cspad.0)')
#src = Source('Camp.0:pnCCD.1')
det = pytopsana.Detector(s... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
c07a4ecf6c85750a174f044756d9b18802c940e6 | f45a90c83c365e2d3b7d6a7d6007f274a7e79df7 | /week 7/Authentication&CachingCodes/Fib.py | 9b712e440a953f05ccb44a494ab8a37df2ccf6d4 | [] | no_license | yiicao/final_project | a35f93eda46271c60e4b2168fdeda6eabf442df6 | 8c07c544cf6a94ba466349106d2c29268eda93d9 | refs/heads/main | 2023-04-14T16:40:35.153686 | 2021-03-29T20:59:37 | 2021-03-29T20:59:37 | 358,947,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def fib(n):
fib_seq = [0, 1]
for i in range(2, n):
fib_seq.append(fib_seq[i - 2] + fib_seq[i - 1])
return fib_seq[-1]
print (fib(300000)) # start with 100000 and increase until it's annoying | [
"yiicao@umich.edu"
] | yiicao@umich.edu |
6f63f6b8c63983776f1eaed0b04a879f053db854 | 6a3639751ceda99b7a72eede2a75a52ac619c87b | /Stanford_CS224n NLP with Deep Learning/assignment1/.env/lib/python3.6/rlcompleter.py | e634e2a82930d55035b69c4cd76959312ef6a1f1 | [
"MIT"
] | permissive | db12138/Online_Courses_and_Materials | 3a988edf53e035a26fbf1d9cab0559382f228970 | 6a113056f4fd2667556942b3bcc9608bdf9c2968 | refs/heads/master | 2020-03-18T01:14:28.291109 | 2018-05-14T14:54:21 | 2018-05-14T14:54:21 | 134,133,889 | 1 | 3 | null | 2018-05-20T08:45:48 | 2018-05-20T08:45:48 | null | UTF-8 | Python | false | false | 52 | py | /Users/Hansen/anaconda3/lib/python3.6/rlcompleter.py | [
"hc.wang96@gmail.com"
] | hc.wang96@gmail.com |
5f10840891363c3feddf05032065e4fad8886c28 | 43900caca1bb4d22586b0ddb686510fae80afd2f | /singh-code-book/subst_cipher.py | 3287a84ea9a67a6e7786c263d39419e160106e37 | [] | no_license | almehj/crypto-learn | b97cdeb738bc983d44b407772fd0507204feb6c2 | 7b637bf02278b20d8de6450d719921428ec6993f | refs/heads/master | 2023-07-20T06:48:27.477081 | 2023-07-06T22:27:12 | 2023-07-06T22:27:12 | 185,260,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,159 | py | #!/usr/bin/env python3
import sys
from string import ascii_uppercase
class subst_cipher:
unknown_char = '.'
def __init__(self):
self.clear()
def clear(self):
self.clear2cipher = {}
self.cipher2clear = {}
self.base_alphabet = ascii_uppercase
def read_from_cipher... | [
"almehj@alumni.rice.edu"
] | almehj@alumni.rice.edu |
ea31bba5cc1cc85a88f67befc489f877ee9cfe15 | f10c63ee43e9e42988f36581c3dc5989eb0061ae | /Gluon_Code/gluon_conv.py | 97ba8e99114a6e828760dc99e530297daf4e61eb | [] | no_license | xcszbdnl/Toy | 1305e3d71fa357546996257cd9ea4911478ba141 | 16424d45f57b6f6868205be5acf0310fa85fb999 | refs/heads/master | 2021-09-13T21:40:15.423727 | 2018-05-04T14:39:14 | 2018-05-04T14:39:14 | 108,120,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | from __future__ import print_function
from mxnet.gluon import nn, loss, Trainer
from mxnet import ndarray as nd
from mxnet import autograd
import utils
def get_net():
net = nn.Sequential()
with net.name_scope():
net.add(
nn.Conv2D(channels=20, kernel_size=5, activation='relu'),
... | [
"xcszbdnl@gmail.com"
] | xcszbdnl@gmail.com |
bca4bd718ec274aba0bcf10d62c76a0deca3585f | 13e8fe5585975e7f969ecb38ec1219a40c078b7b | /packages/vorbis/build.py | ebf3e52250de0f65728075305e32fe58f60bbccc | [] | no_license | handsomegui/mpd-win32-build | dbfe2387e5babc7d7d99f7b21bbe45dafc6ea54c | 5a614e30d0dad73fa46cf2e5d36f4ffd58be2864 | refs/heads/master | 2020-05-27T19:38:43.439781 | 2013-02-02T17:10:02 | 2013-02-02T17:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | build(static_lib=True)
collect_licenses('COPYING AUTHORS')
| [
"denis@crazydev.net"
] | denis@crazydev.net |
42a31cb2215dcd7cc3cea56f2a5b30c0e7771e4f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /DGpxmRkADuZaWHJxZ_14.py | 180a83ff26de40951119e0535277ed8ec34d08b4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | """
Steve and Maurice have racing snails. They each have three, a slow `s`, medium
`m` and fast `f` one. Although Steve's snails are all a bit stronger than
Maurice's, Maurice has a trick up his sleeve. His plan is:
1. Round 1: `[s, f]` Sacrifice his slowest snail against Steve's fastest.
2. Round 2: `[m, s]` U... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0f13a3d51fb6d6c6d66b40c54ee6da40367dc232 | d8b13203c39e68e459638decc44a8bf9b3a3d925 | /content/migrations/0004_form_to_page_back_relation.py | eb34793083050b1cd3acb1f88296d45156f2254e | [
"0BSD"
] | permissive | tbrlpld/headless-wagtail-form-backend | 26266afbbf41cb53cad691b37ac82254dd201ce6 | b6ba81db8ea705fbda2c75b77a0075fb20d67beb | refs/heads/master | 2022-12-24T01:14:39.185345 | 2020-10-02T22:09:48 | 2020-10-02T22:09:48 | 298,130,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # Generated by Django 3.0.10 on 2020-09-29 02:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forms', '0001_initial'),
('content', '0003_auto_20200929_0125'),
]
operations = [
migrations.Alter... | [
"tibor@lpld.io"
] | tibor@lpld.io |
d27de3ae06c82ca21feafe92b90698f9254ec67c | 7c5da9f7299c5f5080fb5f7416caede5b4d92d6f | /0x01-python-if_else_loops_functions/101-remove_char_at.py | 5b08ff0d3120debe562c3e8771f2524182cd09e7 | [] | no_license | stefansilverio/holbertonschool-higher_level_programming | eb0b9415047eb089d69e4099ff00d1f9ed529a4d | f47fc1817245fa41e597c9b03707687c78bc80e6 | refs/heads/master | 2020-04-09T10:20:45.203061 | 2019-05-17T00:36:42 | 2019-05-17T00:36:42 | 160,268,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | #!/usr/bin/python3
def remove_char_at(str, n):
length = len(str)
if n >= 0 and n < length:
str2 = str.replace(str[n], "")
print("{0}".format(str2), end='')
else:
print("{}".format(str), end='')
return ('')
| [
"494@holbertonschool.com"
] | 494@holbertonschool.com |
227ded274134c5beab9559db115e8a1a32a60a62 | d1603e14ccc9ff17518468f447d7dab17d82193a | /supercar/views.py | c4e366d0c728b62952537f1c01a4f951b662395c | [] | no_license | therogue/supercar | b91b007a6892bba6504a69665dbfbfa10a176d61 | 65910b358a9d949175fc5b2d55b4d51353bf241b | refs/heads/master | 2022-02-19T22:39:49.512360 | 2019-05-26T18:40:30 | 2019-05-26T18:40:30 | 188,715,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello, world. You're about to start a race!")
| [
"alex@roguemark.com"
] | alex@roguemark.com |
cffde11e5499da3323f62f5f2144021b04c466e4 | 7dc5b51bfa7083b6ce31ccbd387607fef605028b | /ellyscraper/ellyscraper.py | 6498262e225f01c145d4638503164a952dc96717 | [] | no_license | igorecarrasco/Elly | 22e920660554d271128e87e6338e46340f191391 | 514a7aa6f35fe820a6bbaec45d0eea8cbb3fd7be | refs/heads/master | 2021-01-11T05:58:44.848327 | 2017-04-04T19:52:27 | 2017-04-04T19:52:27 | 72,024,282 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,268 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
PARSE.LY API SCRAPER
"""
import urllib2
import oauth2
import json
import psycopg2
import os
import datetime
from os.path import join,dirname
from dotenv import load_dotenv
from BeautifulSoup import BeautifulSoup
#load env path and file
dotenv_path = join(dirname(__fil... | [
"igor.ecarrasco@gmail.com"
] | igor.ecarrasco@gmail.com |
936edd4149e8ba555aa390d32ec21c3c05266e6e | a6bcacbbb366774182bc7d0529ed205b4cccd19d | /bert/model.py | 81f2d9ee8f03b633109c18c8a9ffbb79524a3b19 | [] | no_license | yk287/NLP_TF2 | be0e9d346930a3ea28687d4ff3760b837e955868 | 67ef13effd03cf9033a5facb3168ea9d4970b323 | refs/heads/master | 2022-11-24T11:29:40.184738 | 2020-07-26T03:49:56 | 2020-07-26T03:49:56 | 276,225,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py |
import numpy as np
import pandas as pd
import tensorflow as tf
from tensorflow.keras.layers import Dense, Input
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.models import Model
from tensorflow.keras.callbacks import ModelCheckpoint
import tensorflow_hub as hub
#run wget --quiet https://raw.githu... | [
"noreply@github.com"
] | noreply@github.com |
e38fa81deaa2096641268b1622e18201366f2511 | 43374981d652806124c721b527c1ce2c00909f7b | /Ironman.py | 1a00c674f602ac111c36ea27d91a07895b7c4b92 | [] | no_license | Sovicheanhim/Python | 37f059a817d5b02c00a65b8d55562060d27032d6 | 8743daa0130e540eda947314754338657834a44f | refs/heads/master | 2020-09-24T15:29:44.898572 | 2019-12-28T11:57:36 | 2019-12-28T11:57:36 | 225,790,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | def i_tri(s):
return "Starting Line... Good Luck!" if s == 0 else "You're done! Stop running!" if s >= 140.8 else ({"Swim":"{:0.2f}".format(140.6-s)+" to go!"} if s <= 2.4 else {"Bike":"{:0.2f}".format(140.6-s)+ " to go!"} if s <= 114.4 else {"Run": "{:0.2f}".format(140.6-s)+" to go!"} if s<= 130.6 else {"Run":"Nea... | [
"nhimsovichea18@kit.edu.kh"
] | nhimsovichea18@kit.edu.kh |
48a2f29b6dd4ea6ec1887f15ba6a5a590bcccbe1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2871/60825/301237.py | bb1e542bda489a7e94ef28cefb577359aa3faa8d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | t=""
while True:
try:
ts=input()
t+=ts
t+="#"
except:
break
if t=='3#1 1 1#':
print('''1''')
elif t=='2#2 2#':
print('''0''')
elif t.startswith('57#2 1 2 2 1 2 2 1 1 1 2 1 1'):
print('''28''')
elif t.startswith('47#2 1 1 1 1 2 2 1 2 1 1 1 1 2') or t.startswit... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
09d24ef5412e862756f211e6f6befbfa45e97875 | 468de14f263ee6d8dbb5123164055592d83d57d0 | /practice/Serialization/memo_clear.py | b61bf72790c373629625171e74fc4c7af81ad043 | [] | no_license | harry-fan/spider | baa6272c11132d38f683fd56cd6fc581f6e24aff | ce896d9f544a10aa2de65ebfafe22fb6ffd38385 | refs/heads/master | 2020-03-26T22:56:32.980615 | 2018-09-08T08:28:07 | 2018-09-08T08:28:07 | 145,497,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | # coding:utf-8
import StringIO
import pickle
| [
"326946939@qq.com"
] | 326946939@qq.com |
613f9e86bb1cc1e5e293a3bf622ccede43168ac7 | 929687769c681173427917213ae87a8cef5ea8bc | /extract_bar_data.py | d23ecccc7c7667b465735815a3ceb9dc2ec581d1 | [] | no_license | alextryonpdx/blazerbar_project | 91afb60edd2d646d523062f18b4dbc74ef74d0f0 | 1613569d072fef82fe888aef5d990cb62c472415 | refs/heads/master | 2020-03-30T17:42:59.529999 | 2015-03-31T23:03:53 | 2015-03-31T23:03:53 | 32,547,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | import json
import os
from django.template.defaultfilters import slugify
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blazerbar_project.settings')
import django
django.setup()
from blazerbar.models import Bar
def add_bar(name, location, website, image_url, tvsize, sound, happyhour):
print name
b = Bar.objects... | [
"alextryonpdx@gmail.com"
] | alextryonpdx@gmail.com |
9bff6e51cc95919783c4e18271253272f45e1d0a | 9071dd25a64a93bb542312ccbaf04f39bdd27a84 | /500. 键盘行.py | 10d6a814d2c4d436f609a76bdbda8ccbdebe0685 | [] | no_license | JancisWang/leetcode_python | c00c927c507b67f3191e7f1a5f37c7b9d87bf5ce | c843234ba8e64a53239c6e1110bd083d5bcc9e1c | refs/heads/master | 2021-01-02T19:07:21.811156 | 2020-02-11T13:43:59 | 2020-02-11T13:43:59 | 239,757,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | '''
给定一个单词列表,只返回可以使用在键盘同一行的字母打印出来的单词。键盘如下图所示。
示例:
输入: ["Hello", "Alaska", "Dad", "Peace"]
输出: ["Alaska", "Dad"]
注意:
你可以重复使用键盘上同一字符。
你可以假设输入的字符串将只包含字母。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/keyboard-row
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
class Solution:
def findWords(self, words: Li... | [
"18810172610@163.com"
] | 18810172610@163.com |
3d9b5a2a55009890b0767a2d1fb14ef055274979 | 88d57abfad4b863abbdb798ff80c4baf1432b966 | /hisplot_for_data.py | de9dfce4c7517a0c84c6d7b3641bcf8c31089fa8 | [] | no_license | MarkovAnton/First-project | 9b8a007e6a482bb744e2ba4145914722b8bbb72f | 6a111242142bf87437ff2b4e414f900de1144a5b | refs/heads/main | 2023-06-04T13:48:26.037143 | 2021-06-17T13:39:13 | 2021-06-17T13:39:13 | 374,131,062 | 0 | 0 | null | 2021-06-17T13:39:14 | 2021-06-05T14:13:16 | null | UTF-8 | Python | false | false | 266 | py | import pandas as pd
import seaborn as sns
from matplotlib import pyplot as plt
def his_plot(train):
pl = pd.DataFrame()
pl['sales'] = train['sales']
sns.histplot(data=pl, x='sales', bins=40)
plt.title('Sales bar chart')
plt.show()
| [
"markov_anton2001@mail.ru"
] | markov_anton2001@mail.ru |
39c3cac1154d8010727d17fdc16c8cdeca1b9c8c | fcd744030cce61eb0ee709995e5b008e89f222f0 | /docs/conf.py | 47135000f73b7aac67a5b31e0deec7010296e328 | [
"ISC"
] | permissive | usingnamespace/pyramid_authsanity | 20223d7f6812707a2423a44f0eeebb34d2f08dce | 98795f37e89a6cb06701d8d70fe54f94beec6ae8 | refs/heads/main | 2023-01-13T06:10:40.332856 | 2022-12-29T13:06:49 | 2022-12-29T13:06:49 | 42,696,878 | 19 | 6 | ISC | 2023-09-09T04:21:59 | 2015-09-18T03:15:55 | Python | UTF-8 | Python | false | false | 4,539 | py | import pkg_resources
import sys
import os
import shlex
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
"repoze.sphinx.autointerface",
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# The suffix(es) of so... | [
"bertjw@regeer.org"
] | bertjw@regeer.org |
f32722a2c71fb650e88c9b9b7145ce1590beb399 | 109b24ada597936b60e7750ad6a7ed226a469081 | /blockchain_main.py | c4f6e5ceead7aeaaa5a6ca343ca25473048a4a5d | [] | no_license | Fukuhara-Kichinosuke/myblockchain | 272df55e123e21a5c543c4d4a6b83606ddf6e3cc | c805504a5b6222440ee0b76c308d11e6bbe41fe0 | refs/heads/master | 2020-05-22T18:51:18.145805 | 2017-03-12T06:48:05 | 2017-03-12T06:48:05 | 84,715,977 | 0 | 0 | null | 2017-03-12T10:01:33 | 2017-03-12T10:01:33 | null | UTF-8 | Python | false | false | 1,291 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 31 2017
@author: fukuharakichinosuke
"""
from blockchain_mod import blockDict
from blockchain import blockexplorer
class_00 = blockDict # blockDict class
def Main():
print("***block data components***")
hashValue = '000000000000000016f9a2c3e0f4c12... | [
"noreply@github.com"
] | noreply@github.com |
3a3e79842b58a156777a8d896a0f049e1397d0a8 | 3b7a061e406e072de15af4e92216b4800da0edba | /mysite/settings.py | 94405729b97cfb1e0171340d7af42abfb26c1211 | [] | no_license | juliakastrup/1stG | 45df5278f441f2fab88324282225003f8f18c7af | 57a08eec627ddd860f3e5ba1785f9f51c87976c3 | refs/heads/master | 2021-09-23T22:33:19.845219 | 2018-09-28T14:23:09 | 2018-09-28T14:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"jkastrupb@gmail.com"
] | jkastrupb@gmail.com |
56c0f5b4ad712dcd53d029b39fa44127f8f31119 | 571e885363ba484e6f6df6544c2ad11e0640695d | /ratings/views.py | 7a25aec28722bb645a075010ee86cfb2db1bb0e9 | [] | no_license | extreme1337/django-netflix-clone-backend | 99860c0e973a1120c2460e712782eed211e276eb | b3a6900120d65d6c604bc12f7124136d94a43ab1 | refs/heads/main | 2023-05-25T01:00:48.713179 | 2021-06-08T07:00:59 | 2021-06-08T07:00:59 | 370,954,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | from django import forms
from django.shortcuts import render
from .forms import RatingForm
from django.http import HttpResponseRedirect
from django.contrib.contenttypes.models import ContentType
from .models import Rating
# Create your views here.
def rate_object_view(request):
if not request.user.is_authenticated:... | [
"marko.miseljic.14@gmail.com"
] | marko.miseljic.14@gmail.com |
a981eb8f728c98e588854c450929dd46f0c4a2aa | 090957b375ecff951d87caea1e644ac4b17616f6 | /tests/year_test.py | e53a4d2e08f6c97c40c8e360f9c260726c0454b2 | [
"MIT"
] | permissive | minishrink/calendargen | d3635f304c8eee70e162e1861e65db1dbc1d007b | 0c509544e1d50f3348b4e1e8725808c978e3a358 | refs/heads/master | 2020-04-17T09:54:26.770600 | 2019-11-30T20:42:41 | 2019-11-30T20:42:41 | 166,478,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py |
from typing import Callable
from calendar_lib.year import leap_years_between, year_starts_on, Year
def unit_test_leap_years_between(x: int, y: int, expected: int) -> None:
assert leap_years_between(x,y) == expected
def test_leap_years_between() -> None:
unit_test_leap_years_between(1600, 1600, 0)
unit_te... | [
"mathur_akanksha@hotmail.com"
] | mathur_akanksha@hotmail.com |
534f975c66b89dfcafb6544c9604ea1c70c0e8f3 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /9Q5nsEy2E2apYHwX8_20.py | 8618e9090acf49e54f8506ead8a5fe3d1c58dd78 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py |
class programmer:
def __init__(self, sal, hours):
# Can't not spell salary properly..
self._salary = sal
self._hours = hours
@property
def salary(self): return self._salary
@property
def work_hours(self): return self._hours
def __del__(self):
return 'oof, {_salary}, {_hours}'.forma... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
017f5cdcb41d925e5a6ea44a5a663019403fbae6 | 6c24fd8a3a59112aa295ae4b5148e9494f533547 | /soilMoisture.py | f55aee2649fd848ae8e0b2e5252066527e108f9c | [] | no_license | ChinSinclair/soil-moisture | b8aae5e0a26c200de0aa9595df6ad6e3c8131084 | afe68db1841d1b104e906e05817940a18b11e942 | refs/heads/master | 2020-03-24T02:50:23.525713 | 2018-07-26T05:26:58 | 2018-07-26T05:26:58 | 142,392,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | import RPi.GPIO as GPIO
import time
import csv
# GPIO 21 is used in this case
channel = 21
GPIO.setmode(GPIO.BCM)
GPIO.setup(channel, GPIO.IN)
# initialise string output to empty string
output = “”
# filename is temp.csv in CSV format
csvfile = “temp.csv”
GPIO.add_event_detect(channel, GPIO.BOTH, bouncetime=500)
... | [
"sinclair_chin@hotmail.com"
] | sinclair_chin@hotmail.com |
939411a9681aa337509476fe32732080cfa22c81 | 2f4aff3236a958610982082114d8c9ce13063a79 | /kdayCalcData.py | 2337c77408b2de23bedb7c377fe1a4c805a6eae5 | [] | no_license | bxgh/stock | 126575c663c093828db8d9763ec56770ad778374 | 2199c6450cc821ccde9c4e941f81dd1b18ab3086 | refs/heads/master | 2020-04-11T18:33:04.732445 | 2019-04-22T09:05:40 | 2019-04-22T09:05:40 | 162,002,968 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | import time
from datetime import datetime as dt
import os
import pymysql
import pandas as pd
import numpy as np
import tushare as ts
from io import StringIO
from sqlalchemy import create_engine
import logging
from time import sleep
from queue import LifoQueue
import queue
import threading
import random
import basewin
i... | [
"°ËÏÉ@DESKTOP-J47RKBK.yyychis.com"
] | °ËÏÉ@DESKTOP-J47RKBK.yyychis.com |
fbe30e999056a1d6e842aedc1d813c0d9b63abe9 | 0ecf2d067e8fe6cdec12b79bfd68fe79ec222ffd | /ui/aura/test/DEPS | 7b065fad58a282d77af7d76a45babcbe24f021e0 | [
"BSD-3-Clause"
] | permissive | yachtcaptain23/browser-android-tabs | e5144cee9141890590d6d6faeb1bdc5d58a6cbf1 | a016aade8f8333c822d00d62738a922671a52b85 | refs/heads/master | 2021-04-28T17:07:06.955483 | 2018-09-26T06:22:11 | 2018-09-26T06:22:11 | 122,005,560 | 0 | 0 | NOASSERTION | 2019-05-17T19:37:59 | 2018-02-19T01:00:10 | null | UTF-8 | Python | false | false | 179 | include_rules = [
"+cc/test",
"+components/viz/test",
"+mojo/core/embedder/embedder.h",
"+services/ui/public/cpp/input_devices",
"+ui/gl",
"+ui/wm/core/wm_state.h",
]
| [
"artem@brave.com"
] | artem@brave.com | |
abdfb315e9df8bc8217098192c8d34fa6221d2ba | 0f925b9444eee676be57c540e8aba43bb207d6a6 | /preparation/resources/phraseological/__init__.py | b05f58a74108b45237b2b9b123e0d2ac10456c40 | [
"MIT"
] | permissive | hatbot-team/hatbot_resources | e1abd0df1d4f2fa48de1fb2da7c47174983809a3 | 0547de84ea917cde093ad64c643679817d0082db | refs/heads/master | 2021-01-10T18:45:15.582674 | 2015-04-01T23:50:43 | 2015-04-01T23:50:43 | 25,030,035 | 0 | 0 | null | 2015-04-01T23:09:02 | 2014-10-10T09:56:35 | Python | UTF-8 | Python | false | false | 210 | py | __author__ = 'shkiper'
import os
PREFIX = os.path.dirname(os.path.abspath(__file__))
_raw_data = PREFIX + '/raw_data/phraseologism.txt'
__all__ = ['parse_phraseological']
from . import parse_phraseological | [
"aa_Zhur@mail.ru"
] | aa_Zhur@mail.ru |
c90d288b4b59233f12071b908f959ed607002bb4 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/viz/counter.py | d827b22070ecb3416754b03a878a22e00231ed25 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,162 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
dc92d1e059fb44eb34040d451f18b840721f66d3 | 779994eac5afa01829c20309ba860374cc2dd8ea | /task2_OAuth2/photo_manager/app/main/views.py | 9d74444a953b5b2a1d17c7a7fbdeb1be76583a1c | [] | no_license | colinaaa/tasks_uniquestudio | f27defc2665b8113b370f4d78408ce16b37d0638 | 9e8f8844e89aa057323b7263ef7c48e05b0b9b48 | refs/heads/master | 2020-04-03T20:41:31.458630 | 2019-02-15T13:34:17 | 2019-02-15T13:34:17 | 155,554,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | from flask import render_template, redirect, url_for, request,make_response
from . import main
from .forms import Login,Signup
from .. import db
from ..models import User, Photo
import os
import base64
#from flask_login import login_required, current_use
basedir=os.path.abspath(os.path.dirname(__file__))
@main.route(... | [
"qingyu.wang@aliyun.com"
] | qingyu.wang@aliyun.com |
89dd0d4ffc177fcfe2e1660239afa11bee516eda | 5d1cef076cdf3f0fde6ac2b1112784a08613375d | /Open3D/examples/Python/Advanced/remove_geometry.py | 04c9c3e8a2e29c000152602f72b04f87585d31da | [
"MIT"
] | permissive | RohanChacko/CVIT-Summer-School | f3875f3c3923dd75e04360e0b12da70d241584f0 | 1c4ee753977be2def44d8081f29d3c325f179859 | refs/heads/master | 2022-12-21T13:36:15.098962 | 2019-06-17T09:43:29 | 2019-06-17T09:43:29 | 188,479,058 | 2 | 1 | MIT | 2022-12-11T14:41:07 | 2019-05-24T19:47:14 | Jupyter Notebook | UTF-8 | Python | false | false | 1,394 | py | # Open3D: www.open3d.org
# The MIT License (MIT)
# See license file or visit www.open3d.org for details
# examples/Python/Advanced/remove_geometry.py
import open3d as o3d
import numpy as np
import time
import copy
def visualize_non_blocking(vis):
vis.update_geometry()
vis.poll_events()
vis.update_render... | [
"rohanchacko007@gitlab.com"
] | rohanchacko007@gitlab.com |
6345b57545727b994dba5288eb691d685262eaf1 | 48fafa568ccc6a81eb5fba4f7a15ddc2c0cfd6a8 | /android_env/components/adb_controller.py | a95cb630ae7a4b7223efc98421223c2cd628832c | [
"Apache-2.0"
] | permissive | yizhangliu/android_env_for_windows | fb14b9d35bb242fcad2f1b4f5ae055a662a72496 | 55d33f2406c9f31d952de2bf080abfe42ad7586c | refs/heads/main | 2023-08-22T17:23:19.510215 | 2021-10-25T07:18:49 | 2021-10-25T07:18:49 | 378,130,008 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,785 | py | # coding=utf-8
# Copyright 2021 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"liuyizhang@loveorange.com"
] | liuyizhang@loveorange.com |
0d81887fc7d8ba45d14f40ea4076f76365ea8404 | 736d095bcca970283eeee34f2c87cfbf0247176e | /PyqtGraph_Selftest.py | dd28a17b2520d5a3dcac6b62254ff75d077766e1 | [] | no_license | XPlay1990/Python_Graph-libs-trys | e8693c8094f34bdbeb27f4f208211637b6fcdeab | fcbf3598f856b6546a59ebee79fbb65491d06e9e | refs/heads/master | 2020-03-26T16:15:20.760300 | 2018-08-17T07:58:15 | 2018-08-17T07:58:15 | 145,090,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | # -*- coding: utf-8 -*-
"""
This example demonstrates the use of GLSurfacePlotItem.
"""
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph as pg
from collections import deque
import pyqtgraph.opengl as gl
import numpy as np
import datetime
numberOfData = 1000
widthOfData = 500
## Create a GL View widget to disp... | [
"35451726+PASDeutschland@users.noreply.github.com"
] | 35451726+PASDeutschland@users.noreply.github.com |
3c97ee56f65b16d69e856715a947b01f4497c14d | cff68cf6523f29efcf7e50df48a9d85ac6912934 | /qa/data/models.py | 4a9396b0ac450b6504238c0f88edc7635a536127 | [] | no_license | sabithpocker/narratorqa | f29513262a61276f851580b96e77826767a5ab1d | c45ba3d89d8a3da930e632e4620bf480dc205312 | refs/heads/master | 2021-01-19T20:34:17.773066 | 2017-09-02T15:12:56 | 2017-09-02T15:12:56 | 101,228,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | from django.db import models
# Create your models here.
class Catalog(models.Model):
title = models.CharField(max_length=500)
description = models.CharField(max_length=1000)
ministry_department = models.CharField(max_length=150,null=True,blank=True)
state_department = models.CharField(max_length=150,nu... | [
"sabith@techolution.com"
] | sabith@techolution.com |
ef600d8b85e4fca937d76f4660c45917052aaf5f | dd998619977a5aeebda40bb7d690a26f40815263 | /learningpython/forloop2.py | 35337dd9f81ec92d22ede46f15f59ae8a24f7dad | [] | no_license | skolte/python | 791156afb78f2b87194e601f78f1375356c71069 | dfea80f5eb340a375f31a961f3315790105437d9 | refs/heads/master | 2021-01-10T03:21:39.313897 | 2016-04-07T04:43:02 | 2016-04-07T04:43:02 | 54,427,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | __author__ = 'sandeep'
# Find the smallest number in the list.
smallest_so_far = -1
for the_num in [9, 41, 12, 3, 74, 15] :
if the_num < smallest_so_far :
smallest_so_far = the_num
print (smallest_so_far) | [
"sandeep.kolte@gmail.com"
] | sandeep.kolte@gmail.com |
5f3f95c4fee66520ba6a1cc88ff46ec144020720 | 88fc0fa2f51f40faac15b42f7b5eb6529718d029 | /problems/dtlz/dtlz2.py | b29556cbe741119a159de893ea30a90867d26c46 | [
"MIT"
] | permissive | bigfatnoob/optima | d68a2bcc3d411a44eb38c8625177d0017514845a | dcd4a13f08f8c1bd68740e81f472ff6ac76addca | refs/heads/master | 2016-09-15T15:01:08.455136 | 2016-03-14T00:09:32 | 2016-03-14T00:09:32 | 35,189,485 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | from __future__ import print_function, division
import sys, os
sys.path.append(os.path.abspath("."))
from problems.problem import *
__author__ = 'panzer'
class DTLZ2(Problem):
"""
Hypothetical test problem with
"m" objectives and "n" decisions
"""
k = 10
def __init__(self, m, n=None):
"""
Initiali... | [
"panzer@Georges-MacBook-Pro-2.local"
] | panzer@Georges-MacBook-Pro-2.local |
e489bd2d840667373619b3b7a58eb5ce8d826d5c | 86568070ba7718af241cb0bdabf5dba0243b5d89 | /5. 卷积神经网络/5.7 使用重复结构的网络/VGG_Func.py | 3cab9146970d61d98083486621d5683b0e05f68e | [] | no_license | kaitokuroba7/pytorch_learning | 560ec952a7c3471129b38d66a6a2ff6dae9909fc | f1c90c533b0475d15df44811d3ef870bb3d3e3d4 | refs/heads/master | 2023-04-14T08:48:07.409902 | 2021-04-20T11:24:49 | 2021-04-20T11:24:49 | 351,309,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: J.Zhang
@contact: 1027380683@qq.com
@site: https://github.com/kaitokuroba7
@software: PyCharm
@file: VGG_Func.py
@time: 2021/3/16 15:37
"""
import time
import torch
from torch import nn, optim
import Function.utils as d2l
device = torch.device('cuda' if torch.cuda.... | [
"zhangjie0209@zju.edu.cn"
] | zhangjie0209@zju.edu.cn |
68876b760fd8caeed66ef8e05f73700fad04321c | df87cea4e024ba6350625f4e479cd18984c39bba | /qualia2/rl/envs/__init__.py | aea2eb025e3070f4f4833dd757e60f848f653758 | [
"MIT"
] | permissive | Kashu7100/Qualia2.0 | 71428f643f52a97c0d0670d0c7d7db14b96a18e5 | 6f059237d0baa364fcb521f9e0cca61d4e6e5d84 | refs/heads/master | 2021-06-15T09:06:31.663708 | 2021-04-06T16:59:47 | 2021-04-06T16:59:47 | 172,283,390 | 51 | 12 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
from .atari import *
from .box2d import *
#from .mujoco import *
from .toy_text import *
from .roboschool import *
from .classic_control import *
#from pybullet import *
| [
"noreply@github.com"
] | noreply@github.com |
69f32e38775c2f66ff284189680c3d7a613569d3 | 225ba370ecd1052f2c9551d9882be126036a2bd1 | /kNN/handwriting_kNN.py | 062a9315627d749a8006f788ed11f35a375a644f | [] | no_license | zsm982202/MechineLearning_python3 | 43eb1ddefffdfbf5760b479bbd9c74c82e62b03d | 6afd87c1c7bf6a988b1a72d26a5eb4ffe99198e6 | refs/heads/master | 2022-12-15T12:33:36.830904 | 2020-09-21T09:32:22 | 2020-09-21T09:32:22 | 282,404,877 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | import kNN
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import font_manager
from os import listdir
def img2vector(filename):
returnVect = np.zeros([1, 1024])
fr = open(filename)
for i in range(32):
lineStr = fr.readline()
for j in range(32):
returnVect[0, ... | [
"zsm982202@Outlook.com"
] | zsm982202@Outlook.com |
4dd552079273443466cfa2d4f347e85fedbcd48c | 012cbbe582a76749e043f6d135c1bbcf8acaabfb | /urls_from_txt_file/program.py | 54f64ee8ef77ab53ab03eafa42dd47908657a7d6 | [] | no_license | juancarl0s/crawl_outputHTTPstatusCodes | fc31c2dae4e21d25cac35c8f0c30619398610eb4 | 5375ea0fdfcd9b0aec0ff8f4ec5eaef4895629f6 | refs/heads/master | 2016-09-01T22:09:43.378301 | 2015-02-23T22:36:46 | 2015-02-23T22:36:46 | 28,617,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | from bs4 import BeautifulSoup
import urllib
import re
import csv
def write_url_and_statusCodes_ToFile(txtBoolean, csvBoolean):
urls_set = set()
# urls_file = open("urls.txt", "r")
# for line in urls_file:
# if line.endswith("/"):
# line = line[:-1]
# urls_set.add(line)
# print line
with open("urls.txt... | [
"juancarlos.hal0@gmail.com"
] | juancarlos.hal0@gmail.com |
6379d81b97e6d5382544005543d31ea1c8b3b723 | 41d2a7ce007953a57c4c3fa4bd2d8d033f7a956c | /Runs/frame-rotation-investigation/system.py | a901ecd475600f38469f914c9563c3ebada0f488 | [] | no_license | gcross/Practicum | 3251791ffb05f4d3d4426728582b03f67869f027 | b4e667855a33c8d8889b94f057abd45913ab80e6 | refs/heads/master | 2021-01-23T13:29:26.188630 | 2010-02-27T01:16:15 | 2010-02-27T01:16:15 | 256,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,250 | py | #@+leo-ver=4-thin
#@+node:gcross.20090827130017.1614:@thin system.py
#@<< Imports >>
#@+node:gcross.20090827130017.1615:<< Imports >>
import vpi
from numpy import *
from numpy.random import rand
import os
import os.path
import itertools
from itertools import izip
#@-node:gcross.20090827130017.1615:<< Imports >>
#@nl... | [
"gcross@phys.washington.edu"
] | gcross@phys.washington.edu |
35c6e6afcf266be4f22ea078c86e88bb4c047b20 | cb1e4c175fa498778669ceee62dae642cd9efaf3 | /Deep_Learning_A_Z/Volume 1 - Supervised Deep Learning/Part 1 - Artificial Neural Networks (ANN)/Section 4 - Building an ANN/ann.py | 99e806d5f60ff981c533c6d44e6072d52ee9aa40 | [] | no_license | RakibulRanak/Deep-Learning | 3ec7ec5b5654174fd50cb99d61367c02a29e4e11 | 86c5e537ab05170ef775e2f3da31f4da61db15be | refs/heads/master | 2022-08-25T09:30:49.182700 | 2020-05-27T18:53:09 | 2020-05-27T18:53:09 | 266,579,349 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | # Part-1 -> data preprocessing
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Churn_Modelling.csv')
X = dataset.iloc[:,3:13].values
y = dataset.iloc[:, 13].values
# Encoding categorical data
from sklearn.preprocessing i... | [
"rakibulhasanranak1@gmail.com"
] | rakibulhasanranak1@gmail.com |
8f773f2400f616bab03e24d342fb8893ba99722c | 278efb37d60e1bdfc5e36ee5fbc8b0dd69239f41 | /projectimmo/streaming_app/migrations/0005_video_user.py | af7e8dee5992709932d0fb4fee576e313b4e6bae | [] | no_license | ChamHostile/streaming_christo | 469465ded163206198d4b600a1a323e947e2971f | f9af556f011ab8c876fffc7181ec508fbd627268 | refs/heads/main | 2023-07-15T08:11:25.098937 | 2021-09-03T13:39:41 | 2021-09-03T13:39:41 | 402,782,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Generated by Django 3.1.6 on 2021-08-13 14:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('streaming_app', '0004_vi... | [
"hamza.aboudou@gmail.com"
] | hamza.aboudou@gmail.com |
db3ea413448855aaad55aeb94371debf6adb76ed | 9d0fa09b8b6e1754d4ec00d2c0fed02425beed77 | /classify_images.py | ec833b6d76211312aacf1f72f7240a72a4920c54 | [] | no_license | hardik632/pre-trained-image-classifer | 2b084c825cdff79bc2f8e19c78e0ee6c8fc9c371 | a367422363455282a947c0b927ef3c782fa2c1a1 | refs/heads/master | 2020-05-15T17:47:42.347030 | 2019-04-20T13:44:26 | 2019-04-20T13:44:26 | 182,410,878 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/classify_images.py
#
# PROGRAMMER: hardik dhiman
# DATE CREATED: 28-jan-2019
# REVISED DATE:
# PURPOSE: Creat... | [
"noreply@github.com"
] | noreply@github.com |
8db666da06657c0966f6541b5b98a80860b1b13b | c7eb5c81a4581f6bd7be32b23b14f3e1a36d51fd | /db_migrate.py | d757c37ff03068d8ee079bbe24f25a07ef437aa1 | [] | no_license | mchenco/blog | 5d9988bf3906a8a4559db0eaf33134be75a35602 | fd39544db86f9d45168e6c25b1771a7edaf51a34 | refs/heads/master | 2016-09-13T09:44:31.567629 | 2016-05-18T03:48:00 | 2016-05-18T03:48:00 | 58,906,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!flask/bin/python
import imp
from migrate.versioning import api
from app import db
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
migration = SQLALCHEMY_MIGRATE_REPO + ('/versions/%03d_migration.py' % (v+1))
t... | [
"chen.michelle15@gmail.com"
] | chen.michelle15@gmail.com |
e311a5f20fb1dbca7de12fdfcb7920fccbcd889a | be84495751737bbf0a8b7d8db2fb737cbd9c297c | /renmas/materials/specular_sampling.py | 95d9d6e4cdf41f2cad8e48e97a02b9cddb8e55ba | [] | no_license | mario007/renmas | 5e38ff66cffb27b3edc59e95b7cf88906ccc03c9 | bfb4e1defc88eb514e58bdff7082d722fc885e64 | refs/heads/master | 2021-01-10T21:29:35.019792 | 2014-08-17T19:11:51 | 2014-08-17T19:11:51 | 1,688,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py |
import math
import renmas.maths
import renmas.utils as util
class SpecularSampling:
def __init__(self):
pass
def get_sample(self, hitpoint):
hp = hitpoint
ndotwo = hp.normal.dot(hp.wo)
r = hp.normal * ndotwo * 2.0 - hp.wo
hp.wi = r
hp.ndotwi = hp.normal.dot(r)... | [
"mvidov@yahoo.com"
] | mvidov@yahoo.com |
1259ebebbd710c3ca40da7838c78b8380800f990 | 5ff14cf2f759100e17308f37bf4d1a525c7ca882 | /data_processing/data_loader_old.py | 18913bad765ab0b2e8d42a7aa7fce21b3be9ee3d | [] | no_license | ThiasTux/TemplateMatching | ad0d54ab52418c10a290a7ea2307c19d84808ad9 | 8d28ce26049b12bed9718c95a0acb0de242b29f0 | refs/heads/master | 2021-06-21T07:17:43.542849 | 2021-01-21T16:25:58 | 2021-01-21T16:25:58 | 168,568,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,972 | py | import pickle
import random
import numpy as np
from utils import distance_measures as dtm
def load_dataset(dataset_choice=100, classes=None, num_gestures=None, user=None):
# Skoda dataset
if dataset_choice == 100:
data = pickle.load(open("outputs/datasets/skoda/all_data_isolated.pickle", "rb"))
... | [
"mathias.ciliberto@gmail.com"
] | mathias.ciliberto@gmail.com |
3b01692f4601f5435f8efd2fd3532e1a63d29fa9 | 48ddaeb3eb7b127ccf6ce362b2a42307ecacc875 | /src/filters/filter_time_to_space.py | ed224805af288dbf31e6d71f0f856bbf33a2f2b7 | [
"BSD-3-Clause"
] | permissive | aashish24/ParaViewGeophysics | f720cdf2555f2a81801dfa4132189a040c980b8b | d9a71ffd21a57fa0eb704c5f6893ec9b1ddf6da6 | refs/heads/master | 2022-03-05T15:23:56.166299 | 2017-11-10T22:28:44 | 2017-11-10T22:28:44 | 110,368,572 | 0 | 0 | BSD-3-Clause | 2020-01-12T00:22:22 | 2017-11-11T18:12:25 | Python | UTF-8 | Python | false | false | 4,291 | py | Name = 'ProjectShotRecordToSpace'
Label = 'Project Shot Record To Space'
FilterCategory = 'CSM Geophysics Filters'
Help = ''
NumberOfInputs = 2
InputDataType = 'vtkTable'
OutputDataType = 'vtkPolyData'
ExtraXml = ''
Properties = dict(
ns=126,
nt=1500,
ds=1.0,
dt=0.001,
)
def RequestData():
from v... | [
"chrsulli@mines.edu"
] | chrsulli@mines.edu |
63d840a4e9086763b14e0fc3229eb897db7931ef | 955e99e0f46a8578562853fdb2cb9237923dcdd7 | /submission/tasks.py | 38e5e592ddcd58d9f712267eef81801226332d06 | [] | no_license | joeyac/WebServer | 7d7ccc3df3092f923e52248c15e5dbb3ad5b866b | c856ed5570712887c61df9f563a9c028c27a8367 | refs/heads/master | 2021-06-16T16:04:02.847217 | 2017-05-19T04:42:23 | 2017-05-19T04:42:23 | 81,619,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from celery import shared_task
from judger.tasks import JudgeDispatcher
@shared_task
def p_judge(submission_id, language_name, src_code,
time_limit=None, memory_limit=None,
test_case_id=None, spj_code=None,
... | [
"623353308@qq.com"
] | 623353308@qq.com |
1300eb74b39e37aa12c11ab90b55b2f14bb5b104 | 061c9850fe1d8085f9b04ee541eb9dd7b389ea48 | /backend/home/migrations/0002_load_initial_data.py | ac672869ea320e1bcfcb77501628434b0faf52fa | [] | no_license | crowdbotics-apps/tony-stg-app-7-dev-14211 | 1245fab608661791618c21efff0dc5e3d536b94b | ba6c52b243a6bd99d721233b9b7ab9f90b2228f8 | refs/heads/master | 2023-01-07T07:48:10.718703 | 2020-11-11T03:44:25 | 2020-11-11T03:44:25 | 308,393,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "tony-stg-app-7"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
877269ec91daed7055f3dc47068189e5aeaf2c5d | c60abf0b0850bc09f5871637203360a5e6983988 | /attack_models/tools/eval_roc_dd.py | 05c091fd037b2523b28005aa587e036a722b1c10 | [
"MIT",
"Python-2.0"
] | permissive | sanixa/gan-leaks-custom | 87780a0f792acc1c3e49c9820ffc4870d267f748 | f2efd8c8f4d267dd728bf00c8936d6f04a63736e | refs/heads/main | 2023-07-27T14:54:01.075339 | 2021-09-09T04:59:01 | 2021-09-09T04:59:01 | 404,181,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | import numpy as np
import os
import argparse
import matplotlib.pyplot as plt
from sklearn import metrics
############################################################################
# visualization functions
############################################################################
def plot_roc(pos_result... | [
"cegg12345678@yahoo.com.tw"
] | cegg12345678@yahoo.com.tw |
2781abb2571ce6222079aaeec64e43050fc8c7dd | 04f83aab47940b739f13c1ba102c230372966c43 | /SHyFTFitter/scripts/configTemplateInfo.py | ec70fe88e67072237e3cf70d7d4f78a0d8a603d1 | [] | no_license | PerilousApricot/SUSHyFT-Analyzer | 5a11909963d30c8ad7f19f499253a6753e78608a | 9f5ba528a96203459c52a0434b32311a16e2ff3b | refs/heads/master | 2016-09-15T15:31:30.617286 | 2016-03-14T20:32:09 | 2016-03-14T21:02:28 | 21,915,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | #! /usr/bin/env python
import ROOT
import optparse, sys, re, pprint, os
from FitterConfig import FitterConfig
# global variables to be filled
histNames = []
groupNames = []
fileName = ''
lumi = 1.
# number of jet and tag bins
totalDict = {}
histList = []
# REs
commentRE = re.compile (r'\#.+$')
trailingRE =... | [
"andrew.m.melo@vanderbilt.edu"
] | andrew.m.melo@vanderbilt.edu |
178a300a703710946bedd0c3206460881d295d52 | 8495dad5d79e666cd4e96945b9bf7c90f722acba | /server_stream.py | aee642239ad4160a1197123feb90879f8fcc829c | [] | no_license | ike091/powder-ndn | 58472f950aca4d63ae25656414cf23f7746ea53d | 515dfdfc32fcd20cdf47bf2dc2e634450275d443 | refs/heads/master | 2022-12-02T11:51:30.997782 | 2020-08-07T20:13:35 | 2020-08-07T20:13:35 | 264,268,348 | 1 | 2 | null | 2020-06-02T16:45:59 | 2020-05-15T18:23:31 | Python | UTF-8 | Python | false | false | 5,492 | py | import time
import argparse
import traceback
import random
import asyncio
from pyndn import Name
from pyndn import Data
from pyndn import Face
from pyndn.security import KeyChain
from pyndn.threadsafe_face import ThreadsafeFace
import numpy as np
import pandas as pd
def dump(*list):
"""Prints all parameters"""
... | [
"ike091@gmail.com"
] | ike091@gmail.com |
ee6c17019d4216d285873c680eee31afc64e67f1 | 0c4c0cdcd597e64f79ebdcb137042e30dbb4a8bd | /ImageDownloader.py | 55e1a2e2563ba22ff53322c4f16e58e19a00d9b3 | [
"MIT"
] | permissive | skulbrane/image-scraper | 78f3356b5595f880d3b562eb59c6eb432efab8a6 | ff1257dd6f95a2a9ecce87af042da75e90efa5c1 | refs/heads/master | 2021-01-21T01:57:53.644869 | 2015-09-13T13:10:14 | 2015-09-13T13:10:14 | 42,398,550 | 0 | 0 | null | 2015-09-13T14:19:15 | 2015-09-13T14:19:15 | null | UTF-8 | Python | false | false | 1,118 | py | #!/usr/bin/python
import urllib
import os
class ImagesDownload(object):
def __init__(self, fileName = None):
self.fileName = fileName
# relative file path
def filePath(self):
dirPath = os.path.dirname(__file__)
if self.fileName != None:
relFilePath = os.path.join(dirPath, self.file... | [
"naveenranjankarippai@gmail.com"
] | naveenranjankarippai@gmail.com |
877c2d0eb3274c9286722d217a3cb4d2b2fbe11f | e6f3f8aa78ff2560903b3d5e4beff97c83c048e3 | /src/predict.py | d0d54e5aa7cb4b34cc4448b5ed5beef68ac62fd5 | [] | no_license | chris010970/eurosat | 9fad0a11fb2c0804f10dadae9bc9226a937af2e3 | 25e455db68fd13d359956aa11172935ce2841909 | refs/heads/master | 2022-10-10T17:08:26.476974 | 2020-06-04T16:50:01 | 2020-06-04T16:50:01 | 266,398,939 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | import os
import time
import argparse
import numpy as np
import pandas as pd
# metrics
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
# graphics
import seaborn as sn
import matplotlib.pyplot as plt
# local imports
from eurosat import Eurosat
from model import loadFromF... | [
"c.r.williams0109@gmail.com"
] | c.r.williams0109@gmail.com |
6d48b59e64f7bb87c4865c674526f93c44ab1e21 | c598e71fd1fdd9469b9616178cc4daab9a509841 | /4. Leader&Team Dynamics - from simulation to experimentation (with Simn Karg)/oTree/__temp_migrations/LCG/0046_auto_20190117_1131.py | 98d72b7688f322525ef0f90791ab4b01e4fa40ea | [
"MIT"
] | permissive | Rnault/SCDC-archives | 0e8f7612c59ccb07b9708963481f9c5c7f3530b5 | 4de173bf807a235a3529d6e19ecc70de583173ab | refs/heads/master | 2020-07-05T19:15:27.241907 | 2019-11-30T20:37:04 | 2019-11-30T20:37:04 | 202,743,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,995 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-01-17 10:31
from __future__ import unicode_literals
from django.db import migrations
import otree.db.models
class Migration(migrations.Migration):
dependencies = [
('LCG', '0045_auto_20190117_1130'),
]
operations = [
migration... | [
"32672200+Rnault@users.noreply.github.com"
] | 32672200+Rnault@users.noreply.github.com |
fc07286660f08ae78ec2f050069a02a7ff21a844 | d59996dc9d343c78a8749437f24a6b8722b243cf | /Python-Files/Fish-NoFish/evaluation/roc_curve.py | b231875061d5e0afef572cb69de03e00bd69eb3c | [
"Apache-2.0"
] | permissive | jcgeo9/ML-For-Fish-Recognition | 70ff0c18c026f2a7e9d33345999a77c919fd0788 | 0b5faba77d0b2c5452950637f047882c80fa6fb7 | refs/heads/main | 2023-07-20T07:28:57.115057 | 2021-08-21T20:19:50 | 2021-08-21T20:19:50 | 389,645,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | # =============================================================================
# Created By : Giannis Kostas Georgiou
# Project : Machine Learning for Fish Recognition (Individual Project)
# =============================================================================
# Description : File to load the saved mo... | [
"noreply@github.com"
] | noreply@github.com |
57599d880bfc8ab69bb071aed7da865fd03fc465 | 80220579951046b30e5873ec42d8a31770a06b71 | /product/serializers.py | 45d157811c1bd74a6c578e154e5476d03e4c5bb5 | [] | no_license | Mohamed2011-bit/hdya-api | 676e39e6ab8a2e50b26383ba06acc43274ef326e | fa213c36c6f88702cc6afd8d7f63c1d7bfc19956 | refs/heads/master | 2023-02-09T04:07:02.144404 | 2021-01-05T12:18:51 | 2021-01-05T12:18:51 | 326,989,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | from .models import * # Product , Category , Occassion , RelationShip
from rest_framework import serializers, status, validators
from rest_framework.response import Response
from django.utils import timezone
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
field... | [
"egyria2011@gmail.com"
] | egyria2011@gmail.com |
95bb386cc14b99e28952fb65f32afe14f29c9620 | e6b4f7a3721c9f0c59de2623165b6967fa48a095 | /gispot/crcpy/raw/ejpg.py | 6ea332206b053c9830b21ceda779745b33c4b506 | [] | no_license | hygnic/Gispot | 8a3db18e4348597990793968d502c4619afdd523 | 440d168fd84bd98d2d9f2bc27b34ac9d7816a4e1 | refs/heads/master | 2023-04-29T15:39:09.876858 | 2023-04-16T08:17:55 | 2023-04-16T08:17:55 | 220,610,954 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 987 | py | # -*- coding:cp936 -*-
# lcc
"""
批量将导出MXD文档导出为JPEG图片
"""
#
# import sys
# sys.path.append("../../GUIs")
# print sys.path
import arcpy,os
# import tooltk
# tooltk.Tooltk().rootwindow.mainloop()
# 设置需要出图mxd文档文件目录
# path = ur"G:\正安县\正安县公示图\400"
# 设置分辨率
# res = 300
arcpy.env.overwriteOutput = True
def export(pat... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
d9ac6aaaeeaf79aa22f03653a341b038974aaff2 | 2804432fba5a4fe639d07a207bb01f71e03d9189 | /test/cts/tool/CTSConverter/src/nn/specs/V1_0/space_to_depth_float_2.mod.py | df557f6dc777e190bcc08907f42fa96d78c54f38 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | intel/webml-polyfill | 5685299e1b6d91a010c5e057685bf010d5646e4f | bd014955c5bcc9dc5465aea06721072f45ab4a75 | refs/heads/master | 2023-09-01T17:30:55.961667 | 2023-04-14T01:18:47 | 2023-04-14T01:18:47 | 126,892,425 | 168 | 75 | Apache-2.0 | 2023-04-14T05:16:41 | 2018-03-26T21:31:32 | Python | UTF-8 | Python | false | false | 541 | py | model = Model()
i1 = Input("input", "TENSOR_FLOAT32", "{1, 4, 4, 1}")
block = Int32Scalar("block_size", 2)
output = Output("output", "TENSOR_FLOAT32", "{1, 2, 2, 4}")
model = model.Operation("SPACE_TO_DEPTH", i1, block).To(output)
# Example 1. Input in operand 0,
input0 = {i1: # input 0
[1., 2., 3., 4., 5.,... | [
"feng.dai@intel.com"
] | feng.dai@intel.com |
7983688468b4d5fa8642db2796bd417ead2836df | 6929d8bbe467fc44f6cad50a549b3ad55a112061 | /sentimental_analysis/naive_bayes_census.py | 8b6f0991d4e2ed4e5b5ec87725037bebe7219dbd | [] | no_license | douglasdcm/machine-learning | 8ca54e8f57c15d7de4ff007e6ae81007492ac5e9 | 0374959baa2f7bb43973c82792d2be329d87cd23 | refs/heads/master | 2023-01-13T05:07:58.641325 | 2020-11-06T01:07:45 | 2020-11-06T01:07:45 | 285,450,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 9 16:59:59 2019
@author: Douglas
"""
import pandas as pd
base = pd.read_csv('census.csv')
#separate previsores from classes
previsores = base.iloc[:, 0:14].values
classe = base.iloc[:, 14].values
#transform categoric variables in nominal ... | [
"douglas.dcm@gmail.com"
] | douglas.dcm@gmail.com |
75b6a08bfc8195f65cc88df6c92417abca540564 | 758466928597639a81c74ac013a07dbd66266b2f | /design4green/home_page/migrations/0005_consommation_c_date.py | 97abf7cfb7b3dbe7541820ecc362c1b2a89dd669 | [] | no_license | Odrann/team11-design4green | 3dffcd1997e01fb2e871a222064b668f8ca66e9d | 7d446bd9680e3ed65eea42dc876504bedd93ec81 | refs/heads/master | 2020-09-13T21:51:25.266801 | 2019-11-22T05:37:13 | 2019-11-22T05:37:13 | 222,913,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 2.2 on 2019-11-21 10:51
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home_page', '0004_auto_20191121_1026'),
]
operations = [
migrations.AddField(
model_name='consommation',
... | [
"root@vps753512.ovh.net"
] | root@vps753512.ovh.net |
a8e832012a3c3327109eb9d3599d47e1af0658d0 | ec110cb38223acf0fa1f32e043b74edd3e321b2d | /函数/数学运算.py | be4fea690c1a1df75af9540c0ac5a2cfd238ed2a | [] | no_license | liuweihai/python_3 | c55dc03012213637ddfcf3ef8256845af395423c | 452ab91328928aabf9b834e866accbc8264c48f9 | refs/heads/master | 2020-03-30T00:54:58.235151 | 2018-10-15T12:12:03 | 2018-10-15T12:12:03 | 150,550,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import math
# abs---返回数值的绝对值
print(abs(-33.2))
# 创建一个复数(不懂使用场景),complex([real[, imag]])
print(complex('2'))
# 整数类型转换 float (小数)类型
print(float(2))
# 浮点类型转化整数类型
print(int(2.7))
# pow 开方 pow(x,[,y])
print(pow(2,-10))
# 产生一个序列
obj = []
for x in range(3):
obj.append(x)
print(obj,x)
print(u'obj总和:',sum(obj))
for x in ran... | [
"liugangqwe@sohu.com"
] | liugangqwe@sohu.com |
da4b2bb2dded2719a601563b647c1ecb6d568f76 | 850e1ef3007236da868444a97edb230e98b6aa6b | /test.py | 9927d9e0d4c97f00cb422e7ff9dd888b8e212d43 | [] | no_license | wubiao239/python | 343bf1f6449606e3c9695d40eb072f028f879670 | d0d59405dfb4c46f6e55f7e95eac4fa2c3822984 | refs/heads/master | 2021-01-18T23:02:44.052493 | 2016-04-21T12:25:38 | 2016-04-21T12:25:38 | 42,394,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | import urllib.request
import urllib.parse
email="domainindia@163.com" #用户名
password="wb19900321" #用户密码
ry=1 #注册年限
rd="2015-10-24" #注册时间 今天16号pending17号注册日期18号
cuid="13392391" #客户id
coid="46297369" #联系人id
#配置参数=============================================================。
param={"user_email":email,"user_pw":password,"d... | [
"wubiao239@163.com"
] | wubiao239@163.com |
9a0a6ee353a2d8e0a58603081ad649422122d6fa | 4f57d03df135822a63c4f00f2b5e6dcb3c9a3cdc | /setup.py | aa22d008c02e69c578c9b1e5cbdbdfcae5e6c2c1 | [] | no_license | exantech/monero-wallet-service | 059c437e261f4d14a89a7786d1152d735d66f181 | 720477c30e7f14936d530f635d7fa09fc516ee54 | refs/heads/master | 2022-12-10T11:09:10.747734 | 2018-03-19T15:55:28 | 2019-06-03T11:38:19 | 189,993,281 | 2 | 0 | null | 2022-12-08T01:04:04 | 2019-06-03T11:35:45 | Python | UTF-8 | Python | false | false | 2,392 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='monero-wallet-service',
# Versions should comply with PEP440. For a discussion on single-s... | [
"denis.voskvitsov@gmail.com"
] | denis.voskvitsov@gmail.com |
9a2b8cc4e98ef53d1b0387daf377c46dea6c8bfd | 37d026d9ca3809327585b96dbb086e23187688ff | /WannaEat/views.py | 38575c631a8dcca5afb07db3596aa4f9144e7292 | [] | no_license | x1Dman/PracticeWork2020 | b918a817d4ab21e8104fb0ec95cb83f7200c1066 | 8f152e987d2d01d54f42ff5c35e5cfbfa0ca8825 | refs/heads/master | 2022-12-22T11:57:59.518115 | 2020-10-01T21:05:37 | 2020-10-01T21:05:37 | 282,449,303 | 0 | 1 | null | 2020-10-01T21:05:38 | 2020-07-25T13:27:48 | Python | UTF-8 | Python | false | false | 2,742 | py | from django.contrib.auth import authenticate
from django.shortcuts import render, redirect
from django.views.decorators.csrf import ensure_csrf_cookie
# Create your views here.
from django.views.generic.base import View
from django.views.generic import ListView, DetailView
from rest_framework import status, generics
f... | [
"glaider102@mail.ru"
] | glaider102@mail.ru |
85ffcabb6a037ada824120d70ad122cef05babc1 | cfc68ffbc9b16c24368a53ebca44cd2180a164fb | /sklearn/_min_dependencies.py | 7c8042b8b14350c674d8d88b24e279bd8b8d1f6c | [
"BSD-3-Clause"
] | permissive | cuicaihao/scikit-learn | b21b15473ffc90ed8688ec17b0eb77dd2f3f7ac3 | 9c9c8582dff9f4563aa130ef89f155bad0051493 | refs/heads/master | 2022-11-19T14:08:45.737980 | 2022-11-18T18:29:04 | 2022-11-18T18:29:04 | 56,463,897 | 2 | 0 | BSD-3-Clause | 2023-09-07T04:13:18 | 2016-04-17T23:35:29 | Python | UTF-8 | Python | false | false | 2,648 | py | """All minimum dependencies for scikit-learn."""
from collections import defaultdict
import platform
import argparse
# scipy and cython should by in sync with pyproject.toml
# NumPy version should match oldest-supported-numpy for the minimum supported
# Python version.
# see: https://github.com/scipy/oldest-supporte... | [
"noreply@github.com"
] | noreply@github.com |
2c044c0ffc8be7367fa298dac5d0de87e27c6dcb | d51efec85349f0ae1ef5b61e143b70fa0480e451 | /single inheritance.py | 07163f65348cab51cf85cb87e73b9464eec46dba | [] | no_license | subhamkrverma/pythonprog | 73b616b7f2df54a81b24f8edee96c441e60c7cdc | 557471a6c75eedf4c359a36c12bf257ef26429e0 | refs/heads/master | 2020-12-30T04:11:20.188184 | 2020-02-07T06:14:10 | 2020-02-07T06:14:10 | 238,855,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | class Student:
college="Aditya"
def __init__(self,name,rollno,fee):
self.name=name
self.rollno=rollno
self.fee=fee
class HostelStudent(Student):
def __init__(self,room,hfee,name,rollno,fee):
super().__init__(name,rollno,fee)
self.room=room
self.hfee=... | [
"noreply@github.com"
] | noreply@github.com |
ce8252c5e46cdff5af7de4c0567b2517223e86ef | e7795ee2b99cbad79210f54b85532a5575ed10ea | /ctf/icec.tf/numb3rs/n.py | 870845e1a7dfb75422e6e8325346bdd36e7f523d | [] | no_license | duracell/challenges | 9c8106606262770393d17a5c46502b53beb1a9cd | cb748a72cced69b3ff3894b93778af0ab533a57e | refs/heads/master | 2021-06-01T02:04:46.139286 | 2016-06-29T19:18:39 | 2016-06-29T19:18:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python3
from string import ascii_lowercase as a
def chunks(line, n=2):
for i in range(0, len(line), n):
yield line[i:i+n]
c = "05110006_00111507000104190802_08130308020418".replace("_", "")
print("".join((a[int(x)] for x in chunks(c))))
| [
"wehrmeyer.martin@web.de"
] | wehrmeyer.martin@web.de |
bd76088d4ae1dc4f81258e126d1f7f191b466add | cf1b3312af6395c0f8cc7d3ef7d6310a125816bf | /examples/text_to_sql/RAT-SQL/evaluation/utils.py | 455e5a391481ce269d9afbc4625a17a98e566448 | [
"Apache-2.0"
] | permissive | thomas-yanxin/PaddleNLP | 92db7b4c5eef4494f6e770eaebd80001e66494d2 | 1ddc5bbeeb587a20c10629d17b030214aba77990 | refs/heads/develop | 2023-06-22T18:00:34.532679 | 2021-07-21T06:12:58 | 2021-07-21T06:12:58 | 388,380,705 | 1 | 0 | Apache-2.0 | 2021-07-22T08:11:12 | 2021-07-22T08:11:11 | null | UTF-8 | Python | false | false | 14,829 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
64f5e208e79a59bba5aeaf436b162032a26a176d | 7318faadb7a3eefbdd114169b49d25c14d5e952e | /MinMaxScaler.py | 3e928686f544b380aedba20dbd98c51d9ba6ff39 | [] | no_license | lukesun7612/Panel-data-regression | 8a166963eecbe1bcac920244531ea87b2c79a793 | 8775ad2087f44ad0e83ddfe22f2372c2c94feb62 | refs/heads/master | 2023-04-18T11:59:23.080164 | 2021-04-30T11:11:20 | 2021-04-30T11:11:20 | 339,061,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: lukes
@project: JA3
@file: MinMaxScaler.py
@time: 2020/12/31 18:28
"""
import pandas as pd
import numpy as np
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from scipy.stats.mstats import winsorize
import matplotlib.pyplot as plt
# set input p... | [
"lukesun7612@gmail.com"
] | lukesun7612@gmail.com |
97c488e5ad90e0f2906fd430de44698e972b15b5 | 53ba0b6f172abcade631ae1f52852c400302559e | /test/cv/bases/activates/DynamicReLUdemo.py | b99525743213c9b3e245292809f8a30322dc5698 | [
"Apache-2.0"
] | permissive | sssssshf/python_developer_tools | f97c64ee0aa0a7e9d31d173192805771c83abb7f | 44d2e67a2e2495a12d6b32da12c76cf0010ac7ea | refs/heads/main | 2023-08-19T02:44:53.536200 | 2021-10-13T02:10:19 | 2021-10-13T02:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Author zengxiaohui
# Datatime:8/14/2021 3:19 PM
# @File:demo
import os
import torch
import torchvision
import torchvision.transforms as transforms
import torch.optim as optim
import torch.nn as nn
from tqdm import tqdm
from python_developer_tools.cv.bases.activates.Dynam... | [
"zengxh@chint.com"
] | zengxh@chint.com |
d842dfe74d0122a04a9b59ab7061ca9f3ce55684 | adc8b9b0266b81e1170c91b1799078d41d88e5bc | /uw/bin/irunner | 2323bdc697fdd9b6695e7a61d3f4c31d515e90fa | [
"Apache-2.0"
] | permissive | noslenfa/tdjangorest | 21c620a3f0b23abba5ec426f760fb490dec61519 | d26d3bd10f9ac509814530b0a066e2ac7b4f05a6 | refs/heads/master | 2021-01-23T07:20:52.699844 | 2015-07-23T20:24:43 | 2015-07-23T20:24:43 | 39,590,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/Users/NELSON/Desktop/UW/uw/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython.lib.irunner import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"noslenfa@gmail.com"
] | noslenfa@gmail.com | |
0d96baf22073ad043d5f79d347ed98cec15fe659 | 283b368f358f2f205dbcd6a61bc2ebcf427906e6 | /src/main.py | 7e8306ae55058a2c3c431fa4a641e37cf62eb767 | [] | no_license | Lennaayy/fyp | 430249cca155997acbfa5cd916798d5eac384d28 | 4a65d3e05266e2272d9c43f2a8e31f0db9e49275 | refs/heads/main | 2023-04-11T06:24:43.132751 | 2021-04-25T21:35:43 | 2021-04-25T21:35:43 | 341,686,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,318 | py | import readers.coord_read as cr
import readers.block_read as br
import logic.legal_moves as lg
import logic.possible_moves as pm
import logic.environment_step as es
import logic.max_arg as ma
import logic.complete_level as cl
from PIL import ImageGrab
import random
import numpy as np
import keyboard
# Initial Hyperpar... | [
"lennyeum@gmail.com"
] | lennyeum@gmail.com |
6c197618046ee0d263b2e3a1c9afa8a75a232a6f | 628643508ebe023e3a310bfea2a48676fb230504 | /packages/dumbo/dumbo/backends/common.py | c04d464a33e5fd16d05937e2a187335a671695f1 | [] | no_license | wuyingminhui/input-lib | e89b317721e86ba9e4aec5934689eb9a90d7acea | 90e59e457c59ece98c26a3dc41d1119ae4fb599d | refs/heads/master | 2021-01-20T17:37:34.464335 | 2013-02-19T23:53:46 | 2013-02-19T23:53:46 | 19,423,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,628 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"fwenzel@mozilla.com"
] | fwenzel@mozilla.com |
cd81605d730a296a3ab6be9f41e8971e5e43ffb8 | de7cf0bdc4c96f2693e998f041be37b609483957 | /database_OOP.py | 79ba4ab25b62e3e276fc2de2a60c9a297ee8c7a1 | [] | no_license | ugneokmanaite/Python_Database_Connections | 7030abdb86ff6e40bf20dc84332dc9d320658255 | 4c1f3b9f851785df0fc69141824f9bd357adaf58 | refs/heads/master | 2022-11-27T16:10:49.713362 | 2020-07-14T07:07:40 | 2020-07-14T07:07:40 | 278,344,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | import pyodbc
class database_OOP:
# passing connection parameters
def __init__(self,server,database, username, password):
self.server = server
self.database = database
self.username = username
self.password = password
# establishing connection
def establish_connection(s... | [
"uokmanaite@spartaglobal.com"
] | uokmanaite@spartaglobal.com |
6f5439d715a6d9fd4af2012e1594c857ebaf59cc | 8e65928ef06e0c3392d9fa59b7b716f941e933c3 | /python/hackerrank/30-days-of-code/6-review-loop/solution.py | 94600b266256e8d7f30a7421e7c00d1ec9a4b659 | [] | no_license | KoryHunter37/code-mastery | 0c79aed687347bfd54b4d17fc28dc110212c6dd1 | 6610261f7354d35bde2411da8a2f4b9dfc238dea | refs/heads/master | 2022-02-24T10:34:03.074957 | 2019-09-21T19:24:57 | 2019-09-21T19:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # https://www.hackerrank.com/challenges/30-review-loop/problem
#!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(input())
strings = []
for i in range(n):
strings.append(str(input()))
for string in strings:
left, right = [], []... | [
"koryhunter@gatech.edu"
] | koryhunter@gatech.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.