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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31dfa1ea8131220d682fa65569dac25250d32b06 | 832368f4a10376e3a0172bad1cedc5c71807bf32 | /PyPollHomeworkPart2.py | 8235c0588e4f3333f67f644c5fd98a62a056b562 | [] | no_license | elambrano/Python-Challenge-Part-2 | 73023a1e8fbf8c4bdb80dd413d6e58487e9e4c24 | 2201fd8f67564e9df3fe56e088eca61b18ec1b2b | refs/heads/master | 2020-04-13T03:04:05.711533 | 2018-12-23T20:10:20 | 2018-12-23T20:10:20 | 162,920,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | fn = 'Resources/election_data.csv'
f = open (fn)
contents = f.read()
f.close()
lines = contents.split('\n')
print('Length =', len(lines))
for line in lines[0:10]:
print(line)
lines = lines[1:]
# drop last line if it's empty
if lines[-1]=="":
lines.pop()
#Question 1 (total Votes)
total_v... | [
"noreply@github.com"
] | elambrano.noreply@github.com |
33389fb5d60e6f5adb6b4617ea997145e425efe2 | 02468531b67787532600a27b5a1c1b2db5daf11b | /bullbearetfs/selenium/eventcapture/tests.py | 27e19b345ee89a30ab52acacb5b387c67af59ea6 | [] | no_license | henrimeli/invest2020 | d284af960b34a6ccc830524826fd1be9271168bf | eb699fd3c70ab0e1cffc56cb86855f6a22849aed | refs/heads/master | 2023-01-31T14:54:22.451146 | 2020-12-15T08:44:06 | 2020-12-15T08:44:06 | 312,067,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import unittest, xmlrunner, time
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.urls import reverse
from bullbearetfs.selenium.core.browsers import EggheadSeleniumBrowser
###############################... | [
"bepanda@gmail.com"
] | bepanda@gmail.com |
375457d210d4b2f2727061290fd2565a8958df81 | f1c133caa0d4113589040cfd01e4bafe82ae84fa | /210327/semain_๊ฐ์ฅ ํฐ ์.py | 7df93d290ded70d882ae71009424558029b467bf | [] | no_license | amane-IT/CodingTest | d5c9d4be9ec88bc9a4bf972b764576631b623242 | 83ce192aceb7ad8626de5a28ef535b3f1ebe1e88 | refs/heads/main | 2023-08-11T18:53:03.984487 | 2021-09-19T09:30:23 | 2021-09-19T09:30:23 | 412,737,107 | 1 | 0 | null | 2021-10-02T08:28:46 | 2021-10-02T08:28:45 | null | UTF-8 | Python | false | false | 1,007 | py | def solution(numbers):
numbers = list(map(str, numbers))
numbers.sort(key=lambda x:x*3, reverse=True)
return str(int(''.join(numbers)))
"""
๋ฌธ์ ํ์ด
ํํธ: numbers์ ์์๋ 0 ์ด์ 1,000 ์ดํ
*๋ชจ๋ ์กฐํฉ์ ๊ตฌํ๋ ค๊ณ ํ ๋ ์๊ฐ ๋ณต์ก๋๋ (O(numbers)!)
==> 1์ด๋ฅผ ๋์ด๊ฐ
==> ์ ๋ ฌ๊ณผ ํ์์ nlogn์ ์๊ฐ ๋ณต์ก๋๋ฅผ ๊ธฐ์ค์ผ๋ก ์ก์์ผ ํจ
์์) numbers = [6,... | [
"noreply@github.com"
] | amane-IT.noreply@github.com |
3e5b4e6f763a26884b9e42e10d66924e9ab53b82 | 959f70ef067d446b159a5a69f839afff453d0f49 | /Datasets/circRNA-RBP/FOX2/code.txt | bff8b18440e4ebeae769e8c905d5bacd7999b995 | [] | no_license | houzl3416/iCircRBP-DHN | db2ecded61240dd75c53ffd401eb57b2d168d8b3 | f1b4836aa4f1ffa4055d9cea51cb56d521ba14a2 | refs/heads/master | 2023-03-29T15:24:37.182020 | 2021-03-22T12:49:30 | 2021-03-22T12:49:30 | 290,127,792 | 6 | 2 | null | null | null | null | GB18030 | Python | false | false | 5,691 | txt | #!/usr/bin/env python
# encoding: utf-8
import keras.backend as K
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.model_selection import StratifiedKFold
from sklearn.model_selection import KFold
from sklearn.metrics import roc_curve, auc, roc_auc_score
from keras.preprocessing.text ... | [
"33145210+542121317@users.noreply.github.com"
] | 33145210+542121317@users.noreply.github.com |
150efe4399f75590dbde7ec1c2bc8fa2d003fb42 | 00bcc077360eca2b4a807ae5b83fdddeb076bbfd | /comments/serializers.py | ff483acbedd1e150da6b8a1468164d5d70485b61 | [] | no_license | LucasCarrias/basic-web-api | 499416f2151749fd0c2afe15b4fcc56857bbbf86 | 13f664a9b561910013c72a338a371098acaf7481 | refs/heads/main | 2023-02-02T12:06:26.555455 | 2020-12-22T02:17:25 | 2020-12-22T02:17:25 | 322,755,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from rest_framework import serializers
from .models import Comment
class CommentSerializer(serializers.ModelSerializer):
postId = serializers.CharField(source="post_id")
class Meta:
model = Comment
fields = ['id', 'name', 'email', 'body', 'postId'] | [
"lucascarrias@outlook.com"
] | lucascarrias@outlook.com |
70477943b2e12cf9034eb2a84630f09be1aa398e | cd771773bf6b8d966a4d831d89e6b405701c2948 | /backend/urls.py | 072b5188d835664de0bd923c48fb91c888dd35a5 | [] | no_license | cti21/CQCRM22 | f4160ee27e52ccc1ddd2771b7cd6674574314b1b | 53b30ea1a0c04f97d29a34333df8875b06ab5cb3 | refs/heads/master | 2022-02-28T20:23:20.140170 | 2019-10-13T08:43:34 | 2019-10-13T08:43:34 | 214,786,456 | 0 | 2 | null | 2022-01-15T05:28:56 | 2019-10-13T08:33:31 | Vue | UTF-8 | Python | false | false | 3,435 | py | from django.conf.urls import url
from backend.views import *
# backend url ้
็ฝฎ
urlpatterns = [
url(r'^info$',info,name='info'),
url(r'^logout$',logout,name='logout'),
url(r'^getTcTreatHistroryData/',getTcTreatHistroryData,name='getTcTreatHistroryData'),
url(r'^getOrderSelectData/',getOrderSelectData,nam... | [
"cti21@163.com"
] | cti21@163.com |
d58b48a3b4056d05eabee5719a20f32556470175 | 497ad4c998a60f1aacab0dfccd5c034b9f60c11b | /Agentes/main.py | e108db6c21b55e8f554cb02466300a208d0ca15a | [] | no_license | LazardStrife/agents | b19bd1947dbff67cb36480d3b38254c22bc5a31b | 74ed19f646aac5d4e33a0d6c5bc0eb9abed29f60 | refs/heads/main | 2023-01-19T09:15:45.943878 | 2020-12-01T05:15:08 | 2020-12-01T05:15:08 | 317,379,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | from simulation_logic import Initial_Scenary
import copy as cpy
def run_simulations_with_robot_type_A():
scenaries = [Initial_Scenary(5, 5, 40, 15, 4, 50),
Initial_Scenary(7, 9, 30, 10, 6, 100),
Initial_Scenary(8, 10, 25, 30, 8, 150),
Initial_Scenary(11, 11, 30, 1... | [
"lazardstrife@gmail.com"
] | lazardstrife@gmail.com |
bf4d47352d1dfddd94469e606117a7c21721ac05 | aa38ec617026e708c9eb0ceb63f899aa39e71918 | /estpeople/admin.py | 5b2d30a786cdf4803d4cda13d31bfceab4f3a2b7 | [] | no_license | segremelnikov/rep-test | 1cd601f87b7b9660d1d54a101ad3a85567d8f5da | a84a6b9db95b9fa0f8200d5935ad4a72a6340146 | refs/heads/main | 2023-08-31T21:58:48.709309 | 2021-10-16T01:23:48 | 2021-10-16T01:23:48 | 417,662,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from django.contrib import admin
from .models import Page, Estimation
# Register your models here.
class PageAdmin(admin.ModelAdmin):
pass
admin.site.register(Page, PageAdmin)
class EstimationAdmin(admin.ModelAdmin):
pass
admin.site.register(Estimation, EstimationAdmin) | [
"sergemelnikov86@gmail.com"
] | sergemelnikov86@gmail.com |
e6ea4a04ec64beed34cd77b78d93ca77f9f6c4b0 | ae1976bc9db8134156027aeae1481b6ee6ae776d | /day1/Day1_PythonCode/day1_python_programming_16.py | ac7d85c91a936ca365a9765d452e9bee9ae27a73 | [] | no_license | curieuxjy/DS-for-PPM | d9f6f94c3c01e37b81a19b11e52d458aad102fb3 | 70f37e8cf72bbf6351ba8ee657218758e2bd182f | refs/heads/master | 2021-01-03T11:43:01.220817 | 2020-02-15T17:45:53 | 2020-02-15T17:45:53 | 240,068,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py |
# [์ค์ต 5] ์ฃผ๊ฐ ์กฐํํ๊ธฐ
import bs4
from urllib.request import urlopen
idx_stock = '004170'
naver_index = 'https://finance.naver.com/item/sise.nhn?code=' + idx_stock
source = urlopen(naver_index).read()
source = bs4.BeautifulSoup(source, 'lxml')
#print(source.prettify())
#curPrice1 = source.find_all('em', class_='no_up... | [
"skyfiower9721@gmail.com"
] | skyfiower9721@gmail.com |
ecb5492cf6eb5cfe2f5ed4a178027f8f18d979ae | c80a1a5414f18ed039cd83e7f88d567f40375aad | /get_data.py | 82ca654dbbc170df3ddf31e05dc0cf995bd7aea7 | [] | no_license | jorbau/NetflixAR | c5e222326b89647d1cfc360c7890f66a2b855147 | 7a65a757dd00e0a6dead072824a94209a2a80ed4 | refs/heads/main | 2023-05-07T08:01:10.988178 | 2021-06-01T00:12:51 | 2021-06-01T00:12:51 | 372,163,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | from justwatch import JustWatch
import json
just_watch = JustWatch(country="ES")
l = []
results_by_providers = just_watch.search_for_item(providers=['nfx'], page=0, content_types=['movie'], release_year_from = 2014)
for x in range(results_by_providers["total_pages"]):
results_by_providers = just_watch.search_... | [
"noreply@github.com"
] | jorbau.noreply@github.com |
a98df5dcac6f3e85ccedc80dfed62a64df0ae5a2 | 0deb8c7dcc24b2901b4dc294faf676eb95f4072a | /source/cronjobs.py | fc27609b85f6b00271e693ef2f21f9ab85812b92 | [
"MIT"
] | permissive | Mikumiku747/Student-Planner-Online-GAE | a295a236bf75089b6237288029eecaf07fe5f415 | e923c32715476323324b52f9f2d29cf9ecabc90f | refs/heads/master | 2021-01-22T03:14:04.211192 | 2014-11-02T05:47:32 | 2014-11-02T05:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | #Cronjobs
#Handles automated scheduled events, such as the deletion of past events and switching between weeks a and b.
from google.appengine.api import users
from google.appengine.ext import ndb
import webapp2
import jinja2
from timetable import Timetable
class WeekSwitchingScript(webapp2.RequestHandler):
def get(... | [
"Mikumiku747@gmail.com"
] | Mikumiku747@gmail.com |
95278a678b61e8131be98bc6b397defcfe8925f1 | 49a884c88b040414665ab6484bf530427e31f0d7 | /venv/Scripts/pip3.7-script.py | 8941e18fe6b90f189bb924061500f88b9c91da40 | [] | no_license | JojoPalambas/TSStatMaker | 1835d28b6eddc109c5ef17955739c92b32d91be1 | 94ed5aaeade092bc2caee6f23b5719575ec0d305 | refs/heads/master | 2022-03-28T10:32:39.846189 | 2020-01-13T09:46:12 | 2020-01-13T09:46:12 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 420 | py | #!E:\Donnรฉes\Programmes\Django\TSStatMaker\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip3.7'
__requires__ = 'pip==9.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"depott_g@epita.fr"
] | depott_g@epita.fr |
8f65ce4f1efe7352ca4a791c2c1bd22c36fb5af7 | 61459ef393c252cc52dc56d5ebafff7e055579aa | /cui-spider/chapter04-ๆกๆถ/quotetutorial/quotetutorial/pipelines.py | 97599a9df5d0431e15803b4bee4515b4767227e9 | [] | no_license | Yan199405/Python_note | 5e56824b6ec347ab8af4f04b5070bdc5e6685b80 | d8fd0a83da280f80e7a3e9c535787afa7722e140 | refs/heads/master | 2020-06-13T01:17:33.696802 | 2019-08-12T00:28:17 | 2019-08-12T00:28:17 | 194,485,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
from scrapy.exceptions import DropItem
class TextPipeline(object):
def __init__(self):
self.limit ... | [
"17793217774@163.com"
] | 17793217774@163.com |
174ac64b4968531a363c2eb2da3343b168fc4a5d | b8a914a6a6e30c3b980f987b9ca650f7d50ad743 | /RoomFileParser.py | 73f4b5f942949542721494e1fc66ec3ae5fc8662 | [] | no_license | estiben/Rob3 | daf2b9af8a067cd5f7c95248026c096ecc985469 | 7d5fa1fb44f668991fe43cfd7e91c3dd6a29908c | refs/heads/master | 2021-01-01T19:16:06.359588 | 2012-04-19T18:48:33 | 2012-04-19T18:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import xml.sax
class RoomSAXContentHandler(xml.sax.ContentHandler):
def __init__(self):
xml.sax.ContentHandler.__init__(self)
self.paramList = []
self.currentElement = ''
self.currentClass = ''
def startElement(self, name, attrs):
self.currentElement = name
if n... | [
"steven.douglas2@yahoo.com"
] | steven.douglas2@yahoo.com |
6f3281175ab81b728476fb5171d77260cd8d394d | 73f5461ea52354ea8caa6e08a3989f833fc9d5d0 | /src/python/fsqio/pants/buildgen/jvm/map_third_party_jar_symbols.py | c581fd1cf759f63584ab20647a192c01cd433beb | [
"Apache-2.0"
] | permissive | OpenGeoscience/fsqio | 52b674b3e2d1742916fcec83bbb831ddbd58d1f2 | aaee25552b602712e8ca3d8b02e0d28e4262e53e | refs/heads/master | 2021-01-15T20:23:18.180635 | 2017-06-05T20:25:18 | 2017-06-05T20:25:18 | 66,481,281 | 3 | 0 | null | 2017-06-05T20:25:18 | 2016-08-24T16:36:46 | Scala | UTF-8 | Python | false | false | 4,428 | py | # coding=utf-8
# Copyright 2014 Foursquare Labs Inc. All Rights Reserved.
from __future__ import (
absolute_import,
division,
generators,
nested_scopes,
print_function,
unicode_literals,
with_statement,
)
from contextlib import closing
from itertools import chain
import json
import os
import re
from zip... | [
"mateo@foursquare.com"
] | mateo@foursquare.com |
69f0731a3f3b46ba02834dac5649482141a78a69 | f0122f063e348c6279448e0768113c885e81a1e0 | /convert_output_smart-v2020.01.28.py | 388a7e377e2d3f2d7f5a62f62a0386b649c36268 | [] | no_license | jherfson/Convert-Output-Smart | e0501ac69342533587e030c677d8acf69f6d27a5 | e93d2d76ea7efcf468bed95159bcfc35b3c5eee1 | refs/heads/master | 2022-06-14T07:20:48.990781 | 2020-05-10T06:22:09 | 2020-05-10T06:22:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # Change log
# v2020.01.28
import numpy as np
var = 1
while var == 1:
name = input("Digite o nome do arquivo: ")
try:
with open(name, 'r')as row:
characters = row.read()
separator = characters[309]
if separator != ';':
delimiters = ','
else:
... | [
"noreply@github.com"
] | jherfson.noreply@github.com |
5de082c8ad08281fbec4a9d451210e4fa47fd140 | 6d311039c0ce561c00f0b5dfd9305798baaeca8f | /Exercicios python - IF,ELIF,ELSE/calculadora.py | 3a214dbdb40b5401428eb9566822d09a26789a5a | [] | no_license | WwAzevedo/Python-Exercises | d91d14133beeb2917bbb07cfa69fff67d4048c73 | 454b1b10b542659a60ca3a5d06fa38b4a6638467 | refs/heads/master | 2022-12-18T07:16:45.978735 | 2020-09-17T01:53:37 | 2020-09-17T01:53:37 | 296,187,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | n1 = int(input("Insira o primeiro valor:"))
n2 = int(input("Insira o segundo valor:"))
op = input("Qual operaรงรฃo realizar?")
if op == "+":
soma = n1 + n2
print(soma)
elif op == "-":
menos = n1 - n2
print(menos)
elif op == "*":
mult = n1 * n2
print(mult)
elif op == "/":
div = n1 / n2
pri... | [
"wesley.wazevedo@fco.net.br"
] | wesley.wazevedo@fco.net.br |
035e339aacf1489757af5dacb964d6d303478870 | 7fb650e65c59f9c379040ab5558704ee9be5959f | /assignments/assignment4/fifa.py | a62c15eb92dd40b070f4fba6261b7902eff6d9eb | [] | no_license | rocket-ron/MIDS-W205 | 83d245062ab6fc9be2b1267e0ebcf8e94aaec3b0 | c275e4ab841070e2d2e9fbe1db737ef0ce353f68 | refs/heads/master | 2022-02-02T14:06:45.793627 | 2015-11-23T17:17:33 | 2015-11-23T17:17:33 | 36,993,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import requests
from bs4 import BeautifulSoup
import time
import csv
query = '#FIFAWWC AND (#USA OR #CAN OR #MEX OR #CRC OR #COL OR #ECU OR #BRA OR #NGA OR #CMR OR ' \
'#CIV OR #GER OR #ESP OR #ENG OR #FRA OR #SUI OR #NED OR #SWE OR #NOR OR #JPN OR #KOR OR ' \
'#CHN OR #THA OR #AUS OR #NZL) lang:en since:2015-06-0... | [
"ron.cordell@berkeley.edu"
] | ron.cordell@berkeley.edu |
8eff51fa665518a50f44a8c513d5f865fc70e37a | f512437ea436cdf7667435f1bea661b8b7d4322c | /downloadfileV2.py | c150dbf3a11656a8545dfc1ba5dc842ab013a039 | [] | no_license | siyiwolf/python | 5a75c9d072aa94a05d46219f0551569fc182695e | 595099f6d4c183c2fc5da7399a443e37a6a8b94d | refs/heads/master | 2021-05-05T04:26:50.262683 | 2018-02-27T03:41:14 | 2018-02-27T03:41:14 | 118,591,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,061 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import urllib.request
import requests
import re
import os
#่ฏฅ็ฑปไธป่ฆ็จไบๆฐๆฎ็ป่ฎกไปฅๅๅฏๅจๆขๅค็ญ
class staticLoadNum():
def __init__(self, url, level_num):
self.url = url
self.level_num = level_num
self.list = list();
self.... | [
"392567441@qq.com"
] | 392567441@qq.com |
106da989a8dff66103d031dc2b5908e522088065 | c67708a84466dedddbf446e2053c72a58dcb7a4d | /composer/airflow_1_samples/hadoop_tutorial.py | 5e4541d79557b068a75c053bce5f7d9f0843ebb5 | [
"Apache-2.0"
] | permissive | Matthelonianxl/python-docs-samples | 205d0ebaabf7d6e500fc36950a890c030a2c8882 | 8540237bb81e0b6ff87fa405abdfadd2e164c14c | refs/heads/master | 2022-02-14T12:36:30.927438 | 2022-01-19T17:58:05 | 2022-01-19T17:58:05 | 232,271,126 | 1 | 0 | Apache-2.0 | 2022-02-04T20:11:25 | 2020-01-07T07:44:42 | Python | UTF-8 | Python | false | false | 4,474 | py | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | Matthelonianxl.noreply@github.com |
20663f1e70d2a884a70b48748a48d95537d7616f | 74845e4f5aca34d2c5f2ec6cb1309653cda5da6e | /samples/batch_qtransform.py | d153d56b6aea8ae7b1f3b7016b04748ad65d5118 | [] | no_license | gw-detchar/Kozapy | 3e5fe53019e53c0f4c7e7fd43164c32d075f3740 | 82d31e18eca1658a35265f2ff830f1c9b81d302b | refs/heads/master | 2021-07-22T00:51:36.153126 | 2020-05-28T03:05:21 | 2020-05-28T03:05:21 | 177,755,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,292 | py | '''Make q-transform plot.
'''
__author__ = "Chihiro Kozakai"
import os
import matplotlib
matplotlib.use('Agg') # this line is required for the batch job before importing other matplotlib modules.
import subprocess
import glob
from gwpy.timeseries import TimeSeries
from gwpy.timeseries import TimeSeriesDict
fro... | [
"38804436+ckozakai@users.noreply.github.com"
] | 38804436+ckozakai@users.noreply.github.com |
e6d1f32ef39100eaa119842196cb660e7ec7fb85 | 16bf7df8f176fd1e57b1d3fdf085762c0a6c9ac3 | /gomoku_game.py | 12f4de8ac9a42a29bb8cc300720bfc8eb41118fc | [] | no_license | AaronYALai/Reinforcement_Learning_Project | 69c35c2dfdbe445f08d5d6d9ab24cd080574e735 | 0bb7a2b0ab0d0d1bb94964ab34b978eb98c8b5dc | refs/heads/master | 2020-02-26T15:20:30.100952 | 2016-10-08T08:59:24 | 2016-10-08T08:59:24 | 70,220,858 | 25 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | # -*- coding: utf-8 -*-
# @Author: aaronlai
# @Date: 2016-10-07 15:03:47
# @Last Modified by: AaronLai
# @Last Modified time: 2016-10-07 17:30:26
import numpy as np
def initGame(width=19):
"""Initialize width x width new game"""
state = np.zeros((width, width, 2))
available = np.zeros((width, width))... | [
"aaronlaiya@icloud.com"
] | aaronlaiya@icloud.com |
8a900fcc1c9f2cb65f9dd2a6b7c15eef2898558d | 1b9bd441c500e79042c48570035071dc20bfaf44 | /sources/Content_Quality/mekhilta.py | 6ded5ff121376d5bb37ff8e30b43ebf4f016f14d | [] | no_license | Sefaria/Sefaria-Data | ad2d1d38442fd68943535ebf79e2603be1d15b2b | 25bf5a05bf52a344aae18075fba7d1d50eb0713a | refs/heads/master | 2023-09-05T00:08:17.502329 | 2023-08-29T08:53:40 | 2023-08-29T08:53:40 | 5,502,765 | 51 | 52 | null | 2023-08-29T11:42:31 | 2012-08-22T00:18:38 | null | UTF-8 | Python | false | false | 1,737 | py | from sources.functions import *
alt_toc = """Massekta dePesah / ืืกืืชื ืืคืกืื
Exodus 12:1โ13:16
Massekta deVayehi Beshalach / ืืกืืชื ืืืืื ืืฉืื
Exodus 13:17-14:31
Massekta deShirah / ืืกืืชื ืืฉืืจื
Exodus 15:1-15:21
Massekta deVayassa / ืืกืืชื ืืืืกืข
Exodus 15:22-17:7
Massekta deAmalek / ืืกืืชื ืืขืืืง
Exodus 17:8- 18:27
Massekt... | [
"steve@sefaria.org"
] | steve@sefaria.org |
ef3fd60375149ee9caa3c39d0bb96692633d0fe4 | 4fbc275e56b70eaaa636d2ec43bd47bb26e107de | /tests/format/fistr/test_write_fistr.py | 9ddcd0c8226f6f7fb3fbf33d38a1514451a5048d | [
"Apache-2.0"
] | permissive | yas/femio | 1d0cce174a438fc3b51899a95f28445e076f03a1 | 1b9b07ebea04edcd39ded6c556e707bc4ad58a45 | refs/heads/master | 2023-06-09T03:13:11.420691 | 2021-07-01T09:47:35 | 2021-07-01T09:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,166 | py | from glob import glob
import os
from pathlib import Path
import subprocess
import shutil
import unittest
import numpy as np
from femio.fem_attribute import FEMAttribute
# from femio.fem_attributes import FEMAttributes
from femio.fem_elemental_attribute import FEMElementalAttribute
from femio.fem_data import FEMData
... | [
"yellowshippo@gmail.com"
] | yellowshippo@gmail.com |
427ec14f9dd6ea918369c98d66e97ac83a532b60 | 4405f9190ac11f9d019cb7bf7d21435fbb424b3c | /add_binary.py | 9d582816c907c7d1c8698471d7859161b6ad2948 | [] | no_license | IWinnik/pyPractice | be064e5a18971836822679f29085815368703e7b | 97d79337831b3ac056912449b0c2a23785900be7 | refs/heads/main | 2023-08-02T04:39:27.929276 | 2021-10-03T16:03:36 | 2021-10-03T16:04:03 | 413,091,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from typing import List
def plusOne( digits: List[int]) -> List[int]:
j = len(digits) - 1
while j >= 0:
if digits[j] != 9:
digits[j] += 1
return digits
digits[j] = 0
j -= 1
return [1] + digits
print(plusOne([1,2,9])) | [
"ireneusz.winnik@gmail.com"
] | ireneusz.winnik@gmail.com |
7eb2cebea2ae37abaeaff05644a4e31c4d321648 | 603db646b1ec2a9c9642366cc0da552611560786 | /results/nLoading.py | 0c42f6acc473cca05bb1078a35c6c754fdafbcbc | [] | no_license | yazoo178/08_JUL_TP | 3f6a73795229d35f7ae7fc18246b73de888a4eb0 | 2c020a66bbf6378487cc71525b9235042803f38c | refs/heads/master | 2020-12-02T12:43:58.705785 | 2017-07-07T23:04:46 | 2017-07-07T23:04:46 | 96,582,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | import re
import pylab as p
import numpy as np
import matplotlib.pyplot as plt
import re
file = open("cacm_gold_std.txt")
goldDocs = {}
def frange(x, y, jump):
while x < y:
yield x
x += jump
for line in file:
line = re.search("(\d+) (\d+)", line)
if line:
queryId = int(line.group(1))
... | [
"wbriggs2@sheffield.ac.uk"
] | wbriggs2@sheffield.ac.uk |
5d7cb01dad0c0b9d2f4d9ca5afd5a9e6c680224d | f8dbd8b0fb69bee5eed6560e7eac9625e568bc1f | /tests/test_callbacks.py | d3964c0200c0148b041965705e7f650d676dd68a | [
"MIT"
] | permissive | tesera/pygypsy | 4ab81d94a912eb10e3a5cc486343ac22a95ce48c | cae6ac808e53ebb2465ad28b4787c20e8a452bd0 | refs/heads/dev | 2021-05-01T10:30:57.500910 | 2017-02-03T18:48:00 | 2017-02-03T18:48:00 | 58,996,041 | 3 | 0 | null | 2017-02-01T00:40:27 | 2016-05-17T06:23:55 | Jupyter Notebook | UTF-8 | Python | false | false | 359 | py | import os
import pytest
from pygypsy.scripts.callbacks import _load_and_validate_config
@pytest.mark.skipif(os.getenv('GYPSY_BUCKET') is None,
reason="S3 tests are not configured locally")
def test_load_and_validate_s3_config(config_on_s3):
conf = _load_and_validate_config(None, None, config_on... | [
"jotham.apaloo@tesera.com"
] | jotham.apaloo@tesera.com |
bef0fc73db9a1f6dcb706985062db8f7bd09894c | 316333d0aaae398d51f09cee43640f0f7f5f71f6 | /influence.py | 654069b7d22710110981cb1bea0f1f3118aa0cc6 | [] | no_license | nobkins/gurgle | fc127f2c019a41b50c02420cbccbaf38cf1ec2fa | 03deceb5dc00def469584d2efdb691f2fc1a41bb | refs/heads/master | 2021-06-22T09:27:20.916638 | 2017-08-09T18:41:54 | 2017-08-09T18:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,409 | py | from math import pow, sqrt
from urllib2 import urlopen
from urllib import urlencode
from datetime import datetime as dt
from config import Config
import json
import re
import time
# Logger instance used by the functions in this module
_LOGGER = Config.getLogger("influence")
# Configuration for the Google Sheet intera... | [
"marcosparks@users.noreply.github.com"
] | marcosparks@users.noreply.github.com |
bff401b4024d18170f711c74f11a60dbba29c93a | 370cbf1c31ae62bd17f96db5f8e68f705a2876cb | /facebook/settings.py | 26c583b2475041f29b7d2c4b2dac26bd0fca4669 | [] | no_license | shyamsundar1129official/facebook | f57172e9a745b8c736dbb7938142ad70711a757a | 69667bfeed351fcba1e5f0574119c3cfec8f1602 | refs/heads/master | 2023-05-05T16:27:04.701186 | 2019-10-29T07:05:20 | 2019-10-29T07:05:20 | 218,208,283 | 0 | 0 | null | 2023-04-21T20:39:24 | 2019-10-29T05:06:18 | Python | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for facebook project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"shyamsundar1129official@gmail.com"
] | shyamsundar1129official@gmail.com |
fb27c227f73b008cfdfe76d6ecbf32ec958e3170 | 11c46400a55f204d78dd409f229626e8b1eea656 | /coding_challenge_1.py | b5bf4e5491f5adf365996c2f612980333dafb938 | [] | no_license | azurewillgit/code_snippets | acfd26f08f48d0cea78529efae5e0bd25916cf86 | 5914cc3d9dc6af8b8d6da976ad52fd0945d30b9c | refs/heads/master | 2020-12-03T04:29:16.904409 | 2020-01-07T06:43:59 | 2020-01-07T06:43:59 | 231,201,996 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py |
names = ['Paul', 'Yvonne', 'Tim', 'Hugo', 'Oliver', 'Nadine']
| [
"dennis.will37@gmail.com"
] | dennis.will37@gmail.com |
168a343047d22e06e3684322144074b16a173713 | 133859e4825b22c71bc79990c0ecc1139a74178f | /src/north/cli/gscli/tai.py | a1709a3817ae0f7f42f06d7e392f570c4f60468e | [
"Apache-2.0"
] | permissive | falcacicd/goldstone-mgmt | 9d99eec7e7f4f71f96321cf67c062715450b8395 | e7348011180e3c2dcd0558636ddc5c21779c7a3f | refs/heads/master | 2022-12-05T09:28:46.792508 | 2020-09-03T06:30:34 | 2020-09-03T06:30:34 | 290,127,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,306 | py | import sys
import os
import re
from .base import Object, InvalidInput, Completer
from pyang import repository, context
import sysrepo as sr
import base64
import struct
from prompt_toolkit.document import Document
from prompt_toolkit.completion import WordCompleter, Completion, FuzzyCompleter
_FREQ_RE = re.compile(r... | [
"wataru.ishid@gmail.com"
] | wataru.ishid@gmail.com |
cd1bb9f006222ba1fa141e47c1acdc1149465d89 | 033c991b1ccc49ab12eb3cc3dca45c8fb3714b83 | /__main__.py | d064802c2bd6d5fb044ac8f8b9c7b86f1627e92a | [
"MIT"
] | permissive | SKU-IT/SESS-webservice-client | 2b78a5fdd2a4564013d8e61286a454599bfbb80a | 2101502c39938a5b2f2278e20b14f1c83df1cb0e | refs/heads/master | 2020-03-25T21:01:28.842853 | 2018-08-14T08:53:28 | 2018-08-14T08:53:28 | 144,155,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/env python3
from getpass import getpass
from personal_info import PersonalInfo
def main():
gate = PersonalInfo(input('Username: '), getpass())
print(gate.get_data('CurrentAcadState=1', max_length=10))
if __name__ == '__main__':
main()
| [
"hadi@hadisafari.ir"
] | hadi@hadisafari.ir |
f9e0930f0105b1e7ffa5cf93463939b85918a75f | e6cf2817154c6764d308503a3b06f798e5854799 | /4. Comprehension/EXERCISE/01_word_filter.py | 95cd69c9e5aa75a075274ce5a05d8b05b36d8346 | [] | no_license | dimDamyanov/PythonAdvanced | dca1629cac2ee7ae113b82f19276e1c5e0e07023 | 00ca5148c4d57c8cdd13f069315942e81902f746 | refs/heads/main | 2023-04-06T18:16:11.240712 | 2021-04-22T20:57:28 | 2021-04-22T20:57:28 | 328,765,865 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | text = input()
even_words = [word for word in text.split() if len(word) % 2 == 0]
for word in even_words:
print(word)
| [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
8082ee03c63189982d35ade7cefb62e74d0c64e3 | dc0f6bff378bf3943c005a262202ddda7d3ef95f | /webapp/donor/migrations/0001_initial.py | 0f8f5cd92768a19de7a20e1b422409df925b7f0f | [] | no_license | johnsonc/share-food | 78cdf3882a5442de7de308c1c036f776d3811fae | 0fc484dcd117a1d9a69204c805e0c485e0f5d556 | refs/heads/master | 2020-01-23T21:14:10.040708 | 2015-05-20T04:42:14 | 2015-05-20T04:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('dictionaries', '__first__'),
migrations.swappa... | [
"darek@recoded.co"
] | darek@recoded.co |
a8e229e9ea24d1c73a3eca12ed966665e0e3d6b9 | a2a630d9fa403f22be92be4869bef21bd6b87544 | /example_2d.py | b051679e49456baac5a0fa49455863980e1be7b0 | [] | no_license | robert-richardson/GP-Derivative-Observations | 1cb51a923308ea72d52458de36a9aaa89607e7d0 | f8ef503d8d3fdee0bb142ca4056350985e15fe88 | refs/heads/master | 2021-07-05T08:16:08.537966 | 2017-09-30T16:45:18 | 2017-09-30T16:45:18 | 105,381,947 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | #%% A simple 2d example
#%% Imports
import numpy as np
import matplotlib.pyplot as plt
import GPy
from GPy.util.multioutput import build_XY
from gp_derivative_observations import GPDerivativeObservations
#%%
plt.close('all')
#%% Options
deriv_dim = 1 # 0 or 1
#%%
seed=1
np.random.seed(seed=seed... | [
"noreply@github.com"
] | robert-richardson.noreply@github.com |
057689d1fa8f8c16acf59a0f0e342efca11d8cde | cb9281a34c3c5a36d4b3a846fb6ff22ede12f2f6 | /annotate_communities.py | c792c346aaae78ae95b967b3522d7c87354ffd69 | [] | no_license | juliettapc/CalorieKing | 9cb9f35ae9b239d2284175b0802cf2c60dc79d1d | 5f80bffb65fe4644a81ae2ab0b1738861e028331 | refs/heads/master | 2022-02-10T07:52:24.133379 | 2022-02-08T01:25:18 | 2022-02-08T01:25:18 | 153,174,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | import networkx as nx
from transform_labels_to_nx import transform_labels_to_nx
import sys, os
from numpy import *
import itertools
def annotate_communities(G, num_points, filename, communitylist, dbdate = '2010'):
'''
Created by Rufaro Mukogo on 2011-03-31.
Copyright (c) 2010 __Northwestern Universi... | [
"julia@chem-eng.northwestern.edu"
] | julia@chem-eng.northwestern.edu |
8a47069ad08ff4a25b593f7f933e7207a34c9c81 | e6b1ad137a9bd3d39ae7c61cb5c7f7956ce095b9 | /bruteforce/first_and_last.py | 254541adec5d55d00b4b5ecdb2ee1dce8ea5e268 | [] | no_license | jadenpadua/Data-Structures-and-Algorithms | d9ba8ece779a2d564a7d66fcbacc9fb7fa1f7205 | 838c29112fec4beb9d9cc3f54db00492b4a480b0 | refs/heads/master | 2021-07-17T13:10:52.029327 | 2020-07-08T02:00:14 | 2020-07-08T02:00:14 | 186,896,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | Write a function that returns the lexicographically first and lexicographically last rearrangements of a string. Output the results in the following manner:
first_and_last(string) โ [first, last]
Examples
first_and_last("marmite") โ ["aeimmrt", "trmmiea"]
first_and_last("bench") โ ["bcehn", "nhecb"]
first_and_last("... | [
"noreply@github.com"
] | jadenpadua.noreply@github.com |
0a3072ac7da71bc957882478316909c65e5aa868 | c098085eedb3a1534f723ee770a8837067c54281 | /chapter03/studying2.py | 69e01309d518509934fbbfa190391c2a245784ea | [] | no_license | haitian-zhang/PythonScrapyingStudying | 14eb66fe94df1061859db2c69c7a5780d9c9687c | e22beefeb44aa263cca9b1f0113f8eaa2968ba74 | refs/heads/master | 2021-10-28T03:37:59.084766 | 2019-04-21T13:23:54 | 2019-04-21T13:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | # ่ฑ็ฃ็ฌ่ซ
import time
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
# ๆดๅmysql
import pymysql
conn = pymysql.connect(host='127.0.0.1', user='root', passwd='123456', db='python')
cur = conn.cursor()
cur.execute("USE python")
def getLinks(pageUrl="https://book.douban.com", pages = []):
try:... | [
"a13207123727@gmail,com"
] | a13207123727@gmail,com |
336d5186b1c0f8624957237b93107c3b3eab86b0 | 55f7ed471c7878c04d14cf69c472c36bd128881b | /L2jFrozen_GameServer/build/L2JSegara_GameServer/gameserver/data/scripts/custom/8871_gve/__init__.py | 3d373999e9b389d4982c3184efb41a30e1a5425d | [] | no_license | doulu99/L2Segara | a8b4c23228300bb01bfd92ebbd65c1c90c1e7a54 | 82e646440ee94109176240ee2baa0d75aa14d735 | refs/heads/master | 2021-04-01T09:47:45.208358 | 2020-03-21T10:03:15 | 2020-03-21T10:03:15 | 248,179,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | # Author ProGramMoS, Scoria Dev
# Version 0.2b
import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen... | [
"ghemax@ghemax.wvmwp4m0qdrufdbhm41aqoexvg.ux.internal.cloudapp.net"
] | ghemax@ghemax.wvmwp4m0qdrufdbhm41aqoexvg.ux.internal.cloudapp.net |
95a32a1115e5447005cbe060b401c85f07573f8e | c237e91ba68cfe890026a2466e9aa277cbf29948 | /cookbook/datastruct/max_min_n.py | 3583db4636a1a507b65251c4d9c4ae1bf08036c5 | [] | no_license | Chiva-Zhao/pproject | 47350815ae334137dc775df776dc148ecc25237b | 4e39425dea0bec5b990e80954fafb97c3da34bf5 | refs/heads/master | 2021-01-13T01:28:28.247174 | 2019-12-17T12:29:36 | 2019-12-17T12:29:36 | 22,599,348 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | import heapq
nums = [1, 8, 2, 23, 7, -4, 18, 23, 42, 37, 2]
print(heapq.nlargest(3, nums)) # Prints [42, 37, 23]
print(heapq.nsmallest(3, nums))
portfolio = [
{'name': 'IBM', 'shares': 100, 'price': 91.1},
{'name': 'AAPL', 'shares': 50, 'price': 543.22},
{'name': 'FB', 'shares': 200, 'price': 21.09},
... | [
"zhaozhenhua88@gmail.com"
] | zhaozhenhua88@gmail.com |
07f64f78d296821856c1ef3a04cfa9596a3859d1 | 1c76418fee90f80368f2f843007ebd6a37bfc01f | /GLOBALS.py | 6efbf9f79ee858f37aa06dd7eaf8915877d118f8 | [] | no_license | SyntaxVoid/HighRedshiftGalaxyFinder | e5dfb244bbba53c310de9b7fe414990b04bcb3a0 | 83fad048e37d65a1a7c98727c0d4164c8e84922a | refs/heads/master | 2021-01-20T21:59:06.211431 | 2015-11-19T04:24:58 | 2015-11-19T04:24:58 | 42,703,816 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,705 | py | ## The filters [str] which we are looking at in this project
FILTERS = ['f125w','f160w','f435w','f606w','f775w','f850l']
SELECTIONS = ["b435","i775","v606","z4","z5","z6","z7","z8"]
# Column number corresponding to each column name of my header
MASTER_COL_DICT = {"Number": 0, "RA": 1, "ALPHA_J2000": 1, "DEC": 2,"DEL... | [
"j.gresl12@gmail.com"
] | j.gresl12@gmail.com |
0d4d5ee0c8dde1162b0de223774319cbefc8f0cf | a139e84cdfeba8da693d5e5996f38e4737ea2a26 | /python/CRedis.py | 34b5d176283725976a33161d548ee8778e89db1c | [] | no_license | TimHuangcheng/Python-Redis-Php-Email | 48f144482bdac96a69680a4dc34ee98d44926f34 | c0f1502779f2646b26ada2b9e7ce742bc958b7b2 | refs/heads/master | 2021-01-10T15:18:51.121404 | 2015-11-18T09:23:25 | 2015-11-18T09:23:25 | 46,407,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | #!/usr/bin/python
#coding=utf-8
import redis
class CRedis:
def __init__(self,AuthInfo):
self.host = AuthInfo.get('host')
self.port = AuthInfo.get('port')
self.db = AuthInfo.get('db')
self.r = redis.Redis(host = self.host, port = int(self.port), db = int(self.db))
... | [
"2902060134@qq.com"
] | 2902060134@qq.com |
c0472642787e04491164dc3c9b22141d3f549a5d | 1bc02e52de571718d884deefa88bee73eb9ac1a5 | /fuzz_all.py | 4bddc769eff0a59a114cd770103dd67f84a0a417 | [] | no_license | benquike/cgc-challenge-corpus | f4d8460384a6f50046e651c0dd83eaa7136dca25 | 7695d43518dbb6b0cf347d736c1f1a5206d5a77b | refs/heads/master | 2020-09-14T06:01:01.021039 | 2018-04-21T03:16:35 | 2018-04-21T03:16:35 | 94,469,063 | 0 | 0 | null | 2017-06-15T18:46:54 | 2017-06-15T18:46:54 | null | UTF-8 | Python | false | false | 1,632 | py | #!/usr/bin/env python
import sys
import os
import re
import driller
import fuzzer
import time
def get_cbs_with_vul(root_dir):
'''
Find the cyber challenge with vulnerability in root_dir,
typically in bin dir.
The return value is a list
'''
bin_dir = os.path.join(root_dir, "bin")
return [... | [
"peng124@purdue.edu"
] | peng124@purdue.edu |
9bdfa679de6d431d2bd4da3245f7bae4dcc5d385 | 1e91d38e7bfa427884206f02512a436d74a05d93 | /kudos_oss/__main__.py | 66438beaecc51e465e765112a6a76edd872aebb0 | [] | no_license | lel99999/dev_pyCRUD | c7f40d7a89c158045007a8f8f27be9368832cb4c | 069998b67c27a8cb074c79ed3cd0c3aa619a510a | refs/heads/master | 2020-05-04T19:50:40.359268 | 2019-04-18T03:24:45 | 2019-04-18T03:24:45 | 179,410,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from __future__ import absolute_import, print_function
GET /kudos
POST /kudos
DELETE /kudos/:id
| [
"luan.le@cfpb.gov"
] | luan.le@cfpb.gov |
de85e910fc8b9cf34cf5556e8809318730b73fd4 | 145fd80224998d43cec8de1fe19fbaf589852578 | /Lab 1/L1/main_volume.py | bbfdd575753c48fc64ff5532d9d51235efb46c1a | [] | no_license | andres2631996/CM2004-Medical-Visualization | a0c58de60b11a7f97ee721dcb03fe95be8f3b256 | ec7aa918a1485652f4543cf8a80f4e0cfded6927 | refs/heads/master | 2020-12-09T09:45:39.526785 | 2020-01-11T17:17:08 | 2020-01-11T17:17:08 | 233,266,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | __author__ = 'fabian sinzinger'
__email__ = 'fabiansi@kth.se'
import vtk
import sys
import os
if __name__ == '__main__':
# 1 get data path from the first argument given
filename = sys.argv[1]
# 2 set up the source
reader_src = vtk.vtkNIFTIImageReader()
reader_src.SetFile... | [
"noreply@github.com"
] | andres2631996.noreply@github.com |
29c701073c352ca514237ca759457082a6ccd2f6 | 69c161371df4a8e85cef1524f3b17703ffd3588c | /edq_shared.py | 5d3e56fa9071b1a4f49deb4f525d3f1e61078013 | [
"MIT"
] | permissive | r-zemblys/windowselect | 479038dbfa7f7ad05ac1586d2ee31da3fa2a63ff | 9c2e25058b9faa145ee8dcacf68afb4ec38e9604 | refs/heads/master | 2021-01-19T07:20:38.676416 | 2014-11-14T10:13:57 | 2014-11-14T10:13:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,441 | py | # -*- coding: utf-8 -*-
import os
import numpy as np
import numpy.ma as ma
import matplotlib.pylab as plt
plt.ion()
from constants import *
def nabs(file_path):
"""
Return a normalized absolute path using file_path.
:param file_path:
:return:
"""
return os.path.normcase(os.path.normpath(os.pa... | [
"raimondas.zemblys@gmail.com"
] | raimondas.zemblys@gmail.com |
4458795c392ba0ab3f81e2d130be56272b33e8c0 | ee00ebe5e71c36b05fbff993b19e9723b963313f | /280_Wiggle_Sort.py | 09fa9084f0ab202059ebdd2af873de234323560f | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Solution:
def wiggleSort(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
if len(nums) <= 1:
return
for i in range(1, len(nums)):
if i % 2 == 1: # increasing
if nums[i] < nums[i-1]:
... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
70c5eed717e2fbeab808207591ca6080896331f0 | e6f36db5e63315f0c214f921ddc904ad0e0e3831 | /pysendy/pysendy.py | 856c19c690f61adfd2461f600d574081521bff94 | [
"MIT"
] | permissive | pomarec/pysendy | 0a6daa12dd3d75168a4ff246103e2daf9fc2cc1d | e378ce6f267cce31f0c81fd90057486ceaf263a1 | refs/heads/master | 2021-01-15T11:14:20.549366 | 2013-12-07T18:02:41 | 2013-12-07T18:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # -*- coding: utf-8 -*-
from .exceptions import *
import requests
class Sendy(object):
def __init__(self, base_url, api_key=''):
self.api_key = api_key
self.base_url = base_url
def subscribe(self, name='', email='', list_id=''):
params = {'name': name, 'email': email, 'list': list_id}... | [
"thiagofa@gmail.com"
] | thiagofa@gmail.com |
fd7329f081a88aa7cd2c61e483d6efb4a6c5fcde | 08e10b36303e5b898eadf358cf53b87109552415 | /drive.py | 1f8c5c81fe3d8bfeafa020dd1ba43d7ae48fa583 | [] | no_license | AlphaLFC/CarND-Behavioral-Cloning-P3 | 480de5b1b4b07e8059bcc786fe5ebebcd013f012 | b52dd1917f48b93b51c4330217436ed67eb3e181 | refs/heads/master | 2021-01-11T19:55:07.369776 | 2017-01-21T02:16:56 | 2017-01-21T02:16:56 | 79,428,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py | import argparse
import base64
import json
import numpy as np
import socketio
import eventlet
import eventlet.wsgi
import time
from PIL import Image
from PIL import ImageOps
from flask import Flask, render_template
from io import BytesIO
from keras.models import model_from_json
from keras.preprocessing.... | [
"noreply@github.com"
] | AlphaLFC.noreply@github.com |
81a213de91ddbd14c690ad56d6167b8d2729bf9e | 2c3340c0c9c3effc22ce181506a7c76718485510 | /src/comms/www/index.py | 5f091deb0c740e6670e1ce3017c1a43bb90475de | [] | no_license | samtaufa/nomoa.bsd | 3db5b336c34c8e24f94601129ab4f9682adbbac3 | 592e158be1d8a078625c56bce973449c61fd6451 | refs/heads/master | 2021-01-25T07:34:35.637146 | 2011-10-16T10:28:03 | 2011-10-16T10:28:03 | 688,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from countershape.doc import *
this.titlePrefix = ns.titlePrefix + "[Communications | WWW] "
pages = [
Page("portal.md",
title="Portal",
pageTitle="Portal"),
Page("ssl.md",
title="SSL Certificates",
pageTitle="SSL Certificates"),
Page("te... | [
"samtaufa@gmail.com"
] | samtaufa@gmail.com |
de8a9c196a80dde711075fc0f91d2dc1ce5625e9 | 10b22cef27b7cb7f06221954eef6ea678c5289c1 | /database/database_schemas_ms.py | 0ad92f442cd946089275a60618ee4b0020b399d7 | [
"MIT"
] | permissive | mshobair/invitro_cheminformatics | 0c1d7c4c2cfd5e20ee24fffac6a0332d503957df | 17201496c73453accd440646a1ee81726119a59c | refs/heads/main | 2023-04-04T19:06:27.098377 | 2021-03-26T17:07:25 | 2021-03-26T17:07:25 | 348,917,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | class Schemas:
"""
Class that contains DATABASE schema names.
"""
chemprop_schema = "sbox_rlougee_chemprop"
dsstox_schema = "ro_20191118_dsstox"
qsar_schema = "sbox_mshobair_qsar_snap"
invitrodb_schema = "prod_internal_invitrodb_v3_3"
information_schema = "information_schema"
| [
"mshobair@v2626umcth038.rtord.epa.gov"
] | mshobair@v2626umcth038.rtord.epa.gov |
7ab34c90f6402e871718fc7299fa5701b912a3e5 | 82236c1cf2fe6ca26f52ce4eeae1745cf3cbc5ca | /docs/source/conf.py | 970611753ff44195353547e41808aed5480865fe | [
"Apache-2.0"
] | permissive | CKrawczyk/python-reducers-for-caesar | 8b607fddd7ce36cd81e1b4e2e7079e1a66526d22 | 9c5d9e072906d3fde2497fa61a66e4c8c0113ec2 | refs/heads/master | 2021-06-04T07:35:25.738616 | 2017-08-10T15:56:42 | 2017-08-10T15:56:42 | 91,355,049 | 1 | 2 | Apache-2.0 | 2019-04-03T20:28:31 | 2017-05-15T15:40:00 | Python | UTF-8 | Python | false | false | 5,261 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# panoptes_aggregation documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 7 13:22:24 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present... | [
"coleman.krawczyk@gmail.com"
] | coleman.krawczyk@gmail.com |
3efcc3bc377d403f361dc59b88778a8ed1cd9346 | ebd71982f2c5be07cfd2fb443780d730d3448a81 | /่k็python็่ชๅจๅ่ง้ข/Http_Authentication.py | 3da628039682b9caaf75eed50b5aff8f6e301332 | [] | no_license | gujianchenggithub/Imoocinterface4567 | 5e5de64bcd15d3d450e08f9620a2eb328bef2c41 | b4243eba2d891edd7ec32cb84a0a94b4f31376df | refs/heads/master | 2020-05-04T21:49:32.534793 | 2019-04-04T12:20:57 | 2019-04-04T12:20:57 | 179,489,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #basic
import requests
r=requests.get('http://httpbin.org/basic-auth/user/passwd',auth=('user','passwd'))
print(r.text)
#ๆนๆณ2
from requests.auth import HTTPBasicAuth
r1=requests.get('http://httpbin.org/basic-auth/user/passwd',auth=HTTPBasicAuth('user','passwd'))
print(r1.text)
#digest httpๅ่ฎฎไนdigest(ๆ่ฆ)่ฎค่ฏ
from reques... | [
"ไฝ รงgujianchenggithub"
] | ไฝ รงgujianchenggithub |
3420d4b60ef89979085bd48d4c97c9a8b77209d1 | cd83f6f33311b76a7fd669e1d4a5131c099beabb | /mail/migrations/0001_initial.py | 1aba1bcd71f620af3d1940eb3279097f148bf092 | [] | no_license | nathanieltse/Mail-app | 39d68cf7bc2e99b0d21a2342e4aff3c93a9536d9 | b07b7f8dad2580a615649364ad0cd39030b671f2 | refs/heads/main | 2023-06-10T00:11:05.615916 | 2021-06-26T01:52:52 | 2021-06-26T01:52:52 | 380,390,862 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,883 | py | # Generated by Django 3.1.7 on 2021-04-06 20:15
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"nathanieltse@hotmail.com"
] | nathanieltse@hotmail.com |
79e5d650d9505b34a5feeb25bec942c15949abdf | c86a071d99d06395ab8ef22a3eab8675bffbc72c | /PySpark-ETL-Eder-Stupka/PySpark_ETL_Eder_Stupka.py | bfa52d3e6842bad89dd5448e1a358608767c26c2 | [] | no_license | EderStupka/PySpark-ETL-Google-Cloud-Postgres | ca9243fb953e89a8a2b38d5998d3aa9e26359b98 | c132816419d8aefbf0692cc531da3288c681b78b | refs/heads/main | 2023-04-20T06:33:54.459043 | 2021-05-10T16:28:02 | 2021-05-10T16:28:02 | 365,175,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,769 | py |
import psycopg2
import sys
import os
import pyspark
from pyspark.sql import SparkSession
from pyspark.sql.types import StructField, StructType, IntegerType, StringType, LongType, TimestampType, ShortType, DateType
from pyspark.sql.functions import date_add, col, date_format, to_timestamp, to_date, year, month, sum
de... | [
"45463511+EderStupka@users.noreply.github.com"
] | 45463511+EderStupka@users.noreply.github.com |
1e2546393b7153ae301f10162f4eb5e5cfaec0e2 | 1e49f23da9b9b110755162577a4062afa730d3de | /prepinstaadvcdng1.py | 40fda6d1feeab6f74030c65255ed34a569957521 | [] | no_license | lakshman533/Python_programs | d2c7c49c762998dc718efc477af84acb8f42c48b | 758589efd00e8dbd4aeddc8e866d062459cb4545 | refs/heads/main | 2023-08-10T23:31:47.453952 | 2021-09-13T07:07:14 | 2021-09-13T07:07:14 | 405,868,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | import re
print(re.split(r'[aeiou]', 'abcdefghij')) | [
"noreply@github.com"
] | lakshman533.noreply@github.com |
cdf73285697080951a456e2a5c01d533c393b240 | 1cb4b326b8148779221f38da5ba1b4fa9a017f12 | /Game22/modules/online/server.py | e486128b2439a353fb0c15ea4f0e7de70fef91c8 | [
"MIT"
] | permissive | Chirag2007/Games | c7b27d5bb735912a7dec1fade76f92abfbc078e8 | bc05c6826e63e5e3e279073443f4587f70fae741 | refs/heads/master | 2023-08-21T09:02:06.799276 | 2021-10-01T04:07:03 | 2021-10-01T04:07:03 | 412,320,297 | 0 | 0 | MIT | 2021-10-01T04:07:04 | 2021-10-01T04:05:26 | null | UTF-8 | Python | false | false | 14,729 | py | '''
Function:
่ๆบๅฏนๆๆๅกๅจ็ซฏ
Author:
Charles
ๅพฎไฟกๅ
ฌไผๅท:
Charles็็ฎๅกไธ
'''
import socket
import pygame
import random
import threading
from ..misc import *
from PyQt5 import QtCore
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from itertools import product
'''ๆๅกๅจ็ซฏ'''
class gobangSev... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
7423d6bc889b8c2fd43e667212ff43a19ae44035 | f316d588441bdb6779bdac4ea611c18053f148c2 | /src/vegindex/generate_ndvi_timeseries.py | 9ab68751f846be29ed435d2ddffa46ac77de7a11 | [
"MIT"
] | permissive | tmilliman/python-vegindex | 4b366296131f2f5455a96c5f224423dc5c5ee9aa | 7fa3052f3590a5a4756b011e21dc335ae9fcc732 | refs/heads/master | 2022-09-19T03:10:32.415988 | 2022-08-16T15:20:18 | 2022-08-16T15:20:18 | 93,645,501 | 14 | 11 | MIT | 2020-04-09T20:06:50 | 2017-06-07T14:36:58 | Python | UTF-8 | Python | false | false | 9,582 | py | #!/usr/bin/env python
"""
Simple script to read in the RGB and IR ROI timeseries and
generate a camera NDVI timeseries csv file. Output
format will be:
"""
import argparse
import os
import sys
from datetime import datetime
from datetime import timedelta
import pandas as pd
# use this because numpy/openblas is aut... | [
"thomas.milliman@unh.edu"
] | thomas.milliman@unh.edu |
8c233f047715954abc685b0149bdc1c86d63168e | 36c00fe2afff4818c937e312ce0c6a79f35e2a77 | /7-kyu/naughty-or-nice-/python/solution.py | 7d97dd81f35376746e01998e5608dffd391051cd | [] | no_license | p-lots/codewars | 0a67b6ee4c91180ff78c648421b9d2d64463ddc3 | 535faeee475c6b398124d6f5002b0e111406e8bb | refs/heads/master | 2023-08-23T22:14:33.635011 | 2023-08-23T13:30:37 | 2023-08-23T13:30:37 | 195,320,309 | 0 | 0 | null | 2023-05-09T19:25:50 | 2019-07-05T01:40:15 | Python | UTF-8 | Python | false | false | 191 | py | def get_nice_names(people):
return [dct['name'] for dct in people if dct['was_nice']]
def get_naughty_names(people):
return [dct['name'] for dct in people if not dct['was_nice']] | [
"paul.calotta@gmail.com"
] | paul.calotta@gmail.com |
59ec5fc5fd80068eb9447b6b36f95bffd2ccc6b5 | 162f56089fbfed17fe02590a69bc16c89698c2e9 | /module1.py | 746904cb8108fc535abbae7ec4edb5875d279eaa | [] | no_license | emmanuelmacharia/andelaworkshop | fbd3e759ecb140f9abf58c10773b771f301ca860 | 43470fe7b441c90bfb82ede7bdb64dbe6c73ba10 | refs/heads/master | 2020-03-30T16:22:00.671936 | 2018-10-17T13:56:24 | 2018-10-17T13:56:24 | 151,405,461 | 0 | 0 | null | 2018-10-17T13:56:25 | 2018-10-03T11:58:28 | HTML | UTF-8 | Python | false | false | 2,344 | py | from flask import Flask, request
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
products = {}
class AdminProducts(Resource):
'''Endpoints for creating and viewing products in the application'''
def get(self):
'''Views all the products in the application'''
ret... | [
"samuelmarsha@outlook.com"
] | samuelmarsha@outlook.com |
08bee4ae1052cf518c23e03568ba16ba18ff39d4 | 5ef82ade9309b70204e1d392f10835a9e7d553a7 | /tweet.py | 5a5bbb264cca8536a98b06827c9ec09813165739 | [
"MIT"
] | permissive | etalab/data-covid19-dashboard-widgets | 258a52b85edfe91d92cc7d176bec3f75a5c4413f | fb429e3552f67e267801251ee6ee7e2d78c46829 | refs/heads/master | 2022-05-30T01:10:17.562117 | 2022-05-17T23:26:22 | 2022-05-17T23:26:22 | 361,129,834 | 2 | 4 | MIT | 2022-03-22T10:37:13 | 2021-04-24T10:13:31 | Python | UTF-8 | Python | false | false | 728 | py | import tweepy
import secrets
import toml
import os
TWITTER_API_KEY = os.getenv('TWITTER_API_KEY')
TWITTER_API_SECRET_KEY = os.getenv('TWITTER_API_SECRET_KEY')
TWITTER_TOKEN = os.getenv('TWITTER_TOKEN')
TWITTER_SECRET_TOKEN = os.getenv('TWITTER_SECRET_TOKEN')
# Deprecated. Function to tweet if we want.
auth = tweepy... | [
"geoffrey.aldebert@data.gouv.fr"
] | geoffrey.aldebert@data.gouv.fr |
6e39762a6673f11ca94947c8499aa363af2b4dd2 | c168fe819b446640957e5e310ef89fcfe28662b3 | /userbenchmark/__init__.py | c9ff1fac46844cf4cb62479ffa15096e9436dbf2 | [
"BSD-3-Clause"
] | permissive | pytorch/benchmark | 7b55e8d714de2ea873e03df43811aab3848485dd | df4da9bdff11a2f948d5bd4ac83da7922e6f44f4 | refs/heads/main | 2023-08-29T13:06:09.671728 | 2023-08-28T16:51:55 | 2023-08-28T16:51:55 | 92,541,759 | 685 | 220 | BSD-3-Clause | 2023-09-14T18:10:18 | 2017-05-26T19:21:12 | Python | UTF-8 | Python | false | false | 851 | py | from pathlib import Path
from typing import List
CURRENT_DIR = Path(__file__).parent
def list_userbenchmarks() -> List[str]:
ub_dirs = [x for x in CURRENT_DIR.iterdir() if x.is_dir() and x.joinpath('__init__.py').exists() ]
ub_names = list(map(lambda x: x.name, ub_dirs))
return ub_names
def get_ci_from_u... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
919ac69337e9c727ed9e2d07b25750de1a8160b2 | 72edeba5f5a912dfdca7df04b42f01c163392dd7 | /RFC_Project/urls.py | 886be2ad6a931a5c16722adbf70911c96ba0326e | [] | no_license | nate-birth/robovac-fight-club | bc56137786cd3b06ff0926f6f4802249e7bf99f6 | c8c7929d190e05147a32c5d5ae4376e3a2a66a36 | refs/heads/main | 2023-03-01T21:26:13.722907 | 2021-02-08T20:23:51 | 2021-02-08T20:23:51 | 337,190,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('',include('RFC_App.urls')),
]
| [
"wvonberg@gmail.com"
] | wvonberg@gmail.com |
43ebb4bd5c0c0fa866bb592f633956324fff45dc | 4507c041158e427f1fb09ad62e329364a0a03cbf | /matrixcal.py | b72bf7644fa893f82dcd6747c40668038665f53b | [] | no_license | Holmsoe/PandasHints | 0e079ece32ee1cf16995a373f9bed6a995bece58 | 80e1f77832ea5c51f8767066c13dda48bddf9f4d | refs/heads/master | 2021-01-09T04:04:38.681763 | 2020-02-21T22:15:47 | 2020-02-21T22:15:47 | 242,239,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,320 | py | import time
import numpy as np
class lavenhedsmatrix():
def __init__(self,m):
self.tolerance=1e-10
self.mgem=m
self.n=len(self.mgem)
#Styring af beregningsmatrix
#===========================
def beregn(self,rs):
self.rs=[[i for i in line] for line in rs]
self.rsgem=rs
#nulstil beregningsm... | [
"finn.holmsoe@gmail.com"
] | finn.holmsoe@gmail.com |
79835cbf228f09bc7b84d0f8c97de3d9a29f1086 | 29025afc2ef7a01231aba4c66a35df6bc5997212 | /utils/plots.py | c3bef03efaebc77e1bd9cb21d22e444ca5ed6939 | [] | no_license | junjie2008v/Torch_Classify | bb5e790db4925caf1cb0d48e62ea40d57bea36e2 | 9d94da7d19df4c4cf8f88b44c53b6e61a509c30a | refs/heads/master | 2023-07-03T09:06:55.555372 | 2021-08-08T05:04:11 | 2021-08-08T05:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | import os
from copy import copy
import numpy as np
import matplotlib.pyplot as plt
def plot_base(ax, epochs, y, color, title=None):
ax.plot(epochs, y, color=color)
ax.grid(axis='y')
ax.grid(axis='x')
if title:
ax.set_title(title)
return ax
def double_bar(num_train_class, num_val_class, cl... | [
"2267335097@qq.com"
] | 2267335097@qq.com |
87b6cd872faff0465ea42ba50c6be9d681f0137a | b24e45267a8d01b7d3584d062ac9441b01fd7b35 | /Usuario/migrations/0001_initial.py | f1a088a9eef7d4b51c898384d51b3a312255a586 | [] | no_license | slalbertojesus/merixo-rest | 1707b198f31293ced38930a31ab524c0f9a6696c | 5c12790fd5bc7ec457baad07260ca26a8641785d | refs/heads/master | 2022-12-10T18:56:36.346159 | 2020-05-02T00:42:39 | 2020-05-02T00:42:39 | 212,175,889 | 0 | 0 | null | 2022-12-08T07:00:07 | 2019-10-01T18:56:45 | Python | UTF-8 | Python | false | false | 1,629 | py | # Generated by Django 2.2.6 on 2019-11-29 05:50
import Usuario.models
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
3a762c9e0cf07f1d9832c6a76c2334c0528244f5 | e3017c4c18b0226ea2131161159a7e51ff02cc0e | /test_ddl.py | 29848bcab2602888f9243625f8af0fb8bc4ad607 | [] | no_license | samhaug/tomography_tools | 834c0f9781928411d32f9b190f2689194972c339 | ce57bc2517fd5acbf645d6af633321d12122e518 | refs/heads/master | 2018-10-19T15:05:51.458378 | 2018-07-20T14:15:56 | 2018-07-20T14:15:56 | 104,912,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | #from data_downloader import data_downloader
| [
"samhaug@umich.edu"
] | samhaug@umich.edu |
266f7c43ec194665af03f4823f13ff1664004761 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /0_ๅญ็ฌฆไธฒ/87. ๆฐไนฑๅญ็ฌฆไธฒ.py | 29e56a9f818fe0967e242d7e3d9221f6a53b65b7 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from collections import Counter
from functools import lru_cache
# 1 <= s1.length <= 30
# 87. ๆฐไนฑๅญ็ฌฆไธฒ
# !bit packing ๅฏไปฅๅฐๅคๆๅบฆ้ไฝไธบ O(n^4/w)
class Solution:
@lru_cache(None)
def isScramble(self, s1: str, s2: str) -> bool:
if s1 == s2:
return True
if sorted(s1) != sorted(s2): ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
da2666b33694c9a517fd8f35af321fce19c14414 | e6d95a590f6e661991b75b0ffacaf3a312479bfb | /chapter_6/list_comprehentions.py | 24384a43e3d713925154f66f8afa7a05c4f7a20e | [] | no_license | wanga0104/learn | 05ebe57025d4a6f4bd66a8157916c3a1d54313d4 | eb0dc5a48451c2af4dd630620e194a8d57d3cbfa | refs/heads/master | 2022-10-11T08:50:00.653837 | 2020-06-14T02:28:02 | 2020-06-14T02:28:02 | 271,970,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # list = [i ** 2 for i in range(21) if not i % 2 == 0 ]
# print(list)
# new_list = [i if i > 100 else i ** 2 for i in list]
# print(new_list)
list_val = []
for i in '้ซๅฏๅธ
':
for j in '็ฝๅฏ็พ':
list_val.append(i+j)
print(list_val)
print([i+j for i in '้ซๅฏๅธ
' for j in '็ฝๅฏ็พ']) | [
"wanga0104@gmail.com"
] | wanga0104@gmail.com |
b8a79bc4b6d34e10295fe6b987039e7bd513dccf | fa8685c0d18c06fa2d796570b82c5021150b2371 | /boostpython/class/test/class.py | aa2fe955343adcebfb43a32eddb4057972029959 | [] | no_license | qwv/test-boost | 52407774783c913d7a3dad0498da78319be18e5e | 4300bb830ed6703108c7585d76fc5027a269770e | refs/heads/master | 2021-01-19T14:24:41.195565 | 2017-08-30T11:26:57 | 2017-08-30T11:26:57 | 100,900,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | #!/usr/bin/env python
import test
t = test.World()
t.set("bom dia!")
print (t.greet())
| [
"chowyuhuan@gmail.com"
] | chowyuhuan@gmail.com |
4c97b82819556eb6e0ca2cac2baa5c7e8074ebbb | 258bfef4f6907041de5710bbb002a3372deb1fb5 | /build/lib/assess_composition/__init__.py | b4e712299c7d8221125f6b0d3c532c0378572f9d | [] | no_license | RosieCampbell/assess_composition | c1a68160386c7cc100c990ee98299d4323a94fcf | a463209de3c41a4fbf1df46d432a9475ee9ca55e | refs/heads/master | 2021-03-30T17:27:37.981495 | 2016-11-08T16:34:58 | 2016-11-08T16:34:58 | 72,562,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | import cv2
import numpy as np
import os
import rule_of_thirds
| [
"rosiekcampbell@gmail.com"
] | rosiekcampbell@gmail.com |
39385e0a7b92b66933385b77e3533b3a516318ea | 13213e3e7d6a0866cdf28483adc46d458f8977ac | /qsort/qs.py | f464a28fe040fbe56cf5762e4a0066e408678f00 | [] | no_license | j0k/algopractice | 42654b1158497050911822c46de6791cf8bf251f | 1be3df5553156a523bfce5328df205e6c67c19f3 | refs/heads/master | 2022-06-27T00:10:57.028619 | 2022-06-15T12:34:11 | 2022-06-15T12:34:11 | 100,791,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # 18.06.2017
import random
A = [1,2,4,7,8,9,0,5,3,5,6,8,4,3]
def qsort(a):
l = len(a)
if l <= 1:
return a
pi = int(random.random() * l)
left = []
right = []
p = a[pi]
for (i,item) in enumerate(a):
if i == pi:
continue;
if item <= p:
left... | [
"darling.kicks@gmail.com"
] | darling.kicks@gmail.com |
f19f9ff467cd554996e2019a980c30658be6c4aa | 33a961276497abc1096aca8d0fb7519ddfcb3bdb | /esl/economics/markets/walras/__init__.py | 1944405c411d1d4cdebb3b859305415de84c46a6 | [
"Apache-2.0"
] | permissive | ShrutiAppiah/ESL | 3a7d8bb7756d28990730a377c6e5e0c3423a7e99 | 069a9afa0150355a1903ddc76fce04f376a6940d | refs/heads/master | 2023-02-25T07:56:54.536007 | 2021-01-27T04:55:15 | 2021-01-27T04:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from esl.economics.markets.walras._walras import *
| [
"scholl.maarten@gmail.com"
] | scholl.maarten@gmail.com |
915bfdf93bc5399c071bb32a978cc52625edaf9c | eeed0744d5165f901071ece01a757077d196addb | /compare.py | 374db00b8b36d7bd7ffb68e57df38c7eb8134380 | [] | no_license | joshua217/josh-fyp | 9aee6d425b52ced32dae3cf173a6add0475cdfe2 | 816002c0939e41cc3fdee546e868b7471567f61a | refs/heads/master | 2021-01-01T21:00:57.498109 | 2020-03-02T11:35:06 | 2020-03-02T11:35:06 | 239,337,876 | 2 | 0 | null | 2020-06-05T19:57:47 | 2020-02-09T16:43:59 | Python | UTF-8 | Python | false | false | 418 | py | from scipy import stats
from matplotlib import pyplot as plt
def compare(x, y, x_name, y_name):
plt.figure()
tau, p = stats.kendalltau(x, y, nan_policy='omit')
plt.scatter(x, y)
plt.xlabel(x_name)
plt.ylabel(y_name)
plt.title("x:{}, y:{}\ntau: {}, p: {}".format(x_name, y_name, tau, p))
pl... | [
"joshlim217@gmail.com"
] | joshlim217@gmail.com |
bbaf640d918ac50921a99b40825d91656630c755 | 249b8f7312b57388ffb8fb367c7d1a8d81bbac0f | /a3/smoothing.py | 4bf703ce206f7d5cf623c35528c45e1056dad3c4 | [
"Apache-2.0"
] | permissive | arizona-phonological-imaging-lab/autotres | cf1d8353505d094b8389fbe5b1b5ebc1b6deb5c1 | 4a2d58e1df5a627eb2e9c2d3ccb64750ce13937f | refs/heads/master | 2021-01-10T13:55:04.666165 | 2018-12-06T05:04:47 | 2018-12-06T05:04:47 | 45,319,121 | 0 | 1 | null | 2015-11-15T00:30:03 | 2015-10-31T21:34:53 | Python | UTF-8 | Python | false | false | 4,091 | py | from scipy.signal import savgol_filter
#from scipy.signal import argrelextrema
from .translate import *
import numpy as np
class TraceCorrection(object):
"""
Methods for smoothing traces
"""
@classmethod
def trim_by_min(cls, trace):
"""
returns a new Trace with values preceding eith... | [
"gushahnpowell@gmail.com"
] | gushahnpowell@gmail.com |
ac140ccd1f835b9970eb434daa082c8ce09e86fc | 06bb125304edb1a587059d372f3e587a6f73ced2 | /cdpcli/completer.py | 01274b08fb6f55eb0dff24c3890d651a44acdf33 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arcOsiNer/cdpcli | 2743bf01a55f23466e445a74468ce14c4ac6c1f0 | 484b9814d845046773e4fe5408f41f7cfc6dbb7a | refs/heads/master | 2023-06-04T14:22:49.167787 | 2021-06-24T00:17:22 | 2021-06-24T00:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,386 | py | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Modifications made by Cloudera are:
# Copyright (c) 2018 Cloudera, Inc. 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. A cop... | [
"dev-kitchen@cloudera.com"
] | dev-kitchen@cloudera.com |
92b727dd208e19757a6dcb3fa0bd8c47e62e05e6 | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/indentatitonerror2.py | fcf2aa2d7734d4ba77e193e053b1e5add48c0f73 | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | try:
import test.py
except IndentationError as ex:
print ex
| [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
145f6d7644ac5106b240e5fafa7a8934c404aaf6 | d3d9c0a5146ecf7a1dd8fa9948641217774047db | /HLAFeatureLibrary/Training/GATE.py | a31dfbb911a3551501fdc021f39a4fa6ce8c1c9b | [
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-us-govt-public-domain",
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | fulQuan/NLPWorkbench | 81e8f3f40dc5c1b89f3b64d9296f15e3782e7ce1 | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | refs/heads/master | 2020-05-03T02:14:26.713492 | 2018-12-12T15:42:01 | 2018-12-12T15:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,783 | py | import sys
import json
import glob
from Training.Client import ServiceClient
import sys
sys.path.append('..')
from PostTokenizer_GATE import PostTokenizer
from PostSentenceSplitter_GATE import PostSentenceSplitter
from FeatureExtractor_GATE import FeatureExtractor
import time
from Training.merge_bio import merge_bio
fr... | [
"mcq1@cdc.gov"
] | mcq1@cdc.gov |
9adadf89af9b4b4b688e2c2d130ed932a2e138c7 | 01e9f22a9d4dcbe1ffdb5f3c7f854a190c3918a9 | /pose/pose_visualizer.py | 31e3dee0b11b221456cba854b0f65bd046b51d75 | [] | no_license | TheK2NumberOne/Action-recognition-using-pose-estimation-2D-openpose | 69eaf126b8363a25f6fcffea1d56c3e20b8bb5cc | 341a6b398a3cc41a037487b696a3290ee2bfc1b5 | refs/heads/master | 2022-11-17T13:34:18.171214 | 2020-07-18T05:55:00 | 2020-07-18T05:55:00 | 280,106,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,041 | py | import numpy as np
import cv2
from pose.format_coco import Points, mapIdx, POSE_PAIRS
def getValidPairs(image, output, detected_keypoints, keypoints_list):
# The function is used to determine the connection between joints A and B.
valid_pairs = []
invalid_pairs = []
n_interp_samples = 10
paf_scor... | [
"quanghuyonline08@gmail.com"
] | quanghuyonline08@gmail.com |
1fb86b58724cb9c2760776d223919b590e47950f | 47374ff190c4957ed464e345f94fbfee64983825 | /feed2rss/views.py | b7b0710fa98cf32a365485d2e7e00f1378a163db | [] | no_license | alaski/Feed2RSS | 0af78c5af74cbecddf945837257f893d4bc7b799 | 25c26e5ab9989b4bc067a382ca7ace9538dc62c8 | refs/heads/master | 2022-10-14T14:38:05.564515 | 2012-08-07T17:49:51 | 2012-08-07T17:49:51 | 3,626,778 | 0 | 0 | null | 2022-09-16T17:43:10 | 2012-03-05T12:23:27 | Python | UTF-8 | Python | false | false | 7,697 | py | import datetime
import random
import string
from pyramid.httpexceptions import (
HTTPFound,
HTTPForbidden,
HTTPNotFound,
)
from pyramid.response import Response
from pyramid.security import (
remember,
forget,
authenticated_userid,
)
from pyramid.view import (
view_config,
#f... | [
"alaski@gmail.com"
] | alaski@gmail.com |
be1621abbe83595d69e640b35f1f12fae4156faf | d3af7445da81972bb3102fabb68c0baa608fca21 | /liver.py | 6b64b4d0e83be8ffff061c6bb7d2d8da590fe53a | [] | no_license | xyj77/siamese-triplet | 258c4f4945af0f0e80ba8bac7a43dbd1ea9a4379 | 6ff34f6fa08eba9e203ef22a233e1d3afe40a869 | refs/heads/master | 2020-03-20T07:50:41.518151 | 2018-12-27T07:30:44 | 2018-12-27T07:30:44 | 137,292,537 | 0 | 1 | null | 2018-06-14T01:53:08 | 2018-06-14T01:53:08 | null | UTF-8 | Python | false | false | 23,659 | py | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
import os
import time
import argparse
import torch
from torch import nn
from torch.autograd import Variable
import torchvision
from torchvision import transforms
import torch._utils
try:... | [
"15172535067@163.com"
] | 15172535067@163.com |
1747c3d6ebe232b90f1163f18a849a3f71ccebc4 | e614c145ab902ebed09af2bcef5b36dca78a5787 | /authors/migrations/0117_auto_20160214_0747.py | 26a7a40388a4b500cb05fd171b2905ed7e43788d | [] | no_license | rtreharne/pvsat-dev | 1646ca8f51bd466d659b25eb721750de8361ef02 | faa2b28250e2110f4603ffeff80ad0fedda1abbb | refs/heads/master | 2021-01-17T13:24:12.578341 | 2017-09-19T06:42:51 | 2017-09-19T06:42:51 | 44,095,813 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('authors', '0116_auto_20160214_0743'),
]
operations = [
migrations.AlterField(
model_name='abstra... | [
"R.Treharne@liverpool.ac.uk"
] | R.Treharne@liverpool.ac.uk |
28d43402215205f7fc2d64cf801303a61b84c5f9 | afe916cfbb383f08ebcfd4ef290eefe556585acb | /readbin/apps/bin/serializers.py | 91fe989fb09645ec4a7404b03b8daa6d932f143b | [
"MIT"
] | permissive | asnelzin/readbin | cb47664d1fc1eb741f94d73e672815829c9209f6 | 1b546f71955cf5753d63aaf7d7fda0d466fc1332 | refs/heads/master | 2021-01-10T13:57:14.347921 | 2015-12-09T17:55:19 | 2015-12-09T17:55:19 | 47,063,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from rest_framework import serializers
from readbin.apps.bin.models import Article
class ArticleSerializer(serializers.ModelSerializer):
class Meta:
model = Article
fields = ('id', 'title', 'url')
| [
"asnelzin@gmail.com"
] | asnelzin@gmail.com |
8d551edf06666357e86023d00f97b72089c75f70 | d58037fda6a6d05e226261b47cb34ba8dd6ab724 | /airflow/providers/microsoft/azure/operators/data_factory.py | 1ad372395057edf46e7cd1ea4e84aeb4e27543b0 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | shiv-io/airflow | 432f684af111d75356ff0b960aa214767a379b0d | 36fe6d0377d37b5f6be8ea5659dcabb44b4fc233 | refs/heads/main | 2023-05-28T08:35:17.500007 | 2023-04-29T15:36:31 | 2023-04-29T15:36:31 | 309,048,170 | 0 | 0 | Apache-2.0 | 2020-11-01T07:52:50 | 2020-11-01T07:52:49 | null | UTF-8 | Python | false | false | 11,484 | 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"
] | shiv-io.noreply@github.com |
8d56e332c42605f75e9b3d63c13f532e5ba7d925 | 3d75c928899c582159ea022580116c50359fc638 | /PrimerBlog/urls.py | 840d9910691ef5483632951577ec0f01a6a85372 | [] | no_license | codeheroco/django_desde_cero | a9133790e0d29d2ab4273f895eef616265b4fcf4 | bfdba157e55afbaa814898845f785f6e91001c05 | refs/heads/master | 2021-01-23T06:50:00.326584 | 2013-11-06T03:53:19 | 2013-11-06T03:53:19 | 14,162,257 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^articulos/', include('blog.urls')),
# Examples:
# url(r'^$', 'PrimerBlog.views.home', name='home'),
# url(r'^Primer... | [
"carlospicca@gmail.com"
] | carlospicca@gmail.com |
2da0aa36e7be889a32196c3d06867c36c614e741 | 246fb3d3163411f8d2f23f0c58277e183a9aa04b | /StockAdmin2/core/restapi/updater.py | 5648083f9fc8de8493a0c08f8977c09f967d0f31 | [] | no_license | zwolf21/StockAdmin2 | ed5adb10cb94f688ce0ec9c18291f8d0eae79a33 | 430189bd8ea3820c00cf77e7ed741745f1ed74ca | refs/heads/master | 2022-12-12T03:53:07.101298 | 2017-12-26T04:49:27 | 2017-12-26T04:49:27 | 81,782,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | from decimal import Decimal
from listorm import Listorm
from .dgamt_service import DGamtService
update_supervise_fields = {
'edi_code':'update', 'pro_type':'update', 'pay_type':'update',
'price':'create'
}
product_supervise_fields = {
'edi_code': 'update'
}
buyinfo_supervise_field = {
'pro_type': 'u... | [
"pbr112@naver.com"
] | pbr112@naver.com |
f9967a372a3f92a0a32b1e8b2a075e4e2de103d1 | 2d8e383ffba2a0aaaa2cbb50793b1635a45e3883 | /bigdata-demo-searching-lambda/ankaracloudmeetup-bigdata-demo-searching-lambda-s3-to-es-python/twitter_to_es.py | 3102978cc1a88bb410291d8f996f63559b8de2a5 | [
"Apache-2.0"
] | permissive | yukarikir/ankaracloudmeetup-bigdata-demo | 5461f8a2cfa8e741033afa78c9f2911ad655b44b | 43196dc97c77ed4616e28e24ebcfa07174a392db | refs/heads/master | 2020-03-07T01:46:09.464104 | 2017-06-27T16:50:01 | 2017-06-27T16:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | '''
Created on Oct 8, 2015
@author: mentzera
Modified on Jul 1, 2016
@author: sozal
'''
from elasticsearch import Elasticsearch
from elasticsearch.helpers import bulk
from elasticsearch.exceptions import ElasticsearchException
from tweet_utils import analyze_and_get_tweet, id_field, tweet_mapping
index_name = 'twi... | [
"serkanozal86@hotmail.com"
] | serkanozal86@hotmail.com |
aa57bec9411af12d680e8aaf548c29c04b4a21f5 | dd15b273e1bedad5d80b253855bbed0a207640e0 | /validation.py | 40a141092859e7674bc574025851cc429df48f0e | [] | no_license | rebeccamcohen/heart_rate_sentinel_server | 8f45e3f69bed40ebdb7fd950ee03dcbee994ae97 | c046fc18d4913fd8ff86a7e0ffee4602fe27f3ea | refs/heads/master | 2020-04-06T08:25:42.634181 | 2018-11-17T01:16:56 | 2018-11-17T01:16:56 | 157,304,271 | 0 | 0 | null | 2018-11-16T22:39:57 | 2018-11-13T01:53:46 | Python | UTF-8 | Python | false | false | 4,423 | py | from database import User
from pymodm import connect
class ValidationError(Exception):
def __init__(self, message):
self.message = message
class InputError(Exception):
def __init__(self, message):
self.message = message
class EmptyHrListError(Exception):
def __init__(self, message):
... | [
"rebecca.cohen@duke.edu"
] | rebecca.cohen@duke.edu |
389fb95b2509687f5d976c6f9564d0a80ebef0a1 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/UpdateTrafficMarkingPolicyAttributeRequest.py | 743e5f15ad08d14e8d8f3b0fa5e14fc7e66e1659 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 7,712 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
d7decc5793abb668a64476cf829ed006844441e9 | 636cb88a2cd6386e5e2731c227547496059370be | /src/DjangoPractice/urls.py | 2e388e3b83aaf415a4630a5c6dba97e242546373 | [] | no_license | Kazungu/DjangoPractice | 4cfed564686ef1edce7d83231dc7e9705e9e9e9e | 03543096154b8f7b54600157036235aea841fd13 | refs/heads/master | 2022-05-30T15:12:44.388067 | 2020-05-02T08:37:19 | 2020-05-02T08:37:19 | 257,080,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | """DjangoPractice URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
Clas... | [
"kazungu61@gmail.com"
] | kazungu61@gmail.com |
a1a0d498a55a027931df2f2909a70172a69c3276 | d9406464161b49a535a68356306d196efd5cb073 | /p5.py | 23f8140e641c66bc90d4ce73f4754205ea0e7bf9 | [] | no_license | jjimenez98/Blockchain-Communication-Model | 2b2b3361c7821567cfdea08a2b3dfa9ba9073701 | 048cee402d67182dbf06e69971c60988ddfb8be8 | refs/heads/master | 2022-12-17T08:00:01.397994 | 2020-09-26T20:44:26 | 2020-09-26T20:44:26 | 298,896,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,621 | py | import socket
import time
import random
import threading
from threading import Lock
import collections # provides a double-ended queue and is implemented as a doubly-linked list internally
import queue
import pickle
import hashlib
import numpy as np
import shelve
import sys
blockchain = collections.deque()
depth = 0... | [
"noreply@github.com"
] | jjimenez98.noreply@github.com |
d4da4f399743a1bbcccc23dce4f21f4f9e0fbd9d | 4ac687bc28b9f5cf7f822e9d4c0db8b46fe363b3 | /30_day_leetcoding_challenge/2020_08/06-Find_All_Duplicates_in_an_Array.py | 72bd02e1bfc9c119c422a9d3b17b9e73c1be9add | [
"MIT"
] | permissive | QuenLo/LeetCode-share | b1e75e02e1dfe85be44ddb0ae1f4345353b0b569 | ce861103949510dc54fd5cb336bd992c40748de2 | refs/heads/master | 2021-12-23T11:23:09.111711 | 2021-11-15T18:54:46 | 2021-11-15T18:54:46 | 131,681,273 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | class Solution:
def findDuplicates(self, nums: List[int]) -> List[int]:
ans = []
for num in nums:
if( nums[abs(num)-1] < 0 ):
ans.append(abs(num))
else:
nums[abs(num)-1] *= -1
return ans
| [
"noreply@github.com"
] | QuenLo.noreply@github.com |
14b78f12d7845d6f3e43fc11adfae20a360f0cf1 | d7d1558607a8ace96a840cbef47e24a2d6a26102 | /setup3/preprocess/.ipynb_checkpoints/PreprocessingSetup3-checkpoint.py | 83187d8b58a979c02336ee48b75f943f5862135f | [
"MIT"
] | permissive | aliyesilkanat/MSC | 4a02e9f49c617dd724632c083325d887dbf87443 | 1fd424c82a86109a3ecfb7c657fb564a6839f7aa | refs/heads/master | 2022-03-26T00:06:18.846304 | 2019-11-12T17:31:49 | 2019-11-12T17:31:49 | 221,272,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,292 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
import pickle
import librosa
import sys
import glob
import random
import os
from collections import defaultdict
import re
import numpy as np
import json
from tacotron.utils import get_spectrograms
import pandas as pd
import gc
def read_speaker_info(speaker_info_pat... | [
"aliyesilkanat@gmail.com"
] | aliyesilkanat@gmail.com |
5beeeeee1729033d70dc9bdd7e2aa08ca6ecb3b2 | 246afde69972b2ddabf34004f48f6a9ea2870c1a | /xadminStudy/wsgi.py | a137fbc8249362399b2a0f98196392f86eb77cec | [] | no_license | jayxqt/xadminStudy | dc3ee635408eae08645334664328e18c5ff9622f | 50d0235ca723c73ce921362a226deb7607012d0f | refs/heads/master | 2022-12-07T06:25:29.531267 | 2020-08-31T07:59:52 | 2020-08-31T07:59:52 | 291,652,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for xadminStudy project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"quantong_xu@163.com"
] | quantong_xu@163.com |
1b826dff5250dd586491f1aaacd474401b2043b1 | 0427a50ec60b6ca664288738cb5b9211f595e5c2 | /meiduo/apps/verifications/tests.py | 2d955a35a2e9fe5aec5efe93b5cc5f86a496b135 | [] | no_license | lcp964/meiduo | 6862f25df9c05ea9f970cacbd30673f612f7c103 | e13c076aabf95dec8de04b13e70d6094157cad4d | refs/heads/master | 2023-07-03T23:01:03.380090 | 2021-08-02T14:42:28 | 2021-08-02T14:42:28 | 391,984,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from django.test import TestCase
import random
# Create your tests here.
| [
"2441497185@qq.com"
] | 2441497185@qq.com |
5945ac73322c07df601001ad78d4c9d7fa2bc303 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2020_03_04_20_49_28_001210.py | 736fec0c051e1192ca98e7fa7fd600af6d7e2eff | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import math.
def calcula_gausiana(x,mi,sigma):
parte1 = 1/(sigma*(2*math.pi)**(1/2))
parte2 = math.exp(-0.5*((x-mi)/sigma)**2)
return(parte1*parte2)
| [
"you@example.com"
] | you@example.com |
75219a4f87f14e035cef63c5379eb59541d61e5d | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/usersfunctions_beta/azext_usersfunctions_beta/vendored_sdks/usersfunctions/operations/_user_event_exception_occurrence_operations.py | c06d4a7144325a3d3b87aec3a006a36b48fa9fd7 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,381 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
4850aba9dfaa17379b6462a01dfee68d23a1c210 | e6c334f4fd993e39abf9ec87aaad31f19b23ab7c | /createhtml.py | 6147c42d42fe49d8e9397937408055dc09cfd870 | [] | no_license | dereklearns/My-Emailer | efff635132d568f1bb443114c7ecb996083146a3 | 003bfcf8c337815f9c419269a9861ceeb1a6787c | refs/heads/master | 2022-09-17T04:37:13.728123 | 2022-08-08T16:05:41 | 2022-08-08T16:05:41 | 55,396,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,489 | py | import derekstudio
import random
def create_html_for_derek(data, date_data):
print date_data
print (len(date_data))
d = {'suffix': data[0], 'parent_first': data[1], 'parent_last': data[2], 'email': data[3], 'instrument': data[4], 'student_name': data[5], 'student_age': data[6], 'additional_info': data[7]}
print d... | [
"derekadam1988@gmail.com"
] | derekadam1988@gmail.com |
b89f856a4efbd1215ba554a3547b2d5f64a60502 | 1e177ebdcb470f738c058606ac0f86a36085f661 | /Pico/MicroPython/mqtt/mqttPub01_main.py | 60f96980393a5b6b04d87afbd41113c2b7db4245 | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | import time
import network
from machine import Pin
from umqttsimple import MQTTClient
ssid = 'MakerSpaceTest'
password = 'P@55w0rd'
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect(ssid, password)
rp2.country('CA')
led = machine.Pin("LED", machine.Pin.OUT, value=0)
# Wait for connect or fail
max_wa... | [
"robin.greig@calalta.com"
] | robin.greig@calalta.com |
7037f2e38c2e9e53d0e32b2df9d87c9608e83b58 | 0fd5cd82b755f574ef44de61092fc1e982b33a34 | /news/admin.py | e78d90ba5983b5857ca8eaf9f23d212ce440e2e0 | [] | no_license | York0000/project | 592a5b67a05feb7efd3bde852d737af4c5048241 | f3688157e288ad22efdabd9776fea2858f6ccfe6 | refs/heads/master | 2023-05-27T07:26:02.998870 | 2021-06-16T12:03:12 | 2021-06-16T12:03:12 | 377,416,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.contrib import admin
from news.models import NewsModel
@admin.register(NewsModel)
class NewsModelAdmin(admin.ModelAdmin):
search_fields = ['title']
list_display = ['title', 'created_at']
list_filter = ['created_at']
| [
"yorqin_bohodirov20@mail.ru"
] | yorqin_bohodirov20@mail.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.