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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95f0a6b1dea85668266643f4da2a8db0c7fd0953 | e6b4a7169daec3b0bef0b17698efd7e3d296aa01 | /primerproyecto/manage.py | f2ce52c8085440235e840bb9f173f223f0781571 | [] | no_license | Billgeorge/Django | 3b46a9132726e99efe14def2514987d9aea11f13 | 893497c226a1090e53fc67b0793d79d831b1520d | refs/heads/master | 2022-12-20T09:39:36.881601 | 2016-01-21T01:48:06 | 2016-01-21T01:48:06 | 50,071,448 | 0 | 1 | null | 2022-12-10T20:19:36 | 2016-01-21T00:52:37 | Python | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "primerproyecto.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jorjek4@hotmail.com"
] | jorjek4@hotmail.com |
0d9da472ddc42d26ecd7df9af9a4c9d5fff890c6 | c638d7f179f12bd6fb8f62bb00467e5b5fd97e8e | /python/0015.py | 13e11a869843d9125ea5f619b86c0c7c77cbffb0 | [] | no_license | colblitz/projectEulerTeamCarrot | 32044477fcda892e338e628f4d44db2760029b12 | 23284f4defb8ddab33feefea8f5ee2fa162cfd67 | refs/heads/master | 2021-01-18T20:20:22.758054 | 2014-06-14T08:13:04 | 2014-06-14T08:13:04 | 8,715,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from math import *
from util import *
#######################
# Project Euler #0015 #
# Team Carrot: #
# Joseph Lee #
# Benjamin Lee #
# Stephanie Yu #
#######################
'''
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are ... | [
"z.joseph.lee.z@gmail.com"
] | z.joseph.lee.z@gmail.com |
9ef06f88374271a107c201be2ffdddafe32e9977 | 369f2d06856d70a6f68b8f81bca203ebce8e3a89 | /wholesale_data.py | 11925ef848f12aea4489e1a25360e244ecb966c3 | [] | no_license | Enantiodromis/Data_Mining_UCI_Machine_Learning | ffec3a22690dcbc2f30a7a08e1ddef1a12141c0e | 79b23b3eeae02befbbbc3a7ed03331122d5d911e | refs/heads/master | 2023-09-01T05:08:27.897012 | 2021-10-23T12:01:04 | 2021-10-23T12:01:04 | 337,441,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,576 | py | # AUTHOR: GEORGE BRADLEY
# LAST EDIT: 18/02/2021
# TITLE: CW_PART_2.PY
import numpy as np
import pandas as pd
from prettytable import PrettyTable
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics.pairwise import euclidean_distances
import warnings
import matplotlib.cbook
warnings.... | [
"georgerebradley@gmail.com"
] | georgerebradley@gmail.com |
e7a9408e49112ddd9f5aafdb874c3377f4ad2d1c | 767745e9c6207db9f6a9cf4f0be1af4732e7a111 | /raiden/tests/integration/transfer/test_directransfer_invalid.py | d88e7c9f8a32e7f40677ba8b9fc4c75d7c1a3340 | [
"MIT"
] | permissive | gcarq/raiden | ecc91860b99447028baea7fd171c19996644a5ef | 82241c6da9188c4e029aef3bb42f0ab9f055c0e4 | refs/heads/master | 2020-03-10T03:31:55.174762 | 2018-04-11T19:18:21 | 2018-04-11T19:18:21 | 129,167,527 | 0 | 0 | MIT | 2018-04-11T23:52:12 | 2018-04-11T23:52:12 | null | UTF-8 | Python | false | false | 6,738 | py | # -*- coding: utf-8 -*-
import pytest
from raiden.api.python import RaidenAPI
from raiden.messages import DirectTransfer
from raiden.transfer import channel
from raiden.transfer.state import EMPTY_MERKLE_ROOT
from raiden.tests.utils.blockchain import wait_until_block
from raiden.tests.utils.factories import (
UNIT... | [
"hack.augusto@gmail.com"
] | hack.augusto@gmail.com |
89eea659b56e7e721f9943ae5b3106bc2d905972 | b8a373f6ef648da7eb50b193723a17e1cb793504 | /djangoapp/frecord.py | 3bfb8665c2edd53c1829a8dc70f3269cd0e5d869 | [] | no_license | strongqli/visualstock | 37627e7fe3c8ae21cf2fff646bebd764a97f02da | 18662a34db3734604f59a330babfed6cf7300787 | refs/heads/master | 2016-09-06T01:50:41.566194 | 2014-03-20T09:21:39 | 2014-03-20T09:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to ... | [
"strongqli@gmail.com"
] | strongqli@gmail.com |
a0f25305534ecd8df21add4bcac177aedf095136 | 57d370a3b4d1255b881787bd89c1ed0ace77714e | /MainApplication/Aggregator/CombineResults.py | 4f3bc09dd8bca1b612efddf816f144c517304e88 | [
"Apache-2.0"
] | permissive | kiliczsh/infinity-search | 908ba715440f262335f44480b77428a66caceb84 | 1c08cbf38157d46a3395127fa258a485e1f8123c | refs/heads/master | 2022-11-28T01:05:22.580663 | 2020-04-01T21:01:47 | 2020-04-01T21:01:47 | 285,981,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,765 | py | import SearchEngines.Bing.BingSearch as Bing
import SearchEngines.Mojeek.MojeekSearch as Mojeek
import SearchEngines.WikiMedia.WikiSearches as WikiMedia
formatted_query = ''
# Just making the query in the form of a query string by replacing the spaces with a '+'
def format_query(query):
global formatted_query
... | [
"N/A"
] | N/A |
250d64a708bded929b8db3d0633e5156cedaeb5c | 5c008dad5881eaefe36501628d8d3c16e122b9c0 | /Week_01/week_01_problems/w01_problem_01.py | d303b8e283b07f7443eaaf687b58a2a77d70d43a | [] | no_license | xeusteerapat/MIT-6.00.1x-EDX | 846787898b06cd5223fa825cf9757f2e92449b02 | cae706564efdc41e435b309493484ea9348c908d | refs/heads/master | 2020-07-18T22:30:43.502441 | 2019-11-04T16:16:51 | 2019-11-04T16:16:51 | 206,325,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | s = 'azcbobobegghakl'
num_vowels = 0
for vowel in s:
if vowel == 'a' or vowel == 'e' or vowel == 'i' or vowel == 'o' \
or vowel == 'u':
num_vowels += 1
print("Number of vowels: " + str(num_vowels))
| [
"xeus085@gmail.com"
] | xeus085@gmail.com |
af2f6fbc88738658ff7601a7778fe71e41a634e5 | 8959b1441d205e1e875859358e435263e0b1c19f | /Python/debug/td.py | 921eb44824757efc5e7cacce06f443fdcd6b5f23 | [] | no_license | jamesregis/my-bomberman | 01b4a3f065d51f1ec738ffdd18234aa02935c60a | 981c73469c8df127aa1980ac0a683343a4dd58ea | refs/heads/main | 2023-04-18T12:36:20.977097 | 2021-04-22T20:47:05 | 2021-04-22T20:47:05 | 360,639,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import threading
def hello():
print "hello, world"
def hello2():
print "hello, world 2!"
t = threading.Timer(5, hello)
t1 = threading.Timer(2, hello2)
t.start()
t1.start()
| [
"james.regis@bara.ca"
] | james.regis@bara.ca |
5c4659b8640f73ab91097d2497532feefa68587b | 586927f7eb1e6f07bc169353b06dc51520bb11a1 | /src/valdomain.py | bec7e3eeda2c797605916c662226cc8bf6de7586 | [] | no_license | davidvictoria/xibalba | fa71477b6667017dd34e470083d5ddce7633fd4e | a7c21b343d3a78d60db8bf5019eb4b3dae901d22 | refs/heads/main | 2023-08-21T21:58:40.467668 | 2021-09-30T20:25:47 | 2021-09-30T20:25:47 | 410,717,457 | 0 | 0 | null | 2021-09-30T20:25:48 | 2021-09-27T02:30:04 | null | UTF-8 | Python | false | false | 11,303 | py | import socket
from ssl import PROTOCOL_TLSv1
from OpenSSL import SSL
import pendulum
import requests
import json
import time
def get_domains(cert):
san = ''
ext_count = cert.get_extension_count()
for i in range(0, ext_count):
ext = cert.get_extension(i)
if 'subjectAltNam... | [
"devteam@bpm.consulting"
] | devteam@bpm.consulting |
7b193febd0816faa15a5993d96e7648bf84d756e | acbf7d7e61c90786c9535599d4ecb0f378ac44e8 | /Leetcode-100/first_last_in_sorted.py | b27460afdf171ccd0b14e993088c2f1e51bfc1f5 | [] | no_license | kumawat0008/Data-Structures-Algorithms | 61f02e4126de87b8c0a929acb00ea94dce48738b | 5bab125578b4a662c864fd9d5e929861fdbf33ec | refs/heads/master | 2022-06-26T19:45:26.193765 | 2022-06-09T10:50:32 | 2022-06-09T10:50:32 | 239,322,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | class Solution(object):
def first(self, arr, low, high, x, n):
if (high >= low):
mid = (low + high) // 2
if ((mid == 0 or x > arr[mid - 1]) and arr[mid] == x):
return mid
elif (x > arr[mid]):
return self.first(arr, (mid + 1), high, x, n)
... | [
"dkumawat@ciena.com"
] | dkumawat@ciena.com |
c42d708638a67507a6e3940aec6bc82380a39f72 | 95e792a30d152bcb31f2d19035416349a0bbe1e5 | /galaxyCodeBase/tools/exaremeTools/HEATMAP_HIGHCHART/HEATMAP_HIGHCHART.py | 59a032cfe4821a1b3c7c6135d281cce6a9bae489 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | madgik/galaxy | b965f5f3680213b21db811f9fafcddb131df312e | 15f9388666fb8f5faa1d3f0fccbb9bf1c4a178ba | refs/heads/master | 2023-04-19T03:30:58.407359 | 2023-04-11T16:05:11 | 2023-04-11T16:05:11 | 174,144,956 | 0 | 0 | NOASSERTION | 2020-11-12T13:13:34 | 2019-03-06T12:53:27 | Python | UTF-8 | Python | false | false | 3,983 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import sys
def getopts(argv):
opts = {}
while argv:
if argv[0][0] == '-':
opts[argv[0]] = argv[1]
argv = argv[2:]
else:
argv = argv[1:]
return opts
def heatmap(
inputJson,
... | [
"tkarabatsis@hotmail.com"
] | tkarabatsis@hotmail.com |
764623587649698f98cff8508d79386a867a299d | 5b7f989b51e3fcc626f118c01aae6bc8d1c48144 | /finance/finance/yafinance 10.34.31 PM/migrations/0001_initial.py | d73aca49462fb6547c345c22cf4f4ee2912b4a0a | [] | no_license | Lucysaiheng/Yafinance | 3b2cbf10cfe9ce5d310cbe69aec3459ba3306ba6 | 88bc5c16458aa291580336eb36d7fc73d6926b91 | refs/heads/master | 2020-03-14T18:19:00.262241 | 2018-05-03T02:34:51 | 2018-05-03T02:34:51 | 131,666,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # Generated by Django 2.0 on 2018-04-30 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(au... | [
"asaiheng@gmail.com"
] | asaiheng@gmail.com |
776377c3da71f0b0d361f79fd983ddb6ef38ab0b | 5df19cecae55fd4852d2d89620b059a5d6d76ad0 | /Koo/Fields/Calendar/__terp__.py | 8bcfacca93c271a5be0bcca132ea10ceccebe719 | [] | no_license | gisce/openerp-client-kde | 5f8acbad46f83b9b493029b2f5518dc8576782f7 | b17aabb2e9c6cece0c855f665047d342701ca78f | refs/heads/master | 2023-03-03T01:03:59.272851 | 2023-02-15T11:02:44 | 2023-02-15T11:02:44 | 114,909,552 | 2 | 3 | null | 2023-02-15T11:00:38 | 2017-12-20T16:41:43 | Python | UTF-8 | Python | false | false | 2,057 | py | ##############################################################################
#
# Copyright (c) 2008 Albert Cervera i Areny <albert@nan-tic.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting f... | [
"albert@nan-tic.com"
] | albert@nan-tic.com |
b020ce1d7374b7195c3545ce178c7b9387f9ddd1 | 72b8e2d69cca8b5ecd28e61ef61fef85f9dd0489 | /q190.py | 3bf0f6319123cdb7f2dd25ae44e6f074a9eafef1 | [] | no_license | maples1993/LeetCode | f975bc8570729d998481b097ee04effe5a7c5977 | 032016724564d0bee85f9e1b9d9d6c769d0eb667 | refs/heads/master | 2020-03-27T22:05:07.397746 | 2018-11-07T06:13:56 | 2018-11-07T06:13:56 | 147,203,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | """
Date: 2018/9/6
"""
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
n &= 0xFFFFFFFF
print(bin(n))
res = 0 & 0xFFFFFFFF
count = 0
while count < 32:
count += 1
res <<= 1
if n & 1 == 1:
... | [
"panchao1993@126.com"
] | panchao1993@126.com |
55eb160926cb77920b63568d4be18c54eeebdb2d | 41b59a9c8381fa3a92f5d2c37c91261afb9c82c4 | /QCDEventShape/2017/MC/test/crab_bin_py8_3200_inf.py | ad911d60a95de92ad286c8ea8f0a46bafbafeab1 | [] | no_license | Sumankkundu/ChargedParticle | c6d4f90b55df49321df2ecd758bb1f39db896f8c | eb5bada24b37a58ded186d6e5d2d7bd00898fefe | refs/heads/master | 2023-07-15T03:34:33.377203 | 2021-08-31T05:01:32 | 2021-08-31T05:01:32 | 231,091,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | #from CRABClient.UserUtilities import config, getUsernameFromSiteDB
from CRABClient.UserUtilities import config
config = config()
config.General.requestName ='ESVQCD_UL_Ptbinned_3200toinf_tuneCP5_bin'
#config.General.workArea = 'crab_projects_1'
config.General.workArea = 'crab_projects'
config.General.transferOutputs... | [
"skundu91phys@gmail.com"
] | skundu91phys@gmail.com |
8ef1e4cdfe95348f881050bf452ff59aa6fd624a | 5e3816e1dd190a8e8b90c3a82409c6d910e8c699 | /test.py | 8e711cfe9419d301620ec137f02da35687e401a4 | [
"MIT"
] | permissive | Vignesh-Kumar-07/Twitter-tweets | 8ea90b11b77196e57f7af5a20511c7b09fa9f576 | 1d81ac3e4503d15f8bdf0e67c3559b14c0ecf1f6 | refs/heads/main | 2023-08-17T17:23:15.411209 | 2021-10-11T07:36:14 | 2021-10-11T07:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import re
# To Read Tweets directly from Program:
tweet = """Most employees fulfilled with used hardware based on device turns four years old.
Some job categories (hardware or software developer, technical sales, etc.) are eligible at three years.
Recognizing that employee job roles or device request qualities an... | [
"noreply@github.com"
] | Vignesh-Kumar-07.noreply@github.com |
b724034fa2c2040a7580228001de6c6eafbd8d43 | 10d33e1e6eb2280720937e239f8733d968b85eac | /myplot-new.py | dc880069f339021ab15860f00fd9eae9ab39e426 | [] | no_license | rdangovs/animation | 8259999dcf8af38eff4783fcc6c26c276e609489 | 390a984399541668e145ddc5f60bd8889d493a88 | refs/heads/master | 2021-01-25T10:56:56.258615 | 2018-03-01T03:38:24 | 2018-03-01T03:38:24 | 123,377,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
ITER = 20000
fig = plt.figure()
ax = fig.add_subplot(111, autoscale_on=False, xlim=(-2.0, 2.0), ylim=(-2.0, 2.0))
ax.grid()
line_lstm, = ax.plot([], [], 'o-', lw=2, color = "blue")
line_eunn, = ax.plot([], [], 's-', lw=2, col... | [
"Darumen@dhcp-18-111-97-46.dyn.MIT.EDU"
] | Darumen@dhcp-18-111-97-46.dyn.MIT.EDU |
4937c31eb53c8d0279fb30488f96365137beb3f6 | 136cb5450842633f86d1d806b1d7e93bc8672ea3 | /tests/test_utils.py | cc9036eb40a0f0b3cdd631ad635c085793b52e8e | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jimr/Showcase | 2f7c647cab31953f0beb08b35bbcac9fded9e2e2 | 1685680954e3df825c1b1102a2140e3395533376 | refs/heads/master | 2023-08-31T01:36:34.360692 | 2021-06-11T10:34:40 | 2021-06-11T10:34:40 | 84,255,929 | 0 | 0 | MIT | 2023-08-21T22:59:31 | 2017-03-07T23:17:53 | Python | UTF-8 | Python | false | false | 967 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import unittest
from showcase import utils
class TestProbablyText(unittest.TestCase):
def path_to(self, fname):
return os.path.join(os.path.dirname(__file__), 'data', fname)
def check_file(self, fname, expected=True):
self.assertEqual(... | [
"jim@jimr.org"
] | jim@jimr.org |
6d41fea80601f45b88584c7c63c5d46b02129c99 | e828768c2812f1248f5eac46e22482f1095b23f7 | /custom/paceToTotalTime.py | f6d237e9f983a385bdbe3716dd9c1f7f4b43f64c | [] | no_license | derek-watson14/HackerRank | 0ff33d19210350e400b3b8bdd2589e2957e0c4e5 | 957e9c0868d1b82e9f040bd7700c134b80abdf18 | refs/heads/master | 2023-07-16T15:47:24.147976 | 2021-09-03T00:52:33 | 2021-09-03T00:52:33 | 318,676,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | # Convert a pace + distance to total time or time + distance to pace
class UserInput:
def __init__(self, unit, mode, time, distance):
self.unit = unit
self.mode = mode
self.time = time
self.distance = distance
class Time:
def __init__(self, minutes, seconds):
self.minutes = minutes
self.sec... | [
"derek.watson92@gmail.com"
] | derek.watson92@gmail.com |
cc48085dc7ade65b50e1a12660038561569afbf8 | 9032a759b29da1c5f6a3aeb710e06c2aa6080a54 | /03_zhihu/zhihu/items.py | 2f44ad005e7a4166258e10bfcb1b47949f0accef | [
"MIT"
] | permissive | GongkunJiang/MySpider | 5e5aa89348a8a94cb1b3b807dcbfe1662e534d14 | 8c088f696679b13568843af521279f9f25f40314 | refs/heads/master | 2020-03-27T10:32:14.768792 | 2018-12-07T11:35:18 | 2018-12-07T11:35:18 | 146,427,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class ZhihuItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = Field() #保存抓取问题的url... | [
"jgk19950903@gmail.com"
] | jgk19950903@gmail.com |
b1bd4b4e18caf300b155f876311c7836c1d9b4d3 | dfca57356cfabc01b42fdbca21c9692eb552ceb0 | /core_algo.py | 006dd340abcd335d95a0174e31d49bc5e864b381 | [] | no_license | simonZhou86/image-denoising | 8b634c42bd9bb93372335da34f0d64bb192722f4 | 4a57f8a6308256acce329fd528ca9df1740986ef | refs/heads/main | 2023-06-24T16:14:55.519620 | 2021-08-05T07:40:18 | 2021-08-05T07:40:18 | 377,167,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | import sys, os, math
import numpy as np
from PIL import Image
from OpenGL.GLUT import *
from OpenGL.GL import *
from OpenGL.GLU import *
def ft1D( signal ):
return np.fft.fft( signal )
# Input is a 2D numpy array of complex values.
# Output is the same.
def forwardFT( image ):
# YOUR C... | [
"noreply@github.com"
] | simonZhou86.noreply@github.com |
3747c58466d61b4927db56413de77336dc18c23c | a29a73de4df917da642adec96286d7ed3b2a0a42 | /myDPPO30/utils.py | 517d56784cc6eb43201f5f64de6650e156de4859 | [
"MIT"
] | permissive | tankche1/Learn-To-Run | 9f0546f2d2c74cf18879579a3ccb2aeb3bea2765 | 27a48c8e1ec5864ab58caa9df4098a1089641cc0 | refs/heads/master | 2021-03-24T11:07:15.949621 | 2017-10-18T14:43:41 | 2017-10-18T14:43:41 | 101,266,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | import math
import numpy as np
import torch
import torch.multiprocessing as mp
class TrafficLight:
"""used by chief to allow workers to run or not"""
def __init__(self, val=True):
self.val = mp.Value("b", False)
self.lock = mp.Lock()
def get(self):
with self.lock:
ret... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
a2e56cf287af531ae6f21480a03d26a1ab96e9e5 | cb476c5fdf7e7da1abb4229635a79ea88f465399 | /lianxi/qqmusic.py | 22408b320c1ed8e8d9b7428bfa9ed5970774f9df | [] | no_license | ZHAISHENKING/spiderapp | cb66f68f3ec40f027d8cdbdd1ec357f25c668cda | 51b09dd98e64e6d0612a313ff6c90f6fbd0f63dc | refs/heads/master | 2022-12-15T00:30:44.168143 | 2018-07-17T13:42:57 | 2018-07-17T13:42:57 | 136,556,921 | 0 | 0 | null | 2022-07-06T19:49:39 | 2018-06-08T02:42:16 | Python | UTF-8 | Python | false | false | 2,852 | py | import requests
import json, time
class qqMusic(object):
def __init__(self):
self.date = time.strftime('%Y-%m-%d', time.localtime(time.time()))
def get_json(self):
header = {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chr... | [
"18700790825@163.com"
] | 18700790825@163.com |
737b5c13e51941c403388b2ef31e09078d6855db | f565655ca13bc13053f6809031bfaab88041a5fb | /analyzer/views.py | 3e59543bfdbeccae60bc408141a1d0e70c2796de | [
"Apache-2.0"
] | permissive | multipathtester/mptcpbench-apps | 7d34fa116295ee50a0d397d08e7a5858c1c37959 | 12a7ff1fbb95041e7e5adf551377c8cb97f62b7c | refs/heads/master | 2020-06-04T06:27:08.342550 | 2019-06-14T08:19:36 | 2019-06-14T08:19:36 | 191,904,136 | 0 | 0 | null | 2019-06-14T08:19:39 | 2019-06-14T08:17:36 | Python | UTF-8 | Python | false | false | 1,720 | py | from django.shortcuts import render
from django.http import Http404
from django.contrib.auth.decorators import login_required
from .mobility_helper import get_mobile_stats
from .benchmark_helper import get_benchmark_stats
from .multipath_helper import get_multipath_stats
from .mobility_detail import get_mobility_detail... | [
"quentin.deconinck@uclouvain.be"
] | quentin.deconinck@uclouvain.be |
8e5759f7185b426930f438446f26ae2be4b62f17 | 87800bce1a4829402f1f37932e0f01b3feb87fa1 | /viminidb/videbugging.py | ca32c92bee1baf28ba396517ab65e8e468614e23 | [] | no_license | sixkey/py-scripts | f5ca51434bf45faa79692933d5c4824b8cfe59ae | 7166515ba1dd30b7a48bb82c5d39710774200366 | refs/heads/main | 2023-03-15T08:27:20.363569 | 2021-03-02T18:04:56 | 2021-03-02T18:04:56 | 333,176,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | def create_loud_function(function):
def loud_function(*args, **kwargs):
res = function(*args, **kwargs)
print(f"{function.__name__}(" +
f"{', '.join([str(x) for x in args])}" +
(f"{', '.join([str(x) for x in kwargs])}" if kwargs else "") +
f") = {str(res)}")... | [
"filipku4a@gmail.com"
] | filipku4a@gmail.com |
8917e8c28c35145f26b8c83dc4634b8657f48236 | 26317cbbf23c87a8596f490e15741c4a297ed176 | /constr.py | 81807d407aacb5cbd98127b57dab82bfee7db94f | [] | no_license | vishnuhs/mypython | 694a829298ccb28e5a2f5d1969ffee92f3c90c9d | 8069fa24b1cac76392a29881a868325ffede0c32 | refs/heads/master | 2020-04-21T00:15:44.713817 | 2020-04-02T08:02:08 | 2020-04-02T08:02:08 | 169,191,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | def convert(text):
words=text.split(";")
for word in words:
strwords=word.split("=")
words[words.index(word)]=(strwords[0],strwords[1])
return words
| [
"vishnu.hs1998@gmail.com"
] | vishnu.hs1998@gmail.com |
64592d3ee4f2219d3ea1f98f687bdb1984f866da | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02780/s702903623.py | ef5c9f02ab956fe90728da489ecd4bc87f90841f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | n,k = map(int,input().split())
P = list(map(int,input().split()))
P[0] = (P[0]+1.)/2
for i in range(1,len(P)):
P[i] = (P[i]+1.)/2
P[i] = P[i-1]+P[i]
ans = 0.
if n==1:
ans = P[0]
elif len(P)-k==0:
ans = P[k-1]
else:
for i in range(len(P)-k):
ans = max(ans,(P[i+k]-P[i]))
prin... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
31b6e3eaebde03b0a8cc8012f96bd4403011b0ee | e9aef5affd441b13a443dc2e0ae1613db28870e7 | /Test_sum_two_lowest_numbers.py | d2f714b1457d17ee5f7655d1e73cc3d2944827b1 | [] | no_license | glicodin21/Bundyusoft_Test | 06327b051ee7453bfd3bd3037c8e67a1dc86a6ec | 551cd640fc95f03f9b4c8682fc5f4bd28839da6c | refs/heads/master | 2020-07-10T13:38:11.268176 | 2019-08-30T14:29:31 | 2019-08-30T14:29:31 | 204,274,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import unittest
from Sum_two_lowest_numbers import sum_two_lowest_numbers
class Test(unittest.TestCase):
def test_sum_two_lowest_numbers(self):
self.assertEqual(sum_two_lowest_numbers(
[1, 2, 3]), 3, "Should be 3")
self.assertEqual(sum_two_lowest_numbers(
[1000, 20... | [
"noreply@github.com"
] | glicodin21.noreply@github.com |
5208906c09939f76f644bef4f999ef65b8a1cfae | 37438771565238194ea997fa65619bd32c823706 | /catkin_ws/17-11-16/LPH/build/catkin_generated/order_packages.py | 24ce42469160b8cc3411cbaef6a5190b3592e0f2 | [] | no_license | Aaron9477/restore | b040b8be695c513946c0243c4acb735f427d8bba | 8dc13ed7cf0c4e5cde911169d11e330d826f40bd | refs/heads/master | 2021-09-15T10:50:59.969952 | 2018-05-31T03:11:55 | 2018-05-31T03:11:55 | 110,834,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/zq610/LPH/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/opt/ros/kinetic".split(';') if "/opt/ros/kinetic" != "" else []
| [
"869788668@qq.com"
] | 869788668@qq.com |
31af510cc88211d647550bb4b15a5f9689c61f99 | 0a6a908b2c098613bdcad4221fcb0e4e1c1f7d25 | /data Collection.py | 485179c4b6fd9e7ddc74fb4372fc212382195885 | [] | no_license | DanishKumar/Masters-Thesis | e9f1a14bdc28ad3adb4430e741fd50f44649b39b | c1d97dda56692391bb0b83f1b143738e068425ff | refs/heads/master | 2020-06-23T23:31:08.346458 | 2019-07-25T10:37:15 | 2019-07-25T10:37:15 | 198,785,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import tweepy
import csv
import os
ckey = "lTtJFQw7VcSmGuq2rXEPPtiRM"
csecret = "bbEpVT3VLptOw2k8SoVn4HgFP6B0REAxbXwQrxmuGacYb15I5K"
atoken = "2217386142-N9Zg6ySIWmLZm2mHFsBGIf9A32OsKp9jOQZ24gf"
asecret = "cqq2HCyJAzPkbGcWL0ySWqvHuwWYqF7TF4O4czI1Dqqoa"
OAUTH_KEYS = {'consumer_key':ckey, 'consumer_secret':csecret,
... | [
"danish.kumar93@gmail.com"
] | danish.kumar93@gmail.com |
a849badaacd47915c426af336330853080f870d0 | 19e9e246100603b507005dec0c82cfd3d0d08e75 | /settings.py | decd4426e821649c4f3b4c02a4ef00c8b42451bb | [
"MIT"
] | permissive | embrace-inpe/swds-api-downloader | e0ab31860c2d5870486ebaf99a71a26f7b954700 | f4a4f40fca6de713d6eb1d26dc29e36c094ecb32 | refs/heads/master | 2020-04-12T15:20:27.686621 | 2019-04-02T13:08:40 | 2019-04-02T13:08:40 | 162,577,734 | 5 | 4 | MIT | 2019-04-02T13:08:40 | 2018-12-20T12:38:00 | Python | UTF-8 | Python | false | false | 458 | py | # Search filters
# You must passing these values if aren't using the command line args
SEARCH = {
'application': 2,
'start_date': '2019-03-01',
'end_date': '2019-03-01',
'resolution': None,
'station': 2,
'swfilter': 7,
'swtype': None,
'network': None,
'equipment': None
}
# Path to s... | [
"silviolleite@gmail.com"
] | silviolleite@gmail.com |
e1fc43f35600eb1ab30bcb687acd093d5345c74f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_veritable.py | c4260f18bbed72556a78374e7679857fe6dc69a3 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py |
#calss header
class _VERITABLE():
def __init__(self,):
self.name = "VERITABLE"
self.definitions = [u'used to describe something as another, more exciting, interesting, or unusual thing, as a way of emphasizing its character: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
59e0938b9889a36090c117f11970b5d8d271260e | 24eb991aa1a5bad9d89e7c7fdafc0db0f65f820e | /Janken/JankenOutput.py | 9dd10476bbadfd3429305c27345446e4e81f2710 | [] | no_license | yemarn510/YM_Python | 1e4ba16775b920f9ab84991d6d61c98d437ccfde | 72181672d800ec59bac06978cab08a59e734933e | refs/heads/master | 2022-04-15T07:02:11.085185 | 2020-03-15T16:09:00 | 2020-03-15T16:09:00 | 247,501,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
This class is for printing message and showing who is
"""
from random import randrange
def show_winner(player_one_count, player_two_count):
"""
This is the function for outputting who is the winner
args : player_one_count : the number of games player 1 won
: player_two_count :... | [
"yemarn.510@gmail.com"
] | yemarn.510@gmail.com |
b272becc0f407ed87dd639981bfb2e547cf74bd2 | b0295fc59e46a71c3235f0f19c2631d92678275d | /1-50/016.py | 1383b1a10202a4cc83da8030163d3d04c66bf9e3 | [] | no_license | Marmot93/Project-Euler | 67db19e67d29d9291bdfb155961d11bf027d5635 | a23ba931a56443b92c74a5bb048bfdbe881ad303 | refs/heads/master | 2021-01-12T02:13:51.395321 | 2018-02-08T09:02:45 | 2018-02-08T09:02:45 | 82,549,491 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """2的1000次方各位数之和"""
# 送分题,一行代码解决问题
num = sum([int(i) for i in str(2 ** 1000)])
print('答案是: ' + str(num))
| [
"654332905@qq.com"
] | 654332905@qq.com |
835f35f32d97ac1b55d4dda8b712add353ad0796 | 66052f5ba08ddac0a56ee140af17cf78b1ff1174 | /PLURALSIGHT_BEGINNERS/lib/python3.9/site-packages/holoviews/tests/plotting/matplotlib/testpointplot.py | ad2dbfe315b9cd12e93a78996c55f6e2f0f001f8 | [] | no_license | enriquefariasrdz/Python | 34704ceed001bbe8a23471eebefbe536b00031a5 | b9191f7ad87b709a1b83c5cb3797a866b56aaa0d | refs/heads/master | 2022-12-26T03:06:26.481456 | 2022-04-20T14:09:57 | 2022-04-20T14:09:57 | 27,020,899 | 1 | 1 | null | 2022-12-18T21:02:43 | 2014-11-23T03:33:52 | Python | UTF-8 | Python | false | false | 14,958 | py | import numpy as np
from holoviews.core.overlay import NdOverlay
from holoviews.core.spaces import HoloMap
from holoviews.element import Points
from .testplot import TestMPLPlot, mpl_renderer
from ..utils import ParamLogStream
try:
from matplotlib import pyplot
except:
pass
class TestPointPlot(TestMPLPlot):... | [
"enriquefariasrdz@gmail.com"
] | enriquefariasrdz@gmail.com |
9243f350125d286dd52323819b4b4de309f7bcd2 | e09439c9dd7ff01caae74e08ea333a8a11eb8f57 | /src/spectrosegment/CNN_train/10_train.py | 50068b546710be323ad3afd786fc910d18a6b58c | [] | no_license | muachilin/Freesound-General-Purpose-Audio-Tagging-Challenge | f57f81e08bfc7b2d3ca4fe03dc0aa17d9ea812b0 | 18fdd2d9e5dacccce3eef60c0a454e52777bd453 | refs/heads/master | 2020-09-17T01:10:19.274061 | 2019-11-25T13:34:24 | 2019-11-25T13:34:24 | 223,942,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,930 | py | import numpy as np
import pickle
from sys import argv
import os
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.layers import PReLU
from keras.layers import Conv2D, MaxPooling2D, Flatten, AveragePooling2D, GlobalAveragePooling2D
from keras.layers.normalization imp... | [
"noreply@github.com"
] | muachilin.noreply@github.com |
f4771bd090478972d022ce9b450d530bb2408052 | 6c3ab38e350734f1bc4f0c746ea55a12838ce5ee | /pcserver/mainapp/handlers.py | 93a7d32aa090f9a76b8f6ab1bca16d7d2eda3868 | [] | no_license | joelsemar/Programming-Challenge | 1dd4fb487d02e05ed494e66da99a627970832988 | b8bf8e115dc3c242d62bf696d3268a4b31019592 | refs/heads/master | 2020-05-17T15:16:45.892328 | 2011-08-31T19:17:15 | 2011-08-31T19:17:15 | 2,298,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from webservice_tools.utils import BaseHandler, AutoListHandler
from webservice_tools.decorators import login_required
from mainapp.models import * #@UnusedWildImport
#Create your handlers here
class PhotosHandler(AutoListHandler):
model = Photo
allowed_methods = ('GET',)
extra_fields = ('image_url',)
... | [
"semarjt@gmail.com"
] | semarjt@gmail.com |
43e3f69a4d43e8fd97a6995fa95b1197d002dc0e | 0315255c749b12216a7c8ac26378d8921466284a | /tests/integration/client/standard.py | 969611b4d0a0800f10b1c10258875138538f5b08 | [
"Apache-2.0"
] | permissive | jhutchins/salt | a32de1362c6787ec96df7ce57bf9b98f20eaf30a | 22ec0cee6a8a842ec426b7a3e634723ea7ce7256 | refs/heads/master | 2021-01-21T00:05:05.782149 | 2012-04-06T22:03:19 | 2012-04-06T22:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # Import python libs
import subprocess
# Import salt libs
import integration
class StdTest(integration.ModuleCase):
'''
Test standard client calls
'''
def test_cli(self):
'''
Test cli function
'''
cmd_iter = self.client.cmd_cli(
'minion',
... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
988e2af58befb5de29f610f0a755afa3463f72dd | 6d64861c997a710b95c3378a2a5283ec85d110d5 | /setup.py | 8d7f4e8b5a1e5b1fa6d67cfe991169be68cd3a4c | [
"Apache-2.0"
] | permissive | badmutex/openstack-client-shell | 1f761b9af161d5275e4e0dbce9b67bf9e7432014 | 10c1b4ad58a2562a0d23be4f6d34a36237cbc6f2 | refs/heads/master | 2021-05-29T01:54:49.849567 | 2015-06-12T19:06:53 | 2015-06-12T19:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from setuptools import setup, find_packages
import os.path
# IMPORTANT: use semantic versioning
# http://semver.org
VERSION = '0.4.4'
NAME = 'openstack-client-shell'
# #################################################################### version
module_dir = 'openstack'
version_file = os.path.join(module_dir, 'vers... | [
"abdulwahidc@gmail.com"
] | abdulwahidc@gmail.com |
2b342274bc429eacca9e41da3bbf739877dd0db6 | a1ff3f4a3909b672a31338aa7a1e25d7953111fb | /twitter_app/ttc_debug.py | a9c691ffbfd6b244b1ba4828a633dfd53ce6f660 | [] | no_license | wayne927/RPi-stuff | 0301831576bbc0d3e9a480d57d04279452dd2d84 | cae95547e96e0b1e80f2dc3b6de9b7dfeef777b9 | refs/heads/master | 2020-05-21T04:36:02.799577 | 2018-12-11T11:00:02 | 2018-12-11T11:00:02 | 58,220,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | #!/usr/bin/python
import twitter
import datetime
from datetime import timedelta
import calendar
import os
import sys
from readkeys import *
from send_gmail import *
def getLocalTime(date_in) :
utc = datetime.datetime.strptime(date_in, '%a %b %d %H:%M:%S +0000 %Y')
# TODO: deal with daylight saving time...
... | [
"wayne.ngan@gmail.com"
] | wayne.ngan@gmail.com |
7bef991e0b0cc4a0ccbb6365b1ad0fae7bce83cf | 7ca46f6b2f115712600b052bab8da6e16f90aad1 | /PythonProjects/fibonacciCalc.py | ead0942aa916e6739346a5663abd717f51bffe96 | [] | no_license | KristinCovert/Bootcamp | 73f83e5e1ce0b03fa1242f355bfbc13a099e9b6c | e4af8a3999bc8e4b9708e35268c619151d77f581 | refs/heads/master | 2021-05-28T01:44:06.211008 | 2014-11-26T23:16:20 | 2014-11-26T23:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | __author__ = 'Kristin'
def range_top():
top_range = input('Up to what number would you like to calculate the Fibonacci: ')
return top_range
def fibonacci(rt):
i = 0
j = 1
fibonacci_list = []
for number in range(0, rt):
k = i + j
fibonacci_list.append(k)
i = j
... | [
"kristin.bratland@gmail.com"
] | kristin.bratland@gmail.com |
310ba0cb9368a175620ca3cbcbd62104bf3f9f8b | edc1f1369794a4a1c499c6e9d5fe49a712657611 | /algorithms/leetcode_all/560.subarray-sum-equals-k/subarray-sum-equals-k.py | 74c28e9996672f15fe435da46bf9edd7cf5ffdc2 | [] | no_license | williamsyb/mycookbook | 93d4aca1a539b506c8ed2797863de6da8a0ed70f | dd917b6eba48eef42f1086a54880bab6cd1fbf07 | refs/heads/master | 2023-03-07T04:16:18.384481 | 2020-11-11T14:36:54 | 2020-11-11T14:36:54 | 280,005,004 | 2 | 0 | null | 2023-03-07T02:07:46 | 2020-07-15T23:34:24 | Python | UTF-8 | Python | false | false | 379 | py | class Solution(object):
def subarraySum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
preSum = ans = 0
visit = {0: 1}
for i, n in enumerate(nums):
preSum += n
ans += visit.get(preSum - k, 0)
... | [
"william_sun1990@hotmail.com"
] | william_sun1990@hotmail.com |
9ab8c1cfef72c9b54df1a43e0a919da8d13a725c | 9c81c170f03ba925bf3d0682526245c202e384a7 | /superset/cli/test.py | f175acec470cd59f06f6d1ad8de07765a2520901 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | zcong1993/incubator-superset | 2a08177641eff178dee9db852887ad2d19d70d54 | 269c99293f42089958dc98b5d6e5899509fc3111 | refs/heads/master | 2023-08-17T12:24:59.438120 | 2023-08-17T10:50:24 | 2023-08-17T10:50:24 | 209,522,299 | 0 | 0 | Apache-2.0 | 2023-03-06T08:10:31 | 2019-09-19T10:09:21 | TypeScript | UTF-8 | Python | false | false | 2,860 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | zcong1993.noreply@github.com |
d72f0e6e1d8aaabc1a02b10a8fbc864b8f6d0b65 | 29345337bf86edc938f3b5652702d551bfc3f11a | /python/src/main/python/pyalink/alink/tests/examples/from_docs/test_totensorstreamop.py | 78c1de91112c783148b8652120fe7425e975fcf9 | [
"Apache-2.0"
] | permissive | vacaly/Alink | 32b71ac4572ae3509d343e3d1ff31a4da2321b6d | edb543ee05260a1dd314b11384d918fa1622d9c1 | refs/heads/master | 2023-07-21T03:29:07.612507 | 2023-07-12T12:41:31 | 2023-07-12T12:41:31 | 283,079,072 | 0 | 0 | Apache-2.0 | 2020-07-28T02:46:14 | 2020-07-28T02:46:13 | null | UTF-8 | Python | false | false | 553 | py | import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestToTensorStreamOp(unittest.TestCase):
def test_totensorstreamop(self):
df = pd.DataFrame(["FLOAT#6#0.0 0.1 1.0 1.1 2.0 2.1 "])
source = StreamOperator.fromDataframe(df, schemaStr='vec string')
... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
11b9bf5a469cbefb5d55ecbc166fdf0b95d5e6a5 | d2bb13cec7faf28e3d268312298f03c99806bd8b | /IPTS-16891-Dy2Ti2O7/norm_mesh_symm_All_rwp_100mK_7.py | d66eaa8f6dc140ec0ed3f53c2db9c0369b379c0f | [] | no_license | rosswhitfield/corelli | 06a91c26556ea788f20f973a1018a56e82a8c09a | d9e47107e3272c4457aa0d2e0732fc0446f54279 | refs/heads/master | 2021-08-07T14:04:24.426151 | 2021-08-03T19:19:05 | 2021-08-03T19:19:05 | 51,771,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | from mantid.simpleapi import *
from mantid.geometry import SymmetryOperationFactory
import numpy as np
# about information on where the data are and where to save
iptsfolder= "/SNS/CORELLI/IPTS-16891/"
outputdir="/SNS/users/rwp/corelli/IPTS-16891-Dy2Ti2O7/"
nxfiledir=iptsfolder + "nexus/"
ccfiledir = iptsfolder +"shar... | [
"whitfieldre@ornl.gov"
] | whitfieldre@ornl.gov |
2da22543b0df8381720ed441872ed8dab2d2f559 | 4948250bd7ca92e47742bb40e89dfc74c3f50463 | /projectwork/testapp/migrations/0007_auto_20210201_1657.py | 60b45419969915a73692c4cfa10d98d26bb73a53 | [] | no_license | sumitnicmar/PetCover | e145c3b5dddb946aa05feb23f4ad8e0c17c54707 | a4d478d3e141b9c4e5c0050800aa37e90580fad9 | refs/heads/main | 2023-03-10T16:04:40.744012 | 2021-02-15T18:58:02 | 2021-02-15T18:58:02 | 339,175,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # Generated by Django 3.1.3 on 2021-02-01 11:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('testapp', '0006_auto_20210201_1633'),
]
operations = [
migrations.AlterField(
model_name='appoi... | [
"sumitsoft1993@gmail.com"
] | sumitsoft1993@gmail.com |
0aa4fad95e735af119da27c643164c508715fe23 | 58c122786263edf8aec4a6b6b4986b2f3d4ff1d5 | /modules/s3/pyvttbl/qsturng.py | 49e432d4a21df43c96c06038b370da50df36ded8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andygimma/eden | c9d0819e87ef05ff607cac6120dbddc86e55bc31 | 716d5e11ec0030493b582fa67d6f1c35de0af50d | refs/heads/master | 2021-01-15T21:54:03.240072 | 2012-11-16T05:13:11 | 2012-11-16T05:13:11 | 6,726,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,225 | py | # Copyright (c) 2011, Roger Lew [see LICENSE.txt]
# This software is funded in part by NIH Grant P20 RR016454.
"""
Implementation of Gleason's (1999) non-iterative upper quantile
studentized range approximation.
According to Gleason this method should be more accurate than the
AS190 FORTRAN algorithm of Lund ... | [
"dominic@nursix.org"
] | dominic@nursix.org |
d341c94a528f020251ed8186095bde571f3fc3e8 | e98d4ac448b838712616f8fe408a4073b799a478 | /currency_converter_api.py | e1a8943aeb23ec5613a3b4583276540f55642fdc | [] | no_license | KachusovStepan/CurrencyConverterApi | 2a15bbe0e5376480b4c752d4585611647d9f0f8d | 485460ee9a0c04c29f26c4ca6ac87406e8a39932 | refs/heads/master | 2023-04-12T10:10:25.928466 | 2021-05-10T17:55:12 | 2021-05-10T17:55:12 | 366,129,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | import asyncio
from aiohttp import web
import json
import os
from services.exchange_rate_repository import ExchangeRateRepository
routes = web.RouteTableDef()
repo = ExchangeRateRepository(host="redis", port=6379)
loop = asyncio.get_event_loop()
@routes.get('/convert')
async def handle_converion(request: web.Reque... | [
"stepanurfu@gmail.com"
] | stepanurfu@gmail.com |
f375b00087150e1f82d65a9e60ddf607f3a4fdbd | 3845fdd6010cfd86e0cc8dded06c964a81fdf6ac | /registration/views.py | b1b62c20f6649595bc5f6a5473c0b66a0df90ab9 | [
"MIT"
] | permissive | Yash1256/Django-Intern | 72511e9bc3f262cd6509a7353ec8fc64fe9ade0b | c1d42ff344324b56d462ae8c3d5b6682a2b255b6 | refs/heads/master | 2021-09-25T11:45:17.994744 | 2020-10-03T21:38:15 | 2020-10-03T21:38:15 | 249,540,783 | 1 | 1 | MIT | 2021-09-22T18:47:32 | 2020-03-23T20:48:25 | Python | UTF-8 | Python | false | false | 3,741 | py | import math
from django.core.exceptions import ValidationError
from django.shortcuts import render, redirect
from django.urls import reverse, reverse_lazy
from django.views import View
from .forms import AuthorForm
from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_req... | [
"shuklayash1256@gmail.com"
] | shuklayash1256@gmail.com |
abd7adc1822c7a3ded2bfbb351e303bc38039614 | 99a310f6bb6c7a6c728f1b3ae78054487372042d | /aoc2019/intcode/state_machine.py | b68372737c28f105cbb818391176e19138743da5 | [] | no_license | jepebe/aoc2018 | 46ce6b46479a0faf2c2970413af14a071dcfdb79 | 4bf91b99bec4b59529533ef70f24bf6496bada99 | refs/heads/master | 2023-01-11T16:44:42.125394 | 2023-01-06T06:27:14 | 2023-01-06T06:27:14 | 159,912,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,926 | py | from collections import defaultdict
def get_address(state_machine, parameter, write_mode=False):
mode = state_machine['parameter_modes'][parameter]
pos = state_machine['pos']
if mode == 0:
addr = state_machine['instructions'][pos]
elif mode == 1:
if write_mode:
print('Writ... | [
"jepebe@users.noreply.github.com"
] | jepebe@users.noreply.github.com |
5e070c29c4a7e73ae079e481606dc53c90ecce4e | 32a60828c347544bffad94bf9716078c5717d760 | /landing/apps/customuser/models.py | 13cfc581f89337a9e3ba60cff0cd353c1ef9af35 | [] | no_license | flikn/lazonaflikn | 6c0b9c6eee85a0f23d1443af358ec8077b07b4f4 | c8bfc2f50a03fc224f734ee2143280ea87a0964e | refs/heads/master | 2020-08-11T17:19:49.092468 | 2015-02-16T22:35:41 | 2015-02-16T22:35:41 | 29,598,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | from django.db import models
from django.core import validators
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
from apps.subscribe.models import Subscriptor
class MyUserManager(BaseUserManager):
def create_user(self, email, password, username="",
first_name="", last_... | [
"oscar.gi.cast@gmail.com"
] | oscar.gi.cast@gmail.com |
d6b0539a2cd34a3318a634029493799c8d1029ff | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /ZQZ510/ZQZ510/spiders/zqz.py | 3a4ae2a8fc42615dd7eaaf1a56965897c452c5d3 | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 5,422 | py | # -*- coding: utf-8 -*-
import scrapy
import time
import json
from ZQZ510.items import Zqz510Item
empty_word = 'null'
class ZqzSpider(scrapy.Spider):
name = 'zqz'
allowed_domains = ['zqz510.com']
start_urls = ['http://login.zqz510.com/judgmentDoc']
def parse(self, response):
url = 'http://a... | [
"34021500@qq.com"
] | 34021500@qq.com |
234c003b3b7516f29ad666cdb2a012b2e5e63f70 | a90ce0aaa95b712c6b1a7c4fa584254f93d80451 | /1-6-8.py | 491c4a751d6c8962c237e878bf408bad937b28d0 | [] | no_license | vvFell/stepic_course | a82743356144899d6e04ca51df67bbbaf501c91f | e8c662437b7ffb1abb7be4a8e08903184710b59f | refs/heads/master | 2020-09-17T00:04:55.346737 | 2019-11-25T11:04:48 | 2019-11-25T11:04:48 | 223,927,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | from selenium import webdriver
import time
link = "http://suninjuly.github.io/find_xpath_form"
try:
browser = webdriver.Chrome()
browser.get(link)
input1 = browser.find_element_by_tag_name('input')
input1.send_keys("Ivan")
input2 = browser.find_element_by_name('last_name')
input2.send_keys("... | [
"VSerov@profix.com"
] | VSerov@profix.com |
9ca0eebcc0fb73790d6d40f0aa355c00af6bea88 | 77f5208e62d4c222702184c920323029c15d37fe | /ml_project/work/features/nope_transformer.py | 6efb522acc035a8202f9f84e79f6d47d4e768f6c | [] | no_license | made-ml-in-prod-2021/korowood | 1f89a58b9126458d7f0d43068a0d28e6f230d11f | 591cfd3341aae10618075123757011cf9465b751 | refs/heads/main | 2023-06-06T15:07:20.537003 | 2021-06-17T08:16:09 | 2021-06-17T08:16:09 | 354,288,201 | 0 | 0 | null | 2021-06-17T08:16:10 | 2021-04-03T12:37:46 | Jupyter Notebook | UTF-8 | Python | false | false | 555 | py | import numpy as np
import pandas as pd
from typing import List
from sklearn.base import BaseEstimator, TransformerMixin
class NopeTransformer(BaseEstimator, TransformerMixin):
""" Dummy class to do pass-through dataset as is. """
def __init__(self, cols: List[str] = None, quantile: float = 0.05):
self... | [
"yakorovka@gmail.com"
] | yakorovka@gmail.com |
dc10e73e97008209d65dd1570fac21edd864e507 | ce7776a87f57454a70e1d2bde351fda20b43d7ef | /postgres-appliance/scripts/spilo_commons.py | 7742e8c2657ce5997bfff42fc04608f923549a45 | [
"Apache-2.0"
] | permissive | munjalpatel/spilo | 6387640dfe46b3b80076acd7dd3cf59fae2f57eb | f8179d9a5de5e9a78e5a447130f759f97811879b | refs/heads/master | 2023-09-04T19:06:47.323964 | 2021-11-11T16:04:17 | 2021-11-11T16:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | import logging
import os
import subprocess
import re
import yaml
logger = logging.getLogger('__name__')
RW_DIR = os.environ.get('RW_DIR', '/run')
PATRONI_CONFIG_FILE = os.path.join(RW_DIR, 'postgres.yml')
LIB_DIR = '/usr/lib/postgresql'
# (min_version, max_version, shared_preload_libraries, extwlist.extensions)
exte... | [
"noreply@github.com"
] | munjalpatel.noreply@github.com |
3fc7db5e967c82b33be3e2e96772d7a1ad400835 | 2c3e61c057d00399e94985914556224fff6cc5be | /marketingFirm.py | 077936d4cf5899dbe6303192c805fd836d3831aa | [] | no_license | wrightzachary/sweepstakes | 7b09a7b41017cd870402bb639a6ad047ca314478 | b5cc71a533d270b8cc9b6b23059a45dc798a9f18 | refs/heads/main | 2023-06-25T20:37:58.659130 | 2021-07-08T19:31:14 | 2021-07-08T19:31:14 | 379,325,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | from sweepstakes import Sweepstakes
from userInterface import UserInterface
class MarketingFirm:
def __init__(self):
self.marketing_firm_name = ""
self.sweepstakes_storage = ["Boat", "Weekend getaway"]
# create sweepstakes
def create_sweepstakes(self):
chosen_name = UserInterface.... | [
"taylorzw96@gmail.com"
] | taylorzw96@gmail.com |
2622b01ab6dbae6e902dd8647177dd9c4dd6092a | 64e899ae6199b7915585f7f903b2ec221aa0b8df | /common/modelanalysis.py | a0b3977391b8709375b3571f290d6da0707ec2f6 | [] | no_license | sharma0611/dsworkflows | 642f36dc0f7369c319eddbf27cd7bb734c9ab7a4 | 95dacb81581193d57fbc318ad1d9ef2c83b897cd | refs/heads/master | 2021-09-15T01:38:11.201611 | 2018-05-23T14:31:52 | 2018-05-23T14:31:52 | 118,946,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,940 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
****************************************
Shivam Sharma (CIH745)
Data Science Co-op
Summer 2017
****************************************
Module: Model Analysis
Purpose: Hosts the functions that interact with sklearn-interface models to provide analysis on s... | [
"sharma.shivam0611@gmail.com"
] | sharma.shivam0611@gmail.com |
75ad2856c5ff6b4ca39329ba99881252b8c694e8 | 6140bcfbdfad6fef444acfd8d40a776f7f467598 | /sbmOpenMM/datasets/__init__.py | 1820e9b8e9b585d1513c82d6822d7f0a0098220f | [
"MIT"
] | permissive | CompBiochBiophLab/sbm-openmm | bfa799f305d32b3b9de147d99bf8f2354867ee06 | 113b04eb2c78664a48600a05ff6778898fbb2fd9 | refs/heads/master | 2022-08-10T00:49:30.874501 | 2022-07-24T11:12:31 | 2022-07-24T11:12:31 | 219,484,731 | 18 | 7 | MIT | 2019-11-26T12:59:44 | 2019-11-04T11:23:38 | Jupyter Notebook | UTF-8 | Python | false | false | 28 | py | from . import foxp1_folding
| [
"martin.floor@uvic.cat"
] | martin.floor@uvic.cat |
646357d0513992ba17b94e2a0ec1f976826b4817 | f16a17a6faa673007f69b9892c4558e11958c55d | /cmddocs/articles.py | 477cd909cf357279d062fd6df3261881a72a0240 | [
"MIT"
] | permissive | TaurusOlson/cmddocs | 6b707110774d9a7f7449e08c32846e8b263d4b48 | 7c84a7ba32b21c7a3d15304c4590f6eab56c572a | refs/heads/master | 2021-01-20T22:50:51.512550 | 2015-01-08T11:33:26 | 2015-01-08T11:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,952 | py | import os
import re
import tempfile
import subprocess
# Function definitions
def list_articles(dir):
"lists all articles in current dir and below"
subprocess.call(["tree", dir])
def list_directories(dir):
"lists all directories in current dir and below"
subprocess.call(["tree", "-d", dir])
def change... | [
"flo@noqqe.de"
] | flo@noqqe.de |
5959f52e07a61191622f22f7491aa2229167184c | ba104a6a6c3f84d2e96fb3c304af781d881bed8e | /bbs/dbproxy.py | 1d37004c38872fff079b3090d675d41028b73a59 | [] | no_license | jonny290/yos-x84 | 463a7f166ee59f2dd2a7a197352db1341dad8b66 | 7b03a35f12d2b7a10fa4709b09107935c6f14000 | refs/heads/master | 2021-01-20T06:59:22.869289 | 2015-01-17T06:13:32 | 2015-01-17T06:13:32 | 24,814,644 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | """
Database proxy helper for X/84.
"""
import time
class DBProxy(object):
"""
Provide dictionary-like object interface to a database. a database call,
such as __len__() or keys() is issued as a command to the main engine,
which spawns a thread to acquire a lock on the database and return the
resu... | [
"root@5c2973472a80.(none)"
] | root@5c2973472a80.(none) |
26f2e95b46c06356ab3fa1f80b77aab1536140f8 | 67e1ccd069d6194158d32961c6a1f0fa49a0681f | /01_intro/recombination.py | 6413cf48e0cd0ee4a97fad5584378a820d17259f | [
"Unlicense"
] | permissive | arantzardzm/software-art-text | a9a5e8e601876334049d484b2ef238ae233d47c5 | 2af98427892126ee00b1de12f7fd60b061386247 | refs/heads/master | 2021-07-21T16:17:12.191445 | 2017-10-31T09:20:59 | 2017-10-31T09:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | import sys
import random
from time import sleep
actor_adjectives = ['imperceptible', 'defiant', 'howling', 'subtle', 'eerie', 'cute']
actor = ['feline', 'cat', 'purr', 'claws', 'friend', 'crawler']
act = ['jumps', 'caresses', 'envelops', 'touches', 'reaches into', 'pets']
victim_adjectives = ['frightened', 'foolish', ... | [
"pierre.depaz@gmail.com"
] | pierre.depaz@gmail.com |
355606e8e2db99254d740fee5aa6d2a68fae9623 | 08c4c7ed66ba9f2312b914b639c8e63d6a094552 | /shoppingX/asgi.py | 45071adf66eacba11b97fbf427fd7cbef0540f2e | [] | no_license | aman-ash/E---Commerce_Website_Project | c93ab4c314de1de87e98d693515999f5dc8fc969 | 4e5fd2e982b96d9bc111027a87b15381ecc7b687 | refs/heads/master | 2023-07-15T06:33:53.290197 | 2021-08-24T06:44:24 | 2021-08-24T06:44:24 | 382,203,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for shoppingX 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"amanmahore.ash@gmail.com"
] | amanmahore.ash@gmail.com |
d96d507a3a852249066e493e07e09227d669afb0 | cd8ea41cd625440bfacbee84e7a7632e1243c407 | /code/recipe/tests/test_ingredients_api.py | e22fc54e3b2e1e1bab6a44b16230688e9876e504 | [] | no_license | DamianCzajkowski/recipe-app | 826c332f5b6699cb3f63c5005dda953928467e20 | a593acbfedc6b0142f3e51289cc4a4dbd19bf793 | refs/heads/main | 2023-07-18T06:16:28.872407 | 2021-08-15T19:12:49 | 2021-08-15T19:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,346 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Ingredient, Recipe
from recipe.serializers import IngredientSerializer
INGREDIENTS_URL = reverse('recipe... | [
"damianczajkowski@bluerider.software"
] | damianczajkowski@bluerider.software |
c8d1f101c814d254035989eb2539d01b9c470f46 | 5b7413d0de8f2dc34df372489d233f59b12a76c6 | /2.3.4.py | e4a37510affe30a6cde8198dd5b085c0fdf4c18e | [] | no_license | vekhnyk/stepik---auto-tests-course | cd1e9ce54f242a49b1b4a7b6fe9a25c99866dd07 | 3508794aa955c58c79fd31d1412faec5dbd2a2cc | refs/heads/master | 2022-08-21T20:39:31.324410 | 2020-05-11T07:46:17 | 2020-05-11T07:46:17 | 262,959,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from selenium import webdriver
from time import sleep
import math
link = 'http://suninjuly.github.io/alert_accept.html'
try:
browser = webdriver.Chrome()
browser.get(link)
browser.find_element_by_class_name('btn-primary').click()
confirm = browser.switch_to.alert
confirm.accept()
x = browser.... | [
"vekhnyk@gmail.com"
] | vekhnyk@gmail.com |
c895843d8e49416fd67fe7412ef83108b18815d3 | 1e12dc07222de77f9344b8c260d7b848a76d8d5e | /word_cloud.py | 70771c0f40ffd11a3a814b39c076130f1220d916 | [] | no_license | ljyw17/douban_movie_analysis | 4dd61f3a090189ccd411844cae929f12e81b005c | 8d520f582b19f8d85add8ad72540a27db98bba60 | refs/heads/master | 2020-07-11T03:38:22.936473 | 2019-08-26T12:42:42 | 2019-08-26T12:42:42 | 204,436,858 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from wordcloud import WordCloud
import PIL .Image as image
import numpy as np
import jieba, pandas
def trans_CN(text):
word_list = jieba.cut(text)
# 分词后在单独个体之间加上空格
result = " ".join(word_list)
return result
if __name__=="__main__":
file_path = r"Pure Hearts Into Chinese Showbiz.xlsx"
... | [
"noreply@github.com"
] | ljyw17.noreply@github.com |
2a4fbb6eebb89b4e2f3e140179c0dd9d6b1d9665 | b9ab57c699ab64c349098bba8ae3f954cd08b152 | /quora-question-pairs/Model.py | 0616eae7ed7f71ac72faf6cf5a75f06b53036b5d | [] | no_license | tyxr/my_tensorflow_code | c1e24eb3dc628b26ed7aeed92dcc3e0f8143fb0f | 860acaee74a8ca6edcaf0ad3121399a94b79643e | refs/heads/master | 2022-01-10T17:45:30.339149 | 2019-05-08T03:18:24 | 2019-05-08T03:18:24 | 106,514,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,393 | py | import tensorflow as tf
from tensorflow.contrib.rnn import LSTMCell, DropoutWrapper
from tensorflow.keras.layers import Embedding,TimeDistributed,Dense,Lambda
from Process_data import print_shape
import numpy as np
class SimpleNetwork():
def __init__(self,num_words,embedding_dim,sequence_length,n_classes,L2,hidden_... | [
"xingkai@icarbonx.com"
] | xingkai@icarbonx.com |
64cddf5250ac60f94ef5c62aedfa3eb120d3e5f8 | 8ca70628ca811e08fb77b8e251fc8e5049486a65 | /airbyte-integrations/bases/base-python/base_python/cdk/streams/exceptions.py | 6727216dd5dd50496241a0890070cb87439e8f82 | [
"MIT"
] | permissive | Tana8M/airbyte | a19544d2f7997ec7551793f7077d3e02bfe6ac84 | 49296ef657be272684c7259ed0d6be06e574dbe1 | refs/heads/master | 2023-04-15T15:04:22.849307 | 2021-04-23T23:12:55 | 2021-04-23T23:12:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | """
MIT License
Copyright (c) 2020 Airbyte
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | [
"noreply@github.com"
] | Tana8M.noreply@github.com |
b02ec88d3c3a9fda595bfaded4054a2a7b2b905d | a1ff3c1e1f633f8c793c69214bf70ed6321891f2 | /frequencyAnalyzer.py | b163360268f399de2fb79d30583ca65f3292d0bb | [] | no_license | yanone/frequencyAnalyzer | 6f857a72a5e3a2b64b01a99816dd6ac33c3580be | 0312f21a0662db3524382f80b88dea28d437cd65 | refs/heads/master | 2021-09-23T03:26:46.349196 | 2018-09-20T08:39:43 | 2018-09-20T08:39:43 | 115,872,586 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,520 | py |
import plistlib
import threading
import pyaudio
import numpy as np
import wave
import audioop
import time, os
import math
import json
import wx
from ynlib.maths import Interpolate
#from pysine import sine
###############################################################
frequencies = []
interpolatedFrequencies = []... | [
"post@yanone.de"
] | post@yanone.de |
f73086d0105b3dbd3762dcdd037934533567ee3a | 3f8ef6ce1c878e6aa358714ea3c85a988de8948f | /Evolution Software Engineer/tenth_year.py | c97bbc78b102ba361ad8c494668ff7c884f5cee6 | [] | no_license | gchacaltana/PythonToolkit | 1ae320bb091996a5214fc446345f115cdcb28202 | 05d683fb5170294e95f4d42ed5bbe96135e9538e | refs/heads/master | 2022-03-08T02:47:04.823608 | 2022-02-11T23:11:22 | 2022-02-11T23:11:22 | 24,420,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Programa que imprime en pantalla el mensaje Hola Mundo"""
__author__ = 'Gonzalo Chacaltana'
__email__ = "gchacaltanab@outlook.com"
class HelloWorld(object):
def __init__(self):
print ("Hola Mundo")
obj = HelloWorld() | [
"gchacaltanab@gmail.com"
] | gchacaltanab@gmail.com |
62be2d8d4dbc67fc085acf0750f18d8471c8142f | f008fe1057b00d19d7812e0373669763c9992f42 | /python/utils/hpatch.py | 1047e32c3a097bb0f224c9141aa398b918144cee | [
"BSD-2-Clause"
] | permissive | baiyancheng20/hpatches-benchmark | 68a265f5e23f7ceabce06635818b8c6a73c3e578 | 23c3a6dcf92bff7bda492363908cbc52b2533472 | refs/heads/master | 2021-01-20T00:52:08.069991 | 2017-04-22T19:02:21 | 2017-04-22T19:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,448 | py | import cv2
import numpy as np
from glob import glob
from joblib import Parallel, delayed
import multiprocessing
import pandas as pd
import json
import os
import time
import scipy
import copy
# all types of patches
tps = ['ref','e1','e2','e3','e4','e5','h1','h2','h3','h4','h5',\
't1','t2','t3','t4','t5']
def ... | [
"v.balntas@imperial.ac.uk"
] | v.balntas@imperial.ac.uk |
78e5bb79876dae249b0a9fd6b8d331c441ff4a64 | f00f97b6450a39ad148eec02609b059c244a2e9c | /meaning of life.py | 26a471413d33aac06d6f1109d17895d5bc102dcc | [] | no_license | BridgeFour4/pythonguiexamples | 0eaae8fe71268161995af8269f40eab39cc719ed | 79b7304ab2d207b215eb48064aa1b309ec169b6a | refs/heads/master | 2020-04-27T14:43:32.889899 | 2019-03-11T20:11:17 | 2019-03-11T20:11:17 | 174,418,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from tkinter import *
class Application(Frame):
def __init__(self,master):
super(Application,self).__init__(master)
self.grid()
self.create_widgets()
def create_widgets(self):
self.configure(bg="silver")
self.labelone = Label(self,text= "Enter password for the secret li... | [
"nathan.broadbent@tooeleschools.org"
] | nathan.broadbent@tooeleschools.org |
f67485b6750b8322f509252eb0862cc7b39aa952 | 38c4f683d6fe10d671834549fe80406b1de75ced | /api/users/migrations/0001_initial.py | 830889b99ddfc74ce22d6d468ae8a4c0f8853664 | [
"BSD-2-Clause"
] | permissive | charles-vdulac/django-rest-skeleton | 1a3b05e349eaad82e0e99477aedc8dad4ff1698a | 2e621c030046f317b01359b716dae2120e1f7525 | refs/heads/master | 2020-12-24T10:53:55.305379 | 2014-06-12T13:09:12 | 2014-06-12T13:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,961 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
needed_by = (
("authtoken", "0001_initial"),
)
def forwards(self, orm):
# Adding model 'User'
db.create_table(u'user... | [
"sebastibe@gmail.com"
] | sebastibe@gmail.com |
5b17fbdae955c7e13c8c9c2642f0d53af96add6b | 03f00d55672f0cd1edf2a5e5aacb4896aee624a9 | /company/models.py | d28c471e7823cccb51433b71f60d03287a7ee2c9 | [] | no_license | progiri/aiu_site | fe34cb884f01010e522855ade73c0a3be6476f02 | 17e81163c12d4861500d8d7d8e0207ded144f305 | refs/heads/main | 2023-06-11T15:04:50.658387 | 2021-06-29T04:17:17 | 2021-06-29T04:17:17 | 378,497,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from django.db import models
class Location(models.Model):
title = models.CharField(
max_length=255,
verbose_name='Название'
)
class Meta:
verbose_name = 'Местоположение (город)'
verbose_name_plural = 'Местоположения (город)'
def __str__(self) -> str:
retu... | [
"yerassyl.ak@mail.ru"
] | yerassyl.ak@mail.ru |
df931b896dc092c4cf234d2b30a65601baa984cb | 06d42cdf96dc12d3582ee2b107c481800eea95ae | /exercises/ex8_8.py | b57df9a6d5477ca300240ac35589a9f63c1a0c20 | [] | no_license | GiaDieu/Python-exercises | 236773137b1156dd9e5c2aef91b8e0ab4ecdb6fb | 81ae81fc91d27c64f4f70922fb4c09cf8d73902d | refs/heads/master | 2020-09-11T18:06:47.769509 | 2019-11-16T19:20:38 | 2019-11-16T19:20:38 | 222,147,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | #!/usr/bin/env python3
__doc__ = '''
Viết script get_version nhận vào ngày ở format <month>/<day>/<year>.
VD: 03/28/16 làm parameter và in ra một version được tính theo quy luật sau:
- Version ở dạng format: <MAJOR>.<MINOR>.<PATCH>, vd: "6.9.2"
- Từ ngày 09 tháng 02 năm 2016, phiên bản bắt đầu là "1.0.0"
- Mỗi 28 ngày... | [
"giadieuly@gmail.com"
] | giadieuly@gmail.com |
d600fb5bea2fd528892cf24f66259ab17cd92938 | 98dbbcd09777a3071c4decefff8b19d477f225a1 | /plot_functions.py | e532e7d0e6c7f802fb7e4a06c37470423110bd63 | [] | no_license | ChristianMorup/RL_Pong | bbcc54f20f44be68ffb80b8257af067755a87476 | 8304df69ef0cabbb4b12b65a1b547fc32eb49b8d | refs/heads/main | 2023-01-23T10:03:09.283135 | 2020-12-01T18:01:38 | 2020-12-01T18:01:38 | 313,404,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,335 | py | import numpy as np
import matplotlib.pyplot as plt
from file_util import FileUtil
from modes_and_types import *
apply_filters = True
#TODO:
## Proportional to the distance
## Font and width of figures is too small
## Put labels on top of the figure
## Number of missed balls
## Invert the scores
#reward_types = all_r... | [
"chrmorup@gmail.com"
] | chrmorup@gmail.com |
be9bfbbae588fe4bff415889569809c937fc371a | c6ac57175975de3353faee0c2f1f796e2cd16a16 | /bot1.py | 4ee830465388df215de35511828cc2758ed29857 | [] | no_license | 3rdmonth/env_pizzabot | 9c37062567dbdd010b40d1eb19de91f96cdd9b9a | ebe8bdad23206514a5f7ac3c6a3fca3b302bde78 | refs/heads/master | 2022-12-14T14:23:47.930610 | 2018-09-29T18:22:03 | 2018-09-29T18:22:03 | 150,890,812 | 0 | 0 | null | 2021-06-01T22:42:00 | 2018-09-29T18:12:21 | Python | UTF-8 | Python | false | false | 689 | py | import requests
url = "https://api.telegram.org/bot645781983:AAHslgjt-LRnVX57f-40hlQwQMBC-oYoQtc/"
def get_updates_json(request):
response = requests.get(request + 'getUpdates')
return response.json()
def last_update(data):
results = data['result']
total_updates = len(results) - 1
return result... | [
"vas.viktorov@ya.ru"
] | vas.viktorov@ya.ru |
3daab6c956e8d126316ecdb6ef6e71d8af6a258d | 1c8a1b7cfb5c78fe94c4cc62a78dbfff96161924 | /day05/test04.py | 7715b05a49b005d9cad71dc19124fa6797945c72 | [] | no_license | WHUTyuen/PIL_opencv | d264858f0eaa4ecc555747efd5f277f48a432b91 | 3ae6e7d878215866c304e64eac05bf1011ecb428 | refs/heads/main | 2023-01-01T14:00:33.331676 | 2020-11-01T11:35:18 | 2020-11-01T11:35:18 | 309,072,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import cv2
import numpy as np
A = cv2.imread('3.jpg')
B = cv2.imread('4.jpg')
G = A.copy()
gpA = [G]
for i in range(6):
G = cv2.pyrDown(G)
gpA.append(G)
G = B.copy()
gpB = [G]
for i in range(6):
G = cv2.pyrDown(G)
gpB.append(G)
# generate Laplacian Pyramid for A
lpA = [gpA[5]]
fo... | [
"noreply@github.com"
] | WHUTyuen.noreply@github.com |
80d37d02b7af083195de59d9af45ee86907bdc6d | 06651ac98fd2e89fa9a6b48fe536e5b93172909d | /object_decorator.py | e6dbf69910053c38780b152039108f16845707d1 | [] | no_license | stephclleung/Worksheet-Generator | 3c8e5d8d4e022c30073ea2d67074732074c3afc2 | e3c5226db1ce949f1a2f22448b2bdadd493786f3 | refs/heads/master | 2020-04-12T10:14:38.948411 | 2019-02-25T07:34:43 | 2019-02-25T07:34:43 | 162,423,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | # Objects - Decorator Pattern
#
# Stephanie Leung (2019)
from random import randint
from numpy.random import choice
import nouns_gen as nouns_gen
import adjective_gen as adj_gen
DEBUG = False
class AbstractObject:
pass #Simplifying for now but may need to add in more later.
class Noun(AbstractObject):
def __init... | [
"iLoveSalmon!1"
] | iLoveSalmon!1 |
7d718cf991da1edadb32ecc20b535482d1412c2f | 9c6e055fc8c15d5a2e1dbec40cf2ab6534b49793 | /nourisher/settings.py | 264a24d78a7ca4f660a040e60b4b486ec63c91ab | [] | no_license | hnykda/nourisher | 0d70bac6a19ed95656e7ef51a4bb18e8b4aae9d2 | 6049d5b47c9004b3badfee89bcf7c259c84c4442 | refs/heads/master | 2021-01-20T16:12:04.940861 | 2015-07-27T16:42:04 | 2015-07-27T16:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import logging
log = logging.getLogger(__name__)
"""
Created on Dec 22, 2014
@author: dan
"""
"""
Here is possible to set customizables - global variables
"""
### DATABASE ###
DB_IP = "localhost" # IP where is MongoDB running
DB_PORT = 5432 # port where is database running
DB_NAME = "testdb" # Name of default da... | [
"kotrfa@gmail.com"
] | kotrfa@gmail.com |
adfd6bfcac5e5eed8bffd7e1f79d115c31bb2607 | da04aa71c2802fa6f9c1fd463f31ad4e4e514df9 | /heartbeat plot.py | dba47c3bd4c508f9c1ad21e9e5c136d7508d4c77 | [] | no_license | JayDosunmu/shield | e698dde7de57277d361e212c41ea986c0c7f21ad | 89f9444f6f98f06db0c04858f1b2bee1ce01ca43 | refs/heads/master | 2021-01-17T09:46:29.085320 | 2017-03-05T18:52:47 | 2017-03-05T18:52:47 | 83,992,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import plotly.plotly as py
import plotly.graph_objs as go
import pyrebase
import time
config = {
"apiKey":"AlzaSyBcPkjp50hVFQj3jL7NdCMul0Cw9jP5gkc",
"authDomain":"hacktech-12dad.firebaseapp.com",
"databaseURL":"https://hacktech-12dad.firebaseio.com",
"storageBucket":"",
}
fb = pyre... | [
"tjdosunmu@gmail.com"
] | tjdosunmu@gmail.com |
284cf89f5485e9276d982fb582c9377e25489e30 | 920a5a8df0a6afbdcc1363fb74292074dec3b516 | /tf2onnx/rewriter/random_uniform.py | 23c450964d2db499b4dcc134d45f931bca7fd276 | [
"MIT"
] | permissive | anttisaukko/tensorflow-onnx | a674a6ce0002912c42914a69e8333b379391af46 | 1341bdf476df6023b75bc6b3c6e4cda00cc58a29 | refs/heads/master | 2020-04-08T21:17:35.616038 | 2018-11-28T14:47:27 | 2018-11-28T14:47:27 | 159,737,860 | 0 | 0 | MIT | 2018-11-29T22:54:42 | 2018-11-29T22:54:41 | null | UTF-8 | Python | false | false | 3,044 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
"""
tf2onnx.rewrite - rewrite tensorflow subgraph to onnx random_uniform op
"""
from onnx import helper
from tf2onnx.graph import Node
from tf2onnx.graph_matcher import OpTypePattern, GraphMatcher
from tf2onnx import... | [
"pengwa@microsoft.com"
] | pengwa@microsoft.com |
ddc6ecb74c82d9731a0332ca8a4960eb0ace0285 | b78b3cb27b84b79246dd24b88108a50d7e52edb6 | /pprzrest/mSimProcMon.py | 8c89289003c555db1ba0caef5ff130560f99494f | [] | no_license | savass/paparazzi_box_frontend | 93012f2f0919785c41b5a14509c1a6103f1605ce | 1b91659b890d16f897b63dc224836af29d0d2f06 | refs/heads/master | 2021-01-25T07:34:31.278819 | 2015-04-22T13:43:44 | 2015-04-22T13:43:44 | 34,392,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | #Simple monitoring tool to watch agents
import time
from threading import Thread
import fcntl
import os
from mProcessHolder import ProcessHolder
class SimProcMon:
ProcessDemonThread = None
RunProcessDeamon = True
ProcessList = []
ProcessOutput = ""
def __init__(self, Logger, SocketIo=None):
... | [
"sen.savas@gmail.com"
] | sen.savas@gmail.com |
072124f7bf3fc900a33e0ea67e58898b947b9d5c | 87998e751e753dd4d75848ee292631d96b71d608 | /aoc/year2020/day2.py | c37501a97f7ff8492b062238bfec7e3aaeb5d164 | [
"Unlicense"
] | permissive | ongyx/aoc.py | 7da09592985c6688fb766f6c4b80526f51d2c290 | 48d23b2611384cf87b2722d6fd65728bb950c3f9 | refs/heads/main | 2023-01-31T07:50:44.349391 | 2020-12-16T03:43:06 | 2020-12-16T03:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # coding: utf8
import re
from aoc import aoc
# We use a regex to parse each line, in the format:
# (min)-(max) (letter): (password)
# For part 2, we need to fidde with the Boolean logic abit.
RE_POLICY = re.compile(r"(\d+)-(\d+) (\w): (\w+)")
class Problem(aoc.Problem):
def solve(self, part):
vaild_cou... | [
"ongyongxin2020@gmail.com"
] | ongyongxin2020@gmail.com |
1aaceb54e5b237cd1f0061a9184ee10f4afd7a63 | cba5017525d30f84f4555bc0e10f1f83126f1d4a | /PowerClient/bin/main.py | 2b7af5a8bdb8d84c2687ddb6d2eed2ca8d1375e7 | [
"Apache-2.0"
] | permissive | cycmay/SolarS | 66e97a0de6b459f8bb05b03c2690d9852d92209a | 284bcafa5da210e5c4200d19e46b3fa6bb5acb20 | refs/heads/master | 2020-05-23T18:09:09.760666 | 2019-05-24T15:42:25 | 2019-05-24T15:42:25 | 186,882,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
完全可以把信息收集客户端做成Windows和Linux两个不同版本。
"""
import os
import sys
BASE_DIR = os.path.dirname(os.getcwd())
# 设置工作目录,使得包和模块能够正常导入
sys.path.append(BASE_DIR)
from core import handler
if __name__ == '__main__':
handler.ArgvHandler(sys.argv)
| [
"1769614470@qq.com"
] | 1769614470@qq.com |
cdede1a5eecbcfedafb5177344e00ab2dc3e9821 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Yash/Python/april5/prog5.py | a9186b792a3f46d892bdf941b3d00acb7fecf2ff | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 281 | py | # To delete a file, you must import the OS module, and run its os.remove() function:
import os
if os.path.exists("demofile.txt"):
os.remove("demofile.txt")
else:
print("The file does not exist")
# To delete an entire folder, use the os.rmdir() method:
# os.rmdir("myfolder") | [
"malavade47@gmail.com"
] | malavade47@gmail.com |
e9a4c0ee8774a16092863b3972e7e903593cac32 | 492cb86b533bc74962a0e25ad190dab131f7cb09 | /humanScape/urls.py | d66fdef307d8290976f7ee67668986092280f3c9 | [] | no_license | acdacd66/humanscape | 75f27815f6c1ac5975b3822e5abc5738aa9b3118 | 6fbeeca3346569c7f861bbffcbec731a6a9d6e51 | refs/heads/main | 2023-09-02T01:55:49.806746 | 2021-11-16T17:29:36 | 2021-11-16T17:29:36 | 428,570,173 | 0 | 1 | null | 2021-11-16T11:22:32 | 2021-11-16T08:10:30 | Python | UTF-8 | Python | false | false | 820 | py | """humanScape URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-ba... | [
"you@example.com"
] | you@example.com |
276ee2323e5bd2b36459c096005c556b3732ee1f | 6832a7fa70fc98f62b777421fca13989b8e2e1e9 | /greeting_decorator.py | 6254f95fa5c91f95649dcbfae0570d84bbd5cc75 | [] | no_license | serdarayalp/my-python | f553df88b284528dddd245557935f349b34df963 | 1e23e6b9cccdeb96f3bfd9a0812638dd8c02c189 | refs/heads/main | 2023-02-28T00:39:24.691917 | 2021-02-06T08:53:30 | 2021-02-06T08:53:30 | 330,440,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from functools import wraps
def greeting(func):
@wraps(func)
def function_wrapper(x):
""" function_wrapper of greeting """
print("Hi, " + func.__name__ + " returns:")
return func(x)
return function_wrapper
| [
"serdarayalp@googlemail.com"
] | serdarayalp@googlemail.com |
56255c3a178b2823db3fdb697e972ac01d1e2f03 | 3a5dab20e575c9d6d1f671faba7da8f6085d9ed8 | /RepositorioInfo/chacoferia/apps/inicio/views.py | eab1b18c67ddcafd6cb4c9da16ca566ff43dd7c6 | [] | no_license | Diego-Caza/ProyectoFinal | 77cb45310375e31c2924b10ecd2dfad9533f2982 | 47ce682027d4230a494e4b875367a65e386a0746 | refs/heads/master | 2022-12-19T12:35:49.020185 | 2020-10-01T16:37:31 | 2020-10-01T16:37:31 | 300,335,385 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from django.shortcuts import render
from apps.publicaciones.models import Producto
from django.views.generic import ListView, DetailView, CreateView
# Create your views here.
class Populares(ListView):
model = Producto
template_name = 'inicio/inicio.html'
queryset = Producto.objects.order_by('-id')[:4]
class Popu... | [
"cazadiegoy@gmail.com"
] | cazadiegoy@gmail.com |
2f4d530d9958802e44c5a71b92bc8a6bf4fd5a84 | 0149c07b7c1bdd2d56aecf9934e16ec9c5b163c7 | /oc_ocdm/test/storer/test_storer.py | 5be49fe468ed9e80b576ea191f16708cec2154aa | [
"ISC"
] | permissive | opencitations/oc_ocdm | fac6903403b4149cafd080a88d761ebb44fb91cf | 26298e81fd4903ad60edb1d824f2c7abbdc88656 | refs/heads/master | 2023-07-07T23:53:38.396919 | 2023-06-22T15:20:16 | 2023-06-22T15:20:16 | 322,327,342 | 2 | 6 | ISC | 2023-03-14T08:41:54 | 2020-12-17T14:56:50 | Python | UTF-8 | Python | false | false | 11,370 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
... | [
"arcangelomas@gmail.com"
] | arcangelomas@gmail.com |
38840ebcb8cb679446cceb6b8beace276bf9b1a7 | 415e9349304a1fc2555a55ff0e3caff3fce26e68 | /hydrogen_atom.py | 214b1a0a8884d76d855e9fc4a7fc2faa8d7bf7eb | [] | no_license | einathauser/tau-dmc-2017 | 9a3ba554e5565628c227c8ba04167ef8790f6571 | 154a953b5905545739908f4216e33b2204c151ff | refs/heads/master | 2021-01-23T09:39:49.761259 | 2017-09-13T13:12:54 | 2017-09-13T13:12:54 | 102,589,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import matplotlib.mlab as mlab
MAX_X_SIZE = 1e6
def sample_bins(x_max, x, n_boxes):
r_max = np.sqrt(float(3*x_max**2))
radius = np.array(np.sqrt(x[:, 0]**2 + x[:, 1]**2 + x[:, 2]**2)).astype(float)
bins, _ = ... | [
"ehauzer11@gmail.com"
] | ehauzer11@gmail.com |
27c38c01ec059532373e8cd03289ccde4ded2e1d | f0f3f8731145e236e8e08dafb4201108d35af488 | /wish_list_items/migrations/0007_auto_20160414_1317.py | 8478f0d9cfbb5235617279dac1587637337832db | [] | no_license | AaronScruggs/wish_list_project | 49fdfc9c3a9e72470084bbf283085c15aa659a3e | a2a741823e0a570390ce344f3407f6f3b57f2590 | refs/heads/master | 2021-01-01T05:18:10.817456 | 2016-04-19T00:36:24 | 2016-04-19T00:36:24 | 56,259,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-14 20:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wish_list_items', '0006_auto_20160414_1312'),
]
operations = [
migrations.Al... | [
"aarondscruggs@gmail.com"
] | aarondscruggs@gmail.com |
4cf93fc1cb9c2a0a2877f9616693f8488607baa0 | 10e8c5f2f917fd091b0bab7aed18f4130039fa86 | /day_7_2.py | 71299c297d0081f51e139cc688aec2245d0f6f76 | [] | no_license | DannyBarbaro/AOC_2019 | 9383a2f14c50cbed9c359fff5f62edd291e1da77 | e1b7948ebc76af9e5bab076c18a6140e54e54f64 | refs/heads/master | 2020-12-03T17:56:23.228622 | 2020-01-02T16:30:14 | 2020-01-02T16:30:14 | 231,418,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | datastream = []
def get_value(val, mode, data):
return data[val] if mode == 0 else val
def oppcode_1(val_1, mode_1, val_2, mode_2, result, data):
data[result] = get_value(val_1, mode_1, data) + get_value(val_2, mode_2, data)
return data
def oppcode_2(val_1, mode_1, val_2, mode_2, result, data):
data[result] =... | [
"dxb486@case.edu"
] | dxb486@case.edu |
9872a4700e6e9c1bd2a6de233fa4c578321b2559 | ac6fdcfe85b72bcf1b719bdea3ce7f9954217fd3 | /zap_transformers.py | 99dcb9b97c33bf38a861744f3fe4f97081fc6b5d | [] | no_license | giuice/ds-zap-challenge | 084510963ee413b8d62aafcb600cfebd1b86d6e6 | 34eb56c1ee74d9af02a668522bb97fea1ac95c9e | refs/heads/master | 2020-06-25T23:08:32.085580 | 2019-08-16T21:07:48 | 2019-08-16T21:07:48 | 199,449,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,621 | py | # Reference
#
import numpy as np
import pandas as pd
import warnings
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils.validation import check_is_fitted
from base_transformers import BaseCategoricalEncoder,BaseCategoricalTransformer, _define_variables, BaseNumericalTransformer
from sklearn.... | [
"giuice@gmail.com"
] | giuice@gmail.com |
868e5aecbeb632ef54b45e30b589b06ef555afab | 8a8dc992231e30f70e2eb645a2d869a730d3c052 | /backendvfinal4.py | c2f42ef346ee5a8a29839e1e19c4f4175b16f97a | [] | no_license | severlove/backend_project | 111c3f34fb9891f6a1e0f02cab6530e099215dca | 48c3f2c0d2c7ff6bd5d520303eda4deff229611e | refs/heads/master | 2020-04-27T07:53:17.313968 | 2019-03-07T16:37:09 | 2019-03-07T16:37:09 | 174,151,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #!/usr/bin/env python3
import psycopg2
def top_3_articles():
'''Print top 3 articles of all time'''
db = psycopg2.connect("dbname=news")
c = db.cursor()
query = """SELECT articles.title, count(articles.title) as num
FROM articles,log
WHERE articles.slug = SUBSTRING(log.pa... | [
"noreply@github.com"
] | severlove.noreply@github.com |
98872d68f0a8214b87de5d704fb379cb99c72671 | 6f76052e2a1161b8a728dd6fff6dfafd107c6c57 | /Kuznechik.py | 58c46f3b1ea4e3f98d1464f74da175e13cfeeead | [] | no_license | mratnikov/Rain | e33ed9bf51a0eebd8a4cd1e8c6f039fc511658bf | a11c662a87647078141fb213379c544b258881fc | refs/heads/master | 2020-03-24T11:59:53.650407 | 2019-03-14T17:38:23 | 2019-03-14T17:38:23 | 142,700,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | F = [0] * (n + 1)
F[0] = 1
F[1] = 1
for i in range(2, n + 1):
F[i] = F[i - 2] + F[i — 1]
| [
"mratnikov@gmail.com"
] | mratnikov@gmail.com |
f25d084d56d88bcd33d43a1a0ea324541f6d799f | ae9ff58a96682e57da9b6a1376db7ece5d84baa2 | /contrib/bulk_operations/bulk_operations.py | 005659e1475c3241682c87ea583fa35188da1cdc | [
"MIT"
] | permissive | simozhan/product-definition-center | 0ca1fde76c9c80368e3116dd68465fe91a290c7f | 55c2de179cf4169213c8a8bd81977e0cdc8ee350 | refs/heads/master | 2021-01-22T16:05:30.731848 | 2015-07-24T04:46:16 | 2015-07-24T04:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,001 | py | #
# Copyright (c) 2015 Red Hat
# Licensed under The MIT License (MIT)
# http://opensource.org/licenses/MIT
#
"""
This module provides BulkRouter that extends the registered ViewSets with bulk
operations if they are not provided yet.
To display documentation in the browsable API, it is necessary to provide a
method `bu... | [
"lsedlar@redhat.com"
] | lsedlar@redhat.com |
d3d12734a381e7185f0368cdd0b926088c0b7116 | 648f5819d70686852720d6b598b66ea37cc49b71 | /setup.py | 1a9e1c6cd8a870c6d9ed3796176d7514507caf98 | [
"MIT"
] | permissive | itoldman/chinese_province_city_area_mapper | 88981f1e74507ac3cdd8ff0b60a7b5716bb701f4 | 7d7537a412dc1c543f3481f5520b3c75cf49ebb0 | refs/heads/master | 2020-03-30T12:46:11.678976 | 2018-09-26T17:59:50 | 2018-09-26T17:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,033 | py | # -*- coding: utf-8 -*-
from setuptools import setup
LONGDOC = """
chinese_province_city_area_mapper
==================================
chinese_province_city_area_mapper:一个用于识别简体中文字符串中省,市和区并能够进行映射,检验和简单绘图的python模块
举个例子::
["徐汇区虹漕路461号58号楼5楼", "泉州市洛江区万安... | [
"932087612@qq.com"
] | 932087612@qq.com |
8130572a3731398674da676762ba7c5a6251ef9f | 79a23f55af0e8d4898714b7e210cadc88033a390 | /website/views.py | eae6187e75e7acb17fd508e9063dcc70f47de1c6 | [] | no_license | luoyueyaoqing/forum-website | be9bc7802d83a58abc3f802469287b3c2e11f44b | d5fbb14adf3a3e75f70df8f6eed397665f9c2d84 | refs/heads/master | 2020-03-25T10:01:16.533106 | 2018-08-15T08:48:55 | 2018-08-15T08:48:55 | 143,681,923 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | from django.shortcuts import render, HttpResponseRedirect, redirect, HttpResponse
from .models import User, Article, Plate, Comment
from django.contrib import messages
from django.contrib.auth import login, authenticate, logout
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decor... | [
"shmilyfae@163.com"
] | shmilyfae@163.com |
3f17973dce3bd98e0003d899e9f727b81dc0574e | 27767ea4ec9cb4b3d8a3ba31c9e668957d3f900c | /tools/statistic.py | 4606f091b46a67087b07c966d225389bbf7ff6f9 | [] | no_license | 01ghost13/smartyPantsBot | 8609dd71bfaf0ace1d137cc7bbe4cf87e6b9f1b6 | bc8943b416e42be263cc617c17e702b978aeab8b | refs/heads/master | 2020-04-10T07:27:03.989421 | 2019-05-12T12:55:38 | 2019-05-12T13:04:55 | 160,880,698 | 0 | 0 | null | 2018-12-16T14:52:15 | 2018-12-07T22:12:11 | Python | UTF-8 | Python | false | false | 666 | py | from tools import Database
class Statistic:
smile_count_sql = """
select e.name, e.discord_id, count(e_m.id) as smile_count
from emojies as e
join emoji_messages as e_m
on e_m.emoji_id = e.id
join messages as m
on m.id = e_m.message_id
where m.channe... | [
"orkich@gmail.com"
] | orkich@gmail.com |
a19dea9f4e498c18ae262efb60f03b1b275e63ba | f43df719ae5cc238c450f01959e4cb3625ae1c82 | /config_make.py | d96d27bb8e73dd8fb5491ba43c7d0623f1a1fee9 | [] | no_license | kenshow8/eth_erc20_token_python_api | 8f10e5aaa503730b4abc66ebd8f1779b97e021f0 | 4390d47bcb574205230fefb8cb9b2e4b238ac27e | refs/heads/master | 2022-09-29T14:09:10.058167 | 2020-05-31T08:08:14 | 2020-05-31T08:08:14 | 268,100,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # coding:utf-8
import os
import configparser
from pathlib import Path
file_dir = Path(__file__).parent
file_name = 'config/setting.ini'
file_path = file_dir.joinpath(file_name)
config = configparser.ConfigParser()
# コントラクト設定
config_web3 = 'web3_config'
config.add_section(config_web3)
## web3 設定 ##
config.set(confi... | [
"wmapp.kj@gmail.com"
] | wmapp.kj@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.