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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd4c566533abd145d2dda3e620a145553cd6a382 | 721ba9724a60997b4b4761b3a3c8931ae3a949a9 | /ipfs_video_index/ipfs_indexer/__main__.py | a165cc293f084a1974b318c9e3a74a4b2af9a33e | [] | no_license | bneijt/ipfs-video-index | f058416e45ff2f8e9877e81fd88200281bf0bafb | 555c5d25fe95456dd4e5aa9ca0b04aa8736633e2 | refs/heads/main | 2023-07-26T02:24:40.108876 | 2021-08-21T20:22:54 | 2021-08-21T20:22:54 | 395,742,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import argparse
import time
from dqp.queue import Project
from loguru import logger
from ipfs_video_index.ipfs_indexer.procs import pipeline
def main():
parser = argparse.ArgumentParser(description="Process some integers.")
parser.add_argument(
"--loop", action="store_true", help="Loop processing th... | [
"bram@neijt.nl"
] | bram@neijt.nl |
9ac072a2202de51e2724dde17e37fd47ab045be3 | c3243f9b925324fcc036b11125233f4b634e19ee | /config.py | 41e7de63a4f6029163ee6234398affa2b0c646d7 | [] | no_license | jacksonschwarz/socnet-project | b237dadde5e72d8b9f852d83061fa1e3ea6b2876 | 09196c66c57dc984766198ecc48e49adb8d268a1 | refs/heads/master | 2020-06-26T02:33:02.320915 | 2019-07-29T17:39:16 | 2019-07-29T17:39:16 | 199,499,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | class keys():
consumer_key="8IOO5WAeQExvzpHBhLFV2V1eK"
consumer_secret="rjnxXnu2mfUdDY1bf5RdeyDNgJzka0WsXuLcKuCCmOjIRBJ4mS"
access_token="399061958-kr8PAZVPkzeH2AHxkzK7l3HVrPUXfnbLjYgCdhs9"
access_token_secret="t1cHMQvCU9wfifevxKnbhTGqKD3qGLqWwWnDOjiqmFZFX" | [
"jackson.schwarz0@gmail.com"
] | jackson.schwarz0@gmail.com |
e7d358ae2ca583464f854ea25d0791bc92dfc215 | 4181ae5cb29ea85457070aff76c6b7fcd0708b3c | /chapter_08/series_exponential_log.py | 08f3b154f691b5e29cb7d134b860fddc4781546f | [] | no_license | bgbutler/TimeSeriesBook | f2ff2ac820d9becee274ac88da42077d10dd7cae | c44ff4389d2586fb5ca91fd57db8ae3c3b1e425b | refs/heads/master | 2020-06-08T04:20:38.914960 | 2019-06-21T20:41:49 | 2019-06-21T20:41:49 | 193,156,798 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # log transform a contrived exponential time series
from matplotlib import pyplot
from math import exp
from numpy import log
series = [exp(i) for i in range(1,100)]
transform = log(series)
pyplot.figure(1)
# line plot
pyplot.subplot(211)
pyplot.plot(transform)
# histogram
pyplot.subplot(212)
pyplot.hist(transform)
pypl... | [
"noreply@github.com"
] | bgbutler.noreply@github.com |
4b270fa9d701f65ef4e79353a53e22d43df8424f | ad9782856ec2f860fccbefa5e75a896691b8e1cc | /MonteCarlo/test/opt6s3l/crab_step2_VBF_HToBB_OT613_200_IT4025_opt6s3l.py | 8031794a20b9cb961ae352984ee3b6e5b3a772d7 | [] | no_license | OSU-CMS/VFPix | 7fe092fc5a973b4f9edc29dbfdf44907664683e5 | 4c9fd903219742a4eba1321dc4181da125616e4c | refs/heads/master | 2020-04-09T05:52:05.644653 | 2019-01-09T13:44:22 | 2019-01-09T13:44:22 | 30,070,948 | 0 | 0 | null | 2018-11-30T13:15:54 | 2015-01-30T12:26:20 | Python | UTF-8 | Python | false | false | 944 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'VBF_HToBB_14TeV_step2_923_PU200_OT613_200_IT4025_opt6s3l'
config.General.workArea = 'crab'
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobType.pluginName = 'Analysis'... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
8bd0766d2f6563738282d6a6113ab378a44ded93 | d6d42869ea400e434618b4289cb254f32bcc0ca3 | /autorecord/core/models.py | fd9032f6989a0cea97e01712fcd8113c63271629 | [] | no_license | Diverso-NVR/autorecord | 227538bd4e20ba4e9d19179f984dd0112b9d5d0e | 7caa5ba9f69204f933c37072ce7366a206cd33a2 | refs/heads/master | 2023-04-23T16:56:29.449049 | 2021-05-12T18:49:00 | 2021-05-12T18:49:00 | 235,286,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | class Room:
def __init__(self, room_dict):
self.__dict__.update(**room_dict)
@property
def sources(self):
return self._sources
@sources.setter
def sources(self, sources_list):
self._sources = []
for source_dict in sources_list:
self._sources.append(Sourc... | [
"dakudryavcev@gmail.com"
] | dakudryavcev@gmail.com |
f2852368a7d8c04e5cdcb07120a99934cf4f1b4c | 430fcb1b9103f4d26986a00f7ce60d507bcd13c9 | /sdsparser/errors.py | f553bae797ce9435deb213663d6b064b1f2b0b83 | [
"MIT"
] | permissive | astepe/sds_parser | 49f7c91a79a1970017616bcd7046343881464c97 | 129935f7876f8ddeec7771689d4bbc50059b13ca | refs/heads/master | 2023-03-31T22:45:29.375447 | 2023-03-16T18:17:58 | 2023-03-16T18:17:58 | 160,744,163 | 13 | 5 | MIT | 2022-11-22T11:36:25 | 2018-12-06T23:13:24 | Python | UTF-8 | Python | false | false | 561 | py |
class FileMatchNotFound(Exception):
def __init__(self, file_name, target_directory):
Exception.__init__(self, f'No matching .txt file found for {file_name} in {target_directory}')
class TextDirectoryDoesNotExist(Exception):
def __init__(self, target_directory):
Exception.__init__(self, f'No ... | [
"arisstepe@gmail.com"
] | arisstepe@gmail.com |
bf743c6551b46c870314090cfe6cba4a96f5797a | d912186b9806f67a1ee744bf8848a1f9fd11bcee | /Keras_Framework_TensorRT/flower_photos/test.py | 9cd4433375b8c2db35ad6ee2ad6fbe6c0eb616d1 | [] | no_license | HangJie720/TensorRT_Tensorflow_Keras | 89297aa12f58b6dfcc2ef29cf9f6a9bc44a49b0c | 8032a9347929098c8d38ee40e35c538274d7363a | refs/heads/master | 2020-03-19T03:17:30.590481 | 2018-06-01T12:26:57 | 2018-06-01T12:26:57 | 135,714,075 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | from tensorrt.lite import Engine
from PIL import Image
import numpy as np
import os
import functools
import time
import cv2
import matplotlib.pyplot as plt
PLAN_single = '/tmp/keras/flower_photos/engine/keras_vgg19_b1_fp32.engine' # engine filename for batch size 1
PLAN_half = '/tmp/keras/flower_photos/engine/keras_v... | [
"hangjie@hangjiedeMacBook-Pro.local"
] | hangjie@hangjiedeMacBook-Pro.local |
5a308f6b7f9ceacdf803dead7dbd5a2dfc85628e | 9aa1885bfd666b5d3719c29334c9769bbe88d3e0 | /bin/cache-purge-consumer.py | d1bd99303ae097493edde7eadcd860165b207716 | [] | permissive | praekelt/django-ultracache | 9c240cfad4660afdb7e679192ca0f4b05bab1831 | 476eb8a4935043f4fc6901ed3541ececed1664bf | refs/heads/develop | 2022-01-27T18:20:00.062349 | 2020-05-29T09:58:01 | 2020-05-29T09:58:01 | 38,880,711 | 32 | 4 | BSD-3-Clause | 2022-01-06T22:24:32 | 2015-07-10T13:02:45 | Python | UTF-8 | Python | false | false | 3,973 | py | """Subscribe to RabbitMQ and listen for purge instructions continuously. Manage
this script through eg. supervisor."""
import json
import traceback
from multiprocessing.pool import ThreadPool
from optparse import OptionParser
from time import sleep
import pika
import requests
import yaml
class Consumer:
channe... | [
"hedleyroos@gmail.com"
] | hedleyroos@gmail.com |
0e224f6a0ff6149cf70f6a426a50cdc40b769be9 | 8d1ceed7720e374691829d78007ea146a9030e4f | /arkestra_clinical_studies/lister.py | 5905346c3c39dba5232bfa745f6c1a2ba387225d | [
"BSD-2-Clause"
] | permissive | gonff/arkestra-clinical-studies | 25ef186207781bbc979f7f12bdef194802d9c71c | d75540e006a5d8b1ccb6d05a8253eba9c9fb0a79 | refs/heads/master | 2021-01-18T05:10:23.067652 | 2014-05-21T11:19:03 | 2014-05-21T11:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,978 | py | from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from arkestra_utilities.generic_lister import (
ArkestraGenericLister, ArkestraGenericList, ArkestraGenericFilterList,
ArkestraGenericFilterSet
)
from arkestra_utilities.settings import MULTIPLE_ENTITY_MODE
from .models... | [
"daniele@vurt.org"
] | daniele@vurt.org |
3b15efcd4c58e73f9d4c0135da5f36a883347fa3 | d170efa06e6e682c71961fe1213298e5a68193c3 | /python/python/rotate/test_rotate.py | fc39d304949523ec047f2d1eddf13bc3a777fc50 | [
"MIT"
] | permissive | iggy18/data-structures-and-algorithms | 45b9ebf3c0820968bda62c0ebd90a9cfd65b3902 | 700ef727ca7656724120a1873af4bd4bce5962f4 | refs/heads/main | 2023-02-27T04:45:12.535801 | 2021-02-08T22:41:28 | 2021-02-08T22:41:28 | 300,975,693 | 0 | 0 | MIT | 2021-02-12T18:39:18 | 2020-10-03T20:42:08 | JavaScript | UTF-8 | Python | false | false | 232 | py | from rotate import rotate
def test_rotate():
assert rotate
def test_rotate_works_properly():
x = [[1,2,3], [1,2,3], [1,2,3]]
actual = rotate(x)
expected = [[1,1,1], [2,2,2], [3,3,3,]]
assert actual == expected
| [
"seth.mcfeeters@gmail.com"
] | seth.mcfeeters@gmail.com |
e966083dfa346bd6ad2fe9466ac0dd52e26279d8 | 84f67171337704d4fc10542a2705af892ebce1b2 | /blog/views.py | 18cf7c69ef3b66d183b6f50cc65d644096285c35 | [] | no_license | ZahedAli97/my-first-blog | 64acef6aebf8de8e7e239e12143dcb0a5f699ea5 | e5c05bac1125c79ad4b6d56a53be0bfeb1b8cc9d | refs/heads/master | 2020-04-25T01:41:29.329528 | 2019-03-05T16:26:26 | 2019-03-05T16:26:26 | 172,415,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from .models import Post
from .forms import PostForm
from django.shortcuts import redirect
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()
... | [
"zahedmiralirh@gmail.com"
] | zahedmiralirh@gmail.com |
541814fce90ea9c146f892f9ecf241d6d2ec4278 | 45fbf26618ef3b1fd93bca267032754b8f96603e | /src/Server/API/python/offer_passageid.py | 5398b9441dfeef6019d18f29576c35edb3e74f7c | [] | no_license | EricDeng1001/LS | d76f53edec08fd35b0856ba1c03f2dd83074275c | da4209bffdd9aaffa846c662c594f0065c51341f | refs/heads/master | 2021-09-15T02:12:26.388130 | 2018-05-24T06:27:05 | 2018-05-24T06:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # coding=utf-8
from __future__ import division
import json
import MySQLdb
import time
import datetime
import urllib
import json
from urllib import urlencode
from urllib import quote
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def offer_passageid(user_name):
conn = MySQLdb.Connect(host = '... | [
"gantinus@gmail.com"
] | gantinus@gmail.com |
e71ad573a5ef2e637afd4b895e4543e24ac20f06 | eb69c111ac9f0f77d1cf9636f66b9309cb295178 | /遗漏的知识点/python中的数据结构/testTwoList.py | f136ba0e192e64660b4d3d40e649525e97601313 | [] | no_license | zyp19/leetcode1 | f7984ff4f74c399d2f7c1f059e193505341993ba | 6f0338e6c11b497a1ab21cf00997b8eeb56703fb | refs/heads/main | 2023-06-17T08:11:51.092801 | 2021-05-13T03:58:57 | 2021-07-11T09:24:15 | 384,907,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | # 1.二维数组的遍历方式
"""
第一种方式:类似于MATLAB中的二维数据索引,比较直观,容易理解
首先,定义了一个二维列表list2d.然后利用一个两层循环遍历这个二维列表.利用range函数限制循环次数,利用len函数获得列表的行数和列数.
注意这两者的不同.
评价:这个方式不够好:
首先,Python中列表和MATLAB中不同,不需要每行的列数相同
利用行列下标索引方式,则必须要求,每行的列数相同.
"""
list2d = [[1,2,3],[4,5,6]]
sum = 0
for i in range(len(list2d)):
for j in range(len(list2d[0])):
#... | [
"zuoyiping@163.com"
] | zuoyiping@163.com |
0508fff314281a130e0521271cb6a91d6bc8ca58 | 3b3741229af1dee887495bab1bc7af1363969f9c | /axioms/migrations/0001_initial.py | 2b7bdf3654ea3460de507402ca7d4fb61e7ee073 | [] | no_license | chadpalmer/django_api_sample | 3ba26aebc840eb75966cc6b99fd80e0fe082647f | 06b4fac412f6a5871214c9b92e216b58091483b2 | refs/heads/master | 2021-09-23T10:34:42.504173 | 2020-01-23T22:32:34 | 2020-01-23T22:32:34 | 232,022,693 | 0 | 0 | null | 2021-09-22T18:20:44 | 2020-01-06T04:17:35 | Python | UTF-8 | Python | false | false | 980 | py | # Generated by Django 3.0.2 on 2020-01-04 23:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"chadpalmer@Chads-MacBook-Pro.local"
] | chadpalmer@Chads-MacBook-Pro.local |
5b3970c02a50e16d0ceabd306e7e4a70ec1fff8e | 1e38de9c5761d7917db3338c3d49477ee001618d | /airbridge/builder.py | d5b1361f2aedbc336b53b6063a2390faff77614f | [
"Apache-2.0"
] | permissive | yonglehou/airbridge | ef7b61de7e0abcea5eb6470c9dcb9d825f615fea | 55e97f61dbff11cc9380010885febd8a1c12c4d6 | refs/heads/master | 2021-01-15T18:30:47.504796 | 2015-07-09T02:27:33 | 2015-07-09T02:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # -*- config:utf-8 -*-
"""
Copyright 2014 Airbridge
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... | [
"lucasboscaini@gmail.com"
] | lucasboscaini@gmail.com |
7337e654a102bc58ed6a403e7e5a2baafed31204 | 4da30c339d64989d0b92587ea059d9bb462ceec0 | /backend/reframery/migrations/0011_auto_20210222_1447.py | 9b11ee18ad98b1d1643fb4853babb83976c517ab | [] | no_license | Danielwu9226/community-currency-reframery | 876973f296268a6d6c4449b5e590dcde53161721 | b863c84d2b2bab1122f114bf0cfcd6faf2cdc7ef | refs/heads/master | 2023-04-07T18:00:29.501122 | 2021-04-01T07:05:30 | 2021-04-01T07:05:30 | 300,325,079 | 1 | 0 | null | 2021-02-22T02:12:19 | 2020-10-01T15:18:38 | Python | UTF-8 | Python | false | false | 862 | py | # Generated by Django 3.1.5 on 2021-02-22 14:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reframery', '0010_auto_20201229_2325'),
]
operations = [
migrations.CreateModel(
name='Wallet',... | [
"imtiaza@mcmaster.ca"
] | imtiaza@mcmaster.ca |
5b5318e9339850b6265dc415340e362ff7e63894 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/diameter-of-binary-tree.py | 2f8d44152f1d1d7bc911f4df55398ee39e93ccf0 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 501 | py | # Time: O(n)
# Space: O(h)
class Solution(object):
def diameterOfBinaryTree(self, root):
"""
:type root: TreeNode
:rtype: int
"""
return self.depth(root, 0)[1]
def depth(self, root, diameter):
if not root:
return 0, diameter
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
057557a86accb533d99a88d08a903f4a4422eb9b | 6d659cdae13a89c2d2e84b750ba7628e871df846 | /control.py | 088e6317a167e5b140b58e239be9f1bec1e09e5a | [] | no_license | FosDos/leechybird | 8bcd545aa5e6151b7ff62347462f691548ac4302 | ef83761ab1c7113db31540ead35704c4c440cd6f | refs/heads/master | 2022-11-24T23:47:30.519667 | 2020-07-29T17:09:00 | 2020-07-29T17:09:00 | 116,117,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # Author: Foster C. Williams
# Email: fosterclarksonwilliams@gmail.com
#github: github.com/fosdos
import time
import datetime
class twitter_timer(object):
start_time = None
user_screen_name = None
def __init__(self, user_screen_name):
self.start_time = datetime.datetime.now()
self.user_screen_name = st... | [
"fosterclarksonwilliams@gmail.com"
] | fosterclarksonwilliams@gmail.com |
ca8bebbb101f6f0a7ea337d1d0365016720fb6b6 | cf09d6430e37b5460d7208d6cae6d3af0fa15925 | /jsonbot/jsb/lib/config.py | 87dc5bc6d9858b7446409e090713d466ea5d113e | [
"MIT"
] | permissive | Lujeni/old-projects | 2bbf0ff89852a3e4a9677475a615d2ee4b07d635 | 657304c8b017a98935de9728fc695abe8be7cc4f | refs/heads/master | 2021-03-12T23:08:34.054777 | 2014-10-16T23:10:15 | 2014-10-16T23:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,266 | py | # jsb/lib/config.py
#
#
""" config module. config is stored as item = JSON pairs. """
## jsb imports
from jsb.utils.trace import whichmodule, calledfrom
from jsb.utils.lazydict import LazyDict
from jsb.utils.exception import handle_exception
from jsb.utils.name import stripname
from datadir import getdatadir
from er... | [
"julien@thebault.co"
] | julien@thebault.co |
aa4e6b7443d288d9d0895517c5a524596bd8b3e4 | f6b5d818d58506d6de7429528fab9c1ab059fb15 | /HW5/Melnychuk/hw5_1.py | d47acd47e39d0e882a0aba9587525b393a1d72ee | [] | no_license | kolyasalubov/Lv-585.2.PythonCore | 8381931bbeab17eee74142d2fbbe45fb025a1c5e | a18ee1180262a641c19806c4d9dd59e537096e14 | refs/heads/main | 2023-04-10T10:05:44.114639 | 2021-04-29T13:46:40 | 2021-04-29T13:46:40 | 349,162,354 | 1 | 3 | null | 2021-04-29T13:46:41 | 2021-03-18T17:30:57 | Python | UTF-8 | Python | false | false | 445 | py | numbers_div_2 = []
numbers_div_3 = []
other_numbers = []
for number in range (1, 10):
if number % 2 == 0:
numbers_div_2.append(number)
elif number % 3 == 0:
numbers_div_3.append(number)
else:
other_numbers.append(number)
print(f"Numbers that are divisible by 2: {numbers_div_2}")
pr... | [
"melny4uk.d@gmail.com"
] | melny4uk.d@gmail.com |
76aae7edbb8a6a7cd3df5d256f19454db1a5fb83 | 368a74e5c1a748242e945b3bc03244d9f63ad376 | /cosmos_flask_server-master/새태그KStars/domain/KFilePath.py | 2b2c82b46ab7b8138142ea9135f209b7f66de18f | [] | no_license | lee82762/cosmos_flask_server-master | e8c78274d18f7c4cc243c964a279498bef7dda88 | 37a5bb9dcc056d8bd6e55209b9e326a7465229ee | refs/heads/master | 2023-04-22T21:58:59.497161 | 2021-05-06T10:00:14 | 2021-05-06T10:00:14 | 364,494,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | class KFilePath:
def __init__(self):
self.projectFilePath = ""
self.audioFilePath = ""
def initData(self):
self.projectFilePath = ""
self.audioFilePath = "" | [
"cjdrn0208@naver.com"
] | cjdrn0208@naver.com |
5d0ee6b0dc39b9f92bdb2eef54ed35b8d54a32c9 | 696e35ccdf167c3f6b1a7f5458406d3bb81987c9 | /content/test/gpu/gpu_tests/gpu_integration_test.py | 9f991d50206a63aaaaa763e1e5b49a5a4108a461 | [
"BSD-3-Clause"
] | permissive | mgh3326/iridium-browser | 064e91a5e37f4e8501ea971483bd1c76297261c3 | e7de6a434d2659f02e94917be364a904a442d2d0 | refs/heads/master | 2023-03-30T16:18:27.391772 | 2019-04-24T02:14:32 | 2019-04-24T02:14:32 | 183,128,065 | 0 | 0 | BSD-3-Clause | 2019-11-30T06:06:02 | 2019-04-24T02:04:51 | null | UTF-8 | Python | false | false | 10,996 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from telemetry.testing import serially_executed_browser_test_case
from telemetry.util import screenshot
from gpu_tests import exception_form... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
367b2fcba0f5c8e7622ab91e4e2e199f84f863e7 | fb9ee00025b9e4b19bd7c9d009094d088f481125 | /google-code-jam/Google Code Jam 2011 - Qualification Round/ProblemA.Bot_Trust-file.py | 705fb0901075a0742bab075a8446e713c1fee8ee | [] | no_license | wonjohnchoi/competitions | e382e3e544915b57e48bbb826120ef40b99b9843 | 4ba5be75a5b36b56de68d4a4ab8912d89eb73a0e | refs/heads/master | 2021-01-16T00:28:33.446271 | 2015-09-12T16:53:25 | 2015-09-12T16:53:25 | 2,786,296 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py |
class Robot:
def __init__(self):
self.status = 'waiting' #waiting, moving, pushing, idle (no more command)
self.pos = 1
self.dest = -1
self.idx = -1
def find(c,commands, f):
for i in range(f, len(commands)):
if commands[i][0]==c:
return i
r... | [
"wonjohn.choi@gmail.com"
] | wonjohn.choi@gmail.com |
7ef82813296454bbe47997f3438cf9311b31267a | c1488f29f165d65005464a8e0583ec9edf1735b7 | /test script/deleteNodes.py | baef77798df99485f605c10f044475e3a07c167c | [] | no_license | KensonN/ground-dash | a5fad69f3e77367448b9b0f35fa51549de0a4df3 | b7ace79d6d83dacf5331d6c4d33a3bb10ad4c2bb | refs/heads/master | 2023-01-06T13:38:20.733628 | 2020-10-31T23:19:14 | 2020-10-31T23:19:14 | 286,333,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | #import serial
import pyrebase
import random
from time import time, sleep
from datetime import datetime
config = { #firebase authentification
"apiKey": "AIzaSyDEfkwr7Zl5WucXFluMxB8VIlngUnp7aDM",
"authDomain": "smv-daq.firebaseapp.com",
"databaseURL": "https://smv-daq.firebaseio.com",
"projectId": "smv-... | [
"kenson.nguyen3@gmail.com"
] | kenson.nguyen3@gmail.com |
96fd3506464c392a8fd723e5f4d4aeaf7d0ba1cc | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/libtbx_refresh.py | b1206d46a3f922f73066f670596a7b7a0ef8f24f | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,790 | py | from __future__ import absolute_import, division, print_function
import os
from libtbx.utils import warn_if_unexpected_md5_hexdigest
if self.env.is_ready_for_build():
message_template = ' Generating C++ files in:\n "%s"'
# eltbx
from cctbx.source_generators.eltbx import generate_henke_cpp
from cctbx.sourc... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
264b62e7d0d2651cf9ec655cdfb6fafd32babdd4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2701.py | 4dfd25441bfd296e14ceefcf2861b262d56462e9 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import math
def get_stall(arg):
l = []
arg.sort()
for p1, p2 in zip(arg, arg[1:]):
diff = abs(p1 - p2)
if not l:
l.append(diff)
l.append(p1+(diff//2))
l.append(p1)
elif l[0] < diff:
l.clear()
l.append(diff)
l.a... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a28f99427e7b585a4de577169e2d4afd3ab4e90e | 618522a8ffed585e27701b9acb1a1171e3c5c924 | /salience_sum/module/encoder.py | 845e220e59a1dd02f3abb3eeec33d31e13a09aba | [] | no_license | blodstone/Salience_Sum | 9795c2a1c03c86218a8c4560ba65f7d1ff5f65e8 | ce2e9e316a68c18bd523ba9e3d1e3ea286bbf068 | refs/heads/master | 2020-08-29T11:49:40.695618 | 2020-01-21T16:17:18 | 2020-01-21T16:17:18 | 218,023,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | import torch
from allennlp.modules import Seq2SeqEncoder
from allennlp.nn.util import get_lengths_from_binary_sequence_mask
from torch.nn import LSTM, Linear, Sequential, ReLU
from typing import Dict, Tuple
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
@Seq2SeqEncoder.register('salience_en... | [
"hardy.oei@gmail.com"
] | hardy.oei@gmail.com |
75f027c569ffff1f16c7bb74496f8f376e04a6b1 | 9a2593b422605d6254553b3f003d136fd0104514 | /exercise-submission/day2/Dalyo_OURBA.py | be74e506d194fab813f986ec639bd2f9618bcb3a | [] | no_license | sokharsamb/AIMS2019-Dakar-BigDataCourse | c577a327e78b536c678dd7789422011270c75d6b | 0733272c568e6dabac02f8815465411be5999f15 | refs/heads/master | 2021-11-24T23:58:22.303402 | 2021-11-04T18:46:50 | 2021-11-04T18:46:50 | 196,364,855 | 2 | 1 | null | 2019-07-11T09:37:25 | 2019-07-11T09:37:25 | null | UTF-8 | Python | false | false | 9,095 | py | """
GENERAL INSTRUCTIONS
WARNING: For Python beginners:
the instructions here will only make sense after you have gone through and
completed the training materials.
1. WHICH PART TO CHANGE?: Uncomment every line with [YOUR CODE HERE] and replace it with your code.
Please don't change anything else other than these li... | [
"dmatekenya@gmail.com"
] | dmatekenya@gmail.com |
2ceaf54794a3cce04452020476266a759c4a6b1f | 0a86abffabe7ab55071b845245aa66bfeca0ad60 | /tf_lib/__init__.py | 28eed73f3d6307efe7580438326d12c14281fefe | [] | no_license | lttsh/CVAE | 93018a9e80567f18bf0e971484fe769f6630c6bd | 55044ff9953e69e39c8481d0cfcb630fbb450e0d | refs/heads/master | 2022-02-24T02:13:13.659972 | 2019-08-22T01:15:30 | 2019-08-22T01:15:30 | 202,025,368 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | import tf_lib.datasets
import tf_lib.loaders
import tf_lib.trainer
import tf_lib.utils
| [
"lshao2@slb.com"
] | lshao2@slb.com |
e7a93d4b82e4218fcdd25cd67933e675a3c21dfd | f363b0405df50ec6fa2292a928c2b448cc049831 | /main/chapter2/itemcf.py | aa6ca73765dbdcbefda72de6bec11d36ae9e3867 | [] | no_license | CJuanvip/Practice_Recommender_System | ccb711a03cadd1db6f00dc67e6122c334057ce9a | 8f5d1c06deed6714fcfb61da06dee73f98dbff54 | refs/heads/master | 2023-01-19T19:33:44.234923 | 2020-11-29T20:46:53 | 2020-11-29T20:46:53 | 316,509,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | #!/usr/bin/python3
# coding=utf-8
'''
Created on 2018年6月15日
@author: qcymkxyc
'''
from main.chapter2 import UserCF
from collections import defaultdict
import math
from operator import itemgetter
import sys
from main.util.utils import load_file, save_file
class ItemCF(UserCF):
"""基于物品的协同过滤矩阵"""
def __init__(... | [
"e0253722@u.nus.edu"
] | e0253722@u.nus.edu |
2a9bf81297de2e77ef26a208ce9dd789aafb71d2 | 40248f9e5ed813fbb966df515ece9193cebf889d | /exapi/request_creators/hitbtc/market_data/interface.py | a1dc6f761c714843d5db467ba83515a00f5001a5 | [
"MIT"
] | permissive | astsu-dev/exapi1 | 29bc22e0949e835d6ea6887e9c52288584a095eb | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | refs/heads/main | 2023-05-08T20:08:18.435247 | 2021-06-02T11:25:11 | 2021-06-02T11:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,161 | py | """Has interface for hitbtc market data request creator."""
from typing import Optional, Protocol
from exapi.request_creators.request import Request
from exapi.typedefs.hitbtc import (CandlesPeriod, Currencies, Currency,
IntervalValue, SortBy, SortDirection,
... | [
"you@example.com"
] | you@example.com |
e2cdd67804b10dbb8d7efd074a76bbc88d419696 | 4dba84f7fad05cb5b83bad50833612489de3ac08 | /arrow_pattern.py | f12cf46ab2902af62523a210263ea564dda63da9 | [] | no_license | abhi55555/Hello-world | 806deb5c235093b991c9e61555c9323e20deba9a | a27841742b133996fdab8b5c503ca0efeaef4638 | refs/heads/master | 2020-04-23T17:19:06.738510 | 2019-05-31T12:19:16 | 2019-05-31T12:19:16 | 171,327,492 | 0 | 0 | null | 2019-02-20T20:25:31 | 2019-02-18T17:33:59 | Python | UTF-8 | Python | false | false | 462 | py | n = 20
t = n // 2
for i in range(1, t + 1, 2):
print(' ' * ((t - i) // 2) + '*' * i)
for i in range(n // 4 - 1):
print(' ' * ((t - 1) // 2) + '@')
for i in range(n // 4 + 1):
print(' ' * ((t - 1) // 2) + '@' + ' ' * (t - 1) + '*' * i)
print(' ' * ((t - 1) // 2) + '@', end='')
for i in range(n // 2 - 1):... | [
"33001714+abhi55555@users.noreply.github.com"
] | 33001714+abhi55555@users.noreply.github.com |
9517ed06bde725ef78093612d14e7ddf41d86c4a | 681e8ba7417edafb02e7a8708748c02e0a5c5fad | /dev_builds/oto2016_11_23/OTO_vue_souris.py | 5944ef77bb34af2adfc4c4ccb159b47130c6ad78 | [] | no_license | Akiro78960/Intelli-Car | 3987f3bdcc36d3a7d920baaaa013512b6224c87c | 78a1125c4eca77f290ed6ec82bbffa1db1480749 | refs/heads/master | 2021-01-19T14:15:56.128755 | 2016-12-07T14:38:51 | 2016-12-07T14:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py |
import bge
#import time
import bgui
#lg=bge.logic
#rd=bge.render
#rd.showMouse(1)
def mainSouris():
obj=bge.logic.getCurrentController()
if obj.sensors["Mouse"].positive and obj.sensors["Mouse1"].positive:
pass
#print(obj.sensors)
#print("OK",obj.sensors["Mouse"].hitPositi... | [
"evan.brosky@gmail.com"
] | evan.brosky@gmail.com |
fd9a779ee31d4fad10c81bbf51d610bf3c2ed530 | 0b96015603d709b37dbd522ebae0a3b367e8e82f | /Tags/heads/80.png.py | a945a0b029e4b2ef8c456fb24ee9cb955f148741 | [] | no_license | AWilcke/ClariFight | ccbbfec08192b029ce13ed11fc6967550ede74ce | d1689025c5087c70f2c33ad80d8417b45b4ebd01 | refs/heads/master | 2021-01-11T11:17:27.446503 | 2016-03-10T19:32:00 | 2016-03-10T19:32:00 | 53,609,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | {"profile": "0.974092483521", "hair": "0.91241133213", "hairstyle": "0.996788263321", "fashion": "0.997870385647", "jewelry": "0.93635571003", "curly": "0.955452501774", "people": "0.993453621864", "dress": "0.908811211586", "individuality": "0.916719317436", "one": "0.99091988802", "glamour": "0.992386758327", "girl":... | [
"arthur.wilcke@gmail.com"
] | arthur.wilcke@gmail.com |
5777394da90b2decc1962dac71b63847e4a0847c | bef13bdcfdcccb7c77944a1591c1d333efbf6c08 | /HW1/String/Alphabet Rangoli.py | 47d72ed7056d848ed7fe7474bd397cf2137b346b | [
"MIT"
] | permissive | danial1371/ADM-HW1 | a18cb0f5d14c557b9d7050c20134f803bb2d2911 | 30c8b7879b14d29dddf6e20192f7e0fea2466cf9 | refs/heads/main | 2023-01-01T02:05:54.115347 | 2020-10-25T22:15:52 | 2020-10-25T22:15:52 | 306,909,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import string
def print_rangoli(n):
alpha = string.ascii_lowercase
L = []
for i in range(n):
s = "-".join(alpha[i:n])
L.append((s[::-1]+s[1:]).center(4*n-3, "-"))
print('\n'.join(L[:0:-1]+L))
if __name__ == '__main__':
n = int(input())
print_rangoli(n) | [
"noreply@github.com"
] | danial1371.noreply@github.com |
2b149a759936616df7de6403e9ccee147214a654 | 7025bda64ac1e9d472bc8bfe40981c517e3c1e46 | /Password_Cracker.py | 1f3692bad9bbaa3e4634a4c1944032e626315523 | [] | no_license | SzymoRatajczak/PasswordCracker | aeb642b845def52eb8a14ff77c7e66446651dfbd | c4cf45967aa97229bc4d9d689fe41bcea692ecbb | refs/heads/master | 2020-09-16T03:08:16.484551 | 2019-11-23T18:03:34 | 2019-11-23T18:03:34 | 223,631,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import crypt
def crack(pas):
salt=pas[:2]
wordlist=open('usr/share/wordlist.txt','r')
for word in wordlist:
word=word.strip('\n')
enc=crypt.crypt(word,salt)
if(enc==pas):
print('Password was cracked:'+word)
else:
print('Password cannot be c... | [
"noreply@github.com"
] | SzymoRatajczak.noreply@github.com |
7fda0ad362d063c3c2f53573555b544d534b230e | e9dd23f575a9d3e3eb72fd20b155ad8b93a1a6fd | /SHCHGui/CalendarUI.py | 4e91d8c91b4031aec5d04cf98fa15d282fe0caf5 | [] | no_license | xiangyuw123/SHCH_BDF_Tools | ca3677a70e772a1bedcfee8703a40dc6d6e194ec | d244075b2a90a4236716b1dea67238e2843a9ff2 | refs/heads/master | 2022-12-04T13:56:12.923137 | 2020-08-28T08:11:25 | 2020-08-28T08:11:25 | 290,937,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,973 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 8 14:13:05 2020
@author: 123
"""
# -*- coding: utf-8 -*-
import calendar
import tkinter as tk
import tkinter.font as tkFont
from tkinter import ttk
datetime = calendar.datetime.datetime
timedelta = calendar.datetime.timedelta
class calendarWidget:
def __init__(s,... | [
"xiangyuw@umich.edu"
] | xiangyuw@umich.edu |
ad33747c00bc3429bacdc1bf31667c00daab67fc | 5f09c2581c28751589871068d1faa9297859d2f3 | /insert_banco.py | 737b50ad7286cc87824d9969603d863b81f055e2 | [] | no_license | fandrefh/curso-python-e-django-senac | f68b4b4ce7071ac78034afdaf63251ed0422fa56 | 8a418a7d9acd12c3ca8820c5589d5d02476d3d0c | refs/heads/master | 2021-01-20T20:28:53.311346 | 2016-08-27T20:48:44 | 2016-08-27T20:48:44 | 65,097,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import sqlite3
conn = sqlite3.connect("clientes.db")
cursor = conn.cursor()
cursor.execute("""
INSERT INTO cad_clientes (nome, idade) VALUES ('Regis', 35);
""")
cursor.execute("""
INSERT INTO cad_clientes (nome, idade) VALUES ('Aloisio', 87);
""")
cursor.execute("""
INSERT INTO cad_clientes (nome, idade) VALUES (... | [
"fandrefh@gmail.com"
] | fandrefh@gmail.com |
47ec0b8daf1be246726bb38689c9967a2047b1d3 | 76050b0002dac757866a9fb95dc199918da665bb | /acme/utils/iterator_utils_test.py | ebe21f3a602dbf5b91ce2fc5ab468a73080be58f | [
"Apache-2.0"
] | permissive | RaoulDrake/acme | 2829f41688db68d694da2461d301fd6f9f27edff | 97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c | refs/heads/master | 2022-12-29T01:16:44.806891 | 2022-12-21T14:09:38 | 2022-12-21T14:10:06 | 300,250,466 | 0 | 0 | Apache-2.0 | 2020-10-01T11:13:03 | 2020-10-01T11:13:02 | null | UTF-8 | Python | false | false | 1,249 | py | # Copyright 2018 DeepMind Technologies Limited. 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 ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
71f8e48ac7187f8012e3da7093cb4d2d812e2023 | 00fbdd922ffa68ac67bcb99a6dd8450065769cc1 | /ba2-104-7.py | 9295606efc705ba727e1b2c2a5ec35168f5a4a20 | [] | no_license | lukewang7/bioinfo | f083077f2d1ca24b7ccf5b62ea645c67ddfbfa30 | cf5081f435e98bfe355b09ef8ae21efd6493be40 | refs/heads/master | 2021-01-20T09:00:37.684765 | 2015-06-21T00:02:58 | 2015-06-21T00:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | import sys
from collections import Counter
minval = 57
maxval = 200
cyclos = {}
scores = {}
spectrum = Counter()
elements = []
leaderboard = [()]
leader_peptide = [()]
leader_score = 0
max_weight = None
N = 0
M = 0
#runs a convolution of spectrum to get M most frequent elements
def get_M(M, spectrum):
allweights =... | [
"anachesa@gmail.com"
] | anachesa@gmail.com |
bdb18e3f32676784b2de62e0014c030128a9383d | ea31a366cd897b2aa1d286a26dcd9c8e10e72c25 | /airflow/plugins/kaggle_elt/kaggle_dbt_source.py | d81bece33f752898d83f2fd8519f5f6eb8cbbd14 | [] | no_license | Beetelbrox/accident-information-challenge | d533468c628e1a6453ef0ceffe257480434d2239 | 4e6594013eedf8a73f0edc4e4cc7420a19bff829 | refs/heads/main | 2023-06-18T12:37:50.184600 | 2021-07-16T22:02:18 | 2021-07-16T22:02:18 | 385,966,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,428 | py | import os
import yaml
from typing import Dict, Any
class KaggleDbtSourceTableColumn:
"""A class representig a dbt source column, enriched with the kaggle metadata"""
def __init__(self, dbt_yaml: Dict[str, Any]):
"""Constructs all necessary attributes for the object from a parsed dby .yml file"""
... | [
"9376816+Beetelbrox@users.noreply.github.com"
] | 9376816+Beetelbrox@users.noreply.github.com |
230d4677c465eea7cfbd8f9c140668c97d6c6b4a | dd5a81524d533a7030c164931d6fb03ba721657a | /Hack assembler/assembler.py | 1ac2b1c4398e8f39acd666f2958315afebdec293 | [] | no_license | RakibRyan/nand2tetris-1 | 5e159757e8b88a9c26ca16d609ec64c3b0dc6a24 | 02904220dadb41a450e7d60d5cdd8191ff76ed90 | refs/heads/master | 2022-02-09T03:27:29.607433 | 2019-07-13T17:07:57 | 2019-07-13T17:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #!/usr/bin/python3
"""
Hack machine language assembler
https://www.nand2tetris.org
@author: shubham1172
"""
import sys
import argparse
from parser import Parser
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument('path')
args = arg_parser.parse_args()
file, data = None, None
try:
file = open(args.path... | [
"shubhamsharma1172@gmail.com"
] | shubhamsharma1172@gmail.com |
5b683b99c44e491339df51fa623bbbc58b8347c9 | 553b5806d7fd69258e699d1eddefa005e5e9f3bd | /Algorithms/Tuples.py | 435009038fcc8d62c5bf4ff9e244f581c42b9be2 | [] | no_license | ShaftesburySchoolDorset/PythonIntroAlevel | 7c2c8d9c7c0091e8721fbcad158b994f19d16811 | 47aaf0d6905495046e1ef9f0e0503ea6de234338 | refs/heads/master | 2021-01-24T08:48:58.140811 | 2017-05-02T10:48:41 | 2017-05-02T10:48:41 | 69,012,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #!/usr/local/bin/python3
ta = 1, 2, 3, 4
tb = (1, 2, 3, 4)
print(ta)
print(tb)
print(ta[0])
#ta[0] = 12
print(ta + tb)
def squares():
values = []
for i in range(1, 21):
values.append(i ** 2)
return tuple(values)
print(squares())
| [
"gcomplin@gmail.com"
] | gcomplin@gmail.com |
74bc60d0e44d130fdca4152fa6528656aeb5e24c | d3bf647ba8c99c3ff13c0cf66e03d5c2f52e26a5 | /dsa/temp.py | ee23c59fb9463e778a491b8047847ae0c65a155f | [] | no_license | jyale/blackbox | 8d9ce11ca97087f7e03e39b2c85aea2e2df4d0f1 | 975c853a69154e58f037cf041d6c2d513f148796 | refs/heads/master | 2020-03-28T01:05:00.332105 | 2013-06-20T20:14:37 | 2013-06-20T20:14:37 | 10,828,404 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | from Crypto.Random import random
from Crypto.PublicKey import DSA
from Crypto.Hash import SHA
################################
# LINKABLE RING SIGNATURE CODE
################################
key = DSA.generate(1024)
p = key.p
q = key.q
g = key.g
# generate private keys
x1 = random.StrongRandom().randint(1,q-1)
x2 = ... | [
"jyale@---.com"
] | jyale@---.com |
e0484f2e58aab4de9e567907b0778dc57f18cc34 | 574d7955a32116e2fa315b5f75f124863ca70614 | /blog/admin.py | ee30581a5a79496780dd1cb38aa3d14fd815c3c0 | [] | no_license | harunurkst/django_course_04 | b15cb8e52a821b1157e1ac4dbe56b89fdebce848 | 5d93290cbee0f47795b6c9ecef8d33d8afe859d1 | refs/heads/master | 2022-11-22T20:48:36.196279 | 2020-07-26T17:20:37 | 2020-07-26T17:20:37 | 278,904,995 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from django.contrib import admin
from .models import Post, Author, Category, Comment
class PostAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("title",)}
admin.site.register(Post, PostAdmin)
admin.site.register(Author)
admin.site.register(Category)
admin.site.register(Comment) | [
"harun1393@gmail.com"
] | harun1393@gmail.com |
e3e6ba2f90be69ce473c4e202b7654e7116b46be | 97fbecfb57cb605114f50fccdbdf79ec2420d8ff | /osf/migrations/0080_add_abstractprovider.py | 2c2bab38453a9b4ecfdbf84fc5b3437b05e4dfbf | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | pattisdr/osf.io | ffa259465304beb4212c42f26a8811743b3cdf24 | 2a8bdf358bb67f0ad5a9e7bb7ac9a329b98e8825 | refs/heads/develop | 2020-12-26T01:13:56.958648 | 2019-06-11T13:39:00 | 2019-06-11T13:39:00 | 35,900,874 | 1 | 1 | Apache-2.0 | 2019-10-30T13:49:15 | 2015-05-19T18:33:09 | Python | UTF-8 | Python | false | false | 9,581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-02-15 19:48
from __future__ import unicode_literals
import dirtyfields.dirtyfields
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import osf.models.base
impor... | [
"maf7sm@virginia.edu"
] | maf7sm@virginia.edu |
c4fdac06da50ef0fa06741cf8c8cfa9c834776fb | bf6cf5e55349e414ccca0fc674f721f589e06e8f | /src/forum/migrations/0005_auto_20170610_2010.py | c9a5282f5b3c56db1765f20b66b71acfa3144eaf | [
"MIT"
] | permissive | shashankmohabia/gymkhana-master | cc7e3db4847edc2f91fc752da2fc35ad055f237d | a0d399d781797a2f63fb81a1ae287714213d068b | refs/heads/master | 2021-05-03T10:29:29.596959 | 2018-02-06T23:27:16 | 2018-02-06T23:27:16 | 120,535,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-10 14:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forum', '0004_auto_20170610_2006'),
]
operations =... | [
"shashankmohabia27@gmail.com"
] | shashankmohabia27@gmail.com |
bb1cdd39e5a42df923644cd0545ed8af6c329188 | 5de1aecd976ce222efc4d86b1efd65185eaa4f46 | /TD3.py | 6120bcc1b72e8028e779a22c1947d47f0db3df1a | [] | no_license | THBUer-yw/DOIL | cb093d164ecc79a4f15045c9b3d25b521dfc40e2 | d5cc75a356d67e65e1e09c9ca02db15e23313eb3 | refs/heads/master | 2023-05-14T14:22:09.156903 | 2021-05-31T08:22:16 | 2021-05-31T08:22:16 | 324,306,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py | import copy
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
# Implementation of Twin Delayed Deep Deterministic Policy Gradients (TD3)
# Paper: https://arxiv.org/abs/1802.09477
class Actor(nn.Module):
def __init__(self, state_dim, action_dim, max_action, num_hidden_layers):
su... | [
"13261059591@163.com"
] | 13261059591@163.com |
eb1c93b1147d8ab10aef657ea6ff65381154bc2d | 4530ee48b594bb7ecd6832fd8de08115d94c2cfc | /pytest.py | c2b6a689de5f696743364e5f9790cdc573f0d8ae | [] | no_license | SeananTQ/bbq-server | 186e6a8126269a2ef750849b73c8742262235fbf | 90ab7bb5d1b6f654e09d981640f56fe76da169f2 | refs/heads/master | 2020-03-10T02:06:05.332300 | 2018-04-29T17:10:11 | 2018-04-29T17:10:11 | 129,127,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import json
class Group:
def __init__(self, aa, bb):
self.aa = aa
self.bb = bb
temp = Group("aaaa", "bbbb")
print(temp) | [
"38140149+SeananTQ@users.noreply.github.com"
] | 38140149+SeananTQ@users.noreply.github.com |
8f1d9b9c7f0d83582637adb178f4567c71ee05ee | 9ebbe3fedeb1ca31603bc555fcce87b883781052 | /7. Data Structures/graph.py | 902ca0ced6ce9128ea76b1f33c26cb501cb32790 | [] | no_license | TMJUSTNOW/Algorithm-Implementations | 5db118756de998460a91e09217b9b84ac235bae9 | 552a98c86840ce5876ad516677bb0dafcc7f257e | refs/heads/master | 2021-06-02T06:49:04.105530 | 2016-09-30T05:22:45 | 2016-09-30T05:22:45 | 105,765,850 | 0 | 1 | null | 2017-10-04T12:30:14 | 2017-10-04T12:30:14 | null | UTF-8 | Python | false | false | 13,126 | py | # TODO: Convert Dijkstra processed dictionary to array
# A set of data structures to represent graphs
from queue import Queue
from heap import MinHeap
import sys
class Node(object):
def __init__(self, name):
self.name = str(name)
def getName(self):
return self.name
def __str__(self):
... | [
"mdsalerno@gmail.com"
] | mdsalerno@gmail.com |
46b615398d8bcde373699b18aa5c12cde8c97045 | aa84cae5ab53d7f426c86cd0cf0df3e288fd1e8d | /hsm/migrations/0014_datetest.py | 2f7867b8edab5ed9d703beb57407c46e96e85051 | [] | no_license | ali-man/AppReception | 6603dfec85cb1ff792c69cf2bb060f671a237c17 | 734669fcda4f0643c5f30d6da7d59a7a87c7de9a | refs/heads/master | 2020-05-04T21:33:50.194166 | 2019-06-12T14:35:42 | 2019-06-12T14:35:42 | 179,481,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 2.2 on 2019-04-16 11:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hsm', '0013_auto_20190414_2002'),
]
operations = [
migrations.CreateModel(
name='DateTest',
fields=[
(... | [
"aliman.fsd@gmail.com"
] | aliman.fsd@gmail.com |
33479b018326b141432225a386b4a3eaf5c3298a | e9ed5c06e172b939461c2b6b594adc8d4601bbda | /LPythonB/shorten_url/controller.py | f6a77c89df4271b1e3220d16eb204d0475fbd507 | [] | no_license | Qiong/ycyc | e65bd4a882a0ba10dcc6b95648fb3fc19f110239 | df3805aa6ac1b13e8707b8b49f8171d18eed8202 | refs/heads/master | 2016-09-06T14:21:21.066282 | 2015-06-06T21:44:29 | 2015-06-06T21:44:29 | 19,927,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | # Redirect function is used to forward user to full url if he came
# from shortened
# Request is used to encapsulate HTTP request. It will contain request
# methods, request arguments and other related information
from flask import redirect, render_template, request, Flask
from werkzeug.exceptions import BadRequest, ... | [
"qiongfei.seas@gmail.com"
] | qiongfei.seas@gmail.com |
36e916c8090b3c04f5c332984140f1c1e3aa7642 | 98c590e21c004225dd6095a1ae925b7da6bdb627 | /meal_prep_app/migrations/0035_auto_20210615_1658.py | a0656b825dd8dbffe2d873b9f42df34d2d073562 | [] | no_license | xwosic/meal_prep_project | 10abdc2f1b140b10eda71e023085b1c851854036 | 72f53a02992694e3a5d0235b278e9224ed5cf4cd | refs/heads/master | 2023-06-15T21:08:37.965948 | 2021-07-14T11:57:59 | 2021-07-14T11:57:59 | 385,912,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.7 on 2021-06-15 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meal_prep_app', '0034_remove_shoppinglist_amounts'),
]
operations = [
migrations.AlterField(
model_name='shoppinglist',
... | [
"mcisow@gmail.com"
] | mcisow@gmail.com |
e131f4ceced2b0d9f4007477785d44916f46a583 | 50272366e3d57aeb0cfc91a69dbd080b234647bd | /Users/views.py | 7946a226eaf36c74bd1a8c9562b8712a89a42dba | [] | no_license | Saumyaa27/Disease-prediction-and-patient-management-webapp | fb0fa5f9f77f968092c1df06d5abfcbaccadcff9 | ec08ece69a6d085a801316a9ec220a472aef02fb | refs/heads/master | 2023-01-03T07:48:28.244851 | 2020-10-27T12:23:31 | 2020-10-27T12:23:31 | 307,931,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,981 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.contrib.auth import authenticate, login, logout
from django.db import IntegrityError
from django.contrib.auth.decorators import login_required
from .models import User,Patient,Doct... | [
"mahajanparth19@gmail.com"
] | mahajanparth19@gmail.com |
60f85b79ba416594b640d3e783cafbb958ce74b0 | cfd6d3c89e684cd233efa61d07e79316d243b66a | /Code/Fake Blog/This.py | dfae5241ec1b4d07126309006df12af16ea53d1f | [] | no_license | Jabungu/python | d8fc6ab8f671df5f2f947edb9564ca87bac4ea1a | fed591a29c44606f5274c5adc8f226d115dd3136 | refs/heads/master | 2023-03-22T13:56:56.137768 | 2021-03-08T20:23:58 | 2021-03-08T20:23:58 | 297,374,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | print('try')
| [
"joboderoh15@gmail.com"
] | joboderoh15@gmail.com |
c160dbc7cf0935e7f921ffa2272c88e9e446b3ea | 2489e59412d6a2d128d41d396a0e583ac8282c61 | /InsertionSort.py | d8bb3def437483ff5a5e832f8c7a115893a6e2b1 | [] | no_license | crb8v2/3130algs_proj2 | bd27084095b097d0008ed1e085fa30505729ca72 | 8b63004dc228ae5d4f326a3fd83b8cd34d81281e | refs/heads/master | 2020-04-01T19:08:18.256907 | 2018-10-24T00:19:43 | 2018-10-24T00:19:43 | 153,537,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py |
# http://interactivepython.org/courselib/static/pythonds/SortSearch/TheInsertionSort.html
from random import *
from timeit import default_timer as timer
import random
def insertionSort(alist):
for index in range(1,len(alist)):
currentvalue = alist[index]
position = index
while position>0 and ali... | [
"connor@admin.com"
] | connor@admin.com |
5c3b3f6888d640338b4b8142484c0632a9ddf488 | 710eb4463c6e7c49d3d64c1409557a885f0585bd | /Easy/1103_分糖果||/main.py | aab9b69889f701c4683b74aa74fe0c3f25a94b24 | [] | no_license | mintdouble/LeetCode | 8324d2eac2592542e84551dc740d17efc9859764 | 29b1cf8ce6fd883818c3f092dbcbfd435e54b8f3 | refs/heads/master | 2020-08-27T08:00:41.545474 | 2019-11-22T08:55:43 | 2019-11-22T08:55:43 | 217,292,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # 思路:找到每个人每轮获得糖果的通项公式,根据通项公式得到求和公式,就可以根据分发轮数一次性得到该人最终获得的糖果总数
import math
class Solution:
def distributeCandies(self, candies: int, num_people: int) -> List[int]:
max_people = int(math.sqrt(2*candies+0.25)-0.5)
remain_candies = candies - (max_people*(max_people+1)) // 2
epoch = max_people // ... | [
"noreply@github.com"
] | mintdouble.noreply@github.com |
96a43ae78f3ba03b1c8502952406d7f35f3535b6 | a45f64b5bbbb4ba3321ad171288afd62e969e630 | /Contact-Management -System/Contact-Management -System/Contact-System.py | 5275042ce4b58a80896fc927ce5d3e3a8dc2e36d | [] | no_license | shivam-mahato/test | 8c6374817646075e7f0a3fe66124dc539c3213aa | f15dd498fba2dfb0e69e976d37c06ccb1fd4451c | refs/heads/master | 2023-05-05T06:36:14.238717 | 2021-06-01T04:42:39 | 2021-06-01T04:42:39 | 372,701,677 | 0 | 0 | null | 2021-06-01T04:42:39 | 2021-06-01T04:35:00 | Python | UTF-8 | Python | false | false | 16,486 | py | # This
from tkinter import *
import sqlite3
import tkinter
import tkinter.ttk as ttk
import tkinter.messagebox as tkMessageBox
root = Tk()
root.title("Contact System")
root.geometry("700x400+0+0")
root.resizable(0, 0)
p1 = PhotoImage(file='images/icon.PNG')
root.iconphoto(True, p1)
root.config(bg="dark gray")
# VA... | [
"shivam-mahato"
] | shivam-mahato |
a7952a9685c8a7d0c16b7e21cba095dabb0d61bd | 23da3316b2ad2cbd0b3b8091458c262e6173ce24 | /cod/test_collection_4_dict.py | 70e6f3b438802d8818a6d3241e7ff86f32023742 | [] | no_license | babelcodes/python | 6d3dd9100aed98a37e77129794b3af11c8f89e55 | 86b306c0416e371a3a8f37a3a5d3fec42ce448df | refs/heads/master | 2020-04-13T12:49:10.383718 | 2019-01-02T08:15:54 | 2019-01-02T08:15:54 | 163,212,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | import unittest
class TestDict(unittest.TestCase):
"""A dictionary (or hashmap) is a class for key / value representation"""
def setUp(self):
self.occurances = dict(a=5, b=6, c=8)
def test_create(self):
self.assertEqual(self.occurances, dict(a=5, b=6, c=8))
def test_create_with_func... | [
"jacques@2ia.net"
] | jacques@2ia.net |
64ec23c48be93c3136600c02443e4ac2a6a55ecc | d69ed5cfab7bdcc4125f9f4f4d3531ce00a94fce | /codes/rosenbrockfunction.py | fae2567587c1825fc91f6af8dd7d2f46fd814373 | [
"BSD-2-Clause"
] | permissive | hanzhuowei/deeplearningliterature | 1f84b081377f74f07bae0dfa09aaa22a0e7b610c | e9f58b7edf1e76850c91e2a868752f40f5fae37b | refs/heads/master | 2021-01-01T20:48:02.124811 | 2015-04-08T13:03:35 | 2015-04-08T13:03:35 | 25,296,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 6 14:37:17 2015
@author: d1143
"""
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.colors import LogNorm
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = Axes3D(fig, azim = -128, elev = 43)
s = .05
X = np.ara... | [
"d1143@pc226.(none)"
] | d1143@pc226.(none) |
5ae45e5f638e154d0d9da7e58147b5cd60fd3360 | 05a1ea9da06020fd737e6e4bc1a370f253c47cf2 | /input/kinetics/families/Intra_R_Add_ExoTetCyclic/groups.py | cf6b8d5e594afb263a0eb949f220c3062362d10d | [] | no_license | alaraen/RMG-database | f16e8375b850f9e25885726fc2da4914e68963ca | cd9e2d27d9fe8a43e44de41ba482ee6dfeb12cf0 | refs/heads/master | 2021-01-18T08:55:56.859791 | 2014-06-17T02:33:27 | 2014-06-18T02:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,137 | py | #!/usr/bin/env python
# encoding: utf-8
name = "Intra_R_Add_ExoTetcyclic/groups"
shortDesc = u""
longDesc = u"""
"""
template(reactants=["R1_rad_R2_R3"], products=["R1_R2_Cycle", "R3_rad"], ownReverse=False)
reverse = "Ring_Open_Rad_Addition"
recipe(actions=[
['BREAK_BOND', '*2', 'S', '*3'],
['FORM_BOND', ... | [
"r.west@neu.edu"
] | r.west@neu.edu |
bdb0d8ac61f3466c665fc80a84a453800a648b70 | 631a48a47b969a211364baae450f9dfc4af7a5f3 | /CVRP_Skenario_4.py | bd3c79bf8c70b21653a0a9b67d871e99687c3376 | [] | no_license | Rierii/VRPManTrans | 52fdedc07a79f4df8afb8a3cddf8fa9294e8a089 | 304c10a2cb02b3dff2807c558beae9c92e5bf1b7 | refs/heads/main | 2023-01-23T03:34:59.204126 | 2020-12-11T11:35:23 | 2020-12-11T11:35:23 | 318,479,781 | 0 | 0 | null | 2020-12-11T11:35:24 | 2020-12-04T10:21:36 | Python | UTF-8 | Python | false | false | 4,866 | py | """SKENARIO 4"""
# Kapasitas 120, Jarak 35
from __future__ import print_function
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp
def create_data_model():
"""Stores the data for the problem."""
data = {}
data['distance_matrix'] = [
[
... | [
"audreyrizki@gmail.com"
] | audreyrizki@gmail.com |
ac7c12faf572165f8d8a4344ba7869bb8ca61cc8 | 6c7322cdbe9189bf51b4a7c7394ea5b181df2328 | /dev/IA/gauss_noise.py | bd1fce83801b9e7a55a802466e2b3be0411388af | [] | no_license | StenbergSimon/scanomatic | 4683f7f2c1330cc9cc998d1f83bed73afbe05e83 | db5dd2e8501d9db8fb0fd8fbf5c9ddd652ae8fdf | refs/heads/master | 2020-06-11T13:35:52.036072 | 2016-10-03T09:19:40 | 2016-10-03T09:19:40 | 75,655,065 | 0 | 0 | null | 2016-12-05T18:38:03 | 2016-12-05T18:38:03 | null | UTF-8 | Python | false | false | 610 | py | import numpy as np
class SigmaError(Exception): pass;
def gauss_noise(im, sigma):
if sigma <= 0:
raise SigmaError(
"Sigma ({0}) is not larger than 0".format(sigma))
return None
v = np.zeros(im.shape)
G = im.max()
theta = np.random.random(im.size)
r = np.random.rand... | [
"martin.zackrisson@gmail.com"
] | martin.zackrisson@gmail.com |
130a442d803e3f5aac86c565cd413cffa54efff7 | 56220461c0cf341a938be63b0f836626d4d86cab | /apivue/views.py | e9363d24e0539dd85522fd06cf2c4ba772af9827 | [
"MIT"
] | permissive | granith/productdevelopment | 68a79399cb1775b6f5339dbd8f696b6510cd0601 | 3b750d186092b95ea7f8c36aa19f6a9606727372 | refs/heads/master | 2020-03-29T02:27:23.037595 | 2018-09-25T15:04:02 | 2018-09-25T15:04:02 | 149,437,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.contrib.auth.models import User
from rest_framework import viewsets
from apivue.serializers import UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows users to be viewed or edited.
"""
queryset = User.objects.all()
serializer_class = UserSerializer
| [
"ghoda@designvox.com"
] | ghoda@designvox.com |
2c4021079c1f87e0901a6b63792636763cca4222 | 71fbc701cf090716b213b4025e0d96e73f452aa1 | /thonny/plugins/micropython/bare_metal_backend.py | e2c05ea6a3bf2167e2930a0585828115101b1047 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | bosige/thonny | 678f3ab05185dbead41b0a04c2db025834008fc9 | 78317670d1ec8e8cd39f4bb2e5c6a2927fedd7b3 | refs/heads/master | 2022-12-11T12:25:49.484079 | 2020-09-16T12:48:55 | 2020-09-16T12:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,084 | py | import binascii
import datetime
import logging
import os
import queue
import re
import sys
import time
from _ast import Not
from textwrap import dedent, indent
from typing import BinaryIO, Callable, Optional, Tuple, Union
from thonny.backend import UploadDownloadMixin
from thonny.common import (
BackendEvent,
... | [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
3157e2a88e41bb79673664c7282c66fc1660f782 | 54838734dd8a1a9b7ac329118081163b4b3a6892 | /src/utils/static_params.py | 707afb540e433ebda242a9ca7ac08fcc3843a404 | [] | no_license | pyliaorachel/SeqGAN-paraphrase-generation | b8e0e6a84e16571d02490739ab2e835dcd464fc3 | 8babe2b16dd1a495f7be2c07d40d57a79501eedc | refs/heads/master | 2020-03-25T03:57:11.079929 | 2019-07-28T20:44:02 | 2019-07-28T20:44:02 | 143,369,844 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import torch
DEBUG = False # Run for fewer iterations/epochs/steps
LIGHT_VER = False # Light version of dataset
NO_SAVE = False # Save model
START_TOKEN = '<S>'
END_TOKEN = '<E>'
PAD_TOKEN = '<P>'
CUDA = torch.cuda.is_available()
TRAIN_SIZE = 53000
TEST_SIZE = 3000
VALID_SET_SIZE_RATIO = 0.1
dataset_path = './dat... | [
"pyliao@stanford.edu"
] | pyliao@stanford.edu |
a6dcca2939618af8c91bc0e748a3952d91efa375 | d1d5818a3c85a92529d01e39e72cb46700a2ae66 | /weather/weather/urls.py | f700317356c93cfd4cadb50d6444b763c4f9b1ae | [] | no_license | spenrob/weather | c5fca0924c78f9a4cfa71fd389f91f844755520f | 553cf39062f4a9366869637c950f84e3ddb89d36 | refs/heads/master | 2021-01-23T21:01:43.927335 | 2017-05-08T20:38:04 | 2017-05-08T20:38:04 | 90,670,013 | 0 | 0 | null | 2017-05-08T20:38:05 | 2017-05-08T20:33:31 | null | UTF-8 | Python | false | false | 882 | py | """weather URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"noreply@github.com"
] | spenrob.noreply@github.com |
a7a5392cbe81404976148b44c2ac223acab5bdc2 | c8be480ca49549048defae246309edd4771f929e | /tests/test_lzf.py | 33c3860c4955e5ad8865dc3a8c851edf0cb37915 | [
"MIT"
] | permissive | darcyg/rdbtools3 | da79cc74218eaa22bd2884bc4f1450a86f57f7a8 | 7c92768299c35f18a479930335011e1b47f408ff | refs/heads/master | 2021-01-16T22:19:32.078545 | 2014-02-13T15:12:02 | 2014-02-13T15:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import unittest
from io import BytesIO
from rdbtools3.lzf import unpack_lzf
from rdbtools3.exceptions import RDBValueError
class TestLZF(unittest.TestCase):
def test_simple(self):
data = BytesIO(b'\x04ABCDE')
ret = unpack_lzf(data, 6, 5)
self.assertEqual(b'ABCDE', ret)
def test... | [
"alexey.popravka@horsedevel.com"
] | alexey.popravka@horsedevel.com |
74dda792922704aaaf898ddd4475c618ca61ec5c | 28cc34a7b9e77c3044768ff1ee6266b39f521932 | /cookiespool/db.py | b9f07e0dd81a97acff6a397b8699819319470f4e | [] | no_license | Foxgeek36/CookiesPool | 1d99267e78b6721709aa45635fdc1838efa57abb | 9088a29cc76368a570013211b431983b461239cd | refs/heads/master | 2020-07-09T16:50:47.339321 | 2019-08-25T06:30:17 | 2019-08-25T06:30:17 | 204,026,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # coding=utf-8
import random
import redis
from cookiespool.config import *
'''
[redis存储模块]
'''
class RedisClient(object):
def __init__(self, type, website, host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWORD):
"""
初始化Redis连接
:param host: 地址
:param port: 端口
:param pas... | [
"1002301246@qq.com"
] | 1002301246@qq.com |
e7f7098869934c8e98d694a44382c6cb60479ac5 | 717e0190612c20b9f5d26fec77e293c9b53f0e17 | /numpywren/binops.py | cc74dd808794dfddd673758ef5304f701452777c | [
"Apache-2.0"
] | permissive | cloudbutton/lithops-array | 8336e16cf9b80e8745ba9c63256294d2d7206a1c | 5e74b881c7db95eccdccf986f1e3b0dc44603889 | refs/heads/main | 2023-04-23T08:15:42.450676 | 2021-04-06T13:40:15 | 2021-04-06T13:40:15 | 344,418,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,962 | py | import numpy as np
from .matrix import BigMatrix
from .matrix_utils import chunk, generate_key_name_binop
from . import matrix_utils
import concurrent.futures as fs
import os
import lithops
import time
from . import lambdapack as lp
from . import job_runner
def _gemm_remote_0(block_pairs, XY, X, Y, reduce_idxs=[0], ... | [
"josep.sampe@gmail.com"
] | josep.sampe@gmail.com |
21ea6f623d63c27d406333f8b1c81b7bf7634102 | d247d0eae00007902a737840b1acb3347fe83c41 | /age.py | c04a2321936446426e66a2ea03af2d1732303ed9 | [] | no_license | vincentvmarshburn/example-repo-2 | 746b3c269ef6fc8d860f4b9c4850effdc1d6ee32 | 999d4eb4306f70e6f2c84cc089787a697c0a1a53 | refs/heads/master | 2022-09-03T16:23:07.363026 | 2020-05-29T18:30:52 | 2020-05-29T18:30:52 | 267,906,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | __author__ = 'noomatik'
from datetime import datetime
YEAR = datetime.now().year
name = input("What is your name? ")
birth = input("What is your year of birth? ")
age = YEAR - int(birth)
print("Hello %s! You are about %s years old." % (name, str(age)))
| [
"vmarshbu@mdc.edu"
] | vmarshbu@mdc.edu |
51e877e96f8a2a6aafafcea65468e4ae5512e5a6 | 71ae741529cab7c174997d0b0ff3f1968ff9e809 | /InsAndSel_Time.py | b9b0394083612b591e3af881e50529604a1c1c3e | [] | no_license | Sdancy/Database_stress_testing_for_mysql | 6200676b23059b21151702eec6cdcc81e562ee47 | cd08ca13d7f0dbe4dadf8a56e8e1d3a21ccbc7a3 | refs/heads/master | 2023-01-25T01:08:52.479964 | 2020-12-07T13:38:31 | 2020-12-07T13:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | import pymysql
import time
import random
import string
connect = pymysql.connect(
host='127.0.0.1',
user='root',
port=3306,
passwd='000606',
db='short_video_platform',
use_unicode=True
)
def SelectTime():
begintime=time.time()
cur=connect.cursor()
sql="SELECT ID,NAME FROM users " \
... | [
"785565314@qq.com"
] | 785565314@qq.com |
5e2be6a66278427ebc2e1b6afcf0da997df8679c | 2a435bb6ecc2b3d2df0bca62aa990312b313ff8d | /pointer/urls.py | c6f3cd054e4c7e31dc6a8cea3c5bf4f5e6dd8f5f | [] | no_license | singlasahil221/My-CGPA | 331809e2343989556c6b208fb3414f9039551afd | c651956de4973be1057f3f15dd04a4334a40ff66 | refs/heads/master | 2022-12-12T14:55:36.755727 | 2018-02-16T05:40:27 | 2018-02-16T05:40:27 | 120,011,982 | 0 | 1 | null | 2022-05-25T00:25:35 | 2018-02-02T17:42:20 | Python | UTF-8 | Python | false | false | 173 | py | from django.conf.urls import url
from django.contrib import admin
from calc import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.home),
]
| [
"singlasahil221@gmail.com"
] | singlasahil221@gmail.com |
8d73fc202896546a4b0c2a8aeb2e10eea7ad3ffb | b26f593233e5ce81ec79e50a9fa016ab3142f5b0 | /data_prep.py | c4847ab1b1d52898db06f6dfb43f72f76b38e633 | [] | no_license | UoA-CS760/autocomplete-predictor | 62128c8701c8c1d77664f1b52e4a32f21df05e02 | 3efd4499ce3fd80b5e2b0b3cb24e1bc099878c6a | refs/heads/master | 2023-02-10T16:01:54.996187 | 2021-01-10T02:13:07 | 2021-01-10T02:13:07 | 289,842,950 | 3 | 0 | null | 2020-10-24T02:47:43 | 2020-08-24T06:09:21 | Python | UTF-8 | Python | false | false | 2,032 | py | import json
from generate_vocab import UNK, PAD
import torch
###################################################
# See train.py for example usage of these classes #
###################################################
class Tokeniser(object):
def __init__(self, vocab_filepath="vocab.json", vocab_size=100000, max_seq... | [
"36907139+OptimusPrinceps@users.noreply.github.com"
] | 36907139+OptimusPrinceps@users.noreply.github.com |
338cee3b8aec81de8bf5fd76d3dca9945f54b52e | 796dd05d84c56d0873797b29be58247b1be782c6 | /spotseeker_server/migrations/0002_auto_20181029_2244.py | 31696e5f9941b7a353b9fb758f10d5ac5badbae7 | [
"Apache-2.0"
] | permissive | uw-it-aca/spotseeker_server | 039e65824887a8303f12a3f07e730ca061bab2d5 | 5f21a58b4084d798b1c4f87721b63bad01ac4f36 | refs/heads/main | 2023-08-16T08:53:38.124987 | 2023-04-14T21:41:34 | 2023-04-14T21:41:34 | 11,489,866 | 6 | 7 | Apache-2.0 | 2023-08-15T22:45:30 | 2013-07-17T23:18:17 | Python | UTF-8 | Python | false | false | 1,081 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('spotseeker_server', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='spacereview',
... | [
"cstimmel@uw.edu"
] | cstimmel@uw.edu |
bb17b14f9cc0eaaeb740793ec62035edb8637a1f | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/surface/privateca/subordinates/activate.py | f9f73fb40b0bb8a564338a2a28bed7e1e5cf84c6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 3,547 | py | # Lint as: python3
# -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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.... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
da8bf2b9c61541005f63641740d9613f6612a029 | 77afbf0a99d958fe497567c5fb03074e66cfa3d5 | /batch/weather.py | 680003d60fadbfbc20de78db5106524d3b41f93c | [] | no_license | tmkokumura/smarthouse | c402a2e0eca727734707f6849c54983da168e781 | b3b3b6d7d1cbed50fc7a3dc7becbbbd99e6108d3 | refs/heads/master | 2020-03-30T07:32:35.331574 | 2018-10-31T12:40:49 | 2018-10-31T12:40:49 | 150,947,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import time
import json
import requests
import logging
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from util import db_utils
log_fmt = '%(asctime)s %(levelname)s %(name)s :%(message)s'
logging.basicConfig(level=logging.DEBUG... | [
"tmkokumura@gmail.com"
] | tmkokumura@gmail.com |
d7f8652cf41ebb2091d7a5b13cabad387a52e6f3 | fbf005bcb1193a7701682b690b660337ac8055d8 | /client.py | ad979610ed308a92fe549857c7478b1b20c40820 | [] | no_license | ZubnayaFeya/messenger | ede708f2a98fb6ca559334094345146662f7e93c | 095f2a4744cd9ab022587841fdc0e8c786eaabb3 | refs/heads/master | 2021-09-10T16:31:30.437000 | 2018-03-29T10:18:36 | 2018-03-29T10:18:36 | 125,897,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | import socket
import json
import argparse
#from time import ctime
from type_msg import *
import jim
class CClient():
def __init__(self):
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect(('localhost', 7777))
def prepare_data(self):
type_data = f_presence(... | [
"danilal@mail.ru"
] | danilal@mail.ru |
565df863bafd4d071e2abce34fb7d1f3ab74c0b6 | b2b2ce788e8400090a238422d03cb39e806966f7 | /leadmanager/leadmanager/settings.py | aacb3fd6f3fadbf88f7c1a02d1dce9cfa15d8501 | [] | no_license | shubham1811/hireScript | b638f2793b0d8004d0f18d47918d82e740ac26f4 | 018f361b8d883c9333cf2a95203ece77ee9f9c23 | refs/heads/master | 2020-04-27T05:48:51.835073 | 2019-03-06T07:38:55 | 2019-03-06T07:38:55 | 174,091,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for leadmanager project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"shubham.h.kumar123@gmail.com"
] | shubham.h.kumar123@gmail.com |
b5d120899fc051df048d8bcf9537e1aa5cfe2f87 | aa69f3a171e44eb245dd18739c2691b35c31eee7 | /sort.py | a8a478a78633497ed9153bd8cca4b59ebb904245 | [] | no_license | marjoriehoegen/sort_log | 094ed8b3bc7cfa54ee4bf67b9f6d235be70f899b | 29238c90089113b60e05da90a199c7544057d50f | refs/heads/master | 2020-03-29T20:58:16.170094 | 2018-09-26T00:00:30 | 2018-09-26T00:00:30 | 150,341,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import os
import glob
from heapq import merge
from itertools import count, islice
from contextlib import ExitStack
filenames = []
# open file
with open('huge_dummy.log') as input_file:
for file_number in count(1):
# read in next 20k lines and sort them
sorted_file = sorted(islice(input_file, 2000... | [
"marjoriehoegen@gmail.com"
] | marjoriehoegen@gmail.com |
a61fccbe20617a3299561785e06bcc602feb0a7e | 6e6d19c33c258c00a4e7dcf3a73f0008478d5d4a | /year.py | d27ef171c35d70fd621a0608f0efc44821dc8cde | [] | no_license | barrven/python-expenseTracker | e037a99ad08902c91a6aaae9b8257c0a137239f9 | 344accc063a61e6b96aca401d8197f27a21a53d2 | refs/heads/master | 2022-08-20T05:50:17.641106 | 2022-08-14T00:00:29 | 2022-08-14T00:00:29 | 262,703,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | ##########################################
# Barrington Venables #
# 101189284 #
# comp2152 assignment - Expense manager #
##########################################
class Year:
def __init__(self, yearNum, database):
self.yearNum = yearNum
self.datab... | [
"barrven@users.noreply.github.com"
] | barrven@users.noreply.github.com |
0b06190e016241e069caff14b930d190e7d5f83f | 00d1856dbceb6cef7f92d5ad7d3b2363a62446ca | /djexample/images/forms.py | dce42d13b42c6f5dec509f69a49c66092513e4b3 | [] | no_license | lafabo/django_by_example | 0b05d2b62117f70681c5fc5108b4072c097bc119 | 3cf569f3e6ead9c6b0199d150adf528bd0b2a7c5 | refs/heads/master | 2020-12-29T17:54:12.894125 | 2016-06-04T10:35:22 | 2016-06-04T10:35:22 | 58,313,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | from django import forms
from .models import Image
from urllib import request
from django.core.files.base import ContentFile
from django.utils.text import slugify
class ImageCreateForm(forms.ModelForm):
class Meta:
model = Image
fields = ('title', 'url', 'description')
widgets = {
'url': forms.HiddenInput
... | [
"lazyfatboy@ya.ru"
] | lazyfatboy@ya.ru |
49888ff53e9d215f112580dc86b077b03882bb30 | 68bde65c828e73d33f987ddd7d8c5d2712e54d33 | /python-access-web-data/week-6/hidden.py | 66feb56430f42b737efdcba2814ef8ad583fa32f | [] | no_license | champi-dev/p-for-everyone | 5194b39e266ef052ab2af8d73b7ce3f536814b92 | 1a38b6fb012ddcd186d5271463137719b97431d8 | refs/heads/master | 2020-12-06T08:21:05.960795 | 2020-02-08T19:57:47 | 2020-02-08T19:57:47 | 232,405,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | {
"consumer_key": "h7Lu...Ng",
"consumer_secret": "dNKenAC3New...mmn7Q",
"token_key": "10185562-eibxCp9n2...P4GEQQOSGI",
"token_secret": "H0ycCFemmC4wyf1...qoIpBo"
}
| [
"dsarmiento@lean-tech.io"
] | dsarmiento@lean-tech.io |
548053fb510f44628c5bba5b2b7d3b962e5a86e1 | b0b87924d07101e25fa56754ceaa2f22edc10208 | /workspace/python_study/python_gspark/15-2.py | 88ec8fdb1e8e43f9901bf9017a64fa128a312bad | [] | no_license | SoheeKwak/Python | 2295dd03e5f235315d07355cbe72998f8b86c147 | e1a5f0ecf31e926f2320c5df0e3416306b8ce316 | refs/heads/master | 2020-04-02T13:49:58.367361 | 2018-11-23T09:33:23 | 2018-11-23T09:33:23 | 154,499,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,204 | py | import numpy as np
a1 = np.arange(24)
a2 = np.arange(24).reshape((4,6))
a3 = np.arange(24).reshape((2,4,3))
a1[5]=1000
a2[0,1]=1000
a3[1,0,1]=1000 #2번째 행, 1번째열, 2번째depth
print(a1)
print(a2)
print(a2[1:3,1:5])
print(a2[1:-1,1:-1])
print(a2[:,1:3])
a2[:,1:3]=99
print(a2)
a1 = np.arange(1,25).reshape(4,6)
even_a = a1%2=... | [
"soheekwak728@gmail.com"
] | soheekwak728@gmail.com |
bb623e9fb3625ae7527176a57f20d61868e658e2 | b464533745d09720752cb05dd9afc5670e1133fe | /Puzzle 15.py | a804284d939e33ae862476f5a73723bd76b175ee | [] | no_license | Jgusbc/Board-Games | 99d2a3486c9450557b04403b779268a28bc04e01 | e362c3ec71facd9c77a09a03cd5c6d896906c162 | refs/heads/main | 2022-12-30T23:29:13.010234 | 2020-10-23T03:37:15 | 2020-10-23T03:37:15 | 300,472,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | """
Autores del código
José Gustavo Buenaventura Carreón
César Armando Lara Liceaga
"""
import random
import math
import os
#Crear matriz aletoria.
def matriz_aleatoria():
nums = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,'']
random.shuffle(nums)
matriz = [[],[],[],[]]
temp = 0
for i in range(4):
... | [
"noreply@github.com"
] | Jgusbc.noreply@github.com |
77ac69ff892baccedaf8082796e6192fe6a242dd | 0a5f0ab9d8962d0a1c0e0f585baec7a3ab8321d1 | /basic/forms.py | e42c34d2a248b38958dd429206634d76aa68f315 | [] | no_license | saap1tech/courses_web | d98405535c336d84296aa96e81095b10959a0b75 | 0aa4ae97a7a5ac62e82dc395e3bb7401c4af7a44 | refs/heads/master | 2023-06-02T10:46:02.653514 | 2021-06-14T12:19:24 | 2021-06-14T12:19:24 | 350,124,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django import forms
from . import models
class AddVideo(forms.ModelForm):
class Meta:
model = models.Videos
fields = ['video']
def __init__(self, *args, **kwargs):
super(AddVideo, self).__init__(*args, **kwargs)
self.fields['video'].widget.attrs.update({
... | [
"saap1426@gmail.com"
] | saap1426@gmail.com |
a7e3abcba7aa13ffeb4b8a1700c45db001e2c394 | 6f691b2472b56c9aac31237ce6cf96908963b4e4 | /my_project/my_app/views.py | 4894812f5cb3ecc9f2986ea0b1a94bdf9d665a19 | [] | no_license | Vivek-100/Python-Django- | 303a96d38cb951d77d4e659a983200482cf33ff3 | 14dfecc142b418c17a295e6ea4ad24f9447a0a6a | refs/heads/master | 2021-01-10T15:23:05.245481 | 2016-01-04T20:25:57 | 2016-01-04T20:25:57 | 49,020,911 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from my_app.serializers import UserSerializer, GroupSerializer, TestSerializer, OrganizationSerializer,\
ProjectMemberSerializer, ProjectSerializer, ProjectMemberRoleSerializer, ProjectSupplementSerializer
from my_app.models impo... | [
"Vivek.200786@gmail.com"
] | Vivek.200786@gmail.com |
7692972bf7b351e4ac875fb9d2b00890072ac697 | 7d84f1af14f8c30eeaa07d5f36542d93e03a4097 | /module4/多线程/14异步调用与回调机制.py | 62bf1fc058efd1f3f47ebbc3d4fe94922319cc11 | [] | no_license | crazy-heng/study | 5ab50a73c4ce51593e493e8ecee2e591d2200a9e | 034f7a5d63f278a4ac4678ed18ee63413a102757 | refs/heads/master | 2020-04-01T01:26:07.564735 | 2018-09-17T16:01:47 | 2018-09-17T16:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 1 同步调用,提交后原地拿到执行结果,再执行下一代码,导致串行执行
# from concurrent.futures import ThreadPoolExecutor
# import time
# import random
#
#
# def la(name):
# print('%s is laing' % name)
# time.sleep(random.randint(3, 5))
# res = random.randint(7, 13) * '#'
# return {'name': n... | [
"fanhk@126.com"
] | fanhk@126.com |
79062eb15e440d5eabf1579ae5b439589bb6db1b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2015/8/ar_model.py | 087a9e037a3426c2ccc54e0b8158c690ff99e06c | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 34,034 | py | from __future__ import division
from statsmodels.compat.python import iteritems, range, string_types, lmap
import numpy as np
from numpy import dot, identity
from numpy.linalg import inv, slogdet
from scipy.stats import norm
from statsmodels.regression.linear_model import OLS
from statsmodels.tsa.tsatools import (lagm... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
279f22bf4622f6f3548b87e1904bd5ff49efb3c1 | 3e7bc64d26f60db3755abed956598ff6279dfc90 | /Utilities/slidesPlot3D_test.py | 64e7d3e30f452f305bbcec31b55e3e84dee6b1cd | [] | no_license | medford-group/surrogate_functionals | 88fcf1be3fc4e5b1f2a4a8c5fd736b2627f47973 | a4382a4cf0ed4318bcf885f51331aabc9bcc6afc | refs/heads/master | 2020-05-16T18:51:29.578192 | 2017-05-13T03:06:56 | 2017-05-13T03:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,912 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 27 16:19:26 2017
@author: ray
"""
"""
slice3.py - plot 3D data on a uniform tensor-product grid as a set of
three adjustable xy, yz, and xz plots
Copyright (c) 2013 Greg von Winckel
All rights reserved.
Permission is hereby granted, free of charge... | [
"xlei38@gatech.edu"
] | xlei38@gatech.edu |
cb1794051e60b1efd05fe551d9a82d1b0d4a48a6 | 3a90b0336d257d78108438196716d5a74569fa71 | /api/meeting_room.py | 1b38a4be32475d8a6fb3150dac3ab18ca62a8b39 | [] | no_license | jiagejiayou/wwork_api_interface_test | bff0bcb264f54d0f044322363653b6b51a288e83 | 412f0d3bc83fb732c03de9d4c411c9f0760b2034 | refs/heads/master | 2023-01-11T21:51:35.896528 | 2020-11-11T03:58:53 | 2020-11-11T03:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # @Author : TongTong
from api.base_api import BaseApi
from api.wework import Wework
from common.config import cf
class MeetingRoom(BaseApi):
"""
会议室的api类
test_token: token值
api_path: yml_api的相对路径
"""
# 只是拿来测试用,可以不存在在这里
test_token = Wework().get_token(cf.get_key("wwork", "meeting_room_se... | [
"376230095@qq.com"
] | 376230095@qq.com |
b0b6434f95799d95378d985546b2c841c783c9f2 | ddeab2d71d438f58745d3e7e75ab71fa8fba1abd | /pcdet/models/dense_heads/point_head_template.py | baa9bd9ee64ded6363b9ffdb7cdd952a9fcabda5 | [
"Apache-2.0"
] | permissive | penghao1990/SGNet | 3de6ec203b3d56f39ec88f48aae14e4ba2264c33 | 99b9126a4b8ae85ba258a4150cc756ac73a7b7fb | refs/heads/main | 2023-04-09T21:12:12.381568 | 2021-12-09T11:41:58 | 2021-12-09T11:41:58 | 427,582,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,097 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from ...ops.roiaware_pool3d import roiaware_pool3d_utils
from ...utils import common_utils, loss_utils
class PointHeadTemplate(nn.Module):
def __init__(self, model_cfg, num_class):
super().__init__()
self.model_cfg = model_cfg
... | [
"noreply@github.com"
] | penghao1990.noreply@github.com |
20d61a63e03337d309b237ee3953113c24a5f720 | f14ca4895dfd375d87b98101cf0d5a61c84a6f25 | /app/core/serializers/bank3_serializer.py | a2719709a35177f67017b38a97b49f474c24d34c | [] | no_license | rozhaev/bank_parser | f56e1ef86c4fbb62a9f585d51cbf0e3c371a8478 | 7b2727b8b1545207f518aa52a128d388a709cd81 | refs/heads/main | 2023-06-16T16:16:09.505628 | 2021-07-08T05:12:49 | 2021-07-08T05:12:49 | 384,005,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from decimal import Decimal
from typing import List
from .base_serializer import BaseSerializer
class Bank3Serializer(BaseSerializer):
header = ["date_readable", "type", "euro", "cents", "to", "from"]
@staticmethod
def _get_amount(data: List) -> Decimal:
return Decimal(data[2]) + Decimal(data[3... | [
"dmitry.rozhaev@gmail.com"
] | dmitry.rozhaev@gmail.com |
3513c399877852d2b68054d474a187e373787f47 | f10506a518f3f1b383e0d74771b7a841464ad5f7 | /src/realtweetornotbot/utils/urlutils.py | c06e053bad901ac22724019c413dbb60356201cf | [
"MIT"
] | permissive | giulionf/realtweetornotbot | 65017926744a627af971a7a846e73aa20df9cd00 | 4c6765a6992201b4b1d404cfec08d7193c52d750 | refs/heads/master | 2022-02-18T05:04:34.452064 | 2022-01-25T11:39:40 | 2022-01-25T11:39:40 | 162,637,686 | 89 | 7 | MIT | 2022-01-25T11:40:09 | 2018-12-20T22:27:13 | Python | UTF-8 | Python | false | false | 655 | py | import requests
IMAGE_FORMATS = ("image/png", "image/jpeg", "image/jpg", "image/webp")
class UrlUtils:
""" Helper class for URLs """
@staticmethod
def is_imgur_url(url):
""" Returns true, if an image url is an IMGUR image or album """
return "imgur.com" in url
@staticmethod
def ... | [
"giulio.nf@googlemail.com"
] | giulio.nf@googlemail.com |
2c9587a9d350295ea691599e0cf1b8f8e1d52223 | 7558e719e2ca69404f099c90cd93f3ddda8d0614 | /wind_repower_usa/config.py | a9b7e3ac6aec162a510a72b5a93c0a4ac2fd338d | [
"MIT"
] | permissive | inwe-boku/wind-repowering-usa | d082699283d0a7184ec8e8be267dfb99df11f486 | 2b85dc290a80fdd60c065ebfd84def7b43466449 | refs/heads/master | 2021-06-18T22:18:57.234103 | 2021-02-12T16:20:42 | 2021-02-12T16:20:42 | 180,792,842 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import pathlib
NUM_PROCESSES = 8
# used for downloading, calculation of time series etc
YEARS = range(2000, 2019)
MONTHS = range(1, 13)
DISTANCE_FACTORS = 2, 3, 4, 6
LOG_FILE = pathlib.Path(__file__).parent.parent / 'data' / 'logfile.log'
INTERIM_DIR = pathlib.Path(__file__).parent.parent / 'data' / 'interim'
EXT... | [
"lumbric@gmail.com"
] | lumbric@gmail.com |
ad5e9d5c0758fadfff36a115114fadf5e4cf2117 | d150557a870155e6b13803ccbf6a00baeeaa2938 | /neural_nets_dsr/optim/gradient_descent_momentum.py | e180d353b7418adacfc3013eec1643064f75efa4 | [] | no_license | dstilesr/neural-nets-dsr | 7b07dd88d46d8c4fe55bb1a7524d0549578b08fc | 43880f8626fbfe4229932dca9a3dc8feab3f3256 | refs/heads/master | 2023-01-19T16:20:53.435702 | 2020-11-03T15:02:08 | 2020-11-03T15:02:08 | 297,650,650 | 3 | 0 | null | 2020-11-03T15:02:09 | 2020-09-22T13:03:06 | Python | UTF-8 | Python | false | false | 2,802 | py | import numpy as np
from ..network import NeuralNet
from typing import Union, List, Tuple
from ..cost_functions import CostFunction
from ..utils import ExpAvgAccumulator as ExpAvg
from .regularized_gradient_descent import GradientDescentL2
class GradientDescentWithMomentum(GradientDescentL2):
"""
Mini batch gr... | [
"d.stiles.r@hotmail.com"
] | d.stiles.r@hotmail.com |
c067f5c56b4b21b157bbfbec677d387146de15be | 8b52e3aec569de2ead2ab25136ae40f579bfd1a6 | /simpleResult.py | db872d3978959084cd03b871dbc27eb072d803b6 | [] | no_license | k-simons/fantasy | 4dc0201245222e59f8d52788c740e1f82f20cfee | f8b0bb9cf19b551c67ba260305f5a48f1d83835b | refs/heads/master | 2021-09-01T00:03:11.031647 | 2017-12-23T16:50:57 | 2017-12-23T16:50:57 | 115,209,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | class SimpleResult:
def __init__(self, myPoints, opponentPoints, opponentId):
self.myPoints = myPoints
self.opponentPoints = opponentPoints
self.opponentId = opponentId
def __str__(self):
return "myPoints: " + str(self.myPoints) + ", opponentPoints: " + str(self.opponentPoints)... | [
"ksimons@palantir.com"
] | ksimons@palantir.com |
5a3d6c50cb8da0cc9244a7fe21ab684b3a0ed899 | 3af9361ad31a35d13ae7be20900861a2c2e486d8 | /For_next_page.py | 88cc9d11e4065317017b93afe8f8c11d15636958 | [] | no_license | NikhilLamba24/Web-Scraping | b9b93f74b8479721611ce5f5250bfb71831c423d | 70964e2bbfc9e36979e294cf2232e797bd8191ae | refs/heads/master | 2023-04-10T00:24:51.151797 | 2021-04-21T16:40:39 | 2021-04-21T16:40:39 | 272,225,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | from bs4 import BeautifulSoup
import requests
url = "https://boston.craigslist.org/search/npo"
job_no = 0
while True:
response = requests.get(url)
data = response.text
soup = BeautifulSoup(data,'html.parser')
jobs = soup.find_all('p',{'class':'result-info'})
for job in jobs:
title = jo... | [
"lamba.nikhil24@gmail.com"
] | lamba.nikhil24@gmail.com |
2a267560a422f7c6eff4da4d5177892beb9c99f9 | abeec076f89231c4dd589e84def8301e653d6e20 | /orders/views.DEP.py | 9ac624bc2133c17490ffaf2dc25abdf9178452e3 | [] | no_license | gibil5/pcm_restaurant | 1cde6ee2780d3aa39dbc26dd9583f8465a1ff13a | a56ec01c533ed2b6e198de9813f9518a3eca2d14 | refs/heads/master | 2020-08-29T20:10:13.606229 | 2019-12-01T19:48:47 | 2019-12-01T19:48:47 | 218,160,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | def add_order(request, employee_id):
print()
print('Add order')
title = 'Add Order'
cook = get_object_or_404(Employee, pk=employee_id) # Get Object
print(cook)
table = Table.objects.first()
# Create and populate
if request.method == 'POST':
print('Create and populate')
form = lib.NewOrderForm(reques... | [
"jrevilla55@gmail.com"
] | jrevilla55@gmail.com |
7abcfbf6270ec44fffdbbd024bf266c3138059db | 8a642f6b7f7555b5d022674f0dfcc546873554cc | /cf_users/models.py | b00af2862014cdde141663e6a0ceabc424c7628c | [] | no_license | robertwhaskell/CodeFellowsUser | cecb90630681d1636c21aa82aa676ca5e0938f2f | b2160c9ed22b62a1c1948f3786a86c2c5a9b1cc0 | refs/heads/master | 2021-03-12T21:34:07.891495 | 2014-11-18T17:51:08 | 2014-11-18T17:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.db import models
class CFUser(models.Model):
first_name = models.CharField(max_length=200)
last_name = models.CharField(max_length=200)
user_email = models.CharField(max_length=200)
def __str__(self):
return "%s %s" % (self.first_name, self.last_name)
| [
"robertwhaskell@gmail.com"
] | robertwhaskell@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.