blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d24626872c96822900062bfe7a7743c5830295ef | 152824609ab06a8b31b55f32510773137312064a | /launch.py | c33b588131bb2b970050976f307722c6fc843824 | [] | no_license | jakobbsm/NowPlaying | e8f338ceb934a1cd1751bd8c78226531e0167d62 | a894bf1a7723b4271e22f5387f348f1b376c8b36 | refs/heads/master | 2023-01-02T05:58:18.087660 | 2020-10-24T20:56:32 | 2020-10-24T20:56:32 | 296,960,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from NowPlaying import nowplaying
nowplaying.main()
| [
"jakobbsm@gmail.com"
] | jakobbsm@gmail.com |
b44a5d408683b927f661cf1a8b164618f992a8ba | 6f93573111d9c2f26966b9f72f65a55be372b1e6 | /orami/spiders/orami_spider.py | d4e410d35d97a1fd5868e92319f56fa8dcf25ad9 | [] | no_license | ajikusbandono/jawaban_no_2 | dfcedec006021b35818159e2978513e75daa1468 | 21fbfa752896e575062cdc53a7e555c19b3d73d0 | refs/heads/master | 2022-11-30T07:36:50.284679 | 2020-08-09T03:47:01 | 2020-08-09T03:47:01 | 286,096,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | # scrapy shell "https://www.orami.co.id/ap/takoyakids"
# buat mencari pattern xpath atau css
# running -> scrapy crawl orami
# cheats https://devhints.io/xpath
"""
--- Export as CSV Feed ---
FEED_FORMAT = "csv"
FEED_URI = "result.csv"
--- save in settings.py ---
"""
import scrapy
class OramiSpider(scrapy.Spider):
... | [
"ajikusbandonoext@gmail.com"
] | ajikusbandonoext@gmail.com |
90250a964c27036a6b7c2f95665974cfc1d8db55 | 5e4a415e8053050254749a0cd9b408536adccca1 | /lab3/example4.py | ffb92bccbcb7f45d5aa3e522acd79769374f701f | [] | no_license | x59272796/280201065 | c22a7ed7bc15e4f63aa9065db21298e9242c0ae3 | 51cf72bf3058bdd3ea42806cafd1ab4ec8a9f9d4 | refs/heads/master | 2023-06-18T03:41:49.321791 | 2021-06-20T21:43:45 | 2021-06-20T21:43:45 | 305,110,207 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | age = int(input("How old are you?"))
ticket = 3
discount = 50
if age < 6 or age > 60 :
ticket = 0
elif 6 <= age <= 18 :
ticket = ticket * ((100 - discount)/100)
print("You have to pay " + str(ticket) + " Turkish Liras.") | [
"yigitdurmaz@std.iyte.edu.tr"
] | yigitdurmaz@std.iyte.edu.tr |
5305640658e29b3e4bd472bdcd804bc603de201f | b2fc598c68fa101eab6d37df2a23a38ceb9dbba6 | /jingdong/jd_4_baogao.py | f98a7d156604d96b337c902409bb8351e2c078f0 | [] | no_license | chengchenf/project | 4d501e6c8da6119f05f863862b45f49f49b7bca7 | 4fbbb4883b77a75e5bf84dce477cbd76d1283d6d | refs/heads/master | 2020-04-14T03:15:35.386093 | 2019-07-12T07:21:27 | 2019-07-12T07:21:27 | 163,603,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #coding=utf-8
import os
import sys
import time
import unittest
from HTMLTestRunner import HTMLTestRunner
reload(sys)
sys.setdefaultencoding('utf-8')
if __name__=='__main__':
baogaopath=r'C:\Users\chen\Desktop\linshi\\'
shijian=time.strftime('%Y_%m_%d %H_%M_%S')
baogaoming=baogaopath+shijian+u'report.html'
... | [
"1083651727@qq.com"
] | 1083651727@qq.com |
9dd4f6e5dd4f2a03b20cba0d9ac237169b77d085 | f7e1671cd4eca4f6eff8a18eb634a7c8b1538840 | /visreader/python/visreader/misc/imagetool.py | 83e6937692c1b68ae17e74d2445ac06c346ee07a | [] | no_license | PaddlePaddle/VisionTools | 6f40eeedf23fa4c6c62d7e9b398f4d385c1bfa8e | bd2c33cb6a4ccfd2b8fc32139d59bc834cdc6c9d | refs/heads/master | 2023-05-24T18:51:03.096781 | 2019-07-18T12:04:15 | 2019-07-18T12:04:15 | 75,912,778 | 21 | 12 | null | 2023-05-22T21:37:27 | 2016-12-08T07:11:09 | Python | UTF-8 | Python | false | false | 1,249 | py | """
# Copyright (c) 2018 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 ap... | [
"wanglong03@baidu.com"
] | wanglong03@baidu.com |
fcc9c8d4821b393f117e3af98dd209ea66bb1488 | 459250c6efd1267917d5973e76c6b765b7642a0b | /duplicate_encoder.py | 274701bfb24fe9e7016eae28d31983ccc16071d0 | [] | no_license | msafari89/codewars | e9be3be6017fb1b941ebfd98937bf0a698180e2e | 9852474d941d420d0d443f7faf8eb1a696390b24 | refs/heads/master | 2020-06-13T20:35:38.890737 | 2019-07-16T03:54:57 | 2019-07-16T03:54:57 | 194,780,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #The goal of this exercise is to convert a string to a new string where each character in the new string
# is "(" if that character appears only once in the original string, or ")" if that
#character appears more than once in the original string. Ignore capitalization when determining if a character is a duplicate.
... | [
"m.j.safari89@outlook.com"
] | m.j.safari89@outlook.com |
6bf2f0710a8085b220d88af14bb1642e6753272d | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=72/params.py | 8aaea0d268f078f8ca23bfedff6ab7009d3df1a7 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.516929',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 72,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
3a3f6e39bb56c367fafcc9de13c312f241cc776c | b74be606bddc1485f980c63a4d1c0380387b2d68 | /app/routes.py | d97bf96b3224f39d3cf89f8fdccf4b448251dbeb | [] | no_license | mwilliams22/project_new | 4c2ee3ef667bda36ace6443fcdb4e7828511d21b | 74a5bc620ee0fa751908573e56cd38797b0b872a | refs/heads/master | 2020-06-27T21:50:41.844317 | 2019-08-08T17:16:05 | 2019-08-08T17:16:05 | 200,059,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,464 | py | import os
from app import app
from flask import render_template, request, redirect, session, url_for
from flask_pymongo import PyMongo
app.secret_key = b'\x1b\xe3)\x89Hz\x83X\xb6\xe2\xdb\x17\xa1J\x94J'
# name of database
app.config['MONGO_DBNAME'] = 'database'
# URI of database
app.config['MONGO_URI'] = 'mongodb+... | [
"ec2-user@ip-172-31-36-7.us-east-2.compute.internal"
] | ec2-user@ip-172-31-36-7.us-east-2.compute.internal |
493c6a2097528ad256457b7c4dc0acb1e0a15a47 | 7363e1465f1f37c8d0a29196aeb26552d7aa7074 | /landtemperature_mp.py | 0348702d152a218d8af1c1e9db44ab28e0773e4e | [] | no_license | soarwing52/Small-Geotools | d3e4289e8e22b0e01a7eca9f436a0361f3351679 | 6d2063299c84bfaf3ec78f3e1ca3c2954e52f46b | refs/heads/master | 2021-07-14T22:53:54.344708 | 2021-07-01T01:36:52 | 2021-07-01T01:36:52 | 176,767,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | # -*- coding: UTF-8 -*-
import os
from multiprocessing import Pool
import arcpy
from arcpy.sa import Divide, Float, Raster, Ln
arcpy.env.overwriteOutput = True
arcpy.env.workspace = r'D:\Small-Geotools'
RESULT_FOLDER = 'D:\\surface'
TARGET_FOLDER = r'F:\\landsat 2020'
RADIANCE_MULT_BAND = 0.0003342
RADIANCE_ADD = 0.... | [
"soarwing52hot@gmail.com"
] | soarwing52hot@gmail.com |
493c335996f7bb69ec7faead873dc4bbdbc63635 | 16102cc2b9de85d84e4a5d6032e101d6f65e3a5a | /evaluation_metrics/custom_data_precision_and_recall.py | 2f5a775dadec2632d0342252d7792a12bce6e8e6 | [] | no_license | anandkarra/Evaluation_Metrics_Mini_Project | 407fa4fda4ce76814dc27cdfc8b0e77754fd2725 | f4778f443d60faeddd572b75eb12b681fd4dd753 | refs/heads/master | 2021-04-06T19:24:45.501132 | 2018-03-14T18:52:17 | 2018-03-14T18:52:17 | 125,259,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | #!/usr/bin/python
"""
Starter code for the validation mini-project.
The first step toward building your POI identifier!
Start by loading/formatting the data
After that, it's not our code anymore--it's yours!
"""
import pickle
import sys
sys.path.append("../tools/")
from feature_format import featur... | [
"i7andgravity@live.com"
] | i7andgravity@live.com |
0c5093427ec1f71a7d4afabd93539d77a77c2658 | 7b27648f96a36a69458cf364262e6973a8dbe3fa | /ejercicio.py | e3a2a961874ba6ae5f99146bc53febcb9959bcd9 | [] | no_license | Daniel-code666/Programas | daa6943ccca8600f98cb2409f193cd7c06e0b43b | 58bfcd9678e2e5b31db4edb350d9cb344a0fb937 | refs/heads/master | 2023-05-30T17:19:48.740526 | 2021-06-23T17:56:57 | 2021-06-23T17:56:57 | 376,101,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | numero_magico = []
num_mag = input("Escriba 12345679: ")
if num_mag == '12345679':
print(num_mag)
else:
print(num_mag.replace('8',''))
num_mag2 = num_mag.replace('8','')
print(num_mag2)
# for i in range(1,10):
# elem = int(input("Ingrese los números: "))
# if elem == 8:
# continue
# ... | [
"dmartinezcifuentes180@gmail.com"
] | dmartinezcifuentes180@gmail.com |
67843ba639692fa421a192c51d03941971c3fc10 | 5c848a88f435dc2906228553522f403b6a1d5f15 | /edd/utilities.py | 2d8e2fd6e27ba3e3421458d346d521cb43500fc6 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | TeselaGen/jbei-edd | 2ed6ad139483a5cb006d5f931b9c50c4851d976e | fb71e29219a7024042a8f4c42a5c88f0803b5895 | refs/heads/master | 2021-04-12T03:36:05.977542 | 2018-04-18T17:09:35 | 2018-04-18T17:09:35 | 125,923,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | # coding: utf-8
"""
General utility code for EDD, not tied to Django or Celery.
"""
import json
from datetime import datetime
from dateutil import parser
from decimal import Decimal
from django.conf import settings
from kombu.serialization import register
from uuid import UUID
DATETIME = '__datetime__'
TYPE = '__ty... | [
"wcmorrell@lbl.gov"
] | wcmorrell@lbl.gov |
aa947531ab2ef5c8948fd5e805175af3b7a5ebf6 | 547242530dc1bd3a4f4556eb6870a3f7a40efae2 | /Spy-Games/code.py | 2f202ef4c179cece2732a4220bd9a491c2ba6600 | [
"MIT"
] | permissive | OmkarAsukar/dsmp-pre-work | 7ecec1d724549e1bf40e6e38bae1f394391e0e9e | b99f541758f0806d59d89bd5c5d63f926dc52892 | refs/heads/master | 2020-06-25T13:21:21.938425 | 2019-08-17T05:39:21 | 2019-08-17T05:39:21 | 199,320,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | # --------------
##File path for the file
file_path
def read_file(path):
file = open(path,'r')
sentence = file.readline()
file.close()
return (sentence)
sample_message = read_file(file_path)
print(sample_message)
#Code starts here
# --------------
#Code starts here
message_1 = read_fil... | [
"OmkarAsukar@users.noreply.github.com"
] | OmkarAsukar@users.noreply.github.com |
a1bafd62c641cba22f0bbeabdfb86c76ef03bd5f | 1c1961f8ed56c6852fd2a43a5c47283eb930767c | /Python/Sandhya/task2/store_in_sqlite.py | f96a58332ef948952c242a6e57ec1f28912a1173 | [] | no_license | leapfrogtechnology/lf-training | 4a2c22d06519c4b49638e5f7519268c9e8f2347a | 6d18c6d152a1dddfa6e5711c91321a4d7a745517 | refs/heads/master | 2023-01-28T16:00:52.805472 | 2020-09-14T11:40:02 | 2020-09-14T11:40:02 | 283,126,079 | 1 | 15 | null | 2020-11-30T07:55:02 | 2020-07-28T06:48:44 | Python | UTF-8 | Python | false | false | 598 | py | import sqlite3
import pandas
from pandas import DataFrame
con = sqlite3.connect('ScrapeData.db')
# Saves database in same location as this file
c = con.cursor()
c.execute('''CREATE TABLE MOVIE_RATINGS ([generated_id] INTEGER PRIMARY KEY, [TITLE] text, [RATING] float)''')
# Read data from the csv file
read_data = pan... | [
"intrinsic@pop-os.localdomain"
] | intrinsic@pop-os.localdomain |
eb6553627c71a02e4c29b6cc978eef31a510583f | d2ed747705b20cee8113f71b7f0807a18323bbcb | /events/signals.py | 5cc3c81654335d935180aa6dbde964bb0ee34ed9 | [] | no_license | Lils2013/technotrack-web2-spring-2017 | 240e03c90e890cdb5eebad4bcd7273d23e5a72e6 | e1e7f75835206e68c5e9bdeca08620b420916980 | refs/heads/master | 2021-08-30T12:21:23.786930 | 2017-12-17T23:02:57 | 2017-12-17T23:02:57 | 103,847,772 | 0 | 0 | null | 2017-09-17T17:25:13 | 2017-09-17T17:25:13 | null | UTF-8 | Python | false | false | 655 | py | from django.contrib.contenttypes.models import ContentType
from django.db.models.signals import post_save
from core.models import ModelWithAuthor
from events.models import WatchableModel, Event
def watchable_postsave(instance, created=False, *args, **kwargs):
if (not isinstance(instance, WatchableModel)) or not (... | [
"Lils2010@gmail.com"
] | Lils2010@gmail.com |
172c6a142cfa8dce849d4836ff7a2c27faafb6e2 | fe5c543b3070000fba4820e9b7a26c7c46529ee8 | /mapclientplugins/scaffoldparameterfitterstep/model/scaffoldmodel.py | 04daaf490be4a81a920ecde9a1bbb2ada9638051 | [
"Apache-2.0"
] | permissive | haribalankumar/mapclientplugins.scaffoldparameterfitterstep | a5097abb8979d3caf03a12db1dc8fbe0c37dbc59 | 130ba280cb4d4b91ed48eb80868599c8eae28f73 | refs/heads/master | 2022-01-31T17:34:13.314870 | 2019-07-23T20:12:31 | 2019-07-23T20:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,457 | py | from opencmiss.zinc.field import Field
from opencmiss.zinc.graphics import Graphics
from opencmiss.zinc.glyph import Glyph
from opencmiss.zinc.material import Material
from opencmiss.zinc.node import Node
from opencmiss.zinc.streamregion import StreaminformationRegion
from opencmiss.utils.zinc import create_finite_elem... | [
"m.osanlouy@auckland.ac.nz"
] | m.osanlouy@auckland.ac.nz |
c098a950df38c2582d381fce2375fb8666b2ac93 | 51927d34dde2c3df30e7e0e77ab67ae3a5323a6e | /bifrost_dashboard/bifrost_dashboard/reporter.py | 76983c2658ac2314f717811d3b40b085d813f476 | [
"MIT"
] | permissive | Jinjie-Duan/bifrost | 88dc96ade4d2159362d664b424796abf2077e57c | e17f35235ecb07f0031557a6e8698c7279525f6d | refs/heads/master | 2022-11-28T16:07:47.218696 | 2020-07-29T12:37:10 | 2020-07-29T12:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,610 | py | # -*- coding: utf-8 -*-
import os
import sys
import re
import urllib.parse as urlparse
import datetime
from io import StringIO
from flask_caching import Cache
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_auth
import pandas as pd
import numpy as np
from bson import json... | [
"martinbaste@gmail.com"
] | martinbaste@gmail.com |
ca72598468c90650f461ccf10d9b867094d708a8 | 95b583b03f1865daa700e9992dbae2b1cd3cfad3 | /makefile/160822_assignment8/speed.py | 36d8b747c9ba4812413f69408be590d2cc8fafc6 | [] | no_license | ymahajan98/CS-251 | 46d49bc4b79a6033b2dd0870378d7f7cb049e9d0 | d40a1f0a289ae3fddbed81f38830957f015d2f8b | refs/heads/master | 2020-03-13T22:20:19.288444 | 2019-06-20T13:43:10 | 2019-06-20T13:43:10 | 131,314,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | with open("analyse") as f:
content = f.readlines()
content = [x.strip() for x in content]
T2 = [x.split(" ") for x in content]
t = [map(float, x) for x in T2]
print ("#Threads 1 2 4 8 16")
print ("100"),t[0][1]/t[0][1],t[0][1]/t[4][1],t[0][1]/t[8][1],t[0][1]/t[12][1],t[0][1]/t[16][1],
print (t[20][1])*t[0][1]*t[0][... | [
"ymahajan98@gmail.com"
] | ymahajan98@gmail.com |
48dbe9c8798421fd1f2317bfdd8b6d68b1e56714 | 6bf49be2f4e3830025f897373a07d983e2e060cc | /chordchart_notation/parser/parsers/string.py | c22ca295d74f96510baccaef64702918afaa5f32 | [] | no_license | AntoineCezar/chordchart-notation | 057947964f3c5268d13f969443635ded3d5810d1 | cabd897a445996017817cca14a72f8cb20f536eb | refs/heads/master | 2021-01-20T21:59:57.293664 | 2017-12-02T02:09:55 | 2017-12-02T02:09:55 | 101,794,125 | 2 | 1 | null | 2017-10-02T12:07:54 | 2017-08-29T18:36:27 | Python | UTF-8 | Python | false | false | 983 | py | import typing
from ..errors import ParseError
from ..text import Text
from ..ast import TerminalNode
from ..results import Results
from .parser import Parser
ResultsORTerminalNode = typing.Union[Results, TerminalNode]
class String(Parser):
def __init__(self, string: str) -> None:
self._string = string... | [
"antoine@cezar.fr"
] | antoine@cezar.fr |
eae8199fad50515ff7bb5860514b1723c7d7666d | 0877e0a3ca2b55a5dc686bfba4a8abe76a2b5de7 | /coop/members/mixins.py | 07670f3da78fc208e4e43af9e55afa2567bafa8e | [
"Apache-2.0"
] | permissive | jalibras/coop | e45b483d6fa4857946f044f486cc106ae53b465e | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | refs/heads/master | 2020-06-18T01:27:16.098343 | 2018-09-10T15:14:23 | 2018-09-10T15:14:23 | 74,960,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py |
from django.db import models
class PermissionMixin(object):
# this is a class method because we create instances of a class
@classmethod
def can_create(cls,user):
return True
# OTOH it is conceivable that we have an instance already created and
# we need to check if the user can save that particul... | [
"jamescruickshank71@gmail.com"
] | jamescruickshank71@gmail.com |
9163a3b4364c67dae435f69030415d3e9199177a | a086f654cb2ff7af46865983ba49cb7d1a1b6bac | /tutorial/items.py | c36cdc7629aebf1956fff4a8f5e771c45839c1d2 | [] | no_license | kcaaaxing/scrapy | 5140954c047288090dbb79e1c579f2fd415e8592 | 90e48895a862131f50c7e19d69694378cce89f56 | refs/heads/master | 2020-04-13T11:13:58.398972 | 2018-12-26T10:39:08 | 2018-12-26T10:39:08 | 163,168,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.loader import ItemLoader
from scrapy.loader.processors import TakeFirst
class TutorialItemLoader(ItemLoader):
default_output_processor ... | [
"yongxingliu60@gmail.com"
] | yongxingliu60@gmail.com |
3ed8e3a1a00a96af9e9bf185cc4a8bf0b4694b6b | c8d7cf53cf757e0f43007d47195c9746bb20c8d4 | /scripts/runtest.py | 0c24c5eee0050d3303bec12328139b36fd87a6ba | [] | no_license | jonmay/lexicon | 068059bf3a8d1b5d4f702b158c9c80505758b74f | 4b962967c5b4c0dc8db55712a227eb251da6cdb0 | refs/heads/master | 2021-01-12T16:07:15.081029 | 2017-01-27T22:04:44 | 2017-01-27T22:04:44 | 71,940,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,404 | py | #!/usr/bin/env python
import argparse
import sys
import codecs
if sys.version_info[0] == 2:
from itertools import izip
else:
izip = zip
from collections import defaultdict as dd
import re
import os.path
import gzip
import tempfile
import shutil
import atexit
import shlex
from jmutil import shchain, mkdir_p
scriptd... | [
"jonmay@isi.edu"
] | jonmay@isi.edu |
3029a9c75f647c0fd90e55f2045bf5fdb294d656 | 030724b60fb4f8b63953b7401702a98072993e94 | /python/50.pow_x_n.py | 61bf1ffb664c83a0ba1410577e1a4b9ea064f1a1 | [] | no_license | MtTsai/Leetcode | 5f51a892b78cf6427ce2b4891a10bc2d4ed4d972 | 21e83294aee779a16a8c1b96089da4a40eb03035 | refs/heads/master | 2021-01-24T17:17:52.909429 | 2019-08-04T06:53:53 | 2019-08-04T06:54:23 | 123,228,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | class Solution(object):
def myPow(self, x, n):
"""
:type x: float
:type n: int
:rtype: float
"""
d = 0
out = 1.0
if n >= 0:
while n:
x2d = x
if n & 1:
for _ in xrange(d):
... | [
"mttsai@gmail.com"
] | mttsai@gmail.com |
756a57b9f0260e05bc6780be8bb3d45a12d0f3d8 | c5712fa2c5470c97b0c0b534ff64d4121c758977 | /combined_model/all_stats/dynamic_t_non_obs_stats/newStats/weights_model.py | 4902e6d14f47277e72c7d446b718da50873f0c9b | [
"MIT"
] | permissive | nibraaska/Working-Memory-Temporal-Difference | a5dde9a09ae6b19a0ea363ca7f4406158649ee19 | 543cd91e87ebd478e79d821fa8708885df5899c5 | refs/heads/master | 2020-04-08T00:29:51.351421 | 2020-03-13T00:43:54 | 2020-03-13T00:43:54 | 158,854,165 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,968 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
np.set_printoptions(threshold=np.inf)
import time, sys, random, pylab
from math import fabs
from random import randrange
from random import choice
from hrr import *
from IPython.display imp... | [
"nnibraas@gmail.com"
] | nnibraas@gmail.com |
7bd10c7e26dfc3ac4983378e19d0182b65ee9f16 | 05f1f11f7cf6b06156ffdf4e53cda02a112340fc | /ConnectionClass.py | ac30d6ca2054315f2393b737e80df50e20f8d3f2 | [] | no_license | Poscowekh/akinator_server | 4019bd97594f4951ad8578ea45b5511645575e9c | 6f5780441ad04d82bb2b60a5c708dbb728cb07a0 | refs/heads/main | 2023-08-31T21:28:29.919794 | 2021-09-19T21:14:51 | 2021-09-19T21:14:51 | 407,912,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,856 | py | from sqlite3 import Connection as sqlConnection, OperationalError, IntegrityError, \
Cursor, Error as SQLError, connect as sql_connect, Row
from VersionClass import Version
from Stats import StatsManager
from MyError import MyError, MyErrorType
from enum import IntEnum
from file_management import PathCreator, FileM... | [
"56505043+Poscowekh@users.noreply.github.com"
] | 56505043+Poscowekh@users.noreply.github.com |
114dd608958e7d62cf6e09134d63e1b8fe9d7cb4 | 0ae94ec1eabb14287ba91ba503ecb33162bb2431 | /Source Code/diffie_hellman.py | d17acf9cdbe16ae8a398ab4e92530861b7366632 | [] | no_license | Lavanya3095/Chat-Application | 7b46850fd9dd33908332086697def79d3816b78c | f7b31af5005295531f42b655f896a5e7449d73f2 | refs/heads/master | 2020-04-17T13:10:35.643310 | 2019-01-19T23:38:11 | 2019-01-19T23:38:11 | 166,604,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import dh
from binascii import hexlify
from dss import DSS_sign
from Crypto.PublicKey import DSA
from Crypto.Signature import DSS
from Crypto.Hash import SHA256
import random
a_private_key = ""
b_private_key = ""
a... | [
"lavanya.saravanan-1@ou.edu"
] | lavanya.saravanan-1@ou.edu |
2e48a34ab2fbfe035ed2d2a14b9a8cbd208a58ff | b423d7b4b2a16c450ae54dce1bc39feccb13ea1e | /util.py | a15c9ee0292a170bff40b723a43e76d703b5bb8b | [
"MIT"
] | permissive | abangadji/supreme-goggles | dfede4fc207508e0791cd226c9602aa7d7b25322 | f1f1e8e1c4c98740ed336bcb0b88de851e3e04f6 | refs/heads/master | 2020-04-09T22:22:48.318854 | 2018-04-19T17:57:26 | 2018-04-19T17:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import io
import datetime
import csv
def destringify(field):
return datetime.datetime.strptime(field, "%Y-%m-%d %H:%M:%S")
FIELDS = ['entry_time',
'exit_time',
]
FIELD_PARSER = {
'entry_time': destringify,
"exit_time": destringify,
}
def recordsFromStream(istrm, fields=FIE... | [
"smith.h.mark@gmail.com"
] | smith.h.mark@gmail.com |
0b810b91af1b5b078f4cd4ef2ba490a904eef4d5 | 3c1a308cff6716e16c4356c48d5610185f3dc4f3 | /media.py | 8449cc6dfff788916d928a3db7007658bd22bed4 | [] | no_license | colecode-ph/movie-website | 451a1612efe225f974c30e09473ce47ca39748fb | 238666c6fd7cc40c6b7e6704df139df792c07e28 | refs/heads/master | 2021-01-20T16:51:10.721133 | 2017-05-13T05:57:02 | 2017-05-13T05:57:02 | 90,853,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | class Movie():
"""This class provides a way to store movie related information"""
def __init__(self, movie_title, movie_year, movie_storyline, poster_image,
trailer_youtube):
"""This function initializes the class instance, and defines the
variables which contain the movie relat... | [
"colecode.ph@gmail.com"
] | colecode.ph@gmail.com |
6743774b471e2ba7263b7e873aa1520a2b2e5ade | a9d7b1469a8e4190867202c259b7ee229634ce2f | /Project1.py | fe9df5509891f3089d6373436e5f3aa9949139ff | [
"MIT"
] | permissive | varnaugj/Python-Early-Codes | e1642a2ed5b56324308845f2ec843393e075cde1 | 3b659529c65dc608eaf41ec5d5ffaa4c18704946 | refs/heads/main | 2023-05-25T18:06:20.923259 | 2021-06-10T13:43:32 | 2021-06-10T13:43:32 | 363,928,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py |
from tkinter import *
import tkinter as tk
window = tk.Tk()
greeting = tk.Label(text="Test 123")
greeting.pack()
def returnEntry(arg=None):
name = myEntry.get()
resultLabel.config(text= name)
myEntry.delete(0,END)
myEntry = tk.Entry(width=20)
myEntry.focus()
myEntry.bind("<Return>", returnEntry)
myEnt... | [
"varnaugj@yahoo.com"
] | varnaugj@yahoo.com |
3d4646d023c36f73f1d72beadfd4780bb00456fb | d03b64f4b87438fc6205671bcb43dca462fdf8d1 | /1.Behavior-FitModels/Functions/costFunctions.py | 3c5144c8efb959c3c54d0e972502fb19038fd731 | [
"MIT"
] | permissive | jeroenvanbaar/MoralStrategiesFMRI | c0489ec45fa2f829c00951a07f5f647446bf0b17 | a96ebe7e65162ab488977a93f5a0ef23d94eb34a | refs/heads/master | 2022-10-29T14:18:44.777700 | 2022-09-29T15:06:42 | 2022-09-29T15:06:42 | 170,903,915 | 22 | 12 | null | null | null | null | UTF-8 | Python | false | false | 4,630 | py | import numpy as np
import pandas as pd
import choiceModels
def MP_costfun(param,subDat,printStep=False,printPredictions=False,resid_share=False):
theta = param[0]
phi = param[1]
for trial in range(subDat.shape[0]):
subDat.loc[trial,'prediction'] = choiceModels.MP_model(
subDat.loc[tria... | [
"noreply@github.com"
] | jeroenvanbaar.noreply@github.com |
2befbe1e545810905b628aa8c59246e1055cad44 | 10465a8e4771b221fb1f4a92b804f8f2cf031edf | /server/restore_hardware_db.py | f3aa65a03df630794080f982d50e15ce61dd6ef8 | [
"MIT"
] | permissive | raspihats/EvePnP | fd51ba35ebef2838e87108b617b873254863adc3 | 2961d759554c38609f0f431c012ea8d38016f347 | refs/heads/master | 2023-01-24T21:17:42.789363 | 2019-06-18T11:46:57 | 2019-06-18T11:46:57 | 164,684,352 | 0 | 0 | MIT | 2023-01-14T00:16:23 | 2019-01-08T15:59:56 | Python | UTF-8 | Python | false | false | 23,827 | py | from tinydb import TinyDB, Query
from tinydb.storages import JSONStorage
from tinydb.middlewares import CachingMiddleware
db = TinyDB("db_hardware.json", storage=CachingMiddleware(JSONStorage))
db.purge()
axis_table = db.table("axis")
axis_table.purge()
axis_table.insert_multiple([
{
"id": "x",
"l... | [
"florin.costa83@gmail.com"
] | florin.costa83@gmail.com |
069b52697a2f61796ded5b06c27982de54545d6e | 663d518e295f5898418f7dc6a0d3b15181329412 | /toy_example.py | 3a030cb03e83cd1e8008e3f5a8bed3ac0b785ee4 | [] | no_license | bgyori/paths_graph_paper | 981ee7ecf3595473db316e407ee9a783df946ea3 | aa613a0979431f15face47e8e06738575f673a66 | refs/heads/master | 2020-03-27T18:38:42.164736 | 2018-10-04T19:16:27 | 2018-10-04T19:16:27 | 146,934,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,013 | py | import sys
from os.path import join
import itertools
import networkx as nx
from paths_graph import PathsGraph, CombinedPathsGraph, CFPG, \
get_reachable_sets
"""
g_edges = [
('S', 'B'), ('S', 'E'),
('B', 'C'), ('B', 'S'), ('B', 'E'), ('B', 'T'),
('C', 'S'), ('C', 'T'), ('D', 'B'), (... | [
"bachmanjohn@gmail.com"
] | bachmanjohn@gmail.com |
cc25488a356eea6631beecf1a989641aef813926 | 8698757521458c2061494258886e5d3cdfa6ff11 | /argo/core/network/BernoulliPlusMinusOne.py | 76ad7fbf9c559a0f3805086659ee05c98f3fd103 | [
"MIT"
] | permissive | ricvo/argo | 546c91e84d618c4bc1bb79a6bc7cba01dca56d57 | a10c33346803239db8a64c104db7f22ec4e05bef | refs/heads/master | 2023-02-25T01:45:26.412280 | 2020-07-05T22:55:35 | 2020-07-05T22:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | import tensorflow as tf
import sonnet as snt
import numpy as np
from operator import xor
import types
import pdb
from abc import ABC, abstractmethod
import tensorflow_probability as tfp
from .PlusMinusOneMapping import PlusMinusOneMapping
from .AbstractModule import AbstractModule
class BernoulliPlusMinusOne(Ab... | [
"volpi@rist.ro"
] | volpi@rist.ro |
97cceea6940dc0fa8bde3ae795dc678e5f5deeb8 | d2c92cfe95a60a12660f1a10c0b952f0df3f0e8e | /zz91cp/zz91cp/news.py | 2139b8049b8fff68de63a330fe6b56bb90017710 | [] | no_license | snamper/zzpython | 71bf70ec3762289bda4bba80525c15a63156a3ae | 20415249fa930ccf66849abb5edca8ae41c81de6 | refs/heads/master | 2021-12-21T16:12:22.190085 | 2017-09-30T06:26:05 | 2017-09-30T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | #-*- coding:utf-8 -*-
import os,MySQLdb,settings,codecs,time,sys,datetime,random,shutil,requests
from django.utils.http import urlquote
from django.shortcuts import render_to_response
from django.template.loader import get_template
from django.http import HttpResponse,HttpResponseRedirect,HttpResponseNotFound,Htt... | [
"2496256902@qq.com"
] | 2496256902@qq.com |
af42c1bf5d7e8dfc842e61148776f07f9e98398d | 648a5d24157885336999d9eb4a6b5098d14a3cfb | /pyoutline/setup.py | a18b50d4fa669e4dbd6a8e73964dbd2688a3bca9 | [
"Apache-2.0"
] | permissive | sqlboy/OpenCue | 26c82f2be1b69fddff5bc330a951cbbcbd16434f | b0faee1d49f52dda076fe03467446f0a0c6ef327 | refs/heads/master | 2022-02-15T16:36:46.898562 | 2022-02-01T17:29:03 | 2022-02-01T17:29:03 | 175,265,207 | 0 | 0 | Apache-2.0 | 2019-06-01T00:28:33 | 2019-03-12T17:34:28 | Java | UTF-8 | Python | false | false | 2,180 | py | # Copyright Contributors to the OpenCue Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | sqlboy.noreply@github.com |
1a84aac2a33453183ae6e6a9144490665a7ddf91 | 809773aa3a7c0cb19fae421289711a26162cbb90 | /main/migrations/0004_book_is_favorite.py | 6a6c802ae51312a76aea5c505e209cc212722249 | [] | no_license | Altynai29/todo | 237fe76ea32967bdc9afd2e13fd2340a6e9206ce | 3232d052a776f7765528abdc1e86ae59133d68f6 | refs/heads/main | 2023-02-24T20:41:42.903200 | 2021-01-29T05:27:09 | 2021-01-29T05:27:09 | 329,367,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.1.3 on 2021-01-24 15:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20210124_1211'),
]
operations = [
migrations.AddField(
model_name='book',
name='is_favorite',
... | [
"altynay-2013@mail.ru git config --global user.name Altynai29"
] | altynay-2013@mail.ru git config --global user.name Altynai29 |
811be7b606ce611153cf8665ee300c9d58a527ce | 77bc4b05385fe0374432a6078443da974b22eaa8 | /blogs/migrations/0001_initial.py | 23718c82563407084b0546cd8fdc552ba8e29256 | [] | no_license | Victorjuma/blog | 85db3a1d5f2d7329bbf64666a284ff49b977d2df | bdc28404a08ad3f735bd9756734716350a5aa475 | refs/heads/main | 2022-12-30T13:06:42.139922 | 2020-10-21T12:31:51 | 2020-10-21T12:31:51 | 306,014,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Generated by Django 2.2.4 on 2019-12-12 08:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency... | [
"noreply@github.com"
] | Victorjuma.noreply@github.com |
967694d2f9922f26f36d569c22cfc551cafca956 | ee76b01ff4d8f59873b6a0ff15bbf485d8c6dcd8 | /snake/speech_rec.py | 638d3018fa1884662b23faf63f04860f39625488 | [] | no_license | DurandBastien/robotics2018 | 250bc0ee9f81ae72db245b0a58932e12d64943c4 | 5324fafbbf3a2e5e7f3a7a24780b05435453eaae | refs/heads/master | 2020-04-02T06:57:15.113631 | 2018-12-11T20:55:31 | 2018-12-11T20:55:31 | 153,422,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | #!/usr/bin/env python
import speech_recognition as sperec
import rospy
from std_msgs.msg import String
def wordlist():
return ["begin", "stop"]
def micListener():
pub = rospy.Publisher('voice_commands', String, queue_size=10)
rospy.init_node('voice_recogniser', anonymous=True)
rospy.loginfo("Node... | [
"maija.fil@gmail.com"
] | maija.fil@gmail.com |
026e469ebd0249e937555db84273acba3bf99dc7 | e303a6b7ca952060ebbd54b47db4dc74310e5a9b | /robotics/views.py | 32b0d436c296febe5440a1d6b9e7f7510442f1cf | [] | no_license | RobotGyal/Personal-Site | 17677e848f0b241e5c8383e01d86fab60ef770a4 | 1396f51065723c913e19a512c65c3252fecbe546 | refs/heads/master | 2022-12-11T01:36:10.664839 | 2020-06-26T22:02:14 | 2020-06-26T22:02:14 | 228,452,593 | 0 | 0 | null | 2022-12-08T04:22:08 | 2019-12-16T18:45:35 | HTML | UTF-8 | Python | false | false | 143 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return (render(request, "robotics/robotics_index.html")) | [
"aleiaknight@gmail.com"
] | aleiaknight@gmail.com |
3dff92daba9619acfcd2c57ceb691e806e04bc3d | e8a703977d788646d70e807bbfd8fbdb21223209 | /openrepairplatform/event/migrations/0029_auto_20200208_1231.py | 075fb3a5966340b6fabfe828dd79b1e0bb4774e0 | [] | no_license | AtelierSoude/OpenRepairPlatform | 10f8d8ef8ddfba07b4d84a5eac9f56b3871920ae | bc90d25a5879b1c7ef0ed170ad428dffdbc8405f | refs/heads/master | 2023-06-13T23:49:51.136082 | 2021-05-12T12:54:15 | 2021-05-12T12:54:15 | 127,430,187 | 33 | 14 | null | 2023-04-17T08:41:10 | 2018-03-30T13:16:01 | Python | UTF-8 | Python | false | false | 1,029 | py | # Generated by Django 2.2.3 on 2020-02-08 11:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('event', '0028_auto_20200208_1133'),
]
operations = [
migrations.AddField(
model_name='event',
name='booking',
... | [
"clement.poudret@laposte.net"
] | clement.poudret@laposte.net |
790a463870e509cc9188f08192725211371987e1 | 54f95342dde22c2efe5e44e2edfecd13bfd98787 | /ejercicios_obligatorios/ejercicio_1.py | 5210f43b53042d7ba91c95e0f9b61b56fde17dd8 | [] | no_license | LucianoBartomioli/-EDU-POO_IRESM_2021 | 3293e98aada2ae8bd3221991a9ac95200f0541bd | dfaca205c31b95cf784cd8c04ae8060c9c3950da | refs/heads/main | 2023-04-14T20:44:10.449823 | 2021-05-01T22:13:44 | 2021-05-01T22:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py |
def cargar_funcion():
cantidad_espectadores = int(input("Ingrese la cantidad de espectadores: "))
descuento = str(input("Ingrese si la funcion sera con descuento (SI/NO): "))
funcion = [cantidad_espectadores, descuento]
return funcion
def calcular_recaudacion_total(funciones):
cantidad_de_funcion... | [
"69654179+LucianoBartomioli@users.noreply.github.com"
] | 69654179+LucianoBartomioli@users.noreply.github.com |
4f1327a351299a253e5e0205cfb5a447f79abe04 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/operations/_disaster_recovery_configs_operations.py | 240dba7e99543e526cd89585ee8329274218e911 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 36,935 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
a8da613a5f7d5bab340289fbc640dee73653ff26 | 0728513cfd064b8f6c130d42ad8ef79f49b6b9b2 | /xepmts/models/muveto_install.py | 2c080e258a6e0f1edd9a20bca533ca55fb47df57 | [] | no_license | XENONnT/pmts-api-client | 7e70574e45c3e1e639b066513c7f07047ac4dd30 | 2b1025fc6cec01726e2d555f609c148891c6d879 | refs/heads/master | 2022-12-10T02:04:12.942994 | 2020-09-27T15:39:09 | 2020-09-27T15:39:09 | 276,297,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,900 | py | # coding: utf-8
"""
XENON PMT API
API for the XENON PMT database # noqa: E501
The version of the OpenAPI document: 1.0
Contact: joe.mosbacher@gmail.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from xepmts.configuration import Configura... | [
"joe.mosbacher@gmail.com"
] | joe.mosbacher@gmail.com |
5f460f92e70ed6bfc681d172052de35abcd84187 | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/comparison/test_background07.py | fca888e205ddcc9f1423cc81a0c2e895dc901b59 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
9e10939f1b20275173127d0fb1b3bf20a2eb28e3 | 1da4f005a7e54b99c25a74a327c8ee633870823b | /exercises/lambdas/fallout/solution.py | aae1e23ff241d1a5a21af0bd8826f8c0564740cc | [] | no_license | r0588667/scripting | 2b4492adadd978be4e981049ffcec78f6dce96e9 | 9936e27ce42ce301a3b6711c80fcb92973864248 | refs/heads/master | 2021-01-17T14:50:40.624994 | 2017-02-14T16:00:02 | 2017-02-14T16:00:02 | 84,099,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | def count_common_chars(s1, s2):
return sum( 1 for c1, c2 in zip(s1, s2) if c1 == c2 )
def hack(candidates, attempt):
while len(candidates) > 1:
candidate = candidates[0]
n = attempt(candidate)
if n == len(candidate):
return candidate
candidates = [ c for c... | [
"frederic.vogels@gmail.com"
] | frederic.vogels@gmail.com |
20b68f21b4023ad55842c33799923546c44734dc | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/datasetup_20210418122549.py | 3c4a70465143ba39751486a36c9df470bf528691 | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pandas as pd
import cv2
import os
import glob
from pathlib import Path
def cleanTestDirs():
emotions = ['angry', 'happy', 'disgust', 'sad', 'neutral', 'surprise', 'fear']
for e in emotions:
... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
0f4d6064aa4fdf28f521cb742739d1ff19af1469 | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Scatterometer/Old_files/Scatterometer_funksjoner.py | b5f43231a8460d713e41c5f3738e7ab38799670a | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,581 | py | #import matplotlib.pyplot as plt
#from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
#from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
import numpy
import scipy.optimize as scop
class Scatterometer_funksjoner:
def __init__(self):
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b090bcaad8e91125686471f5311f4a26beb58fc7 | 4e66ac1db7baf1c7b01f20140478615e39526035 | /basic.py | 271e4b0793ad3019156a298780b1b9e83f1b81ed | [
"MIT"
] | permissive | sid230798/Doom_Reinforcement_Learning | 1c33ff738e95898b4f52af5cb32d8184b0251083 | eb4972a54389e0f9d07a34c302ec6e6256c6084d | refs/heads/master | 2020-05-22T15:11:40.284019 | 2020-05-03T07:38:25 | 2020-05-03T07:38:25 | 186,402,515 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,503 | py | from include import *
def create_environment():
game = DoomGame()
# Load the correct configuration
game.load_config("basic.cfg")
# Load the correct scenario (in our case basic scenario)
game.set_doom_scenario_path("basic.wad")
game.init()
# Here our possible actions
... | [
"noreply@github.com"
] | sid230798.noreply@github.com |
aa53f6246723dc53711b5a6a1effb0d247e695f4 | 28e8a7db08e074864d60f7dcc24bba6d3e323a11 | /gradient_optimizer.py | 8edfd20275a30680a129d72abb87e73d66a0cf77 | [
"BSD-3-Clause"
] | permissive | RainZhang94/super-engine | ebc86d503b805538b5d346b6e5dd477e2440823d | 630472933713dc2ac034f99e77edee8db335b5f0 | refs/heads/master | 2020-12-24T12:20:37.063895 | 2016-11-07T07:48:33 | 2016-11-07T07:48:33 | 73,053,043 | 0 | 0 | null | 2016-11-07T07:31:06 | 2016-11-07T07:31:05 | null | UTF-8 | Python | false | false | 1,006 | py | import numpy as np
import theano
import theano.tensor as T
class GradientOptimizer:
def __init__(self, lr):
self.lr = lr
def __call__(self, cost, params):
pass
@property
def learningRate(self):
return self.lr
@learningRate.setter
def learningRate(self, i):
se... | [
"yguan@guanshankou.cn"
] | yguan@guanshankou.cn |
ea7a23bbc054e9ab84731ae0e79acb1b16afe02d | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/group/dot.py | 0efc4054594d92924ddecffcdc653a5714efd626 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | # Copyright The IETF Trust 2017-2019, All Rights Reserved
# -*- coding: utf-8 -*-
# -*- check-flake8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.db.models import Q
from django.template.loader import render_to_string
from ietf.doc.models import RelatedDocument
class Edg... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
35b2288bc3a4034b6d7b89a4ff1431c77c526d82 | 43020adf20596c1824088a28a8761869c68d651f | /sarvmusicals/asgi.py | 620cb74abfb811a0ee387403f102c3f5f51b4732 | [] | no_license | AmitVermaDce/Sarvmusicals | 5ff531097a3c3a24bb83c22c05c0f6dde688f0eb | 386270462122c6796739e9dcfa174e14b02f242d | refs/heads/master | 2023-04-05T08:06:06.968659 | 2021-04-06T18:48:18 | 2021-04-06T18:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for sarvmusicals project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"rfmd1350@orange.com"
] | rfmd1350@orange.com |
ed87d7af7e74cf52fe1eb8f12e6fcb786fc247b8 | 15b12d69ac3123d1562986970ce01d7a47d171de | /BeginningZeros.py | db99c8fcff71f0dcbca090ae9ab47ede6bfb3c2b | [
"Apache-2.0"
] | permissive | simplymanas/python-learning | 9b67b5a7acfb3a7c2455a7d1fc66203a2b419c37 | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | refs/heads/master | 2021-07-11T06:40:24.803589 | 2021-06-20T12:06:02 | 2021-06-20T12:06:02 | 241,769,614 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # you have a string that consist only of digits. You need to find how many zero digits ("0") are at the beginning of the given string.
# Input: A string, that consist of digits.
# Output: An Int.
# Example:
# beginning_zeros('100') == 0
# beginning_zeros('001') == 2
# beginning_zeros('100100') == 0
# beginning_zeros('0... | [
"manas.dash@tesco.com"
] | manas.dash@tesco.com |
7748235c7ec28880a6a0878162e89debcbd21931 | b34c86385635b3817c15a6ca55686c5d143f4174 | /api/resources/index.py | 7ba605a86f9f2540e9eaf56b16b2ac40e094611e | [] | no_license | ortaman/my-flask-restful-skeleton | 15e07bf7d3c84d35f0a3277ef23a60ec83dfd1d1 | 88346e791f08990f95a2f49d137c2c24f2c6de72 | refs/heads/master | 2020-04-27T23:37:01.376369 | 2019-03-10T05:39:33 | 2019-03-10T05:39:33 | 174,782,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py |
from flask_restful import Resource
class IndexResource(Resource):
def get(self):
return {'data': 'Hello Test'}, 200
| [
"ente011@gmail.com"
] | ente011@gmail.com |
a3b8cd90c04981ea193c294ef1d7a1f3da1f321f | 2e2d8d2b2db67dedb309d8a93a5e306508edb3b9 | /pages/views.py | 09eef42f6646a4bcecc501d3b8604b4b4b16ed7e | [] | no_license | tuhin47/django2.0.7 | d10bac1c55ac22b1c36375ab786c911920950c0a | fb169aa795aac2be2d4b2ded167396dd21f9a54e | refs/heads/master | 2020-05-14T16:09:20.682275 | 2019-04-17T12:15:47 | 2019-04-17T12:15:47 | 181,867,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home_view(request, *args, **kwargs):
print(request.user)
user = {"name": request.user}
return render(request, "home.html", user)
def about_view(request, *args, **kwargs):
print(request.user)
re... | [
"tuhintowhidul9@gmail.com"
] | tuhintowhidul9@gmail.com |
925a7ead050177ad270b0e907629e5e59deec76a | a7a1772df0ae3a84dfa989ba76b69f4586c31269 | /MSGG/GRU_channel.py | 1f1e44bb3b0908d69ea21e6898e10707760ec2c0 | [] | no_license | ShuangWangCN/MSGG | cdfd640779aff0d05dec88642fc37b637d911925 | c8d6a19a1b00252f507a80d722e25c118190fc45 | refs/heads/master | 2021-07-10T18:20:51.290068 | 2021-03-24T02:28:19 | 2021-03-24T02:28:19 | 233,840,444 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,394 | py | from MSGG.chemical_rdkit import mol2node, edgeVec, ATOM_FDIM, BOND_FDIM, EDGE_FDIM, len_ELEM_LIST
from collections import deque
from torch.nn import init
import torch.nn as nn
import torch
def RNN_weights_init(m):
if isinstance(m, nn.GRU):
ALL_weights=m.all_weights
for weight in ALL_weights:
... | [
"noreply@github.com"
] | ShuangWangCN.noreply@github.com |
6d2d77e617f92545b4f2deb72355e75519a1e5cb | 91ef5a418b17283087c48f6270086a7f1652a053 | /utils/tasks.py | 442b0bc4eb4402ee172d6241d775503bdad6a6b1 | [
"MIT"
] | permissive | badcw-OnlineJudge/OnlineJudge | b9f5c012386e04fb2722662b9537eab19f63a0b9 | 75436d845a772a1d59e6db4efc19188aa4606a86 | refs/heads/master | 2020-04-10T23:43:49.926142 | 2020-04-06T16:33:13 | 2020-04-06T16:33:13 | 161,362,745 | 0 | 1 | MIT | 2018-12-15T17:17:36 | 2018-12-11T16:30:14 | Python | UTF-8 | Python | false | false | 187 | py | import os
from celery import shared_task
@shared_task
def delete_files(*args):
for item in args:
try:
os.remove(item)
except Exception:
pass
| [
"virusdefender@outlook.com"
] | virusdefender@outlook.com |
fdf8cc4cfd23aba4b1b5920e8d42644b2ddba809 | 2104f2ca2caa2e86a5bde37f8971ef778a123d6b | /bookorbooks/book/migrations/0004_auto_20210812_0751.py | 22c8e20f5f405d73895261ee8a8a7bbad1b59e4e | [
"MIT"
] | permissive | talhakoylu/SummerInternshipBackend | 34ea412b77189f4945dc10cdfdc35d16902a5534 | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | refs/heads/main | 2023-07-26T02:50:35.815293 | 2021-09-09T18:58:39 | 2021-09-09T18:58:39 | 393,022,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | # Generated by Django 3.2.5 on 2021-08-12 07:51
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0003_readinghistory_counter'),
]
operations = [
migrations.AddField(
model_name='booklevel... | [
"ahmettalha.net@gmail.com"
] | ahmettalha.net@gmail.com |
d8b7447ce2ddaaacb628d05fc3a62538a298e930 | 35f4354e293952378637854a2684c34cd5a90816 | /documentation/sportswebapp/util/sessions.py | b66711b19629f66d34fe1c5d26efc967de42c858 | [] | no_license | Cosmo65/nihlapp | fff663368e95ac10b2fc97db6ef8b52ef642f557 | cee6db21dab4be7ef96dd76f8a057fe8a303b9b0 | refs/heads/master | 2022-02-07T08:44:50.450899 | 2010-05-13T17:05:21 | 2010-05-13T17:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | import os
import time
import datetime
import random
import Cookie
import logging
from google.appengine.api import memcache
# Note - please do not use this for production applications
# see: http://code.google.com/p/appengine-utitlies/
COOKIE_NAME = 'appengine-simple-session-sid'
DEFAULT_COOKIE_PATH = '/'
SESSION_EXPI... | [
"lothix@gmail.com"
] | lothix@gmail.com |
30613f0fcbce9af70ea44f5117927ad5b9c8a6ad | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/management/commands/migrate_redisdata.py | b68508cd176e30b78310f989c74305db0aa91dc5 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
import settings_sub
import redis
from platinumegg.app.cabaret.util.db_util import ModelRequestMgr
from platinumegg.app.cabaret.util.api import BackendApi
class Command(BaseCommand):
"""Redisのデータを移行する.
"""
def handle(self, *arg... | [
"shangye@mail.com"
] | shangye@mail.com |
1c38781fc34b334ce732582ffe3d759dc17810bd | 41e6db1a2079f4ecc27abd9b6168320688f6bbf1 | /B04505004_HW02.py | 36d278cef9ac7ef5f9f15357c71c57efbf215908 | [] | no_license | huaiche94/ESOE-CS101-2015 | dfd574e0c07a7f7fb48031c5f1586ecb140c20f9 | 56693d08841d93ae2cfa5f27bc02ec5b74a1ed3c | refs/heads/master | 2021-05-29T23:00:36.141278 | 2015-10-11T14:10:49 | 2015-10-11T14:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
# input限制為任何以二進位表示的正負整數
# 若輸入非二進位數,也將得到一個值
decimal = 0
value = 1
k = 10
binary = int(input("Enter Binary Number:"))
if(binary > 0):
x = binary
while(x > 0):
remainder = (x % k)
if(remainder > 0):
decimal += value
... | [
"kkiill2525@gmail.com"
] | kkiill2525@gmail.com |
e81bcabd90f2bc88002a2a4b0241c5c56bbec20d | 85d4007b9c7f540c81526a538db01c826d64e429 | /todo_project/todo_app/views.py | dac38953b57d7b82fed472bf732cfb6f2cfe18b2 | [] | no_license | AjayKodoth/todo_app | 23c7c6f2d52cc76ae6a376308c54dac1b84fee54 | 14cf1e42c7f3cceaa5eadc995051155df01b3e6b | refs/heads/master | 2023-05-09T15:52:29.870637 | 2021-06-03T15:51:55 | 2021-06-03T15:51:55 | 373,558,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | from django.shortcuts import render,redirect
from . models import Task
from . forms import Todoforms
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import UpdateView,DeleteView
from django.urls import reverse_lazy
# Create your views here.
cl... | [
"sujithvengayil8432@gmail.com"
] | sujithvengayil8432@gmail.com |
26feb465de8a9602b49002a06ede218156b065c1 | 5f5006fcaffd8f7dd50f67c7063d52b983ab3e86 | /Comparison of Two Data Frames.py | 6479cec469cbdb5989d726bd37a9cde6bbacbd09 | [] | no_license | wasseypro/ipnyb-files | 6c430220132d04b3f44e6bdac61f9e920250e3d3 | d920f318908a70f2d468fd6f99335e0e6c1002c9 | refs/heads/master | 2023-03-14T13:27:06.737672 | 2021-02-12T14:15:55 | 2021-02-12T14:15:55 | 296,563,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Comparing features of Dataframe 1 and Dataframe 2
# In[2]:
import numpy as np
import pandas as pd
import filecmp
# In[13]:
# Creating Dataframe
df1=pd.read_csv('e:/Datasets/train.csv')
df2=pd.read_csv('e:/Datasets/test.csv')
# In[14]:
df1.info(),df2.info(... | [
"noreply@github.com"
] | wasseypro.noreply@github.com |
99586924182b6d7ef60ff1e2c69c81da21ff9886 | 24f1d5e6e9bd463b461613c0f5fe6b7dad5e8567 | /search.py | 85f44f1f88730388a3e66404ef7e98fea1ada6a6 | [] | no_license | jokedewinter/phonebook_app | 78d291f224f3316b40a2cd1153f2cadefebfaa3b | ed2e44474071cf1ae2366903563f471489a72fd6 | refs/heads/master | 2020-04-22T04:28:01.261342 | 2019-02-11T12:24:07 | 2019-02-11T12:24:07 | 170,124,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py |
import sqlite3, requests
from math import sin, cos, sqrt, atan2, radians
def get_database():
try:
conn = sqlite3.connect('static/db/phonebook.db')
cursor = conn.cursor()
return conn, cursor
except FileNotFoundError:
return False
def close_database(cursor, conn):
cursor.c... | [
"joke@jokedewinter.co.uk"
] | joke@jokedewinter.co.uk |
9c93b9a5871e85359d182c2f0f6c73f4be68cf6d | f378dc4374377d0ded7b0d66ad79aeb439754073 | /NCTU/7.reverse-integer.py | b68f7edf12cefb97b198d456ef933a43560b7140 | [] | no_license | DabaoHuang/LeetCodePractice | f5ea8a730a2912642e07c44890719f3247cab921 | 9766ba55e1c6a8581fcd0c3d11d2ac55fa008ce1 | refs/heads/master | 2020-07-23T23:34:43.049504 | 2020-04-30T02:42:19 | 2020-04-30T02:42:19 | 207,739,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #
# @lc app=leetcode id=7 lang=python
#
# [7] Reverse Integer
#
# @lc code=start
import math
class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
if x == 0:
return 0
ret = int(('-' if x < 0 else '') + str(abs(x))[::-1].lstrip("... | [
"cn41408@gmail.com"
] | cn41408@gmail.com |
eca955f9e01d8d0faad118f84bf0a415ff47ffbb | 9190478862e71a475933c5d995eeade70a085415 | /cybele_advanced_query_builder/settings/settings_base.py | e54f4ddd1917f2953083f2192ca98bd9a398c041 | [] | no_license | gtsapelas/cybele_test | aa4d2c0059108a8f0f90d7a0114c3217e8802463 | b44508893b9b6556bd076a24272c29893b4e202d | refs/heads/master | 2021-04-05T15:34:39.389014 | 2020-03-19T18:17:57 | 2020-03-19T18:17:57 | 248,572,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import uuid
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("SECRET_KEY")
# SECURITY WARNIN... | [
"gtsapelas@epu.ntua.gr"
] | gtsapelas@epu.ntua.gr |
e4af5e770fecba4f78342d1be2f34f8368fd576e | 0f5772dbdb2ada66fe5b44a83047d75ea88fcd7f | /2.3_mapper.py | 2bc39e0b6edbec258321428e9412f9791ee3556a | [] | no_license | gtumuluri/W261-HW2 | 95728d6a0eaeb94e7da9f0b2d1085ef2574d678a | 49e8faf434e0716dbd0f72cd5a07ed009f1ddce7 | refs/heads/master | 2021-01-22T09:47:22.280828 | 2015-09-15T23:11:51 | 2015-09-15T23:11:51 | 42,551,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | #!/usr/bin/python
import sys
import string
transtable = string.maketrans("","")
# Read input from the standard input
for line in sys.stdin:
line = line.strip()
items = line.split('\t')
# If there is no content (as in subject/body in the data), skip
if len(items) < 3:
continue
if items... | [
"gtumuluri@yahoo.com"
] | gtumuluri@yahoo.com |
2f1525dfb6e993538b599b1cae1fb1f9e15b01cf | facbc61e446670b9e00c4981f569da7a41dfd6af | /Project_5/Project_5.py | 76d55f304a549d42839f531efdbccc15ac666770 | [] | no_license | abeldavid/Intro_to_Data_Science | 19855a6cb0fbada2c9125bfdfb6203ae02114063 | baae9e66eac4891f0595c5a9e60e80a8d3995c17 | refs/heads/master | 2021-08-08T02:34:22.244403 | 2017-11-09T11:02:10 | 2017-11-09T11:02:10 | 110,094,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | # import files
import sys
import pandas as pd
import numpy as np
import seaborn as sns
from sklearn.cross_validation import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn import metrics
def compute_cost(features, values, theta):
"""
Compute the cost of a list of parameters, th... | [
"abeldavid.89@gmail.com"
] | abeldavid.89@gmail.com |
2fdb8ed35342f5700d9be03da1b463bf6807f021 | 88996c9a964805651d8944e1d04a3183c7d48a67 | /canvasapi/grading_standard.py | 31f5d0d2bf0a070d02dccab03a64a26a4b9bdec8 | [
"MIT"
] | permissive | aileenpongnon/canvasapi | 535ed7103873c00028d6b2fb79e9804fc855c642 | c6b825c0f541eeb650a86a0dee3268092273cbbe | refs/heads/master | 2022-11-27T01:52:50.010858 | 2020-07-06T20:21:08 | 2020-07-06T20:21:08 | 277,850,050 | 0 | 0 | MIT | 2020-07-07T15:11:18 | 2020-07-07T15:11:17 | null | UTF-8 | Python | false | false | 322 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from six import python_2_unicode_compatible
from canvasapi.canvas_object import CanvasObject
@python_2_unicode_compatible
class GradingStandard(CanvasObject):
def __str__(self):
return "{} ({})".format(self.title, self.id... | [
"Jonathan.Guilbe@ucf.edu"
] | Jonathan.Guilbe@ucf.edu |
d19c20e21632cdafae4ce7033d36fc6e5226085c | e1859b43a4f4b0ff3dc23bf038c0b0172b386754 | /zipdl/algos/multi_factor_training.py | 9534e2afed1f9e99ab63df6c52aa6f9bc8c6ce41 | [] | no_license | FrankPSch/Deep-Reinforcement-Learning-in-Zipline | 811d213a4dc88e3edb119ea9e4fe83675dcec843 | c41bc77808e1e32f092b410d49669a6fd92fb00e | refs/heads/master | 2020-03-24T04:56:44.866500 | 2018-05-01T22:13:37 | 2018-05-01T22:13:37 | 142,469,788 | 1 | 0 | null | 2018-07-26T16:58:35 | 2018-07-26T16:58:35 | null | UTF-8 | Python | false | false | 10,028 | py | from zipdl.envs import dynamic_beta_env as dbenv
ENV = dbenv.Dynamic_beta_env(dbenv.TRADING_START)
'''
ALGO BELOW
'''
from collections import deque
import numpy as np
import pandas as pd
from numexpr import evaluate
import zipline
from zipline.pipeline.factors.technical import RSI
from zipline.finance import commissi... | [
"austenzhu@berkeley.edu"
] | austenzhu@berkeley.edu |
f3f440672d73ebb13d5e82898fe0999869f4f736 | c9cffaf983e1ba30e5b1520c1d75d9b08bd018d5 | /bcidTsFixer.py | 8fd7142cd26bdb251382a245851a076fd6f2981d | [
"MIT"
] | permissive | biocodellc/geome-db | 39713a274cf16c8140a9eb849e282caf0060d1df | 62d9f994f2f80823dd8b8b2afd2e6ab2f57f54ac | refs/heads/master | 2023-01-22T18:14:26.456380 | 2023-01-16T20:21:30 | 2023-01-16T20:21:30 | 82,691,229 | 3 | 0 | null | 2021-07-08T17:40:28 | 2017-02-21T14:49:15 | Java | UTF-8 | Python | false | false | 1,705 | py | #!/usr/bin/python
import sys, getopt, csv
def createBcidTsUpdateStatements(inputFile, outputFile, resourceType):
f = open(inputFile, 'r')
out_f = open(outputFile, 'w')
reader = csv.reader(f)
headers = next(reader, None)
idIndex = headers.index('_id')
tsIndex = headers.index('_created')
e... | [
"rj@rjewing.com"
] | rj@rjewing.com |
7b7afb4c5fcd5aacdd37975f825646cab4d19e80 | ed722df964bb2dd7bba2c021486769e4984a2486 | /work/Clashes/test_collecting_overlap_data.py | ebfb8dd8b91c4d097e84c1c7fbf4746efe460fe5 | [
"MIT"
] | permissive | youdar/work | a89e2b75c14e11266378873d6a39d60536573e0a | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | refs/heads/master | 2021-01-02T08:51:11.142504 | 2016-01-09T08:30:49 | 2016-01-09T08:30:49 | 15,275,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | from __future__ import division
from collecting_overlap_data import Collecting_overlaps_data
import unittest
import sys
import os
csv_data = '''\
PDB ID,Macro mol. overlaps,Sym. overlaps,All overlaps,Macro mol. overlaps per 1000 atoms,Sym. overlaps per 1000 atoms,All overlaps per 1000 atoms,year.,experiment type
# so... | [
"youval@gmail.com"
] | youval@gmail.com |
c77ec8fe4c44783410602adc3c02d0a84db8aa19 | 3798b3d5dc3c2e4f5d7456b7e46af17e1a371741 | /largest_subarray_sum.py | 0a86bb2863deda96424f32a65b15c05fe0f36ec0 | [] | no_license | divya814/Hackerrank | f677a42a5c8faf8f1641db8a6266dfe0c3909afb | 8283e2d0a65063956ceac41eb1e665dd7ab9393f | refs/heads/main | 2023-04-22T07:44:04.785564 | 2021-05-08T16:54:26 | 2021-05-08T16:54:26 | 316,585,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | def maxSubArraySum(a,size):
max_so_far = a[0]
max_ending_here = 0
for i in range(0, size):
max_ending_here = max_ending_here + a[i]
if max_ending_here < 0:
max_ending_here = 0
# Do not compare for all elements. Compare only
# when max_endin... | [
"noreply@github.com"
] | divya814.noreply@github.com |
c1884d4ac7ddf4bc39cd8cb34d8e3a929e0d66cc | 5d570acc907ca6275b841f1d86de46829b1bdebd | /duobei_sdk/exceptions.py | c4af77f27c1b3b439962699777136abc1971dad3 | [
"MIT"
] | permissive | duoduo369/duobei_sdk | d5fbc27540116c85e17c25b2d5c98571ed3e604b | cdffdae1a7248669a06891474e129c2555ce3ea3 | refs/heads/master | 2022-07-24T11:44:57.801809 | 2019-03-02T03:00:35 | 2019-03-02T03:00:35 | 172,877,619 | 0 | 0 | MIT | 2019-10-22T00:03:20 | 2019-02-27T08:44:51 | Python | UTF-8 | Python | false | false | 202 | py | # -*- coding: utf-8 -*-
class DuobeiSDKException(Exception):
pass
class DuobeiSDKInvalidParamException(DuobeiSDKException):
pass
class DuobeiSDKServerException(DuobeiSDKException):
pass
| [
"duoduo3369@gmail.com"
] | duoduo3369@gmail.com |
b1e35cff67071273274158b67e34969a2796b4b1 | 86934d22619aabb41da309a63638781ec4b31512 | /module2/fork_demo.py | 95acfa9042b22d7bee5c8bc42ff9781c2d3376f1 | [] | no_license | yanzv/python-pentesters | 3986ed87aea72580b201c98c4a13c5f21d6ca585 | 1fda3bb1298aaa540face932b9a0a0e93f970e75 | refs/heads/master | 2022-12-30T11:52:25.290322 | 2020-09-23T11:40:57 | 2020-09-23T11:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #!/usr/bin/env python3
import os
def child_process():
print(f'I am the child process and PID is {os.getpid()}')
print('child is exiting')
def parent_process():
print(f'I am the parent process with PID : {os.getpid()}')
child_pid = os.fork()
print('here')
if child_pid == 0:
# we are... | [
"yan.zverev@twosixlabs.com"
] | yan.zverev@twosixlabs.com |
d42e0583769db834a0be290c9d0fb655a1d72e33 | 831a7ab57d30f41677e5b6333ed9422f8e418056 | /stats_recorder.py | 6557c442f45a28311d710b96b4d8ba53036b8eab | [] | no_license | Eric-D-Stevens/multi_GPU_DataParallel_Tasks | 9e1302ca5bf037940fe2f993ffde9f853ebe28cc | 0e4807dda350c2c4f0936491c2f556b1b0680dd5 | refs/heads/master | 2021-07-25T14:53:22.485333 | 2021-05-08T03:33:21 | 2021-05-08T03:33:21 | 248,920,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from train_conv import train_conv
from train_linear import train_linear
import json
def get_stats(training_function, epochs:int, dev_ids:list, batch_sizes:list):
stats = {}
print(training_function, dev_ids, batch_sizes)
for i in range(len(dev_ids)):
cur_dev_ids = dev_ids[:i+1]
pr... | [
"noreply@github.com"
] | Eric-D-Stevens.noreply@github.com |
775b6d1787b44c591555b4920d8378aa3bbe8a60 | 1fea2f6cdb70f07070cb12108bc44d64ee194287 | /sistema/pdf/PyPDF2/__init__.py | 106550e90f02332eb09ce4a55cd37cc271a36c83 | [] | no_license | JovannyRch/sistema_inventario | dcd5c84100ddee1fa9d71c41f69246f31e9186d7 | 0b28285e55f4a0e3a8c828573d179f9cb87dfd3c | refs/heads/main | 2023-06-22T21:28:52.725753 | 2021-07-24T14:22:05 | 2021-07-24T14:22:05 | 388,941,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from .pdf import PdfFileReader, PdfFileWriter
from .merger import PdfFileMerger
from .pagerange import PageRange, parse_filename_page_ranges
from ._version import __version__
__all__ = ["pdf", "PdfFileMerger"]
| [
"jovannyrch@gmail.com"
] | jovannyrch@gmail.com |
4e9fa6e4cf9984c883a29ade772f7dcf70428533 | 9b9e854539452755e6860e524fa08b74ec0c7212 | /venv/bin/pip | 7a118d6e981afb6be8b9d0d1c62bc3d832f3dcbf | [] | no_license | IshaGupta18/Eventers | 420e9b20088fa721780f662c322e95ba1b9eee2e | 99e691a73588c7ca42c2144fb7656e79a745f1c2 | refs/heads/master | 2022-05-19T18:42:07.772156 | 2020-04-28T20:06:50 | 2020-04-28T20:06:50 | 257,850,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/home/isha/precog/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ishagupta1828@gmail.com"
] | ishagupta1828@gmail.com | |
656130858e679d0fa9223d240ac10fab10590443 | b424a13f032d5a607e6df4dd78bc47ad1d06a147 | /scipy/optimize/tests/test_hungarian.py | 339e10cc3800845d9fae5ef8673b4d3f970bcd73 | [] | no_license | EnjoyLifeFund/macSierra-py36-pkgs | 1e7eeb9b55415da6eb12465d67730d76e9cc619a | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | refs/heads/master | 2021-01-20T10:23:50.044019 | 2017-09-05T02:53:26 | 2017-09-05T02:53:26 | 90,333,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | ../../../../../../Cellar/scipy/0.19.1_1/lib/python3.6/site-packages/scipy/optimize/tests/test_hungarian.py | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
ff3053a7a947771b9febb17d1aab1d88e658f525 | f96a33a826e085d367bead1473a2077294be5c00 | /Quicksort.py | 8ad03c0554ef4a651514281fc030d8d9aac28e39 | [] | no_license | hao6699/sort_python | 56c5a4df5f3e0cf4f47dfd1ec93363ca873c3265 | aef363020a7b30f340f2ce8d80728b2bba54afbd | refs/heads/master | 2020-03-31T04:21:58.980353 | 2018-10-19T11:26:11 | 2018-10-19T11:26:11 | 151,902,404 | 0 | 0 | null | 2018-10-07T03:34:24 | 2018-10-07T03:22:46 | null | UTF-8 | Python | false | false | 419 | py | A = [1,4,10,14,7,9,3,2,8,16]
def Quicksort(a,i,j):
if i<j:
dp = Partition(a,i,j)
Quicksort(a,i,dp-1)
Quicksort(a,dp+1,j)
def Partition(a,left,right):
temp = a[right]
i = left
j = left-1
while i < right:
if a[i]<temp:
j+=1
a[i],a[j] = a[j],a[i]
... | [
"noreply@github.com"
] | hao6699.noreply@github.com |
7e9fc3608f232ee7c7bf4508343f95abc6d50391 | f2992a03507a04117d21c3a5c77f75408e1e69ff | /app/models/googlecse.py | c1507327ddde2f06786443d6d9152c1571a5580e | [] | no_license | rmartind/Okhrana | bac816530e43389c5661c7363ca0fb112a096f06 | 22dd19f745fe34820df14b655ecda214d3e5cfde | refs/heads/master | 2020-03-25T16:23:16.510612 | 2018-08-09T23:31:40 | 2018-08-09T23:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import requests
class googlecse(object):
def __init__(self, key):
self.base = 'https://www.googleapis.com/customsearch/v1/'
self.key = '#AIzaSyB-FwHME13Ss5LWTMmJ5Dq6PJo9ZRpRAAU'
def email(self, email):
print('Google email search')
def domain(self, domain):
"""Discover s... | [
"rmdavis@buffalo.edu"
] | rmdavis@buffalo.edu |
82b440f437db59514435074fd465555ff50caca4 | 043e26c11691e0c471eeefabb6ab8819e9acdca1 | /Unit_1/transmittingImages.py | 38808896aac6002621a6e547e331cc78b1ac3533 | [] | no_license | DrInnovatio/Data-Analysis-and-Visualisation-with-Python | 5a6a6838e73c734e09be6d9080698735aa89fa2e | 53fb20b7d92aa9539885fe9232e83254e06894fc | refs/heads/master | 2023-03-11T12:11:45.697770 | 2021-03-03T13:44:09 | 2021-03-03T13:44:09 | 320,941,732 | 0 | 0 | null | 2021-03-03T13:44:09 | 2020-12-12T23:03:30 | Python | UTF-8 | Python | false | false | 844 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
# Interpolation
image = cv2.imread('hair.jpg', 0)
plt.imshow(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
plt.show()
expand = cv2.resize(image, None, fx=2.0, fy=2.0, interpolation=cv2.INTER_CUBIC)
plt.imshow(cv2.cvtColor(expand, cv2.COLOR_BGR2RGB))
plt.show()... | [
"turing1723@gmail.com"
] | turing1723@gmail.com |
47639437eaf598e0f0571e7a1279625f12065282 | 7a894308db9182cc07687fceacd4f82dcacb8691 | /agregationspatiale.py | b79ebcbb742cbc4c538e939ac971e8e074cacba1 | [] | no_license | Julie-Bouchard/Projet | 539dc91be0d641e87c25fe90c136e8bcb01783fa | 59bdc55d7b0afc0127c6b16fdf898649fc97b45a | refs/heads/master | 2023-05-03T22:43:11.801503 | 2021-05-20T20:27:47 | 2021-05-20T20:27:47 | 356,306,325 | 0 | 0 | null | 2021-04-14T20:17:58 | 2021-04-09T14:53:25 | null | UTF-8 | Python | false | false | 4,510 | py | from operation import Operation
from transformation import Transformation
from donnees import Donnees
from chargementdedonneesjson import ChargementDeDonneesjson
from selectionvariablecsv import SelectionVariablecsv
class AgregationSpatiale_reg_dep(Transformation):
def __init__(self,echelle, Liste_agregat_... | [
"noreply@github.com"
] | Julie-Bouchard.noreply@github.com |
4e71f4da2940fa657308122b69f4e0dc37b4ab01 | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /ttffttff/Category2/starter2_answer.py | d203f6247ef241b35499fe03df058b488d2ddaa9 | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | # ======================================================================
# There are 5 questions in this exam with increasing difficulty from 1-5.
# Please note that the weight of the grade for the question is relative
# to its difficulty. So your Category 1 question will score significantly
# less than your Category 5... | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
183cf3676dd77ae775779446bac409e5e863fc80 | 5241af5d03d08578949fe5746b222b1635130341 | /forms/server.py | fc77c0a39563be26265391eae3ee8c2fc3518260 | [] | no_license | LisCoding/Learning-Flask | 84975d8368eeabcf9d6d8224d2c02a0171bb638f | 36a90af4200284da422aeff00cfbb74467b778ee | refs/heads/master | 2021-06-23T21:44:50.142142 | 2017-08-04T20:09:13 | 2017-08-04T20:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from flask import Flask, render_template, request, redirect
app = Flask(__name__)
@app.route('/')
def index():
return render_template("index.html")
@app.route("/process", methods=["POST"])
def process():
name = request.form["name"]
print "hello " + name
return redirect("/")
app.run(debug=True)
| [
"cardozoliseth@gmail.com"
] | cardozoliseth@gmail.com |
e0d8b67b989ef724ac22cd07382eb1aacf3727a7 | bc90d29138d8a1ca73ff45c7617c41fd1b355e9f | /institutepro/institutepro/urls.py | 0f8ce5c5ce803eb1aa12dea4aa91b01640472bd2 | [] | no_license | RavulaKartheek/RemoteRepository | 46a1d698cb00fd8074aae393c27b68450000d320 | e474978f1cd1398e6de05d0bda9b3c2a73cc4ff6 | refs/heads/main | 2023-02-23T03:52:01.812135 | 2021-01-24T07:40:41 | 2021-01-24T07:50:48 | 332,165,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | """institutepro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"interest.repetition@gmail.com"
] | interest.repetition@gmail.com |
d2cf16c8751a9eeea9e69af61794985f478ba576 | b36d5380cffab55f1226531f5836458cf37b4601 | /attic/wpfrontman/wp_frontman/management/commands/wpf_fixdb.py | 99488a48ab2b9778d5db73114bae6a943a9790b4 | [
"BSD-3-Clause"
] | permissive | ludoo/wpkit | f859d1c22ffbbc9450dbd0861e08394e6aa97fc6 | 0447d941a438e143b0e51b5e73418a0206832823 | refs/heads/master | 2020-05-18T13:50:16.434623 | 2015-02-15T17:18:31 | 2015-02-15T17:18:31 | 30,834,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,328 | py | from optparse import make_option
from MySQLdb import OperationalError
from django.conf import settings
from django.db import connection, DatabaseError
from django.core.management.base import BaseCommand, CommandError
from wp_frontman.lib.introspection import MySQLIntrospection
from wp_frontman.blog import Blog, DB_PR... | [
"ludo@qix.it"
] | ludo@qix.it |
ba23764aca34e8d36e34ddfc4a9a2783a0ce0e69 | ff6f60d02ed8d024f7b2db5c9eb4b1196ebf166b | /mysite/blog2/views.py | 1ac554cf7587771bcbecbe82b9610dffa2c47921 | [] | no_license | cekong/learnit | 43b707e347ff552754b6592e01dd106c98cd0cc5 | b4111d6fee95960f7b7ca5421b7159cb6122ad2a | refs/heads/master | 2020-03-25T13:53:37.848843 | 2019-08-29T06:46:48 | 2019-08-29T06:46:48 | 143,848,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | from django.shortcuts import render
from django.http import HttpResponse
from . import models
# Create your views here.
def hello(request):
# return HttpResponse('<html>hello wb</html>')
articles=models.Article.objects.all()
return render(request,'blog2/index1.html',{'articles': articles})
def article_page... | [
"noreply@github.com"
] | cekong.noreply@github.com |
7b2104662ff47a3d681d40dcbd56236af3110c9a | 04ffa72c844d7cfd67ee812689590d4baf99545f | /TimeSeries/main.py | b2795333b3b67a3a820d16378f18284849c638fb | [] | no_license | ericdfournier/bokehviz | 63580056f102fbef1cdbc7dbb490de7d4b3c22c0 | ed4f3d330e78c0324e59eaf59d2e6a7ee59bac6e | refs/heads/master | 2021-06-14T02:30:09.829807 | 2017-02-13T19:05:20 | 2017-02-13T19:05:20 | 74,779,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,546 | py | ''' Create a simple stocks correlation dashboard.
Choose stocks to compare in the drop down widgets, and make selections
on the plots to update the summary and histograms accordingly.
.. note::
Running this example requires downloading sample data. See
the included `README`_ for more information.
Use the ``boke... | [
"me@ericdfournier.com"
] | me@ericdfournier.com |
ec4ddab77e779d3e3484437c20276a64c43f7995 | 172063f6830d5a3b4db8df433f8041648c19e1b6 | /7. Reverse Integer.py | 198a4a02f71be2aad93e7fa11c4ead80e93771e4 | [] | no_license | HangZhongZH/LeetCodeAlgorithms | a1f4e9b48d5e1cc2e63b5fa4d4f48c80702ae847 | bf12ca629868f053658c8ed4cf6fe8bf79806cf0 | refs/heads/master | 2022-01-24T12:05:13.920190 | 2019-08-20T23:55:29 | 2019-08-20T23:55:29 | 197,986,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # 7. Reverse Integer
class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
x_str = str(x)
x_list = list(x_str)
reverse_list = []
for i in range(len(x_list)):
reverse_list.append(x_list.pop())
listLength = le... | [
"noreply@github.com"
] | HangZhongZH.noreply@github.com |
601ef03bcb0dc802900e3cff5546aaaa9f4225d6 | 6fde5ad1212df526e84e8dfd85d3c54a7e48c843 | /general/views.py | 6b0e218e5655cad75c59c5d54d492ca8ebade39f | [] | no_license | aynulislam/SNS_API | 6ed73e93726c2de4509be82741f568e3104f4042 | cd7a608c90593b029d2c98d61a7c70205d3727b6 | refs/heads/master | 2022-03-05T04:54:45.863387 | 2019-11-27T06:49:29 | 2019-11-27T06:49:29 | 223,138,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django.contrib.auth.models import User
from django.http import JsonResponse
from rest_framework.views import APIView
from .models import SnAction
from .serializers import ReactSerializers
from rest_framework.response import Response
class ActionView(APIView):
@staticmethod
def get(request):
react... | [
"noreply@github.com"
] | aynulislam.noreply@github.com |
dd97a8fb61d29ac6802bfb439f2ef333e9910f92 | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/725.split-linked-list-in-parts.py | bc110b0a0434d89ff7f0ea300c178d465ed4835b | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 234 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def splitListToParts(self, root: ListNode, k: int) -> List[ListNode]:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
1b84f710500099ce648274233cb7fb1c83c80ed9 | 481510c904d3ad0027e54a064d1f8bcb7630018f | /asm.py | 54b9f24899d58d451f3e9b0e869adbeeaba5ea48 | [] | no_license | corywalker/cpu-homebrew | 4b6ad3eb24a19986781fbc78403ec93c363c63d9 | 0bcd14f0f37c6bc224d384a1729337497ca11c7a | refs/heads/master | 2020-05-20T06:00:53.919965 | 2012-06-21T03:36:20 | 2012-06-21T03:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,184 | py | #!/usr/bin/env python
ENV = globals().copy() # Clean user environment
COMMANDS = [] # Result buffer
OP_SHIFT = 12
SLOT1_SHIFT = OP_SHIFT - 4
SLOT2_SHIFT = SLOT1_SHIFT - 4
from inspect import getouterframes, currentframe
def here():
'''Get file and line number in source file'''
try:
return getoute... | [
"cory@cory-VirtualBox.(none)"
] | cory@cory-VirtualBox.(none) |
06312eaa4fcce65f02c55cba06bee1bb4e07a6f1 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc151-abc200/abc159/c.py | ff7a9181d2d4bd0618d47a01e26cfe67aed60412 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 183 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
l = int(input())
print((l / 3) ** 3)
if __name__ == '__main__':
main()
| [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
95156244bec32278de1ed247ee32efde2d250668 | 12b5d9bd39cd364d8fd9f0af68610b8cbfbb434b | /trajopt/varunani/benchmark_time.py | c12c250311861e02405e47b3182f4042d432838c | [
"MIT"
] | permissive | grossmanlev/trajopt | a8a2856948fc9460001ac59ccd175ea5f6d9ca0b | 3a01b26e24efe8f365a323292007e72f7ab147c2 | refs/heads/master | 2021-07-09T02:46:19.205237 | 2021-01-07T05:30:57 | 2021-01-07T05:30:57 | 223,448,806 | 0 | 0 | MIT | 2019-11-22T17:02:17 | 2019-11-22T17:02:16 | null | UTF-8 | Python | false | false | 2,698 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import time as timer
import numpy as np
import pickle
import argparse
import os
from datetime import datetime
class Model(nn.Module):
def __init__(self,layers,nonlin=nn.Tanh()):
super(Model, self).__init__()
layerslis... | [
"anirudhtx@gmail.com"
] | anirudhtx@gmail.com |
9df4aaa8bc755703b78e83ad0c1f73ac55aef433 | 12f65a81036fa7a6aeaa5c742558f9b4a03b5fa1 | /mmelemental/models/proc/base.py | 0b142f0c34f4f72f2f692f30cfc788818c895003 | [
"BSD-3-Clause"
] | permissive | pk-organics/MMElemental | bef8b24d39c5d4d52f140eb53090f5270a1d4ea2 | 840e8fcafe2a07d4729cb0507ab1f30dc9c60541 | refs/heads/main | 2023-04-03T04:17:36.083582 | 2021-04-09T21:10:53 | 2021-04-09T21:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | from mmelemental.models.base import ProtoModel
from mmelemental.models.molecule.mm_mol import Molecule
from mmelemental.models.collect.sm_ensem import Ensemble
from mmelemental.models.collect.mm_traj import Trajectory
from mmelemental.models.forcefield import ForceField
from pydantic import Field, constr
from typing im... | [
"andrew.gaam@gmail.com"
] | andrew.gaam@gmail.com |
74a230381b0da6b448c62ed8ef18f28429ebfb68 | 3083da01ff08588ba9b07a6c977767097baed469 | /shell_finished.py | 39e3dc08f90a1bf2ddea4f99b0975e043e0b72ea | [] | no_license | denipash/Python-Intro | ee7f68bdefe24068ad858fc66d00c9dd9e959e80 | 2b938e70f64fbf46cea04bd8a8ed632e3f4404f3 | refs/heads/main | 2023-06-17T16:41:38.936265 | 2021-07-19T19:44:15 | 2021-07-19T19:44:15 | 387,561,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | #
# File for working with filesystem shell methods
#
import os
from os import path
import shutil
from shutil import make_archive
from zipfile import ZipFile
def main():
# make a duplicate of an existing file
if path.exists("textfile.txt"):
# get the path to the file in the current directory
src = path.real... | [
"noreply@github.com"
] | denipash.noreply@github.com |
4507a8da5fc803c57a35b67d8fbc507596406516 | a1dc5354362a7357078b282bcf1f768bb0d297b4 | /cut_optimizer/algorithms/euler_path.py | 5e44102b7ae7382d5e31c2b8d878bebd1a373b38 | [] | no_license | marcinsulikowski/cut-optimizer | 6fa33b54822c6555ea7c18ac294a21588db2606e | fa59ed8df69fc206d1e0080926d560199d9bbc4e | refs/heads/master | 2022-10-20T17:16:22.381089 | 2020-06-15T22:29:54 | 2020-06-15T22:29:54 | 272,199,312 | 1 | 0 | null | 2020-06-15T19:16:15 | 2020-06-14T12:37:51 | Python | UTF-8 | Python | false | false | 2,111 | py | """Euler path finding."""
import random
import sys
from typing import List, Tuple
from cut_optimizer.graph import Edge, Graph, Vertex
class NoEulerPathFound(Exception):
"""Raised when no Euler path can be found."""
def euler_path(graph: Graph, start: Vertex) -> List[Edge]:
"""Return an Euler path in the g... | [
"marcin.k.sulikowski@gmail.com"
] | marcin.k.sulikowski@gmail.com |
758130829ae910e3e28c6f74fab294072d1e441a | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/lib/python2.7/site-packages/click/testing.py | b4f9cf19475547e9017fae1f0034f8bb1fc8f5c2 | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,003 | py | import contextlib
import shutil
import sys
import tempfile
import os
from ._compat import iteritems, PY2
# If someone wants to vendor click, we want to ensure the
# correct package is discovered. Ideally we could use a
# relative import here but unfortunately Python does not
# support that.
clickpkg = sys.modules[_... | [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com |
4b93b4750607a1a5feb12f0a41bfe9c767679e8b | 411a34b1ccab79f040c84b6d8b325c38267c5df2 | /models/users.py | a045ff9a11cb8272ad25cd0d5fbaa996e556f349 | [] | no_license | thecattest/live-market-back | 02dda49ac9b81cc31d9c3f9f2701686f8556a40c | 261f7113577761f041c214abb0ca8de547a2d39b | refs/heads/master | 2023-03-24T05:31:53.976926 | 2021-03-21T08:37:07 | 2021-03-21T08:37:07 | 349,664,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | import sqlalchemy
from sqlalchemy import orm
from .db_session import SqlAlchemyBase
from sqlalchemy_serializer import SerializerMixin
from flask_login import UserMixin
from hashlib import md5
from werkzeug.security import check_password_hash, generate_password_hash
class User(SqlAlchemyBase, SerializerMixin, UserMix... | [
"vodopyanov999@gmail.com"
] | vodopyanov999@gmail.com |
b7cb638e72a0315ea5b16e4cb6f18ecdcb1072f8 | 88fadcb1b8df4907a7bd7e0ad66908b824a8f724 | /components/webapp/src/network.py | febe05c49281de9ec640e5e333be6047646c751e | [
"Apache-2.0"
] | permissive | butuzov/kubeflow-pipline-pytorch-tacatron | fe65b9838dde4fe1130cae49d87ea0255029664b | 2800a4b66852a2220ca957e63e91aa7a19ea05df | refs/heads/master | 2020-07-22T14:54:45.257922 | 2019-09-09T07:30:34 | 2019-09-09T07:33:11 | 207,239,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | #-*- coding: utf-8 -*-
from module import *
from text import symbols
import hyperparams as hp
import random
class Encoder(nn.Module):
"""
Encoder
"""
def __init__(self, embedding_size):
"""
:param embedding_size: dimension of embedding
"""
super(Encoder, self).__init__... | [
"butuzov@made.ua"
] | butuzov@made.ua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.