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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c112824cdf3acc74c48d162296c89e714281f347 | 7f7784d0d904fefa5fe44ed8c2a9cbda445ae473 | /euler17/string-hell.py | 0b0f99e2aa82ce7e23983b1da83c90d71dd939d0 | [] | no_license | Clayton-Adamson/Python-projects | 0059d93fe578af6140d306861901df369f53c462 | 56eb694dad435eddbfacaaec2c1f162a5eecda1f | refs/heads/master | 2020-03-22T12:18:55.710002 | 2019-03-25T06:40:43 | 2019-03-25T06:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # PE 17
# from 1,1000: how many letters used
# 1,2,3,4,5 given in question
# im manually adding one thousand and removing 9 "and"s
letters_used = ["1", "2", "3"]
def spell_ones(word,y,x):
if(y==1):
if(x==0):
word.extend("ten")
elif(x==1):
word.extend("eleven")
e... | [
"noreply@github.com"
] | Clayton-Adamson.noreply@github.com |
4de6ed611809cb1887627ae93f3f8b6f2c5d4ef6 | 0fefd630aa4b500a1a218f5f12d351dfeb79d4a7 | /Intro/02.Person_Info.py | e7dd8b2b289ea7d5d18800180abdc285e68b186c | [
"MIT"
] | permissive | bozhikovstanislav/Python-Fundamentals | a7e7659d7ce8996f9e5dc17a8a0c5fcd5fbab65f | 072fd2c8bc962d20d4c526947349fdeae0bc94a5 | refs/heads/master | 2020-04-15T00:22:02.395202 | 2019-03-10T15:46:48 | 2019-03-10T15:46:48 | 164,237,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | name=input()
age=int(input())
town=input()
salery=float(input())
info=f'{name} is {age} years old, is from {town} and makes ${salery}'
print(info)
| [
"bozhikov.stanislav@gmail.com"
] | bozhikov.stanislav@gmail.com |
ce96434b38ac3471c3ee72f7ef45215874cf7618 | 75927358d6e3e3e859a68c0b2a7e3bb3d7150f0f | /mysite/apps/polls/urls.py | ab78320a78abdd72b385b3f821a62f9b0cd42487 | [] | no_license | DaniZaha/django-polls | 2467abc3034a2205b37a962d6ef7da113c0765bc | 5c69ca10ef82b04c6efc09f34ef87f2c95356c27 | refs/heads/master | 2023-05-01T17:28:06.533399 | 2021-05-06T09:20:05 | 2021-05-06T09:20:05 | 364,845,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | from django.urls import path
from . import views
app_name = 'articles'
urlpatterns = [
path('', views.index, name = 'index'),
path('keys/', views.keys, name = 'keys'),
path('create_article/', views.create_article, name = 'create_article'),
path('register/', views.register, name = 'register'),
path('logingin/', v... | [
"daniil.zakharov@nure.ua"
] | daniil.zakharov@nure.ua |
f6558daf82a421c61de4559e7acbec2f7b36a84b | 5dc33a563b5b8e77a2605213318cea89a7f713d3 | /utils/console_utility.py | 6e8555cb607299ad1daf7931437aff9ed66d7d40 | [
"MIT"
] | permissive | MaciejMilewski/Binary_Search | 9fe0cbae58f68286089e209981cba151332f1d26 | 89abba614ae9cc6ac5f10a39d11b93ca91ede483 | refs/heads/main | 2023-01-31T14:54:38.306795 | 2020-12-16T20:40:36 | 2020-12-16T20:40:36 | 321,945,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def menu():
""" Prints menu content in console """
print("::Przeszukiwanie binarne::")
print("1 - Podaj dane dla algorytmu")
print("2 - Uruchom dla przykładowych danych")
print("3 - Koniec")
print("0 - Menu")
return "....::::::.... " | [
"s17947@pjwstk.edu.pl"
] | s17947@pjwstk.edu.pl |
04d8b48d751940f10c29bc18a81888dc1c98b60a | 6b8b2ce9867fc09b9f0a1e7c65dda8a20f2dd022 | /cowsay/forms.py | 3608f1573df76c51ba864b6a60abccfd6054a2fd | [] | no_license | avelynok/django_cowsay | 251fbd54dbfb47fc8916256f3a2b7f803958bcd2 | 7e2d558e14d9649aa49790c1b0bdedcb64f7f5ed | refs/heads/master | 2022-08-23T18:24:16.354570 | 2020-05-16T04:36:35 | 2020-05-16T04:36:35 | 263,177,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django import forms
from cowsay.models import Input
class InputForm(forms.Form):
text = forms.CharField(max_length=150) | [
"kou2295@calu.edu"
] | kou2295@calu.edu |
e9518724524cbbdd097ad3768a8d74ee67cb9f37 | c81a68fd49fd3f41648a54d467b655a3c3ba1a00 | /activity/jiekou/test0502.py | 349f6ed918481789f33c4f2a880ad2990f098376 | [] | no_license | yellowsea19/join | e505a8d1f9445432bce56c9372a17c576adbae44 | 878ac9585778f9a6261ecc7ae1d7e612d191ac74 | refs/heads/master | 2020-03-26T10:48:14.289820 | 2018-08-15T06:48:00 | 2018-08-15T06:48:00 | 144,816,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py |
import requests
req=requests.session()
url='http://admin2.join-inapp.com'
def login():
url='http://admin2.join-inapp.com/api/main/loginData'
data={
'login_name':'13418914293',
'password':'00000000'
}
response=req.post(url,data)
f=response.status_code
print(f)
def get_activity_l... | [
"314221719@qq.com"
] | 314221719@qq.com |
2aeb3092e5a671247e1ce3bf27e221a221f9a562 | e58482f0b74043f93072c21c5962280fdc1aed57 | /insightface project.py | 43510c93e6119c2987aa17b15cf58db7a40e5b1f | [] | no_license | Muskantomar001/insightface | 707ce7dba254fdbacc89db08946c57678be8edac | 79695aa94ba96267f19ae63c7393c7cd43c9aed3 | refs/heads/master | 2022-08-01T04:59:35.440614 | 2020-05-20T10:55:26 | 2020-05-20T10:55:26 | 263,001,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 10 15:54:51 2020
@author: Aryan
"""
git clone https://github.com/deepinsight/insightface.git | [
"noreply@github.com"
] | Muskantomar001.noreply@github.com |
0df60110d31f81abbec9846a361ac9dec355fa30 | 742898b50eda87c17513724e1f54474fec37c6c6 | /2. Data Structures/week1_basic_data_structures/4_stack_with_max/stack_with_max_naive.py | 2bcddcf7ef93e5310c287c6a44d1c512724d640e | [] | no_license | Kirill-Tamogashev/Data-Structures-and-Algorithms | b8b6005f7f1ad13147f0278bfdb1dbffcfa8ff83 | 66091d5b67e22b75f4eb167ae13502b3c009d233 | refs/heads/master | 2022-12-18T17:29:45.853242 | 2020-09-20T15:30:47 | 2020-09-20T15:30:47 | 297,072,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | import sys
class StackWithMax():
def __init__(self):
self.__stack = []
self.__max = [0]
def Push(self, a):
self.__stack.append(a)
if self.__max[-1] <= a:
self.__max.append(a)
def Pop(self):
assert(len(self.__stack))
if self.__stack.pop() == self... | [
"noreply@github.com"
] | Kirill-Tamogashev.noreply@github.com |
607f0e87bc2fe0404f36d3d673d93bfdfc731859 | 9d5a143dad3b36cb240173289411860618d7e84f | /0x03-python-data_structures/7-add_tuple.py | 21d53bd9f8731df7935e480c4ff06396596f24f7 | [] | no_license | hemenez/holbertonschool-higher_level_programming | 0a0e5adfc2489a2d781f24cd9c74396f03d9e0f0 | a52f3530066a23dc18e67d96dcdfeb12802569e2 | refs/heads/master | 2021-09-14T11:18:01.803212 | 2018-05-12T15:29:40 | 2018-05-12T15:29:40 | 113,083,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | #!/usr/bin/python3
def add_tuple(tuple_a=(), tuple_b=()):
tuple_c = (0, 0)
tuple_a1 = tuple_a + tuple_c
tuple_b1 = tuple_b + tuple_c
tuple_a2 = tuple_a1[:2]
tuple_b2 = tuple_b1[:2]
total = ((tuple_a2[0] + tuple_b2[0]), (tuple_a2[1] + tuple_b2[1]))
return total
| [
"lindsey.hemenez@gmail.com"
] | lindsey.hemenez@gmail.com |
977832ebbfa43d67960bdbd9eeb8efbd35cc26e6 | aa8207544b8ac2462d497346ae5262275398f0fc | /labelinpyqt.py | 8e1d2a477896fccc729d798c4ad3e82b6d8cc48c | [] | no_license | ccwanggl/NMROSDProcessor | dac2ce3958b72f8b7505fceb2aff805885c58d82 | b775f1d313f9747ba39b710522ca5003e8ea4636 | refs/heads/main | 2023-03-28T07:25:13.734909 | 2021-03-26T14:01:31 | 2021-03-26T14:01:31 | 351,799,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | import sys
from PyQt6 import QtWidgets
from PyQt6.QtWidgets import QApplication, QLabel, QMainWindow, QDialog, QVBoxLayout
from PyQt6 import QtGui
class Window(QDialog):
def __init__(self):
super(Window, self).__init__()
self.title = "PyQt6 Window"
self.left = 500
self.top = 200
... | [
"tswanggl@hotmail.com"
] | tswanggl@hotmail.com |
dfba030ad636d0aec7bd7030a61d176cb81f2542 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /nugyAtjRNQPTHLJNR_12.py | eb474eb1ac8d74ad15663c829a6533ff5ffa3594 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | """
Suppose that you add all of the page numbers in a book. If the total is 21,
the book could only have 6 pages because 1 + 2 + 3 + 4 + 5 + 6 = 21. If the
total were 25, that would be impossible because the next number in the series
is 28 (21 + 7).
Create a function that, given the `total` number of pages as an ar... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4e051fe883651fc340b11653986808de029f9835 | f510693efaf1d3840987bd133638a6207f2b2869 | /tests/test_dot.py | 25d2400647c934f099cb8623a7fc8cf35baa5981 | [
"Apache-2.0"
] | permissive | darknight009/retworkx | 7d29beef5342241e3f0646ef4fafab8303d163eb | f0ad15fa7e85aad73e0c2e352ec07172333571b5 | refs/heads/master | 2023-03-28T12:59:38.340914 | 2021-03-17T19:19:01 | 2021-03-17T19:19:01 | 304,893,031 | 0 | 0 | Apache-2.0 | 2020-10-17T14:14:10 | 2020-10-17T14:14:09 | null | UTF-8 | Python | false | false | 5,669 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"noreply@github.com"
] | darknight009.noreply@github.com |
b269775fcc54946cdc5431c7481422507a9820be | c2254ab692f59be1cc8d0310200fb6787ffa7552 | /mainlines.py | 62d55d9e417a859db5a86be9675a42f2122fe45f | [] | no_license | perice-pope/pyBeats | 032ede47b65c2554eea405268f69b625138e3c69 | 9db86e5dbae23e6e595a60ba1fd0a687492795d7 | refs/heads/master | 2020-07-15T14:29:46.239470 | 2019-06-06T03:26:25 | 2019-06-06T03:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | import pygame
class MainLines(object):
def __init__(self, screen_width, screen):
self.lines = []
self.space = 8
self.snap_thresh = self.space -1
self.start = 0
self.amt = screen_width / self.space
self.screen = screen
for x in range(0,int(self.amt)):
... | [
"syfenx@gmail.com"
] | syfenx@gmail.com |
84b833078a7d917d86b163820aa74576163b92f6 | e3adb575624bba17b682962df9444a3bde81ee2c | /deprecated/config_writers.py | c8d08f20363a030812a84bef7c08d65e935f9cf6 | [
"MIT"
] | permissive | ffhound/findr | 40a2b6ebf12da28c38c939404412306b30fbbde1 | ac3061cb056cfe6a151c4096d04bce0d03545032 | refs/heads/master | 2021-12-16T12:36:17.779040 | 2017-09-18T18:46:05 | 2017-09-18T18:46:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | __author__ = 'asherkhb'
def writeListCfg(lst, cfgname):
"""
Write out a config file from a list.
- Entries: 'listItem\n'
:param lst: List to be written as a config file.
:param cfgname: Filename or path/to/filename for config file.
:return: Config filename or path/to/filename
"""
cfg_o... | [
"asherkhb@gmail.com"
] | asherkhb@gmail.com |
b6ba8f660f0a39d01e3331ded9de689d6c384ead | 281170a19a457d5966baf04bee2b5b1c28cf3efb | /zadanie3.py | 057609ae78297f230af3919a48c2d5e78d9d62c6 | [] | no_license | kamiljasniewicz/ANSTA | 8e751b448a95b464ea331d3ce9c3c861c4f1dc4a | 9285a1153c55eb9d341c4ac22b549d53c8abe003 | refs/heads/master | 2020-05-26T04:21:40.811353 | 2019-05-22T19:57:59 | 2019-05-22T19:57:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # ZADANIE 3. NALEŻY WYGENEROWAĆ LISTĘ LICZB OD 2 DO 5.5 ZE SKOKIEM CO 0.5, DANE WYNIKOWE MUSZĄ BYĆ TYPU DECIMAL
def generatorLiczb(od, do, co_ile):
lista = []
for x in range(int(od * 10), int(do * 10 + 1), int(co_ile * 10)):
lista.append(x / 10)
return lista
print(generatorLiczb(2, 5.5... | [
"noreply@github.com"
] | kamiljasniewicz.noreply@github.com |
0fab4b27058339e9b1c833cba98c30066a23ddf3 | 2db90ff1cc2aed2011d69fa8f6580d4d08485440 | /api/urls.py | 869c15a5064b6056fdd3fa76c74783143bf6834d | [] | no_license | alikizang/classify-client-backend | 3cf898eb6f3e25f2e32e607fa493f3b2c95870dd | 604006eadfd7aa4825a05784edb7a25162f8245c | refs/heads/master | 2023-08-03T20:25:58.986869 | 2021-09-23T16:30:36 | 2021-09-23T16:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.contrib import admin
from django.urls import path
from .views import *
from rest_framework import routers
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
urlpatterns = [
path('index/', router.urls),
]
| [
"edems.kossi@gmail.com"
] | edems.kossi@gmail.com |
46d887225d4df30560e38f35fd0f89f1ae6045ba | d74ec030bf38db5fdaa594280784ad1cab999690 | /boj9252_lcs_2.py | 0c7149dd387bb6c8afdf3c04ddc32ea85264aeaf | [] | no_license | lapis42/boj | 36c4964ebbd3f2f60282fa7942cad3fa386f3823 | 4f225f397b9ff919cfda26772036aff7d9637d07 | refs/heads/main | 2023-05-31T08:28:10.345232 | 2021-06-14T01:49:28 | 2021-06-14T01:49:28 | 376,677,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """BOJ9252: Longest Common Subsequence (LCS) 2"""
a, b = input(), input()
na, nb = len(a), len(b)
f = [[0] * nb for _ in range(na)]
arr = [[''] * nb for _ in range(na)]
for i in range(na):
for j in range(nb):
if a[i] == b[j]:
if i > 0 and j > 0:
arr[i][j] = arr[i - 1][j - 1] + ... | [
"lapis42@gmail.com"
] | lapis42@gmail.com |
285588dcca4d69aaa00c62bd96cafe5cd173c96b | 961c355b44ce8323622b549536ad1e069e555068 | /accounts/views.py | 114162bf20163f3b6ab79b8f67856a3f7a188ac1 | [] | no_license | unnati31194/demo | dbb9edca638bef9ccca8bc276cac0b6924443ea5 | 655e8a985fb16ff9c4480d24ec818443b9cb14a8 | refs/heads/master | 2022-04-22T18:48:08.513314 | 2020-03-29T19:09:45 | 2020-03-29T19:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | from django.shortcuts import render,redirect
from django.contrib.auth.models import User, auth
from django.contrib import messages
# Create your views here.
def register(request):
return render (request,'register.html')
def create(request):
first_name = request.POST['first_name']
last_name = request.POST... | [
"unnatiagarwal31194@gmail.com"
] | unnatiagarwal31194@gmail.com |
a9c9d3cf6dc2273e4d995faae07aa3462a9d1b62 | 5a931ca569d8bc014aa4d588aab3605e2463812d | /step2/count_competitors.py | 10bdc8b3e4c90c432c6af96e8e736cd84e1874a5 | [] | no_license | apolitogaga/Chess_Stat_ML | 37ba16253c89202d47c31ee902106f917c2a1af9 | 01df4167304695e521a686e1ae89ff9a6265d0d7 | refs/heads/master | 2021-05-04T10:51:52.147409 | 2016-10-02T16:01:50 | 2016-10-02T16:01:50 | 52,878,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,485 | py | __author__ = "codingMonkey"
__project__ = "ChessML"
from dev2.step2 import INPUT_FOLDER, OUTPUT_REFINED_JSON_FOLDER, PICKLE_COMPETITORS
from dev2.step2.classes.competitors import Competitor, process_name, calculate_average
from dev2.step2.classes.events import Event
from dev2.step2.classes.games import Game, format_R... | [
"apolitogaga@hotmail.com"
] | apolitogaga@hotmail.com |
ffe020fccb81d3d0f3d2c58ecf10c9bc77382681 | 196f03b43a39584e4020ae070f0766b66660eb46 | /urls.py | 3884e454ccd16b780f7be8caa6d25f0a1bfddb8a | [] | no_license | hthieu1110/stars | 243397ace4099c9768321e88f1b047ed63e1e789 | acfa749637e44e48bf49f9fa7e09c1c48d3aa326 | refs/heads/master | 2016-09-05T21:09:51.593520 | 2014-04-27T13:42:21 | 2014-04-27T13:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'stars.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"tronghieu.ha@gmail.com"
] | tronghieu.ha@gmail.com |
8c0fd67c29379fb4c67603b74834039d520ac4c6 | 20a0c8308f18839139b414ab87c729da70de95f8 | /75.py | ae9094e630b3d99ac23bf21e59f2de34caed2ad8 | [] | no_license | stupidjoey/leetcode | 04018b81b9850072d7a5457f29e815a55224473a | 01b3c110cd1c7595a25ee8f2638622a14bb39f45 | refs/heads/master | 2021-01-10T20:06:49.387155 | 2015-08-10T10:35:45 | 2015-08-10T10:35:45 | 35,278,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | class Solution:
# @param {integer[]} nums
# @return {void} Do not return anything, modify nums in-place instead.
# original solution - counting sort
def sortColors(self, nums):
numdict = {}.fromkeys([0,1,2],0)
for n in nums:
numdict[n] += 1
newnum = []
... | [
"stupidzy1991@gmail.com"
] | stupidzy1991@gmail.com |
21dfdea70653c910f8839285e57add3168f38679 | 7c2d4cad6d34b2c4af94cc3ca758300dfb94397a | /google_tr/__init__.py | bbeb26c40572fd3cae257230e4580a098a533cbf | [
"MIT"
] | permissive | ffreemt/google-tr-free | 0eb942092fc0f0838799927c27a69afd894848f9 | 60c447fb923aea19809b7b5bb40f488dcef75d75 | refs/heads/master | 2021-07-01T11:39:11.846847 | 2020-12-01T04:23:47 | 2020-12-01T04:23:47 | 197,586,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from .google_tr import google_tr
# __version__ = '0.0.2'
# __date__ = '2019.7.23'
# __version__ = '0.0.4'
# __date__ = '2019.7.28'
# __version__ = '0.0.5'
# __date__ = '2019.9.12'
# __version__ = '0.0.6' # remove f-string
# __date__ = '2019.9.19'
__version__ = '0.0.7' # remove f-string
__date__ = '2020.12.1'
VERSIO... | [
"yucongo+fmt@gmail.com"
] | yucongo+fmt@gmail.com |
893e7fa357213e8745c0d8d0a402c332184726d6 | ffa8cdef5f1eec78902818314044b07e65006983 | /selectGene.py | 8c7f7d15cb3f051bfa00ccfb44a4478e214081f8 | [] | no_license | xwdshiwo/BioFSDatasets_and_code | f477ed40778625fd100f000c828d75e59a4da85c | 7a3416884ef85ab13c4a9ceb4d3988458cf68ae3 | refs/heads/master | 2023-05-29T07:07:12.134866 | 2021-06-07T12:47:46 | 2021-06-07T12:47:46 | 289,397,277 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,842 | py | from sklearn.preprocessing import MinMaxScaler
# preprocessing by mic
from sklearn.feature_selection import SelectKBest
import numpy as np
from minepy import MINE
def premic(X, Y):
'''
preprocess: select 60% of all features
return:the index of selected features
'''
num = round(X.sha... | [
"noreply@github.com"
] | xwdshiwo.noreply@github.com |
59752b0995af5f628cc332cf50dcfbe01672767a | 1831d77222d243b9b92d51b92a8915019e506d57 | /codeforce/Basic/problemA.py | 158e2015d33006a350a76889194c0f4782fcaff1 | [] | no_license | zawzawom/Competitive_Programming | b0fef5bb7456048465c5ffe499cc015815b929a5 | 5d8cff4e82d93853fe483e57df2b7e80ef25de70 | refs/heads/master | 2022-12-18T01:11:15.651402 | 2020-09-18T15:43:09 | 2020-09-18T15:43:09 | 296,704,314 | 0 | 0 | null | 2020-09-18T18:48:21 | 2020-09-18T18:48:21 | null | UTF-8 | Python | false | false | 329 | py | n =2
name= list(map(int,input().strip().split()))[:n]
print(name[0])
######https://codeforces.com/gym/102680
######n = int(input("Enter number of elements : "))
# Below line read inputs from user using map() function
# a = list(map(int,input("\nEnter the numbers : ").strip().split()))[:n]
# print("\nList is ... | [
"zawzawwinucsl@gmail.com"
] | zawzawwinucsl@gmail.com |
16aba105804ca49ea1ab740b333ad2d5887b3633 | cf744383300e93e6d7e843ffe23dbf01c4ee5a93 | /37-argument-unpacking.py | 805b1f3dbeca74d5b1b98c3e465dd55aefede39f | [] | no_license | mortezamatbou/pyw3 | e7b819201a33468add830e47c546288ab0ec2bf2 | d9b72d146cb0caf94b5c7b841bec2233942a337f | refs/heads/master | 2023-01-28T10:22:46.690929 | 2020-12-02T22:22:19 | 2020-12-02T22:22:19 | 271,992,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | # -- Argument unpacking --
accounts = {
'checking': 1523.25,
'savings': 1542.22
}
def add_balance(amount: float, name: str = 'checking') -> float:
"""Function to update the balance of an account and return the new balance"""
accounts[name] += amount
return accounts[name]
transactions = [
(-... | [
"mortezamatbou91@gmail.com"
] | mortezamatbou91@gmail.com |
d19d472948452e89f476b726ce08c5a570a825e9 | 473f237245e2840eea3eb0e8f7254e65454ec618 | /hacker_rank/data_structures/arrays/array_manipulation.py | 44c9de5741773a4e6367a16520573dd8e032adb8 | [] | no_license | TheRoyalTnetennba/coding_challenges | 82d07758b7ece98197d4e199bffb5abfad0bdb39 | ac705d824cd3afbf578df13d698e4a08b3724c32 | refs/heads/master | 2021-09-08T03:26:46.665379 | 2018-03-06T18:39:10 | 2018-03-06T18:39:10 | 93,648,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | n, inputs = [int(n) for n in input().split(" ")]
arr = [0] * (n + 1)
for _ in range(inputs):
x, y, inc = [int(n) for n in input().split(" ")]
arr[x-1] += inc
if (y) <= len(arr): arr[y] -= inc
big = x = 0
for i in arr:
x = x + i;
if big < x: big = x;
print(big) | [
"gpaye8@gmail.com"
] | gpaye8@gmail.com |
b3bea3103d4c76b9653a77e9b128457901afe458 | d2b0d8b8842fd9d02287ffbefeeef684d4fd1abb | /dsk/preprocessing/feature_scaling/normalizer.py | 83edb400e9a1d5e1f03a55d7365c1e1f55041a7c | [] | no_license | kristjorge/dsk | 3297fa69c35977bdb27b0896a4cc3d49090b0300 | 735d4233dee46e87fedfe8fe368c3858d2fe9ba3 | refs/heads/master | 2022-10-04T16:36:44.467486 | 2020-06-08T10:47:21 | 2020-06-08T10:47:21 | 265,163,940 | 0 | 0 | null | 2020-06-08T10:47:22 | 2020-05-19T06:27:10 | Python | UTF-8 | Python | false | false | 1,463 | py | import numpy as np
class Normalizer:
def __init__(self):
self.scaled_features = {}
def fit(self, X):
if X.ndim == 1:
X = X.reshape(-1, 1)
for column in range(X.shape[1]):
self.scaled_features[column] = ScaledFeature(min(X[:, column]), max(X[:, column]))
... | [
"kristjorge@gmail.com"
] | kristjorge@gmail.com |
513a95f3c5911f66b4c9cf0d3b0c8d768ea1ce43 | e05a64a23dcd2c09294690b54ac24d250c5f01af | /Gilad And Dennis Projects/Backend/ShopSite/urls.py | 52c42f5a0db8b75642162ba24d43bccd8e7f1dd4 | [] | no_license | yosinovo1/CoronaTime | 981dad71a163224af32b1b9de1c2e1120a0365bc | 693409787b3738fb4489ac0b2e25945a07796f4d | refs/heads/master | 2022-12-10T02:49:43.960104 | 2020-07-30T15:33:50 | 2020-07-30T15:33:50 | 250,558,445 | 0 | 1 | null | 2022-12-08T09:28:44 | 2020-03-27T14:38:52 | JavaScript | UTF-8 | Python | false | false | 1,700 | py | """ShopSite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-base... | [
"denisgerman11@gmail.com"
] | denisgerman11@gmail.com |
4868a2eca5ae3a52835fd2b8965867b57e42feb9 | c415291ddd9227e4eec967b50210c47dddaf7a30 | /class8/question-06(class8).py | 40c12ac0911af1fad82cc9bea7bd877d229e417b | [] | no_license | rajansaini980/assignment | c35c1f212aff3d82fe6d9f1a4be710eaad85ca75 | 575f426a3bd3450b1c4529a4dc02ae376f19443d | refs/heads/master | 2020-03-20T08:41:16.184422 | 2018-07-06T08:30:30 | 2018-07-06T08:30:30 | 137,316,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | #localtime
import time
print(time.localtime()) | [
"rajansaini980@gmail.com"
] | rajansaini980@gmail.com |
62fe3393e931687f382376d5fc5a215c2add7a16 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/debug/snapshots/wait.py | a3fa66e3a055a187acc81ac3040fe79763c6e3b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 4,002 | py | # Copyright 2016 Google 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
b442c739afb640ed1ed727a9a681f0d09e236bce | 9e2783ec2875b7afdebede2c9cb77323e68e682f | /scripts/Backus-Gilbert/Ex_SeachGamma_V2.py | 44247f6374f3b99d972100a1e0374e7420a85a73 | [] | no_license | jlbali/PMW | 30559d0f223a8378d08178436c13bc854a51fd29 | 418891845aad75eac7a319cdebfa6b59725125b1 | refs/heads/master | 2022-12-06T22:30:49.723029 | 2020-08-18T15:40:11 | 2020-08-18T15:40:11 | 282,454,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,746 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 14 09:45:54 2018
@author: mariela
"""
import my_base_dir
BASE_DIR = my_base_dir.get()
csv_dir=BASE_DIR + 'Output/'
#Import libraries
import copy
import L_ReadObs
import L_Context
import L_Output
import L_Solvers
import L_Files
import L_ParamEst
import L_Syn_Img
import n... | [
"juan.lucas.bali@gmail.com"
] | juan.lucas.bali@gmail.com |
fab49a7145ecdb05f4604bf24a7e6fe06f1807b4 | fc0929298557a017c91d573ed5cbbfa0b9777c1b | /[part 5]Start Training YOLOv3/train_folder.py | c9b2fcfd6c56603073cf8fcb416ec0d9e7baf5bd | [] | no_license | ivangrov/YOLOv3-Series | 2cf1811a58310b5613a2b46996fe112043b46bc8 | 2c5d3d941a79514db3b4494a47fb8e5d35ea31aa | refs/heads/master | 2022-06-04T05:44:04.783122 | 2022-05-15T20:07:30 | 2022-05-15T20:07:30 | 157,215,245 | 72 | 89 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import os
path='data/obj/'
imgList=os.listdir('images')
print(imgList)
textFile=open('train.txt','w')
for img in imgList:
imgPath=path+ img +'\n'
textFile.write(imgPath)
| [
"noreply@github.com"
] | ivangrov.noreply@github.com |
853d306fcd4a13e3171f284e06bcca4ebae2eeb3 | 5ec1b2490c0c24de7b145cf2cb4034c02b4ec4f9 | /Characters.py | bc53c6b1ddc386d77e3dae0126133906494b130b | [] | no_license | ghoti/AllianceBot | d98310244f3810a0132fefc702816006a81962ed | 867091be713e2ccd546aed289232cba756e85caf | refs/heads/master | 2016-09-06T01:50:14.370062 | 2014-04-08T09:03:36 | 2014-04-08T09:03:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | __author__ = 'ghoti'
import os
import ConfigParser
#This thingamabober holds basic info for each character we are pulling info from (ideally a dir from each corp)
class Characters():
#def __init__(self, name, keyid, vcode, dirkeyid, dirvcode):
# self.name = name
# self.keyid = keyid
# self.vc... | [
"ghoti2007@gmail.com"
] | ghoti2007@gmail.com |
ad0650c9fb38ef351d2a8cefbbf313acc7d6d04b | bf41c3f4b8724259dac52d476af8a2ade4972243 | /manage.py | 8606f40fbc5a2b2541381f8a3fd3a7ee86ed829b | [] | no_license | su18/Flynn | 5aca5d150059749e5c7f1b5fe81a268409ff513b | 9bdcf22ba80ecdb45f1c4b9a6a780944383c19be | refs/heads/master | 2021-10-10T20:52:58.430535 | 2019-01-17T05:28:21 | 2019-01-17T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Flynn.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are yo... | [
"30317673+JosephTribbianni@users.noreply.github.com"
] | 30317673+JosephTribbianni@users.noreply.github.com |
f1f2519f5383c0acd06b757d8b9cf8e2b2b07ea9 | 0dd5097db52aa65f77a54f697096d568176ad66b | /venv/bin/easy_install-2.7 | 6d72ca66f6db4c24ae4dad7845f35629c0c3fd6c | [] | no_license | Jon2Anderson/learning-flask | c9f127fff5293a064173d8a7e2b94b7797b52ef1 | bb8ae9f0142f6ff257e4ce8094dbd7a3f73e2c7d | refs/heads/master | 2021-04-28T18:30:45.416080 | 2018-02-18T20:35:10 | 2018-02-18T20:35:10 | 121,873,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 7 | #!/Users/jonanderson/learning-flask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Jon2Anderson@comcast.net"
] | Jon2Anderson@comcast.net |
311829cffce4d93aaff5347b3c25e2eb0b369ccf | b3d2ec5b71718c19f4946b6dddfdf2f85c8888dc | /Flask_Web/Structure/app/decorators.py | 20cd7c0f77f2e4a852d7c41003e811d36c6605b4 | [] | no_license | Mr-ZDS/Python_Brid | 188b90f0803b5738d3cf4eb07a529c9afc093c2c | 3c67f5fdd98c4424a19c2dc01e6bc4b6acebb1dd | refs/heads/master | 2020-04-29T10:26:23.579411 | 2019-08-20T08:38:19 | 2019-08-20T08:38:19 | 176,062,095 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | #检查用户权限的自定义装饰器
from functools import wraps
from flask import abort
from flask_login import current_user
from .models import Permission
def permission_required(permission):
def decorator(f):
@wraps(f)
def decorated_function(*args,**kwargs):
if not current_user.can(permission):
... | [
"zhdashuai@foxmail.com"
] | zhdashuai@foxmail.com |
9b258bee5fe2a077b80a26ecdd0eac13ef8f85f8 | fc4f69806038e2ca486a2ed14d22150b45facf79 | /run_slice.py | fbb2b32491fbca231715fa51df94feb714a01c4f | [] | no_license | gcaron00/Fall-2020-Mentored-Research | 0b67caeb47cea90fc76fdd6419c3e166d2543600 | 4352522e2d8b06ee5bcc67e19c372b05bee4dafb | refs/heads/main | 2023-02-04T13:23:35.346672 | 2020-12-18T02:01:31 | 2020-12-18T02:01:31 | 322,407,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | from datetime import datetime
from functions import make_opts, cnn_network, split
import pickle
import numpy as np
import h5py
import argparse
import os
parser = argparse.ArgumentParser()
parser.add_argument("slice", type = int)
parser.add_argument("dt", type = str)
args = parser.parse_args()
jj = args.sli... | [
"noreply@github.com"
] | gcaron00.noreply@github.com |
b007ae6add91250696b0dc9a26c6dc026163f6d6 | d89c65b5efbdfec1715f34ac9efdd0f5acb5d220 | /env/bin/wheel | cb55792c3f603a0fab2f7e8dbf91e144f3b0b2fc | [] | no_license | AqilSidek/Python-Polls-App | acecd519c05f7de52f340a46f05c62e7ccc1614e | 3b3ba017324caced375c681bcd361ee121182149 | refs/heads/master | 2020-09-10T17:05:13.143680 | 2019-11-14T19:19:23 | 2019-11-14T19:19:23 | 221,769,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/aqilsidek/Documents/Projects/Django-Udemy/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aqilsidek@TD1A9.WPA.Dal.Ca"
] | aqilsidek@TD1A9.WPA.Dal.Ca | |
f71dd63ee2ea8202164d09acdcad940b1c409042 | 99ddc94956cfb0f4d259909422edb9168fef796e | /final/skypillar/submitter.py | c98d336273c2c65f680d14ff4811b9df8fbb3b60 | [] | no_license | nguyenqh/crossctf-2017 | e573a4767a9712ad6ff160c100d1a4d551f1d5bb | d7a772a428586c3ec85bf1327c2a7f8b8a843799 | refs/heads/master | 2020-12-30T13:46:22.341569 | 2017-08-31T18:21:40 | 2017-08-31T18:21:40 | 91,251,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | submitter.py | [
"hanhnq87@gmail.com"
] | hanhnq87@gmail.com |
7ee5141d1bba8ceb39173189e4b3ff75d7e9b835 | 7221c1c0afab82e2167bc6761957007d64df567e | /Donation/forms.py | b46cd087652f98c0357d40e66dd75e1ad90b4014 | [] | no_license | effat-100/FinalProject | f1587bd627d2e667708c16650e86ba5b6b8603d8 | f018799f6f8d2f44c399021542c806a45e331892 | refs/heads/main | 2023-04-05T16:35:07.785275 | 2021-04-10T18:19:46 | 2021-04-10T18:19:46 | 356,661,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django import forms
from .models import DonationClass
class DonationForm(forms.ModelForm):
class Meta:
model = DonationClass
fields = '__all__' | [
"18101035@uap-bd.edu"
] | 18101035@uap-bd.edu |
5a9e2eabb9f9009d4a4997596eafefb263ce7eab | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12203223.py | 392cf501d3a9baef02fffad9888d31365f12f6c9 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12203223.py generated: Wed, 25 Jan 2017 15:25:22
#
# Event Type: 12203223
#
# ASCII decay Descriptor: [ B+ -> (a_1(1270)+ -> (X -> pi+ pi- pi+)) gamma ]cc
#
from Configurables import Generation
Generation().EventType = 12203223
Generation().SampleGene... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
c9bf6e8a7edda8fe7afa5ef5f41c0a977270dcf4 | a73f7671ff5eab2c0bb1018dc3dd76e3a48b15b7 | /script/2d_planar.py | 3c9c4d38275b34600fb09ca5cb89226723003ffd | [] | no_license | ggory15/python_wrapping | f4bf72c6fab3dfdcbbede037b2eb1cc2c00499a3 | 869020f6bef8d081aec13d4209a77b1c45e96303 | refs/heads/master | 2022-01-07T00:33:39.133218 | 2019-07-23T05:17:35 | 2019-07-23T05:17:35 | 198,189,070 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import python_wrapping as pw
import numpy as np
robot = pw.Planar2d("test_robot")
print "Robot's joint number is", robot.nq
print "Robot's name is", robot.name
q = np.matrix(np.zeros(2)).T
print "Robot's position w.r.t zero vector is", robot.position(q).T
# set q
q[0] = 0.5
q[1] = 1.0
robot.setJoint(q)
print "Cur... | [
"ggory15@snu.ac.kr"
] | ggory15@snu.ac.kr |
99ae394c94a9a59458cdf84fd462c0ffc9842bd7 | a3c66f0f06916996c9ccb716f839bbabe6bf9f53 | /run.py | 4b60ccebf62c8e0dab81270dcb562cf108a63011 | [] | no_license | obakhmach/sapceship-game | 49f7ebe28dd39637831369634d6bf72a2dbe90cb | 8202db78482aaa0058ec78e2ed29cf0665d5e75a | refs/heads/master | 2023-01-11T12:16:41.274040 | 2020-02-26T20:14:22 | 2020-02-26T20:14:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
if __name__ == '__main__':
app.run(debug=True, port=5005) | [
"alexandrbakhmach@gmail.com"
] | alexandrbakhmach@gmail.com |
7e7ddfa664a0bcf984d5117ce3a60fcdb8bbc0c9 | e5312ea936b6f8a2ce123f9496cfc9f7c85e3f87 | /clean_text.py | 5327e666bd89bd35b0d2a9ce0f78cf2f18ebbb64 | [] | no_license | linsamtw/Kaggle_Toxic-Comment-Classification-Challenge | bdcb60c6a1166f69076a32374d6db916d554d8ac | 861d5910e38704d3c6125a97ceeb1505a1d99118 | refs/heads/master | 2020-03-21T11:00:02.035088 | 2018-06-24T13:26:25 | 2018-06-24T13:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py |
# https://github.com/zake7749/DeepToxic/blob/master/clean_data.ipynb
import re
from nltk.stem import SnowballStemmer
from collections import defaultdict
from keras.preprocessing import text, sequence
#print('Processing text dataset')
# Regex to remove all Non-Alpha Numeric and space
special_character_removal=re.compi... | [
"f496328mm@gmail.com"
] | f496328mm@gmail.com |
383b13a07e6214bf1c4c10635616b19cbf76c85e | 23c0a6054e3e5bbea078ab3ceed2c8a9faf9f5eb | /djangoresume/urls.py | 6b400f8266621990969f9d4151845051d504db48 | [] | no_license | rookasrudzianskas/Literate-Resume-Rookas-website | 558d7280c6c1e97524dc0ae2fa664c4a69e2859f | 8a15fd2b4ea04c0c81ad3e02a889f93118eb4b50 | refs/heads/master | 2023-04-13T15:11:48.767400 | 2021-04-23T12:54:09 | 2021-04-23T12:54:09 | 360,853,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('resumesite.urls'))
]
| [
"rookas.rudzenskas@gmail.com"
] | rookas.rudzenskas@gmail.com |
b240fc1dbd4c8a55eb05e114796fb20a0e801b1c | d788ea70cb72c3631810b27da7f64082d565940e | /atm.py | 0d645ad53cdfc4484307463369a9c4446189b186 | [] | no_license | rkpal445566/rkpal445566 | 68cc99fac04a111990e81074cdfc0584e127e565 | 1529d08d9b896cead75f0094ea54c95070c5be77 | refs/heads/main | 2023-08-07T10:19:21.176944 | 2021-10-12T07:49:34 | 2021-10-12T07:49:34 | 394,147,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | import time
print(" please inter your card")
time.sleep(3)
pin=int(input("please inter your pin number"))
password=123
balance=50000
if pin==password:
while True:
print("""
1==balance
2==withdral_balance
3==devite_balance
4==exit
"""... | [
"noreply@github.com"
] | rkpal445566.noreply@github.com |
c561174a611e7dced4a89f69426674184d00d7d7 | 4cb06a6674d1dca463d5d9a5f471655d9b38c0a1 | /rh1328/Assignment6/problemA.py | 16248fb36c91ca7022830a98671a0e38c918f9b2 | [] | no_license | nyucusp/gx5003-fall2013 | 1fb98e603d27495704503954f06a800b90303b4b | b7c1e2ddb7540a995037db06ce7273bff30a56cd | refs/heads/master | 2021-01-23T07:03:52.834758 | 2013-12-26T23:52:55 | 2013-12-26T23:52:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #Plot the data and reason about any phenomena
#of interest you see (you should report it in a short text).
import matplotlib.pyplot as plt
import numpy as np
import csv
def main():
zipcodes = []
population = []
numIncidents = []
data = open("labeled_data.csv", 'rb')
dataHolder = csv.reader(data)
... | [
"rebecca.hillegass@gmail.com"
] | rebecca.hillegass@gmail.com |
c43b258f7d6fda863d6bc3fc5b5b679d77aea950 | ca47e1c9d0f2571e824abe59fc0fe15143cfac67 | /photos-tiles/models.py | 75cec8d2b3155ab505ca3819b96849d35b48d9b2 | [] | no_license | internetprofil/django-photos-tiles-self-adjuting-drag-n-drop | b86e1e1eb8322ac57ba2d2a67470052d1350c210 | 5cbda1746da254b0ca8d698466e2531994ad0cce | refs/heads/master | 2020-06-04T15:02:51.166903 | 2013-08-30T13:05:54 | 2013-08-30T13:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from adminsortable.models import Sortable
from adminsortable.fields import SortableForeignKey
from tinymce.models import HTMLField
class Story(Sortable):
title = models.CharField(max_length=255)
slug = models.SlugField(un... | [
"profil@.(none)"
] | profil@.(none) |
4c6c07ef0dccc609e10a6d43df76fda6699335e8 | a54de9791b090f499a63291d2e10b61c8907689e | /python/sample/open_baidu.py | b5ab726d82f748389cbbd316ee4bf47522c549e2 | [] | no_license | qizj0424/ldd3 | 11fcbbf7f229db97866ca3cf192c4e99783f98ef | 2d1504be2695c71471eef03e48bdd518815d5aad | refs/heads/master | 2021-06-27T02:35:56.264154 | 2021-03-28T10:48:23 | 2021-03-28T10:48:23 | 224,821,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
运行环境:linux+python2.7
运行环境:用于打开某浏览器,并打开指定的网址
'''
print "hello world"
'''
#引入selenium库中的 webdriver 模块
from selenium import webdriver
#打开谷歌浏览器
driver = webdriver.Firefox()
#打开百度搜索主页
driver.get('https://www.baidu.com')
'''
#from pyvirtualdisplay import Display
from selenium im... | [
"zhengjian.qi@ingenic.com"
] | zhengjian.qi@ingenic.com |
f23ba7a6c0e51eb74a43b48e710b7c38693bb9c0 | ea4f789fa5f66119f013aeae892ef85d851051ce | /btre/urls.py | ff3304b1c1a907acc292063eed88721135d0ab6e | [] | no_license | estebanpablo89/bt_real_estate | 76676b48da7aea45823dfce85c512fdb0b1697eb | 36ade97a142800d8049974d9f28dcecb10167828 | refs/heads/master | 2023-03-25T08:41:01.134006 | 2021-03-26T18:20:31 | 2021-03-26T18:20:31 | 334,260,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path("", include("pages.urls")),
path("listings/", include("listings.urls")),
path("accounts/", include("accounts.urls")),
path("contacts/",... | [
"estebanpablo89@gmail.com"
] | estebanpablo89@gmail.com |
cae28a8eda3e45736f810ad0e152fc84b5c9b975 | b87f0ab2fccc45d1ecdb95050892c29f3034cd88 | /utils.py | 44dd7b14ef4feea6c09c66b146902abdd130ac0f | [] | no_license | mthossain/cycling-gps-data | 72f21cf3357dca4f4eec01275e7887f066b4b0f2 | 177c63dee89f56663eb22883ccde05d5cff40020 | refs/heads/master | 2020-04-18T17:55:56.161354 | 2019-01-26T09:13:44 | 2019-01-26T09:13:44 | 167,669,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | import pandas as pd
import xml.etree.ElementTree as ET
def parse_gpx(filename):
"""Parse data from a GPX file and return a Pandas Dataframe
with columns for latitude, longitude and elevation and
with timestamps as the row index"""
tree = ET.parse(filename)
root = tree.getroot()
# define ... | [
"thlimon@gmail.com"
] | thlimon@gmail.com |
7a1ffe7d23a60831a4fb05f1629d4eb8cf0b53aa | 734d47ba0e13e590a623ad6ee7a947480a243dff | /flaskproj/models.py | 55d9a3238ddab152ea6553a210e498b3f2d1cf98 | [] | no_license | yaourtv/Yet-Another-Flask-Blog | 44c6f426522498a538f42ade3ce88f3dc8dd0889 | cdc517e6ecb7f60d637e336638858029b85b63c0 | refs/heads/master | 2022-12-16T23:42:13.453770 | 2019-10-23T19:43:09 | 2019-10-23T19:43:09 | 173,097,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | from datetime import datetime
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from flaskproj import db, login_manager
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, U... | [
"yaourt.ongit@gmail.com"
] | yaourt.ongit@gmail.com |
81b885160370dfddb8b3e39118a9ddf7f65a982c | f67cbdbb90d89c06133dd69473384be073c623f5 | /venv/bin/easy_install | 314209de7ba7ce98357a82ef7d7a4c4639e5d324 | [] | no_license | soumya390/flaskwebstie | 67ed2740227dcd73d1b848251f6f81bae1559ce6 | 8ac1652dcfc15ecd3c32cac50595520fbf3910f1 | refs/heads/master | 2020-12-13T09:38:33.230244 | 2020-01-21T06:56:36 | 2020-01-21T06:56:36 | 234,377,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | #!/Users/soumya390/PycharmProjects/Flaskwebsite/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"soumya3939@gmail.com"
] | soumya3939@gmail.com | |
9ed91d682484ce62b55dc6bfbed44e1811cfc40f | e9dd300208fb87be597a988ef08e65a09628314f | /snli_bimpm/dataset.py | 24462a315fb81d679a3055e036b2be9acc5192e8 | [] | no_license | ihsgnef/pathologies | 96873768fb72ce9d4e9113d607fc0505d47e66c6 | 5134aa123afba149f0271c5504c54aff6fd5b122 | refs/heads/master | 2021-07-14T03:05:07.247266 | 2020-05-09T11:15:11 | 2020-05-09T11:15:11 | 130,865,719 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | import os
import torch
from torchtext import data
from torchtext import datasets
from torchtext.vocab import GloVe
from nltk import word_tokenize
class SNLI():
def __init__(self, conf):
self.TEXT = data.Field(batch_first=True, tokenize=word_tokenize,
lower=True)
se... | [
"sjtufs@gmail.com"
] | sjtufs@gmail.com |
c6bd0fa580d93bb941535844cffc057b7a4da8e2 | 8b599c4bc4e0b01ac04732731eaffab11704de53 | /pulp_rpm/src/pulp_rpm/repo_auth/identity_validation.py | ec3ac2c8e2d26e1191f68e7f0093c20d3e1048fc | [] | no_license | jwmatthews/pulp_rpm | 414350b360ae83c00385709d577fd31213f4cfc4 | 81643aaaa084575f4e651d3de75a86a9d31a8f49 | refs/heads/master | 2021-01-17T06:35:14.134732 | 2013-03-05T21:39:55 | 2013-03-05T21:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | #
# Copyright (c) 2011 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the im... | [
"mhrivnak@redhat.com"
] | mhrivnak@redhat.com |
c1167bc8739ce1652e1265648f50998c274bda4b | a35f631f548ae4bb61d7ae080dcf8874e5a24968 | /gravlite/plotting/plot_fornax.py | 97d295eb6962a32f11b00bedd5645c7a82f340e1 | [] | no_license | sofiasi/darcoda | f74cdd728d9a1c10d597325a22ac15075b0d5d20 | 70dbda8faa5f673ea46262cd751aa15f9374f91b | refs/heads/master | 2021-01-18T02:05:24.684990 | 2014-01-28T16:51:13 | 2014-01-28T16:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | #!/usr/bin/env python3
##
# @file
# plot walker models
# (c) 2013 Pascal Steger, psteger@phys.ethz.ch
import numpy as np
from pylab import *
import pdb
from scipy.interpolate import Rbf, InterpolatedUnivariateSpline
from matplotlib.backends.backend_pdf import PdfPages
from plots_common import *
## run all plotting ... | [
"psteger@phys.ethz.ch"
] | psteger@phys.ethz.ch |
a91d8c1257dd8b34c21989ee81f08ba5bac5f1a7 | 6bf5c30463fc6a292a4e72187b35fb8af7e87823 | /Anashka_folder/sum_array.py | 763d112db5c34cd8d992e201eeb8aad149923c9f | [] | no_license | HARIDARUKUMALLI/devops-freshers | 85eececaab92463b9c732819229bb094eb01fb4a | 813fab7693edb23e06b2425464debc93a4248ed8 | refs/heads/master | 2020-11-26T07:01:49.345578 | 2019-12-17T11:52:02 | 2019-12-17T11:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def arraySum(arr,num):
sum = 0
for j in range(0,num,1):
sum = sum + arr[j]
return sum
arr = []
sum = 0
num = int(input("Enter the number of elements in an array : "))
for i in range(0,num):
print("Enter element {}".format(i))
elem = int(input())
arr.append(elem)
sum = arraySum(arr,num)
print("The sum of a... | [
"anashkanaina@gmail.com"
] | anashkanaina@gmail.com |
bbdd58621429567a4cede31ea36ef9ed5d6f8481 | dbc3e853a1aa22db5d8a58c8dab04108fd82d38f | /order/migrations/0052_auto_20190123_1532.py | 5e3ba85dd04f510bc6aed671aa25a9f27f6c974c | [] | no_license | izonenav/subul | a6f1baeccec936f91a27ce0ddbb098e13c385b9a | 8128666d4e14878cfb04e7a35eb7e1178c61756e | refs/heads/master | 2022-11-13T04:47:40.943093 | 2020-07-14T02:29:09 | 2020-07-14T02:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 2.0 on 2019-01-23 06:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('order', '0051_auto_20190123_1520'),
]
operations = [
migrations.AlterField(
model_name='order',
... | [
"sugohaseyo93@gmail.com"
] | sugohaseyo93@gmail.com |
f6fd5f931244a8280332bdf29bd27d4e9097de4b | 4e7463fb7c9b0de10fe52e00b7b42784ee8ebc7a | /classifyImage.py | f0b8d66e6b95d328381336cacae66c2eb59b49d7 | [] | no_license | UjwalParajuli/ImageClassification | ede8e0a9790bf41680db5d1d15d29c8c93cb90b9 | 6dab5693958d0c3ab85e4ec0ca02250ea44c7666 | refs/heads/master | 2022-03-30T22:33:26.254730 | 2020-01-23T15:28:25 | 2020-01-23T15:28:25 | 235,824,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | from keras.models import model_from_json
from pathlib import Path
from keras.preprocessing import image
import numpy as np
from tkinter import *
from tkinter import messagebox
from PIL import ImageTk, Image
from tkinter import filedialog
from keras.preprocessing import image
from keras.applications import vgg16
import ... | [
"uzwalparajuli07@gmail.com"
] | uzwalparajuli07@gmail.com |
039a5758443c675dffa552433e7d1b59d2f1ea92 | cb300dd68a5f21dc614b1c99f64bf88c1f14a4b0 | /chapter06/代码/dictionary_trans.py | 61df340bd76f57f215b56339a944d2f40c4ec562 | [] | no_license | 1259975740/Machine_Learning | f612e6305f0d30de3cb5a7defa9ac3cdde84d541 | d2a015f53c665d06f3e5b0422a280d407828c3b8 | refs/heads/master | 2020-12-14T12:25:21.408876 | 2020-06-17T12:48:25 | 2020-06-17T12:48:25 | 234,740,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 11 13:28:06 2020
@author: Zhuo
"""
import numpy as np #导入numpy库,并更名为np,用于产生随机数据
import pandas as pd #导入pandas库,用于产生dataframe格式
from sklearn.feature_extraction import DictVectorizer
doc_1 = {"Apple":3,"Banana":4,"Cherry":5,"Orange":5,'Author':'Zhang'}
doc_2 = {"Apple... | [
"1259975740@qq.com"
] | 1259975740@qq.com |
9d1ea93780b92991ab8cafc667c925bd1c445557 | f030c1b724ad3a04dade2463374bd3c03e17b93c | /examples/image_depth.py | 908c5a46beb38638cc3bd648513a6bb3d6b30ade | [
"BSD-3-Clause"
] | permissive | sandutsar/napari | 3c8568979c320d57cdb80e2ea2a5db7ea035413b | 37d476bc0b00252177f17f25e7d1fd52ddc4bb69 | refs/heads/master | 2023-07-25T08:31:32.189843 | 2021-09-05T11:01:02 | 2021-09-05T11:01:02 | 390,003,115 | 0 | 0 | BSD-3-Clause | 2021-09-05T12:18:14 | 2021-07-27T13:56:23 | Python | UTF-8 | Python | false | false | 406 | py | import napari
import numpy as np
im_data = np.zeros((50, 50, 50))
im_data[30:40, 25:35, 25:35] = 1
viewer = napari.view_image(im_data, colormap='magenta', rendering='iso')
viewer.add_image(im_data, colormap='green', rendering='iso', translate=(30, 0, 0))
points_data = [
[50, 30, 30],
[25, 30, 30],
[75, 30... | [
"noreply@github.com"
] | sandutsar.noreply@github.com |
cdcb0a486b5a678b10d7fa9a5e966d354c50cf81 | dafbb40214c27993ced1c40ad3c7a6b9430a39a6 | /Code/language/Python/grammer/magicMethod/__next__.py | 6d94d8ed494e0174402ab376558d610d8cfdd89b | [] | no_license | wan-h/Brainpower | fe67de45edca22ca5de4789082c9662e84c95a13 | f42d68a27b2610ba045dfc68873c429b58cf573b | refs/heads/master | 2023-08-17T02:57:50.633504 | 2023-08-03T07:11:27 | 2023-08-03T07:11:27 | 223,208,555 | 4 | 1 | null | 2023-03-06T20:45:31 | 2019-11-21T15:45:50 | C++ | UTF-8 | Python | false | false | 889 | py | # coding: utf-8
# Author: wanhui0729@gmail.com
class MyIterator_1():
def __init__(self, num):
self.num = num
def __iter__(self):
'''
返回迭代器对象, 该类有__next__方法,见下代码
'''
return self
def __next__(self):
self.num -= 1
if self.num < 0:
raise Sto... | [
"13658247573@163.com"
] | 13658247573@163.com |
f85eb7b8a36329a370d4b0bd65aa1b770c90d2d6 | 9602a8755b2ee2d52ee99235e989f47d19ecb6c8 | /Find most occuring character and its count.py | f0fb2fc5023d83c2cbed4c0d43533f0ca6d81601 | [] | no_license | Ram-Jai/Python | e7bf3a332a7f23bc1ce353a0a9fe7f50c1582e35 | 8b8e96689695efea9de8e2ed877b8182ddb8cfdd | refs/heads/main | 2023-01-20T08:21:09.087764 | 2023-01-17T15:33:55 | 2023-01-17T15:33:55 | 316,453,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from collections import Counter
sentence = input("Enter the string: ")
res = Counter(sentence)
max_key = max(res, key = res.get)
print(max_key, res[max_key])
| [
"noreply@github.com"
] | Ram-Jai.noreply@github.com |
b912f2ce0f2703fa056f6f7adee1c6fee990dcb8 | b2d2cab104508205922c5d54ff52159c022e9717 | /demo_odoo_tutorial/models/models.py | 5898021098dd741641007ce904278177ef00aed9 | [] | no_license | allenchaoSNP/tutorial | f732fcc644a2d3895fcdcb6f6d443f350690e809 | aad4dcd06ce22756f336f295982120c1e8ec25dc | refs/heads/master | 2023-01-03T23:01:18.640281 | 2020-10-31T09:12:17 | 2020-10-31T09:12:17 | 293,018,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,642 | py | from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
class DemoOdooTutorial(models.Model):
_name = "demo.odoo.tutorial"
_description = 'Demo Odoo Tutorial'
_inherit=['mail.thread','mail.activity.mixin']
server_name = fields.Char('Server', required=True, help="The ... | [
"allen.chao@sportscity.com.vn"
] | allen.chao@sportscity.com.vn |
93da233559d6f4004f9903218f673dcced3e1908 | 9b99b9f56b792281e99a35d2f8260a9bc10f5208 | /P1HW2_BasicMath_WatsonGavin.py | 805c241856c74b2284f5b257450d4db7ebd879b3 | [] | no_license | Arc-0/cti110 | a42e34200bf76919f8aee1283129648a4869512b | 622e0378f6e5a82c72a3584d34063fbd8555a220 | refs/heads/main | 2023-07-19T03:40:14.261951 | 2021-09-28T15:45:49 | 2021-09-28T15:45:49 | 411,340,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Basic Math Caclulator
# 9-28-2021
# CTI-110- P1HW2-Basic Math
# Gavin Watson
tax = float(0.06)
year = float(12.0)
mTax = int
expense = input('What is the name of your expense?')
mCharge = float(input ('How much are you charged monthly for this expense?'))
mTax = tax * mCharge
Total = (mTax + mCharge) * year... | [
"noreply@github.com"
] | Arc-0.noreply@github.com |
d0f8c27ee1752b0ee0f7c4e4fb94c08a92848aa4 | 3ea57100941eaf06d1810b2aacf83341eb8cf455 | /rules/qc.smk | b1ee51fb04a9b407492932695cac7e73b18315e6 | [
"MIT"
] | permissive | matrs/assembly-illumina-bact | 43d46cfe7f54c4c63d26e8ae35ff66522436ff0a | 909bdc8b65b6c1695182a3ef15e9d18eb28a5d0a | refs/heads/master | 2020-08-01T12:56:21.106853 | 2019-09-26T12:05:44 | 2019-09-26T12:05:44 | 211,003,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | smk | rule sam_stats:
input:
"results/assembly/{sample}-spades.bam"
output:
"qc/{sample}-sam_stats.txt"
# log:
# "log/{sample}-sam_stats.log"
conda:
"../envs/env.yaml"
shell:
"samtools stats {input} > {output}"
rule sam_flagstat:
input:
"results/as... | [
"jlmaturanag@gmail.com"
] | jlmaturanag@gmail.com |
f81b23e3678e2dd55619dd8bf7468332c94cbe9d | 78efa54b2b253f99ea7e073f783e6121c20cdb52 | /Codechef/A balanced contest.py | 5932f1861ea4d83ededdef93b4e58a1de5eaf65b | [] | no_license | NishchaySharma/Competitve-Programming | 32a93581ab17f05d20129471f7450f34ec68cc53 | 1ec44324d64c116098eb0beb74baac7f1c3395bb | refs/heads/master | 2020-04-08T04:02:46.599398 | 2020-01-01T15:51:39 | 2020-01-01T15:51:39 | 159,000,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | for _ in range(int(input())):
n,p=map(int,input().split())
arr=list(map(int,input().split()))
easy,hard=0,0
for i in arr:
if easy>1 or hard>2: break
if i>=p//2: easy+=1
if i<=p//10: hard+=1
if easy==1 and hard==2 : print('yes')
else: print('no')
| [
"noreply@github.com"
] | NishchaySharma.noreply@github.com |
7247fd748a78c83c796802d35a72e0d2c6a3472a | 84f3814b595dd362188d8c3b8ba54f80031655a0 | /Lhy/2021/HW2/SHARE_MLSpring2021_HW2_1.py | fb8775fa5325cc88f64e79f2d8c104dbe1cdc9b9 | [] | no_license | qisionline/py_stu | 56f1698aad1bc104e260e7d54f55b84aee193813 | 5bafb6296a1f583df2b43defc3061f7093079ab6 | refs/heads/master | 2023-06-20T00:06:22.793170 | 2021-07-05T07:06:24 | 2021-07-05T07:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,076 | py | # !gdown --id '1HPkcmQmFGu-3OknddKIa5dNDsR05lIQR' --output data.zip
# !unzip data.zip
# !ls
import numpy as np
data_root = '../data/timit_11/'
train = np.load(data_root + 'train_11.npy')
train_label = np.load(data_root + 'train_label_11.npy')
test = np.load(data_root + 'test_11.npy')
print(train.shape)
print(test.shap... | [
"1850094299@qq.com"
] | 1850094299@qq.com |
3022065c371b70dc189c9268ac0d2453f41cd858 | 284851c6bd3f836506050a3d85e2a51cf6688d2d | /String/palinP2.py | 6b9eaa4c35d4701fe146c4f665f463346a4691d6 | [] | no_license | DiracSea/LC | 6386c147ced4cb8e393051a7620a0f95a011b3dc | a08b44323b04fc7d488708b0ffbe94dafc47eb18 | refs/heads/master | 2020-09-07T01:04:45.297210 | 2019-11-09T08:10:28 | 2019-11-09T08:10:28 | 220,610,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | class Solution:
def minCut(self, s: str) -> int:
size = len(s)
cut = list(range(-1, size))
for idx in range(1, size):
for low, high in (idx, idx), (idx - 1, idx):
while low >= 0 and high < size and s[low] == s[high]:
cut[high + 1] = min(cut[hi... | [
"sulz@mail.sustc.edu.cn"
] | sulz@mail.sustc.edu.cn |
80ac1a921ef93ae3edcd20d758c7f3f86954cb63 | 4c22b603997b8f9330662526197a718d7bdb4833 | /ttDM/treeDumper/test/submit_all.py | b600febdfad48d39936a284e0f8f4e4fb7cc8402 | [] | no_license | gigian/treeDumper | 1f5e1076077143504350fcd3ca271c39dbac8490 | 3adcc930d7af7630aa5d7ac42e0a929451426ae9 | refs/heads/master | 2021-01-12T07:28:43.100873 | 2016-12-15T16:14:51 | 2016-12-15T16:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,400 | py | #!/usr/bin/env python
"""
This is a small script that submits a config over many datasets
"""
import os
from optparse import OptionParser
def getOptions() :
"""
Parse and return the arguments provided by the user.
"""
usage = ('usage: python submit_all.py -c CONFIG -d DIR ')
parser = OptionParser... | [
"giorgia.rauco@cern.ch"
] | giorgia.rauco@cern.ch |
0ab4b13228d7655bf90a0e37f26836c8edf0c732 | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/lib/carbonstdlib/imaplib.py | 35e85a26e41ec0bbbfb71ec592a1ddadd54876ee | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,940 | py | #Embedded file name: c:\depot\games\branches\release\EVE-TRANQUILITY\carbon\common\stdlib\imaplib.py
__version__ = '2.58'
import binascii, errno, random, re, socket, subprocess, sys, time
__all__ = ['IMAP4',
'IMAP4_stream',
'Internaldate2tuple',
'Int2AP',
'ParseFlags',
'Time2Internaldate']
CRLF = '\r\n'
Debug = 0
... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.com |
b2b1cb40b06c5878370fda8f72c71b38b13e5d92 | 2a1e6d9695e3356a1237bfcec45e8b95427c1874 | /notestdd/buggy_math_module.py | 0d9aed278cf38516dbcc59125e132344da47e62c | [] | no_license | samdeanefox/tdd_class | e6f22dfff806b047e273a5ed0475ba85cd6a6eaf | fec252b0806f719f111c36873e6a533963ca0fec | refs/heads/master | 2020-03-10T08:52:58.837659 | 2018-04-12T21:23:39 | 2018-04-12T21:23:39 | 129,296,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py |
'''
Quadratic Formula Stability:
https://people.csail.mit.edu/bkph/articles/Quadratics.pdf 4ac is very small
Gentle cross-over to linear when a is small
https://math.stackexchange.com/questions/866331 a is close to zero
Hypoteneuse Stability:
https://www.johndcook.com/blog/2010/06/02/wh... | [
"samdeanefox@gmail.com"
] | samdeanefox@gmail.com |
a86d551d4f160e7c27c2e3024aa1bb627693d788 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/BillInfo.py | 0fcb91319de447339320c2b94bfe25f632adf6f7 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,520 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class BillInfo(object):
def __init__(self):
self._gmt_recv_pay = None
self._recv_pay_amt = None
self._rp_record_id = None
self._rp_record_type = None
@property
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
f8b5fbbf2b2a435b77a3fd058b7b33dea5b3a8f4 | 2798b72a1ca9cb02cf11f8ad087782e179f1144f | /client/test_ivona.py | 6ba7d741fcf6db6e5dfa92ac533a86c5e0f4fe98 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | HubertReX/jasper-client | 9bb70a0837a92c56ebd196181950636e45e5303b | a161d5ad593f9f5b87535ed84643629fc5cb1138 | refs/heads/master | 2020-05-29T11:07:30.427820 | 2015-09-13T20:09:09 | 2015-09-13T20:09:09 | 23,908,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import pyvona
import sys
filename = "test_ivona.mp3"
ivona = pyvona.Voice('GDNAJCB7IGSUWGJE5EWQ', 'tLd1c3R1+3YbXscd6ILnuamY87uTycP2ngeer0S/')
ivona.codec = "mp3"
ivona.region = 'eu-west'
ivona.voice_name = 'Maja'
ivona.language = 'pl-PL'
ivona.speech_rate = 'medium'
ivona.sentence_break ... | [
"hubert.nafalski@gmail.com"
] | hubert.nafalski@gmail.com |
5b0f892cfc5e65b5b798d68650b844aa005f94d6 | 8f913b6a9d48f9d4a84e83c6ce211dc1feadbb8d | /Software/Source/deb_dist/pijuice-1.0/debian/pijuice/usr/bin/pijuice_sys.py | 042db00c9a33401344a2b73dd571f7414a721e80 | [] | no_license | klint-k/PiJuice | 22d24f84ca650c2d6e2b4023d37dee25ef3707c3 | 6b1303b57bef51c4bd7872a4a5045d87d94c4205 | refs/heads/master | 2021-08-07T18:12:51.789775 | 2017-11-08T17:11:59 | 2017-11-08T17:11:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,076 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
import time
import datetime
import calendar
import sys, getopt
import os
import subprocess
from pijuice import *
import logging
import json
import signal
pijuice = None
btConfig = {}
configPath = '/var/lib/pijuice/pijuice_config.JSON'#os.getcwd() + '/pijuice_config.JSON'
co... | [
"shawaj@gmail.com"
] | shawaj@gmail.com |
9fde9fef82672191ac6e00e01123ce0e6c6c7627 | 94583800a07384bebcde02e147066b0ed8636234 | /spider/login_no_vf/v9/four_area/f_a_云智慧.py | 6722d4928862ac13c753a771791cdf5039503171 | [] | no_license | jk123415/python_some_js | 2f3323143cf932e67411e29aab28cdb2fffd1014 | b5bcdda35bf8bf9e11680d55c5efc91bfe802fa4 | refs/heads/master | 2020-04-24T14:09:07.977279 | 2019-02-22T06:51:16 | 2019-02-22T06:51:16 | 172,010,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import sys
sys.path.append("../..")
from no_vf_login import login
confi = {
'name': '云智慧',
'cookies_path': ['D:\\火车采集器V9\\Data\\Cookie\\1811.txt'],
'url': 'https://www.yunzhihuijr.com/user/login',
'headless': True,
'bf_username_click': '',
'bf_password_click': '',
'username_selector': '//*... | [
"289891598@qq.com"
] | 289891598@qq.com |
c8eeeccd806444afe0377d9bee8fb43ceefa9292 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-dns/huaweicloudsdkdns/v2/model/delete_public_zone_request.py | 77a726b197fea587174df7df7e706b1d3f471285 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeletePublicZoneRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): Th... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9dbfca841f1f47aa3c3ab1a26fc5fc21172eed36 | bd639cd74f395031a6fb592539da47f9de328144 | /.history/polls/urls_20210719221123.py | 8159fcdb942f6b7f96aec3dc4d4fe4e6d9c3df17 | [] | no_license | ninjapolski2/djangoLearning | c6082df9e14cf086d204f6d37dbd9d1c209338ed | 7a07777587ae54eca1ca45d9518716120f871d51 | refs/heads/master | 2023-06-22T04:42:53.923592 | 2021-07-23T18:21:47 | 2021-07-23T18:21:47 | 387,380,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from django.urls import path
from django.urls import views
urlPatterns = [path("", views.index, name="index"),]
| [
"73312515+ninjapolski2@users.noreply.github.com"
] | 73312515+ninjapolski2@users.noreply.github.com |
b6cdf8400d98ceb77ad4111d12625dc716743035 | eff86944007ab00d11b12e3b2fb4c33fcc3eb88d | /tools/RNN/rnn_quantizer/tensorflow/tf_nndct/layers/recurrent.py | 509cfe860dc4dfcb8a3ebfed576a64e2fa29c8cb | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | durgabhavaniv/Vitis-AI | 0017f078de4e903a9ea7f195d8dab4a325896b23 | 1452e0d9faf73b626d99d200ebc9e88fb72d0acb | refs/heads/master | 2021-12-03T23:29:00.175094 | 2021-09-16T07:47:48 | 2021-09-16T07:47:48 | 254,062,949 | 0 | 0 | Apache-2.0 | 2021-07-07T07:16:38 | 2020-04-08T11:00:53 | SystemVerilog | UTF-8 | Python | false | false | 23,830 | py |
#
# Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"hanxue.lee@xilinx.com"
] | hanxue.lee@xilinx.com |
ad7e5545ea34ce435ce70300c496a42032b5af19 | e6f7ca3e5ad3eb9cdd9a89de1a99a9d905853ef0 | /todo/views.py | 100e9a497d49042d38517291f98e927388f7d214 | [] | no_license | almog6kUNO/API | e61ef2f802370cb4b91a7fd487f235ee65dff8bc | af74ecc04dfacff807433e459542f1c77579455e | refs/heads/master | 2020-06-06T19:17:07.495244 | 2019-06-20T02:10:22 | 2019-06-20T02:10:22 | 192,832,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,002 | py | from .models import List,Task
from rest_framework import generics
from .serializers import ListSerializer, TaskSerializer,ListSerializerFilterNotComplete, \
ListSerializerFilterComplete,ListSerializer_Slug
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework impo... | [
"almogboanos@unomaha.edu"
] | almogboanos@unomaha.edu |
c7101c65cbce622d7be2452f209774128992c11e | 8f3f7952dce5f20af8798b5c64b8f8f4e7ab19c9 | /myBakery/migrations/0003_product.py | 9dc3e01396481d7af364803a19d8c665d82494c5 | [] | no_license | sjaydeep/Jake-s-Cakes | 7043aadd663eb1d1de24b6d19050a3d63f8160e2 | 28e6049a2df5dc81f959a978ef29822b917e3ca5 | refs/heads/master | 2022-04-16T20:42:25.163341 | 2020-04-16T14:17:53 | 2020-04-16T14:17:53 | 256,235,354 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Generated by Django 3.0.4 on 2020-04-08 06:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myBakery', '0002_auto_20200407_2343'),
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"58913413+sjaydeep@users.noreply.github.com"
] | 58913413+sjaydeep@users.noreply.github.com |
6f5b4dcc9d3bb8368c066a3b087ba977dd443b84 | 287d2f60b404cd4f7b873dafd0e653304caf94ea | /firefighters/firefighter.py | 0485f6fd10bb9875326646cf7ef9a5513228bb80 | [] | no_license | dhivyasa/firefighters | ebc8a6c90459d831053544388fd946e7a516eda8 | 85a6ff15f2e916ac94ee125f6b2cc5c5b8701f01 | refs/heads/main | 2023-08-15T22:20:14.961870 | 2021-10-15T21:22:01 | 2021-10-15T21:22:01 | 417,536,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | from abc import ABC, abstractmethod
from firefighters.city_node import CityNode
from firefighters.building import Building
class FireFighter(ABC):
@property
@abstractmethod
def location(self) -> CityNode:
"""
Get the firefighter's current location. Initially, the firefighter should be at... | [
"dhivya@dhivyas-mbp-2.lan"
] | dhivya@dhivyas-mbp-2.lan |
ad22fa450cda427667c5924e1c88fe8a4fe35589 | e9e16294d9506fe7ba2e0de46d7d793b3032b387 | /setup.py | a0ebbe33f82593a7588ab4f64d657d4b82d44aa9 | [] | no_license | oohlaf/pyred | bb0542d56b4280b9023fd0bf4b7abd7f8437d4ab | 8815781d22b63ea8d089c3a8b9732446647581d3 | refs/heads/master | 2020-04-05T23:29:30.339448 | 2013-03-03T00:32:14 | 2013-03-03T00:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.md')).read()
requires = [
'pyramid',
'pyramid_webassets',
'pyramid_zodbconn',
'transaction',
'py... | [
"olaf@conradi.org"
] | olaf@conradi.org |
421ab07004fb5f19bd949d5c33deaded25964dc3 | 3b0a9942e04a933113e0145e7ba87809b29a4480 | /userss/views.py | 7cb2f69e2955cd68744e77255f66fb6bc07d0c3c | [] | no_license | Baba7080/Redcarpet_loan | dd7e1923b551578db46d6fbb2327748244a4616f | 9f640b65d9e87fdeffa14a33423d66ffede38634 | refs/heads/main | 2023-05-05T18:38:09.154777 | 2021-05-30T23:19:19 | 2021-05-30T23:19:19 | 372,333,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | from django.shortcuts import render,redirect
from django.contrib.auth.forms import UserCreationForm,authenticate
from .forms import applyloan,loanStatus
from django.contrib import messages
from .models import loan
# Create your views here.
def home(request):
return render(request, 'home.html')
def profile... | [
"abhishekshukla0700@gmail.com"
] | abhishekshukla0700@gmail.com |
fa863aae15aff0b9b2151218537fe4bff9d02e95 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/7cd6cca2ef9c5ac5d3d47703b44e07726f2fd6e7test.py | 7cd6cca2ef9c5ac5d3d47703b44e07726f2fd6e7 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 4,184 | py | import os
import sys
import time
sys.path.insert(0, os.path.abspath("../"))
import unittest
import nimboss.nimbus
from nimboss.nimbus import NimbusClusterDocument
from nimboss.broker import ContextResource, BrokerClient
from nimboss.node import NimbusNodeDriver, EC2NodeDriver
from nimboss.cluster import Cluster, Clus... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
02b9cabaeadd9d2b26e27e36ce2343e9108a852c | 9e36b3a0a609f862aa2894a1473896c8465c41a1 | /arelle/ValidateXbrl.py | a0790473b0b7f802e279abfb282031ab6ed2cde4 | [
"Apache-2.0"
] | permissive | marado/Arelle | 7cd74a66d19be174c9f1fe66f788dd53447bffac | 7ca2bf09c852787cd7a38d68b13c11d5e33e72a2 | refs/heads/master | 2020-04-08T00:27:54.212337 | 2011-10-28T17:49:49 | 2011-10-28T17:49:49 | 2,658,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,136 | py | '''
Created on Oct 17, 2010
@author: Mark V Systems Limited
(c) Copyright 2010 Mark V Systems Limited, All rights reserved.
'''
import re
from arelle import (ModelDocument, XmlUtil, XbrlUtil, XbrlConst,
ValidateXbrlCalcs, ValidateXbrlDimensions, ValidateXbrlDTS, ValidateFormula, ValidateUtr)
from arel... | [
"fischer@markv.com"
] | fischer@markv.com |
e8e7530b4864b12737b4c75f3191caa3a10803ba | 1350d3b554df778bd63b7fffc45eabc74a0f9a5f | /day1-setup/test/test1.txt | 3cf40af92b665616c32c89f79ff3ff817671beed | [] | no_license | jsarraga/week1 | 08bf97f4937fe5a54e2a0965c17f4208ff1ad085 | 2054408f69c7ed585aa19655cddaab718d6e294b | refs/heads/master | 2022-07-10T13:06:57.793234 | 2019-08-26T21:21:45 | 2019-08-26T21:21:45 | 203,216,336 | 0 | 0 | null | 2022-06-21T22:36:03 | 2019-08-19T17:11:05 | Python | UTF-8 | Python | false | false | 45 | txt | #!/usr/bin/env python3
#this is a comment
| [
"justinsarraga@Justins-MacBook-Pro.local"
] | justinsarraga@Justins-MacBook-Pro.local |
ae115b6955358448841074eab5e584c104d705c2 | 29d16866799d0f2be7cb346eb16b1994bd36761a | /rapid/lib/converters.py | 9a387a067ce4fd42ea966b102decee4fd0929a7f | [
"Apache-2.0"
] | permissive | BambooHR/rapid | 4e942fb6750e5fe907917e249ac3c10d1df2147f | f30bb385389b9b48d4726f34eda988c4f1d9bf55 | refs/heads/master | 2023-09-04T00:16:58.136437 | 2023-08-31T16:33:26 | 2023-08-31T16:33:26 | 84,495,661 | 6 | 5 | Apache-2.0 | 2023-08-31T16:33:30 | 2017-03-09T22:43:31 | Python | UTF-8 | Python | false | false | 823 | py | """
Copyright (c) 2015 Michael Bright and Bamboo HR 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | [
"mbright@bamboohr.com"
] | mbright@bamboohr.com |
d3cdb56eca10967f6bfc9c995ae9f7f247676dab | 9943d27aef8173b504f4be3e5bba95fb3a2d7dab | /teaspoon_app/migrations/0014_auto_20210916_0255.py | 0dd63f210eea51b3c65e00c4f0acfd54b4a3f72b | [] | no_license | iniyan-kannappan/teaspoon | 5f5d157a6db44635cceb9b3a5f71cfb592fa49c5 | 196e9ac0beeae6be5801b9e6cef5e545552e6c38 | refs/heads/master | 2023-08-14T10:04:38.415204 | 2021-09-29T02:39:01 | 2021-09-29T02:39:01 | 405,464,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 3.2.7 on 2021-09-16 02:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teaspoon_app', '0013_order_done'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='done',
... | [
"iniyan.kannappan@gmail.com"
] | iniyan.kannappan@gmail.com |
20102c3c37932ad67652ec156be8c372592e5761 | d58e6c082ddb6890b43a017f1fd6c89f88b7a7a8 | /python-web/app.wsgi.py | 23a3153bd0b3e1610cd5616c9ca3e18ccdc5e530 | [] | no_license | Tedezed/Hosting-Web-Python-Bottle | 7fdc409f4df39d05e4d52f8306c8dbcb7d354844 | f49b7b4acc267bfd0234f0cf4dbad165aa8659e6 | refs/heads/master | 2021-01-10T15:11:43.928910 | 2015-06-05T11:41:49 | 2015-06-05T11:41:49 | 36,929,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#By: Tedezed
import os
from bottle import *
#Parcheamos para poder hacer el import de alta,etc
sys.path.append('/var/www/python-web/')
from alta import *
from baja import *
from herramientas import *
os.chdir(os.path.dirname(__file__))
application = default_app()
@route('... | [
"xerrot@debian"
] | xerrot@debian |
f6d17d6300a05e0fb70a75ca7377fb7bbdd228a0 | 60ab095e6781dab935b8ce6376a143cf86708de5 | /tests/test_graph.py | b79c38c8807612b2dcc9963e085765e479747cfe | [] | no_license | seanfisk/database-serializability-graph | eb437555b8d7982188c28a1c17fc373f496b8485 | 697abcb5454421431dd59b109f201bd860febf23 | refs/heads/master | 2020-05-20T10:59:18.011237 | 2013-04-17T22:12:27 | 2013-04-17T22:12:27 | 8,955,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import os
import unittest
from serial_graph.graph import _find_conflicts
def open_fixture_file(basename):
return open(os.path.join(os.path.dirname(__file__), 'fixtures', basename))
class TestConflicts(unittest.TestCase):
def test_schedule_1(self):
self.assertEqual(_find_conflicts(open_fixture_file(... | [
"sean@seanfisk.com"
] | sean@seanfisk.com |
50012813c8555447db1675cd2046cc80e2392c64 | 4af3723e7b9790c6400783abc5a2a8f01a170a1f | /index.py | 3ec4bf62ee1f800077e4ab9d754e3dd934ada028 | [] | no_license | kimgiftww/123 | 1552f74d9182ea40c5c51312f051e9ba6705ebcd | c81a30223c644b4e28c043540180b5a30513c8dd | refs/heads/main | 2023-08-02T22:01:09.123690 | 2021-09-27T07:33:26 | 2021-09-27T07:33:26 | 409,785,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from flask import Flask, Response
from dash import Dash
import dash_html_components as html
app = Flask(__name__)
def init_dashboard(server):
"""Create a Plotly Dash dashboard."""
dash_app = Dash(
server=server,
routes_pathname_prefix='/dashapp/',
external_stylesheets=[
'/s... | [
"noreply@github.com"
] | kimgiftww.noreply@github.com |
be9740bc68c7caaa87c791bf853a65c16d0caa06 | 7285aab9bffaaa8ce7a7b6523427ba7101708a69 | /crawler/crawler/spiders/schools.py | 00cb3ebf8481f9da59c7567c2b6fac66c08f8e79 | [] | no_license | 131250208/IPGeolocation | 97eb410c5a76403c4c4913a7d228bd3753bd5ab5 | a759a58f83833e5fee251b78e321663a6c60569c | refs/heads/master | 2020-04-02T13:42:01.395513 | 2018-12-29T11:54:28 | 2018-12-29T11:54:28 | 154,492,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,836 | py | import scrapy
import re
class SchoolsSpider(scrapy.Spider):
name = "schools"
blacklist = ["See also", "References", "External links", "Defunct", "Out-of-state", "Key", "Notes", "Secretaries"]
def start_requests(self):
urls = [
'https://en.wikipedia.org/wiki/Category:Lists_of_high_scho... | [
"wychengpublic@163.com"
] | wychengpublic@163.com |
8632f8ef44a303f6e45bf25185504302df2db3ba | e44fa9ae84fc9c749d7bb0cb0e987ebe7bdedf08 | /info/modules/profile/views.py | 3ba5f849141b349d13132ac0318bf71cf6267bba | [] | no_license | hui16620791020/Tobject | e02416cf2918790a3ad8727585f1719e6566a1be | 556a686cc5f2c40b64e85a446fcc878367b350dd | refs/heads/master | 2020-03-27T16:58:43.142713 | 2018-08-30T04:55:38 | 2018-08-30T04:55:38 | 146,820,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | from flask import current_app
from flask import g, jsonify
from flask import request
from flask import session
from info import db
from info.utils.response_code import RET
from . import profile_bp
from flask import render_template
from info.utils.common import login_user_data
from info.utils.image_store import qiniu_im... | [
"XIAOxiaozicq520"
] | XIAOxiaozicq520 |
4dcabba0f740d73c77e92a3dbab6851d0ef48987 | faa27b8dfccb1efa5cadd7e2242631e913e7a7e8 | /pycontrol/qt/daqwindowimpl.py | 752a227c393f66bf6781f0e6d071e258952c7cc6 | [] | no_license | mirabitl/lydaq | 46f0ddbe0127551fd807530179156ff4116dc7db | 25272c2deb57927c1397671452976059cd428be3 | refs/heads/master | 2022-10-02T09:02:42.108633 | 2022-09-05T12:54:38 | 2022-09-05T12:54:38 | 96,295,465 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,511 | py | #!/usr/bin/python3
import json2html
import MongoJob as mg
import json
import sys
import os
from PyQt5 import QtWidgets, uic
from PyQt5.QtWidgets import QMessageBox
from DaqWindow import Ui_DaqWindow
from mdccwindowimpl import MdccWindowImpl
from febwindowimpl import FebWindowImpl
from dbwindowimpl import DbWindowImp... | [
"laurent.mirabito@cern.ch"
] | laurent.mirabito@cern.ch |
0a8c1e6409f0c0892f092d25bd076b3e6d9871aa | 6fca17d260e2c1e6f11a890b11e4d1564153c305 | /chapter15/exercise15_1.py | 63b68ae7ae319643e3b748f757b42f6de93c774e | [] | no_license | jiangyihong/PythonTutorials | ad863a80877da1c83f7e1eab4a8b5935e1822bfc | 8572ee2ebb36ae24d114bfafacca422377bb8b3b | refs/heads/master | 2021-09-03T13:48:23.877082 | 2018-01-09T14:12:15 | 2018-01-09T14:12:15 | 113,634,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import matplotlib.pyplot as plt
plt.title("Cube Numbers")
plt.xlabel("Value")
plt.ylabel("Cube of Value")
x_values = [1, 2, 3, 4, 5]
y_values = [1, 8, 27, 64, 125]
plt.scatter(x_values, y_values)
plt.show()
| [
"enternalweave@gmail.com"
] | enternalweave@gmail.com |
eda28e43f609db0b9883ec1a84a5e8f6da14069b | ebd8c5746bdfc2c4c33b330611a5e2196b99a156 | /migrations/versions/c228d2b45842_.py | da63301e22fed9f9160b2dab7455fb64b77e26ef | [] | no_license | marklandp/info3180-lab5 | a55ef4554ec88c5aebb5482792191c089082fca8 | d8d1a62426c83752dc764e0da8a76afcc33329cb | refs/heads/master | 2021-01-10T07:17:36.847274 | 2016-02-25T01:48:02 | 2016-02-25T01:48:02 | 52,455,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | """empty message
Revision ID: c228d2b45842
Revises: None
Create Date: 2016-02-24 18:07:23.950715
"""
# revision identifiers, used by Alembic.
revision = 'c228d2b45842'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"marklandpayne@gmail.com"
] | marklandpayne@gmail.com |
eb810a1d0d5d4b990a1c7e3563e32000ad8ab8a9 | 9728dfeec18f10d35fe98bcc295f1d145b2efb6e | /pyflow/src/pyflow.py | 509efb8096e4b73d7a47edd0bd55a19bfdf791e8 | [
"BSD-2-Clause"
] | permissive | cotsog/pyflow | 66894f353c83d2a07efe9dd168836dfa872944cb | 4d5a2f2cd4b34ac64f49033aae21726ff4db8457 | refs/heads/master | 2021-01-22T16:37:29.377384 | 2015-12-14T19:56:29 | 2015-12-14T19:56:29 | 47,993,860 | 0 | 0 | null | 2015-12-14T18:41:42 | 2015-12-14T18:37:48 | Python | UTF-8 | Python | false | false | 151,173 | py | #!/usr/bin/env python
#
# pyFlow - a lightweight parallel task engine
#
# Copyright (c) 2012-2015 Illumina, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source ... | [
"csaunders@illumina.com"
] | csaunders@illumina.com |
f934b37dcfc14fccfd5a8d2b742c521fd281659c | ec77ed2de9b11c1f9ab298cb7c3acebca9b51fc0 | /recursiveUnzip.py | e348a31996c9581f17bbd6a8b3454e2281be49d7 | [] | no_license | c4ssios/utilities | 5cecfc1dafa66ff40f1f70b9211f6979af759a79 | 589e712769687d3972ffe2ab521d81034d709b0f | refs/heads/master | 2022-04-10T06:49:22.837177 | 2022-03-09T10:12:03 | 2022-03-09T10:12:03 | 144,635,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | import os
import zipfile
import shutil
path = 'S:\\textures\\SurfaceMimic\\'
def unzipNoStructure(directory, zipFilePath):
with zipfile.ZipFile(zipFilePath) as zip_file:
for member in zip_file.namelist():
filename = os.path.basename(member)
# skip directories
if not filename:
... | [
"noreply@github.com"
] | c4ssios.noreply@github.com |
cf1923a66c4b86554560d6cb9a4626291ed3bab2 | 0c401ae08e175364c536d769bc924a4eacfb8986 | /contacts/urls.py | f1eb4f30a3f2e75d8322ef1a2a184f6ca2da77fa | [] | no_license | pNemeth1/real-estate-django | f4739ad0bec2da8d6f3ea1c90469d73091bf5c74 | 49e5edf76b1760e73e8beaef856a62d620c28fb5 | refs/heads/master | 2023-01-24T06:21:02.044282 | 2020-11-18T13:39:34 | 2020-11-18T13:39:34 | 312,251,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.contact, name='contact')
] | [
"pasenemeth@gmail.com"
] | pasenemeth@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.