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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7df10e5c2b530b80c44a49b4fad39d8fac7471b0 | 48cc68cfc98a74df8765b38e6d75a25dec962bc9 | /API/tools.py | ea7ff1474a55b7f6a22d87f36fef608407eb60fe | [
"MIT"
] | permissive | gaozhangyang/DecST | 2c0f7a884771ca28328d5dc064622b2571909528 | 116ce9efa28a07793900d09345abab4cb512db98 | refs/heads/master | 2023-05-08T20:11:33.469488 | 2021-05-27T09:00:51 | 2021-05-27T09:00:51 | 371,293,589 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | import numpy as np
import torch
class EarlyStopping:
def __init__(self, patience=7, verbose=False, delta=0):
self.patience = patience
self.verbose = verbose
self.counter = 0
self.best_score = None
self.early_stop = False
self.val_loss_min = np.Inf
self.delta ... | [
"tancheng@westlake.edu.cn"
] | tancheng@westlake.edu.cn |
0eb99176513f06fb8781196ee8014d649bd70d86 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2023_04_02_preview/operations/_trusted_access_roles_operations.py | 4f35fd2f4bca3e2242277391b6aa357f6e55d86e | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 7,294 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
cf6780a47474b33842de25b95ce811cf72dda6fe | 01d53c2792f448380b7a5b6d1234cabfc41a423c | /RFFlow.py | 043e41e114640cebf831db85ae3363b0c7d40263 | [] | no_license | jgratsova/DNA | c75bc3afeba4f089828ebda389ca167ea911f544 | 906ff90204a1ba4c3827b2a4fe47b035d4ad080b | refs/heads/master | 2020-03-22T05:19:28.745557 | 2018-09-03T15:47:13 | 2018-09-03T15:47:13 | 139,557,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,849 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 13 12:38:00 2018
@author: JGratsova
"""
# Import libraries
from sklearn import preprocessing
from pandas import DataFrame
import pandas as pd
import numpy as np
import pickle as pk
import time
#import sqlalchemy as sa
from matplotlib import pyplot
from sk... | [
"noreply@github.com"
] | jgratsova.noreply@github.com |
f5ad9ba79254d89cf80f04861ff07ab84b5a23f0 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Nda8BQHhZSajpnt5z_11.py | 8e91b160e475d4c630be68a1759dc717d57213f7 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py |
def GCD(lst):
ans = lst[0]
for x in lst[1:]:
ans = gcd(ans, x)
return ans
def gcd(a, b):
if(b==0):
return a
else:
return gcd(b, a%b)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d6f49c02d34b8328f80de8c17cb33ce28336cfa2 | e6abfb46e3b9a271a714de165c3164bbdd2c99d0 | /Dictionary.py | 046013ef24ceb8eedc7b7d40fdd2bcd7a34e311e | [] | no_license | chandu17297/python3 | 14a8011a475a4da55e41c7640e8dfcf4ffaaa478 | 83acf7ff15717cda45bf2a1eee2585645c27db91 | refs/heads/master | 2021-04-29T10:19:04.026793 | 2017-10-17T02:36:18 | 2017-10-17T02:36:18 | 77,645,446 | 0 | 0 | null | 2017-08-10T13:38:11 | 2016-12-29T23:12:53 | Python | UTF-8 | Python | false | false | 869 | py |
# coding: utf-8
# In[1]:
#dictionary
chandra = {'1':'shekar'}
# In[2]:
chandra
# In[3]:
#getting the value stored in particular key
chandra['1']
# In[7]:
#dictionar can store array of values
chan={'k1':'1' , 'k2':'2' , 'k3':'3' , 'k4':[9,2,5,3]}
# In[9]:
chan['k4']
# In[13]:
chan['k4'][2]
# In[14]:
... | [
"noreply@github.com"
] | chandu17297.noreply@github.com |
11a4af1ebb9b8c45a9af5a409fdf1fd4888f7aa1 | dd5dba3bb000cb2afd63a8576674d310623a110c | /dartmun/models_logistics.py | 9a2f8d8748dea7cd6541185bde0d94cdadef72f8 | [] | no_license | hdk23/conference | 2442df001a2f02ac4c1ce866781aead437b7bd08 | 1056ac6b519a2a02296184c61c18f0c8df02a377 | refs/heads/master | 2023-05-01T06:14:55.944734 | 2021-05-17T02:05:44 | 2021-05-17T02:05:44 | 334,558,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.db import models
class Session(models.Model):
"""Session model to track conference sessions"""
number = models.IntegerField()
start_time = models.DateTimeField(null=True)
end_time = models.DateTimeField(null=True)
counts = models.BooleanField(default=True)
def __str__(self):
... | [
"henry.dohyun.kim.23@dartmouth.edu"
] | henry.dohyun.kim.23@dartmouth.edu |
cff00fb5a231213908efe2f7703b82cbe8fb099f | 99d79ada2d3b7746573f071823ec61f5f853d7a3 | /tests/test_circuit/test_debug_circuit.py | 59178bc03538bc5a75e0fb44366b964d44ebf307 | [
"MIT"
] | permissive | phanrahan/magma | d8062c6163e2c2c2cedef82317dc8cc40038220a | b05fe5303ed17e668c6ec2ec3558cd5a52eff787 | refs/heads/master | 2023-08-23T18:08:22.494869 | 2023-08-08T18:53:05 | 2023-08-17T16:16:44 | 84,332,281 | 227 | 21 | NOASSERTION | 2023-09-14T21:32:19 | 2017-03-08T14:57:09 | Python | UTF-8 | Python | false | false | 557 | py | import magma as m
def test_debug_circuit():
assert m.config.get_debug_mode() is False
class Foo(m.DebugCircuit):
assert m.config.get_debug_mode() is True
io = m.IO(I=m.In(m.Bit))
assert m.config.get_debug_mode() is False
def test_debug_generator():
assert m.config.get_debug_mode() ... | [
"noreply@github.com"
] | phanrahan.noreply@github.com |
e08dc6236ff37d62a7a4b40d92ab988d73f14b87 | e41cb36f0c05fdb23cc516bceda2847a484adc27 | /data_downloader.py | 92585ee9873d03c05db8ba4cec6f94874604cda4 | [
"Apache-2.0"
] | permissive | josiahls/Lowes-Product-Classifier | fcbbc4d9d6bc9f7aae36f0ec8c1017454ab50337 | c763861b9a40741d2b6529704cedad78af009ad1 | refs/heads/master | 2020-04-11T05:25:38.414207 | 2019-02-18T15:56:15 | 2019-02-18T15:56:15 | 146,519,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | import requests
def download_file_from_google_drive(id, destination):
URL = "https://docs.google.com/uc?export=download"
session = requests.Session()
response = session.get(URL, params = { 'id' : id }, stream = True)
token = get_confirm_token(response)
if token:
params = { 'id' : id, 'co... | [
"jokellum@northstate.net"
] | jokellum@northstate.net |
d68550af572f2294aa94df50fb8d6463e7f5fc4c | 3eca77db17a407b357162a1eee316ddc931c1d6b | /tms_208/common_task.py | 73c42f642675b0a27b343580936184e5dfdef3e6 | [] | no_license | dongxiaobing/python_automation | 567519113327bdae9299eba424b88147e02920a8 | 7dcad903b5299c2a50d2778d7833d0bccd775c18 | refs/heads/master | 2016-09-10T00:38:59.938946 | 2015-06-24T13:58:10 | 2015-06-24T13:58:10 | 37,986,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | #!/usr/bin/env python2.6
#encoding=utf-8
import json
import base64
import os
import sys
if not os.path.join( os.getcwd(), '../..' ) in sys.path:
sys.path.append(os.path.join( os.getcwd(), '../..' ))
import utils.tmslog
from HostedREST.hosted_basetask import HostedBaseTask
from HostedREST.hosted_taskqueue i... | [
"380678439@qq.com"
] | 380678439@qq.com |
d736dc8955fe9948061b9abce982ca9a4b9990dc | 3644d8e16f74829490292915bca85ae20d686a99 | /webscraperapp/webScrapa/models.py | 3f1705089343b805c2d8719ac8805f98db0f014a | [] | no_license | Laptic/WebScraperWebsite | 4fabc2eda1bfb5cf6655b8c411d11c2e66942088 | 5c9f1dc2d6db29e6fe9654e88ea8e0cb1b0a9cef | refs/heads/master | 2022-10-31T14:21:56.372820 | 2019-08-09T03:18:47 | 2019-08-09T03:18:47 | 200,905,199 | 0 | 1 | null | 2022-10-14T22:57:13 | 2019-08-06T18:36:56 | Python | UTF-8 | Python | false | false | 5,662 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | [
"johnhenrymartinez@gmail.com"
] | johnhenrymartinez@gmail.com |
2d82e388ebb339a48bbc7999031f9d55f4c07e87 | 9099ed0407521ac40b88f3b92872307f66c57bf9 | /codes/contest/leetcode/largest-number-at-least-twice-of-others.py | 6fd96179b228b56580003f6f2896c304213f659c | [] | no_license | jiluhu/dirtysalt.github.io | 0cea3f52d2c4adf2bbf5c23b74f4cb1070025816 | c026f2969c784827fac702b34b07a9268b70b62a | refs/heads/master | 2020-08-31T09:32:05.273168 | 2019-10-29T01:53:45 | 2019-10-29T01:53:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/env python
# coding:utf-8
# Copyright (C) dirlt
class Solution:
def dominantIndex(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
xs = list(enumerate(nums))
xs.sort(key=lambda x: x[1])
if len(xs) <= 1:
return 0
if xs[-1]... | [
"dirtysalt1987@gmail.com"
] | dirtysalt1987@gmail.com |
6899a10308c145e1ffeac2269256163600414fba | 16b355291e05660035646d05bc384f229b4d1738 | /ConsoleAdvance2.py | f269ad76dc2af8a29832ecebf97efa18e1fe1e80 | [] | no_license | gamgoon/python3_test | a672d96052d20e0e64cadf5831b7e465c98bdbbb | 3bacb388f94c829fa20aea179e121f9d0dddf63c | refs/heads/master | 2021-01-10T11:14:21.946155 | 2016-04-13T12:21:13 | 2016-04-13T12:21:13 | 55,353,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from urllib.request import urlopen
file = urlopen('http://www.korea.kr')
htmlcontents = file.read()
print(htmlcontents)
| [
"gamgoon@gmail.com"
] | gamgoon@gmail.com |
123b0499d9d833e0d1562cee75e5ce421952ad6b | f82929ae1127f641915b70811927280d94531367 | /code_fest.py | 533cf11cda3ebe358ce0b44138ce721f3e7f8689 | [] | no_license | CodeDragoon/SpreadHope | 408f7bd31d99e2350139bdfe54d8540332997707 | 0aa8dde3bfc395086bea76d2f8ce987b68d397d2 | refs/heads/master | 2021-04-15T13:04:48.773951 | 2018-03-24T23:00:47 | 2018-03-24T23:00:47 | 126,646,996 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,866 | py |
# coding: utf-8
# In[6]:
import sys
import itertools
import re
import tweepy
from tweepy import OAuthHandler
from textblob import TextBlob
import matplotlib.pyplot as plt
import numpy as np
# get_ipython().magic('matplotlib inline')
class TwitterClient(object):
'''
Generic Twitter Class for sentiment analy... | [
"rishabhnigam1@gmail.com"
] | rishabhnigam1@gmail.com |
65a1bc12d39fbe707d976c84edaebc72d5d8a80b | 240f9eafd114f6c76dcbaa1f149c2960b6e2279e | /48.py | c367b605b3511e5180c3a5d1e54c1e0738a94ccf | [] | no_license | Teajtet/Project-Euler | 01282ee229167809a5c03b5ab8f113532b2c6bee | b742a97c0220006d7ddd8cac7b8cd7fe749d518b | refs/heads/master | 2021-09-06T02:53:55.801496 | 2018-02-01T20:30:29 | 2018-02-01T20:30:29 | 119,885,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | '''The series, 1^(1) + 2^(2) + 3^(3) + ... + 10^(10) = 10405071317.
Find the last ten digits of the series, 1^(1) + 2^(2) + 3^(3) + ... + 1000^(1000).
'''
print sum(map(lambda x: x**x, range(1,1001)))
| [
"noreply@github.com"
] | Teajtet.noreply@github.com |
c8448b80686c47ce5f7c0b97003a13128fdedbb1 | 8d2dc937fa17d9200f0f04687c4b6f88f0ea6f11 | /libs/utils/my_math.py | d4bcf6c298c61b5aba459d276bd5e1e7bd7caf95 | [
"MIT"
] | permissive | fyabc/NMT | 550590407e8c2a5ad2fcddb715bd6f4fadfdfcd0 | 7fa10737967424d80c3c23d597a0648df1ed4015 | refs/heads/master | 2021-01-19T04:05:26.116052 | 2017-04-10T14:04:23 | 2017-04-10T14:04:23 | 84,425,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | #! /usr/bin/python
# -*- encoding: utf-8 -*-
########
# Math #
########
from __future__ import print_function
import numpy as np
import theano.tensor as T
from ..utils.basic import fX
__author__ = 'fyabc'
def average(sequence):
if sequence is None:
return 0.0
if len(sequence) == 0:
return... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
ec21fc56278fd83a73cc0815a93a2bd88c81b98f | 33ebb65e94cccf81df4d96d9321d45a2e1dffaa0 | /packages/extra/iota.py | 83b79c7c0ea05375262bd25f9d74d25f99bbf69b | [] | no_license | stephenmcnicholas/PythonExamples | 6f8130c974a8460df4201d37fc0d06dcec06180c | 3592534392f6078aeade636c09b886621ca5aaf5 | refs/heads/main | 2023-08-25T00:20:04.723155 | 2021-10-06T16:55:25 | 2021-10-06T16:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #! /usr/bin/env python3
""" example module: extra.iota """
def funI():
return "Iota"
if __name__ == "__main__":
print("I prefer to be a module") | [
"stephenmcnicholas@hotmail.com"
] | stephenmcnicholas@hotmail.com |
fa74ef84b822c411b9e0d1584cb7e6c721ceb128 | 8ccdbf554e63b194de9ed19765ba72a8a65f004f | /app/apps/blog/test_views.py | 2a6eaa51bfb5839fc448de6139c30a5b6ca32e9e | [] | no_license | JTarball/codewheel-backend | cda0cee25da347a29d1ad5eb189269071d335bf7 | 3815056ce1210e5c44823ec22beefc40a8137a14 | refs/heads/master | 2020-04-18T11:11:10.599798 | 2016-09-09T21:20:49 | 2016-09-09T21:20:49 | 65,942,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,397 | py | """
blog.test_views.py
==================
Test Views for Blog App
"""
import logging
import datetime
from django.core.urlresolvers import reverse
from django_dynamic_fixture import G
from rest_framework import status
from rest_framework.test import APIClient, APITestCase
from accounts.models import Acc... | [
"james.tarball@gmail.com"
] | james.tarball@gmail.com |
7f40064fcf354778acb6ef64a0415bdb13c70b60 | b11dfe48751754857c07b7b9d6c5583ad0b55091 | /project_3/Linked_List.py | 79dfbca5c5dd4e88819005bd829527076b57942b | [] | no_license | ignatius525/datastructures | bf9d2e32f0faf7359cc5e9bab38451da5a1c3cbc | ad1dab1f27adfdfa78209026cd3df17398eeac79 | refs/heads/master | 2020-12-23T08:07:41.445343 | 2020-03-29T21:48:59 | 2020-03-29T21:48:59 | 237,093,151 | 0 | 1 | null | 2020-10-09T17:05:16 | 2020-01-29T22:15:11 | Python | UTF-8 | Python | false | false | 6,685 | py | class Linked_List:
class __Node:
def __init__(self, val):
self.val = val
self.next = None
self.prev = None
def __init__(self):
self.__header = self.__Node(None)
self.__trailer = self.__Node(None)
self.__header.next = self.__trailer
self.__trailer.prev = self.__header... | [
"iamiagkov@email.wm.edu"
] | iamiagkov@email.wm.edu |
2a1031a83f820cd38e52ee39ce1c89288fd92826 | eee232b13da70df371b313c5cd05c296865f4b5a | /BloodBank/migrations/0010_auto_20180926_0929.py | f0f010f8b36efb0b6960a85c5cbb005480849fbb | [] | no_license | skpatil99/BloodBank | b08916e4eb14d5a59e854163df8ebe6602e4525e | cb28bef5aab117e17133701b550d251fc5d731d3 | refs/heads/master | 2020-08-27T08:13:11.541663 | 2019-10-24T12:09:01 | 2019-10-24T12:09:01 | 217,296,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BloodBank', '0009_auto_20180926_0856'),
]
operations = [
migrations.AddField(
model_name='hospital',
... | [
"skpatil705@gmail.com"
] | skpatil705@gmail.com |
e1944b56e5d696165ca83a72b2378fd5e4e60c21 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02960/s447701610.py | 97f90df1566f9bd8c2610aadad855e5e44bb4218 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | MOD=10**9+7
S=input()
dp=[]
for i in range(len(S)+1):
dp.append([0]*13)
dp[0][0]=1
#print(dp)
for i in range(1,len(S)+1):
if S[i-1]=="?":
for k in range(13):
for j in range(10):
dp[i][(10*k+j)%13]+=dp[i-1][k]
dp[i][(10*k+j)%13]%=MOD
else:
si=int(S[i-1])
for k in range(13):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b5000bb331d1d4ffab68056f8972762375e1977e | a9280f11ef5ee9b9aad63b723d8c3c8af1113526 | /worms/tests/test_search.py | 84fd44071e61d0b4c0b7f3577951ce8c4eb13958 | [
"Apache-2.0"
] | permissive | clrichar/worms | 98680ede92d8571ae2158119723cd554a326376a | 0a92cd64a97be162ace3cfb6c02a5ffff152c7e6 | refs/heads/master | 2020-05-26T15:48:46.447684 | 2018-11-05T23:24:44 | 2018-11-05T23:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,439 | py | import pytest
import _pickle as pickle
import numpy as np
from homog import hrot, htrans, axis_angle_of, axis_ang_cen_of
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor
from worms import *
import time
from worms.tests import only_if_pyrosetta, only_if_pyrosetta_distributed
from worms.util import ... | [
"willsheffler@gmail.com"
] | willsheffler@gmail.com |
dcdd1a039d1cc9aac27c51e8620db92b5d4541b9 | af63f2da6b3b080d81eff6e50343122c2c68b72a | /dbscan/tests/test_dbscan.py | c1bac7c15ad03dd39d99bf700a32f976450e4bdd | [] | no_license | Prev/ITE4005 | 9dcf06ff05c398e7c6f8ee6fde5158dd53ef3441 | ffff7b6ac9958aa7fe6075b532461348251d9e4e | refs/heads/master | 2021-04-12T03:59:10.356278 | 2018-06-10T06:23:52 | 2018-06-10T06:23:52 | 125,726,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | from clustering import Cluster, Point
def test_point_dist():
""" Unit Test of Point.dist()
"""
p1 = Point(1, 3.0, 4.0)
p2 = Point(2, 0.0, 0.0)
assert p1.dist(p2) == 5
assert p2.dist(p1) == 5
sample_points = [
Point(0, 0, 0), Point(1, 0, 1), Point(2, 0, 5),
Point(3, 1, 0), Point(4, 1, 1), Point(5, 1, 5),
P... | [
"prevdev@gmail.com"
] | prevdev@gmail.com |
27cf96bf94386b76476d9de0f92daa86bb2dfbe1 | e4e89b6a4ff43dd8803772e92ed93ad44b01912f | /manage.py | 61deea776c819d49651a17a91463290074bd7eb4 | [] | no_license | DiegoDigo/EstouAqui | 1d4cd5a5bcbd44de194c7b27697248ef0d3d8650 | ae358ff6456638a59fe953fbc9063a46ae794037 | refs/heads/master | 2021-01-11T14:49:19.539685 | 2017-03-13T15:15:28 | 2017-03-13T15:15:28 | 80,224,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "EstouAqui.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"di3g0d0ming05@gmail.com"
] | di3g0d0ming05@gmail.com |
1d3a4206b0e289f15bf431e2cc38cc2da76a091c | 3061e54c8b5f3fb8d9cfd4f8d584913190cb82b7 | /IC_Problems/91_level_order_graph.py | ea83eb855faf5e1e41c9c2d6f345f1feb0e99b95 | [] | no_license | litakgit/DSAlgo | e362068ce456d4c8fe1a8c47aa9ae3d679c2f876 | c9cb47571e85a992891abc7dd249747270b6d985 | refs/heads/master | 2023-01-04T11:49:26.470861 | 2020-11-04T16:17:02 | 2020-11-04T16:17:02 | 295,679,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py |
import collections
def get_level_order_nodes(g, start):
"""
Lessons:
- Missed the param in defaultdict.
- visited.append was missing.
"""
visited = []
Q = collections.deque()
Q.append(start)
visited.append(start)
res = []
while Q:
item = Q.popleft()
... | [
"tilakadhya@gmail.com"
] | tilakadhya@gmail.com |
a7c957893a041107c26db7072406f1e9400ea32e | 0cf8e8f663ae910e6be374810e5f3de18cf00c12 | /su3/lib/fitting.py | 39949c277944c187cd412ab47e56048226baae91 | [] | no_license | ShaneDrury/pyon-qed | 126c3e76b9fb9ef4c9ebb63bd3b39b12b4edc0d5 | 5182f024007c8485916affa32a24360f5343547e | refs/heads/master | 2020-05-20T22:24:32.501321 | 2014-09-05T14:23:07 | 2014-09-05T14:23:07 | 19,281,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,899 | py | from functools import partial
from pyon.lib.fitting.common import Fitter, ErrorGenerator, \
ChiSqFitObjectGenerator
from pyon.lib.resampling import Jackknife
from pyon.lib.structs.errors import OneErrorGeneratorBase
from delmsq.lib.fitting.minuit import MinuitFitMethod
def fit_chi2_minuit_delmsq(jackknife_data,... | [
"shane.r.drury@gmail.com"
] | shane.r.drury@gmail.com |
75f9c1d0f476271eeed6afa3983f8849c627964e | ccfad4f25e6e624fa8715f5a0793377bf4642167 | /python/fizzBuzz.py | b7e121b13fa2fb4ffc4b3849d246d62766bb98b0 | [] | no_license | ashenoy95/leetcode | 92721569b5adb7e06eba429a649286736d6fd692 | 385b41ce2f3ad48d361eafd93d7a900577047032 | refs/heads/master | 2021-06-14T10:51:06.299083 | 2021-03-22T21:12:02 | 2021-03-22T21:12:02 | 94,832,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | class Solution(object):
def fizzBuzz(self, n):
"""
:type n: int
:rtype: List[str]
"""
fizzbuzz = []
for i in range(1, n+1):
if i%3==0 and i%5==0:
fizzbuzz.append('FizzBuzz')
elif i%3==0 and i%5!=0:
fizzbuzz.appen... | [
"noreply@github.com"
] | ashenoy95.noreply@github.com |
dd502191be9ebece86e545397882664929e30344 | 3a686fc3df3fd45918734a03a3d78ac1b2f70fc5 | /one8.py | 28f6585e5b92d0608954b0ac79c5d0d145d31219 | [] | no_license | MAYANK095/Artificial-Intelligence | ff58b76bfca8706da7c546ec62defbd504c5579b | 908870cc62da9f9c3a6e4f8287a28a0ba1531895 | refs/heads/master | 2020-03-29T23:33:16.391130 | 2018-10-04T16:01:35 | 2018-10-04T16:01:35 | 150,478,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import matplotlib.pyplot as plt
activities=['eat','sleep','rave','repeat']
slices=[5,6,7,8]
colors=['r','g','b','y']
plt.xlabel("X axis")
plt.ylabel("Y axis")
plt.legend()
plt.pie(slices,labels=activities,colors=colors,startangle=90,shadow= False,
explode=(1,1,1,1),autopct='%1.1f%%')
plt.show() | [
"mittalmayank095@gmail.com"
] | mittalmayank095@gmail.com |
a7840b8bba658b4a16ba1645c9b158442e77a010 | e03e59d67c96c1afa0a1c76e62235a3e3f639976 | /django_test3_session/manage.py | 8406ae7d3c317b1b2fb7cdc48035d4c9b4206720 | [] | no_license | kangmihee/EX_python | 10a63484802e6ff5454f12f7ade7e277dbf3df97 | 0a8dafe667f188cd89ef7f021823f6b4a9033dc0 | refs/heads/master | 2020-07-02T00:23:05.465127 | 2019-09-03T07:49:46 | 2019-09-03T07:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_test3_session.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as ex... | [
"acorn@acorn-PC"
] | acorn@acorn-PC |
4ac53e1bbd8fa6738ef3017466446ced5b4b64c7 | 4488e3c26de4291da447d8251c491b43cb810f7c | /smart_portal_project_issue/models.py | 4c2a687a1fbaee977492c0e890e8b290a238ea0f | [] | no_license | smart-solution/odoo-crm-80 | b19592ce6e374c9c7b0a3198498930ffb1283018 | 85dfd0cc37f81bcba24d2a0091094708a262fe2c | refs/heads/master | 2016-09-06T06:04:35.191924 | 2015-07-14T12:48:28 | 2015-07-14T12:48:28 | 33,174,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from mock import self
class res_users(models.Model):
_inherit = 'res.users'
portal_project_id = fields.Many2one('project.project','Default Project for Portal Issues')
portal_customer_id = fields.Many2one('res.partner','Customer for Portal... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
c1b0e2b0873eb797c6642ac67c053c2f680e80fa | 3630ffad1ac3497e71c2a53f0c34ee2cd76f3fec | /lock_manager.py | e775a9ab006aef99713af3119cefc010b80ac73d | [] | no_license | AlexShein/just_code | 35568c93c6354cb175ec7a182ad90ba0f17e2728 | 16eec2eefabeb3ea72d5344db18f7cd25be7ffec | refs/heads/master | 2022-05-26T20:51:15.875256 | 2022-05-25T07:50:42 | 2022-05-25T07:50:42 | 135,574,252 | 0 | 0 | null | 2018-07-24T11:35:07 | 2018-05-31T11:23:51 | Jupyter Notebook | UTF-8 | Python | false | false | 1,180 | py | import logging
from redis.exceptions import LockError
from redis.lock import Lock
from app.client.redis import redis_client
log = logging.getLogger(__name__)
class LockManager():
def __init__(self, lock_name, lock_timeout=10):
self.lock_name = lock_name
self.lock_timeout = lock_timeout
... | [
"alexandr.shein@ostrovok.ru"
] | alexandr.shein@ostrovok.ru |
047541157c2cef47af33bedc6b8856366ac9037d | eac9f1e10d689de4a4bb1475f61b76ea622a7036 | /prepro/OPPOA59PreProcess.py | c8b924f8a446c1abb56c71121ddc84228591a033 | [] | no_license | panational/apptest | f2a17163c17f318f46860b03d984caf86e76f6aa | 1d96bd0fce34e1d333c29648d1564c542f8b1d43 | refs/heads/master | 2020-03-08T08:44:11.453799 | 2018-04-25T02:50:39 | 2018-04-25T02:50:39 | 128,029,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | #!usr/bin/python
# -*- coding:utf-8 -*-
from BaseDevicePreProcess import *
class OPPOA59PreProcess (BaseDevicePreProcess):
def __init__(self,tester):
super(OPPOA59PreProcess, self).__init__(tester)
def install_app(self):
cmd = "adb -s %s install -r %s" % (self.tester.device.deviceid,DataProv... | [
"panguoqing@gaosiedu.com"
] | panguoqing@gaosiedu.com |
d5264b046b476f73c2aaa45f7e453e8870be24c7 | a2b3bad36d6060bec5a7bed9e95b54891965b513 | /ebidding/wsgi.py | 1b9f52f20f6d69fc2b76e4049f13ba6b220122cb | [] | no_license | keshav4118/eBidding | 639ef40fa529853965125d6ef833142407a9e731 | 4fa15389a71c25a007991e60ba42d07a5a261daa | refs/heads/main | 2023-04-11T13:36:22.477861 | 2021-04-14T13:46:28 | 2021-04-14T13:46:28 | 352,671,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for ebidding 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"keshav4118@gmail.com"
] | keshav4118@gmail.com |
c8860d7e661c66d397e01606f87ec5ef47806624 | 0e6b756e9878b4d743d3c1c86f10717fdd2bb860 | /dHydra/core/Worker.py | f4c46ba5ceab0a0870cc3e6500dbcb5025dc5b43 | [] | no_license | yanjlee/dHydra | e027080210899ffa7f140a73462f6f4df075cf4a | b22878bd191040eccff3d51cbd683f53a0f5b4fd | refs/heads/master | 2021-01-12T21:37:31.392618 | 2016-08-31T12:00:18 | 2016-08-31T12:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,892 | py | # -*- coding: utf-8 -*-
"""
Worker抽象类
@author: Wen Gu
@contact: emptyset110@gmail.com
"""
import multiprocessing
import threading
import time
import logging
import redis
import pymongo
import json
import copy
import dHydra.core.util as util
from dHydra.console import *
from datetime import datetime
from datetime import... | [
"21324784@qq.com"
] | 21324784@qq.com |
bcc798c2091bc11c084fec7ee129eacf1fca76f7 | 43613720a21df07f0ab4c04053dbdd8b380dccb7 | /resources/subviews/search.py | b75f5fb24474bbe980a35bd4d13e809441844c8c | [] | no_license | m-shihata/netflix | 02d364fd5b6f01463b3c89d705199754fdc9461c | 87fd82d8cf0ffd05a4a6f116a8e1e32d701d0598 | refs/heads/master | 2023-04-19T05:03:59.917293 | 2021-04-27T02:11:45 | 2021-04-27T02:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import random
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from resources.models import Tvshows, Movies
from django.db.models import Q
from itertools import chain
from resources.serializer... | [
"53663886+yomnaosamaAlsharqawy@users.noreply.github.com"
] | 53663886+yomnaosamaAlsharqawy@users.noreply.github.com |
e48564eed20ae6a6fd6774c90b624416cca50aff | 216da2a4daff108e08ccf76742fd13e16b8dc36b | /Latest Draft - Flask/scrape_SONGS_to_MONGO.py | 56c345f0b2c32d432ef829eea6840d5df0082492 | [] | no_license | powest3/Music-through-the-Years | 81686302993a1c1f2c2aea3cdf988de625edc7ed | c1d9a71ace1aa0ed5dd1231c4980faf5044caa1a | refs/heads/master | 2020-12-22T17:49:39.708201 | 2020-02-06T22:35:18 | 2020-02-06T22:35:18 | 236,879,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | from splinter import Browser
from bs4 import BeautifulSoup
import pandas as pd
from pprint import pprint
#----------------------------------------------------------------------
import pymongo
#----------------------------------------------------------------------
# def scrape():
# for Windows:
executable_pat... | [
"noreply@github.com"
] | powest3.noreply@github.com |
9e5d495620303d919cdf634b801667ae516a9527 | 75a2c50c813eeb4099da45eef6159780f036cf1d | /app/run.py | 58eace4273d267ca1870e8da54dabd8f2f8a444f | [] | no_license | jpthewes/DSND_Disaster_Response_Pipeline | f1ba742caabf013be59f804042ca2711c1938033 | d8c3a1203b390c42863277d421a0b74cb11f6e37 | refs/heads/master | 2023-01-07T20:06:55.047640 | 2020-11-05T08:12:51 | 2020-11-05T08:12:51 | 308,960,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | import json
import plotly
import pandas as pd
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
from flask import Flask
from flask import render_template, request, jsonify
from plotly.graph_objs import Bar
from sklearn.externals import joblib
from sqlalchemy import create_engine
app = ... | [
"jpthewes@gmail.com"
] | jpthewes@gmail.com |
fcfbe8b352f3c2c44feb97ded66d062cbedbd910 | eb71f02be8fdb55455a455d4c273ebaa07553746 | /PoseData.py | 70c653dd1dc70a686631e4591a2a65c74f25c5f6 | [] | no_license | Bryan-bai/PoseNet | 509148431ccfb2b7f451f86f5cfe72911f86a89a | 457ec72df4098c37ab90a882129e0773abbabc7c | refs/heads/master | 2020-04-02T13:28:39.646308 | 2017-08-22T01:04:57 | 2017-08-22T01:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | import torch.utils.data as data
from PIL import Image
import os
import os.path
import numpy as np
import torch
# Get image path and pose from dataset_train.txt.
# There is an invalid value in dataset_train.txt,
# so you have to delete it manually.
def make_dataset(dir, train=True):
# It needs to be optimized mo... | [
"bellatoris@snu.ac.kr"
] | bellatoris@snu.ac.kr |
f6065438421f77d504aa8b1cc4a9e9942525a7ff | c82b85a57ebb6f019c060fe015d21f8ab5a155d3 | /data_processing_resize_cyr.py | ce7104e30e538462f017458b5d86fce09edfd60e | [] | no_license | buckeye76guy/ECE_FINAL | 9bc11c59c86d4132c8ffd9e5b3eea6a4f5817e2c | c316b35a83d34445d7105313958264acfede418e | refs/heads/master | 2021-01-20T09:51:41.534621 | 2017-05-04T21:25:20 | 2017-05-04T21:25:20 | 90,293,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 28 17:05:44 2017
@author: Josiah Hounyo
This script will create the training and testing sets.
I wish to use 75% of the number of pictures in each folder
for training and 25% for testing
"""
from scipy.misc import imresize
import scipy.ndimage as nd
import numpy as np
i... | [
"hounyo.1@osu.edu"
] | hounyo.1@osu.edu |
0743a1ec37db60e406db3a45d7a67ddd7d484795 | 9fd628cfc4427e438c8ae312deea2c893c9a78d0 | /TP3/TSP_aprox/euler.py | 6bc3e2ad121fbe02a3f3e2b5cdcbe4420397cfa9 | [
"Apache-2.0"
] | permissive | GFibrizo/TPS_7529 | c1ba3f99f433b024dd3985fe9740df816e1e3094 | 47daadf38002ea5c41c13584af37a24757b9c9fe | refs/heads/master | 2021-01-14T12:40:41.373105 | 2016-12-05T03:05:11 | 2016-12-05T03:05:11 | 68,769,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | def sub(visited, _cur, graph):
if not graph:
return visited + [_cur]
for i, edge in enumerate(graph):
cur, nex, weight = edge
if _cur not in edge:
continue
_graph = graph[:]
del _graph[i]
if _cur == cur:
res = sub(visited + [cur], nex, _gra... | [
"ereyes@summasolutions.net"
] | ereyes@summasolutions.net |
1cd3cdd1325d86f6c7b9cccec91002b3e8240015 | ddf4c15d6553a2c4d1941478ee2b28f50072c8ba | /zad2.py | 40a3b8fffd6bce686536c13e7998f943825376fa | [] | no_license | dyju1992/zpiotdd | cc9972a6ac84fab39c8659045542da981bae0a66 | 84fd3d399902453b607b44cca65f04c502ad89cf | refs/heads/master | 2021-01-10T12:27:22.319743 | 2015-06-05T11:52:09 | 2015-06-05T11:52:09 | 36,930,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | __author__ = 'dyju'
Wynik=[1,1]
suma=0
for i in range (2,40):
Wynik.append(Wynik[i-1]+Wynik[i-2])
if Wynik[i]<4000000:
print (i, ". ", Wynik[i])
for Wyraz in Wynik:
if Wyraz<4000000:
if Wyraz%2==0:
suma+=Wyraz
print("suma: ",suma) | [
"dyju1992@gmail.com"
] | dyju1992@gmail.com |
3c337d3af4af5b0f08e6591629f083887ff89ed3 | 2c8d92f484836f9c810aa96033c85cd2fd570c6b | /project/프로그래머스/파이썬을 파이썬 답게/문자열 정렬하기.py | 07f2745416b1588e4922f89ed4a0cb816a1a6fb4 | [] | no_license | Donghyun-34/KUCIS | 92814e188d51fd2bed9060a884b4be48a7694d74 | 33bd389d885d5167b3b6f1fd4d2adb816d4f068a | refs/heads/master | 2022-12-22T14:46:33.668159 | 2020-09-16T07:25:37 | 2020-09-16T07:25:37 | 284,490,018 | 1 | 0 | null | 2020-09-16T07:25:38 | 2020-08-02T15:36:04 | Jupyter Notebook | UTF-8 | Python | false | false | 207 | py | """
문자열 출력 형식 정의 : ljust, center, rjust
"""
str = " sdfasdf adf "
print(str.ljust(30)) # 좌측 정렬
print(str.center(30)) # 가운데 정렬
print(str.rjust(30)) # 우측 정렬 | [
"noreply@github.com"
] | Donghyun-34.noreply@github.com |
1e9037f5197cc1f70db138d0bff33cfe5bf9c30a | 127c63dfc7da3799d075f1dcb046e0210c7711ac | /Class_problems/Problem_14new_FullTwoPhaseComplex/IMPES.py | 1bb24c83a396fae1ab233dccfe433964d26df785 | [] | no_license | mashadab/Reservoir-Simulator | db994da3c274e666b141f3ff46de645fc4c18977 | 2be0b8bc994096699133a315f79b63bb67a3bb2b | refs/heads/master | 2023-04-16T20:54:08.674622 | 2022-05-25T17:13:48 | 2022-05-25T17:13:48 | 312,726,032 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,379 | py | """
reservoir simulation assignment 10
1D reservoir simulation Q10: Main file (Implicit pressure explicit saturation)
Author: Mohammad Afzal Shadab
Email: mashadab@utexas.edu
Date modified: 12/4/2020
"""
#import inbuilt libraries
import numpy as np
from scipy.sparse import lil_matrix, csr_matrix, identity
from scipy.s... | [
"mashadab@mit.edu"
] | mashadab@mit.edu |
36bf0dad8f9fa3750a9ba89a0d3034ff7da0ef39 | faca1cdb2aa759bde965203d023e8a38cbfcb68f | /edibot/urls.py | c4d7304c7b091b9b19f9d2f374d8eb2f288253f1 | [] | no_license | ejesse/edibot | c446649abb8f3fed06a6bd1bfda9c28bdd360270 | 1dd7596e3b8fcb5d67661fd02cdb358c22a356ff | refs/heads/master | 2021-01-09T21:46:09.732090 | 2016-04-06T16:52:49 | 2016-04-06T16:52:49 | 55,466,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | """edibot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"jesse@jesseemery.com"
] | jesse@jesseemery.com |
1de0228910154b836dfe841a7bb5ac8a6618d63c | 9010bd6f1e4d0725c34886123aca16e49ec666ff | /backend/NGSI_Interpreter/Tests_Getting_and_Saving_Entities.py | ef7f17c6dde5f50d8448479a4cf6e958b6bcedd1 | [] | no_license | salahallali/ngsildCollectorDBApplication-1-ab261dc66f757ccd2656d35c9952b3e9edd8eb93 | bdbc562c5f4fb3dc71699a425853d3363c4782fe | 5c7c19d7e552acb4cd14b9502e0acbfb9e9a0c24 | refs/heads/master | 2023-06-11T16:07:27.982892 | 2021-07-05T12:20:17 | 2021-07-05T12:20:17 | 383,131,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | import sys
from backend.NGSI_Interpreter.Get_Entities import Get_entity_By_ID
from backend.NGSI_Interpreter.Parse_NGSILD_Response import Parse_NGSILD_to_JSON
from backend.NGSI_Interpreter.Save_Entity_To_DB import Save_Entity_To_Db
try:
########### tests ##########################
id ='urn:ngsi-ld:WaterQualit... | [
"salahallali12.as@gmail.com"
] | salahallali12.as@gmail.com |
1b5eb86e468c6370750cbef2d8b60a6198216f70 | 41e237ae3dc7001b5132eee47fd9a5996cb56839 | /python_socket_server/server.py | 2c7b23966e30f4127e7c09280acf7950c79f95c7 | [] | no_license | EndruK/scribbles | 9086fccffc8877112f036e71c29be8d1baef6e47 | 3e424888e777270d4e51f62cbfe060b975db7404 | refs/heads/master | 2020-08-15T06:33:54.204041 | 2020-02-19T12:06:06 | 2020-02-19T12:06:06 | 215,293,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,950 | py | #!/usr/bin/python3
import socket
HOST = '127.0.0.1'
PORT = 8101
class Server:
s: socket.socket
def __init__(self, host, port) -> None:
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.bind((host, port))
def start_server(self) -> None:
self.s.listen()
pri... | [
"andre.karge@uni-weimar.de"
] | andre.karge@uni-weimar.de |
d138477107990d05465e949d4b0d8539eba30e6b | 26df5f85b549a5a14369e59188943e6c849de49e | /5_order_frequency/order_frequency.py | 543a4de1a941151c895a558b5ddec29004998dee | [] | no_license | abakir/NGS-2.0 | 3aefbcbe6cbb7dbb7563c17077653c83e9ba1592 | 49071c1423b23bbd6c767cb0aa85c9e948b46abe | refs/heads/master | 2023-06-21T20:10:42.938128 | 2016-01-13T23:23:13 | 2016-01-13T23:23:13 | 48,489,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | #!/home/cloudera/local/lib/python2.6/site-packages/bin/python
# Author : Sai Sree Kamineni
# Date created : Jan 10, 2016
# Execution frequency : Weekly
# Inputs refresh frequency : Weekly
# Input : data_input/shopify/export_orders.csv
# Output : data_output/order_frequency.csv
# Purpose : Gives the count of customers... | [
"ksaisree849@gmail.com"
] | ksaisree849@gmail.com |
6e17eeda6e12e4dafa17ee97a4013966065550aa | 69ee2329d61509dd31620b7447c923e0a1301a00 | /monop/asgi.py | 76a57b883ac156b0f78e9dc7adc7a735fb7548c5 | [] | no_license | uglycitrus/monop | 225980d4b925bdfe8d2279ceb2a097a63aa24c09 | ca0109a4e84a3a4b0f746534af45b020c4d59369 | refs/heads/master | 2023-01-02T16:27:49.410893 | 2020-09-28T13:41:38 | 2020-09-28T13:41:38 | 259,382,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for monop project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"womeara@capsulerx.com"
] | womeara@capsulerx.com |
48950a1fbb45120f7db66684448037b3ec034878 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7010.py | 4241a7b8992e2ec8e59cd03759bbc0c0eb761042 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,744 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
27e9e221b3544c5710fd52ced93157ca85f70088 | f17410fd0d23142a40fee177247a4e5ed7379e2e | /lists/views.py | b7da508593c66bb40a324a5b0af3fa06463f62f2 | [] | no_license | nmaiese/TDDwithPython | fcfffee2dd8dd34632d43e75fff828f600304170 | 42e3f547e234c1a58206765b79636921140c0d0c | refs/heads/master | 2021-01-25T11:39:32.811582 | 2017-06-11T09:14:48 | 2017-06-11T09:14:48 | 93,937,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.core.exceptions import ValidationError
from lists.models import Item, List
def home_page(request):
return render(request, 'home.html')
def view_list(request, list_id):
list_ = List.objects.get(id=list_id)
error = N... | [
"aniello.maiese@mecglobal.com"
] | aniello.maiese@mecglobal.com |
0208003b54ef571bc02f0182ccee88ef56f31c0e | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/geometry_restraints/standard_cif_links.py | 54974b9f43166f409f00a3224dfd0b97adfe5340 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 4,096 | py | from __future__ import absolute_import, division, print_function
standard_cif_links = [
['link_ACE_C-N', 'Taken from Monomer Library or GeoStd'],
['link_AHT-ALA', 'Taken from Monomer Library or GeoStd'],
['link_ALPHA1-2', 'Taken from Monomer Library or GeoStd'],
['link_ALPHA1-3', 'Taken from Monomer Library or ... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
e57f9089ea211b93963ff796954afc25fc5f9716 | a9d8f739c58b879ccc16faaecb09ea703561e805 | /quiz_list/urls.py | 438d09f73ab0d7dbda85e614511707c71ecdf3e9 | [] | no_license | quanpham0805/QuizMaker | 875226682381b513154d56a47f7a1d68972b8005 | 9c9733c706625b3e8231ee74db0261477fc2d210 | refs/heads/main | 2023-03-03T16:21:16.493302 | 2021-02-18T21:24:08 | 2021-02-18T21:24:08 | 338,889,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # pages/urls.py
from django.urls import path
from .views import QuizListView, AddQuizView, CustomizeWordView, deleteWord, doQuiz, finishQuiz
urlpatterns = [
path('quizlist/', QuizListView.as_view(), name='quizlist'),
path('addquiz/', AddQuizView.as_view(), name='addquiz'),
path('customizeword/', CustomizeWordView.a... | [
"shiroemon95@gmail.com"
] | shiroemon95@gmail.com |
bd25afb2da442f243f43333f07eb75d7b9defe1a | 21d0c531e058ba53734b06b197bf1a5d95bc067a | /src/MySite/urls.py | 8c95c9cf0ea0f2bb71986a338b3ac3563a952a78 | [] | no_license | wesamalnobani/Poll-Application---WebSite | 6d402762d996a63719d5f9fa74eeeb6f85fa159f | 88c1730d7f48404e1fb533518df2b11595cb9e9d | refs/heads/master | 2020-04-22T06:24:32.480962 | 2019-02-11T19:40:50 | 2019-02-11T19:40:50 | 170,116,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """MySite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"wesam.alnobani@gmail.com"
] | wesam.alnobani@gmail.com |
7bad057c961b87f15afad89073740bd16f80514d | 2c51e883f9583e39cbcb214c14306fd8215afe1c | /maple.py | 85714ad514fb15529cab15c260668eb3922be556 | [] | no_license | xcapri/Cmap | 8ff3d1f3e41a747d24ba2b4537e18e0dda90117a | 65ab17158abe667b4ed3ce4060b90ba471ba9d8f | refs/heads/main | 2023-05-28T08:03:27.789996 | 2021-06-14T17:27:39 | 2021-06-14T17:27:39 | 377,009,099 | 1 | 0 | null | 2021-06-15T02:09:45 | 2021-06-15T02:09:44 | null | UTF-8 | Python | false | false | 2,847 | py | from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from barnum import gen_data
from time import sleep
import names
import random
import stri... | [
"noreply@github.com"
] | xcapri.noreply@github.com |
675ba165820731279f29a74d43ec3abcf76a78cb | 5bf0d556772495482f204c8f82510ede4627cb69 | /bbs/wsgi.py | 8a263700beeb25f0512c01e6c90664c3242ea7d4 | [
"Apache-2.0"
] | permissive | pythonzongyi/demo | b59768534c29045b7bb95bc2f2fd8424c3fd0f59 | a331567b4fa556e8e1cb34795bb2d61962af345d | refs/heads/master | 2022-11-26T00:33:48.658980 | 2018-07-27T12:40:03 | 2018-07-27T12:40:03 | 142,539,585 | 2 | 0 | Apache-2.0 | 2022-11-22T01:06:25 | 2018-07-27T06:54:46 | Python | UTF-8 | Python | false | false | 384 | py | """
WSGI config for bbs 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"309471409@qq.com"
] | 309471409@qq.com |
dd9e4b3c565ee6ce2b2e625dcc9320d29ccab90b | 1dbad085e6c7fe6454a2a80f2e3d7cea50aaca3d | /Testing_Your_Code/test_name_function.py | 6fa85b588768e4875094b9a922bdf4d481b560bd | [] | no_license | aliadolfo/Classic-Problems-in-Python | c4265326c79b532148c53282d4121cc58cfac5f9 | 6fc2fb7dc03751db580dd969bb33e936547b64e1 | refs/heads/master | 2022-11-25T21:00:18.620410 | 2020-08-01T02:54:21 | 2020-08-01T02:54:21 | 273,827,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import unittest
from name_function import get_formatted_name
class NamesTestCase(unittest.TestCase):
# Test for name_function.py
def test_first_last_name(self):
"""Do names like 'Janis Joplin' work?"""
formatted_name = get_formatted_name('janis', 'joplin')
self.assertEqual(formatted_na... | [
"aliadolfo@aliadolfo.com"
] | aliadolfo@aliadolfo.com |
a61004120a3076ad49ed178bd5d07d0e28954429 | e0a27d8431c30bf16ad86d2145a07a58ff0814f7 | /session_2/extra/.bitfana/lib/python2.7/site-packages/exchanges/okcoin.py | 653d85534a7d9284c2eb17b1363abe9ea09d3012 | [] | no_license | rvegas/master-class-docker | 8e1c623e2f2df8ff18a69c68f14039f1f54abcbe | 94510ec2a465eac12782a1d41df26e2d660486c4 | refs/heads/master | 2021-05-06T18:11:10.760733 | 2018-01-30T23:07:20 | 2018-01-30T23:07:20 | 111,947,200 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | import datetime
from decimal import Decimal
import dateutil.parser
import requests
from exchanges.base import Exchange, FuturesExchange, date_stamp, time_stamp
from exchanges.helpers import get_response, get_datetime
class OKCoin(Exchange):
TICKER_URL = 'https://www.okcoin.com/api/ticker.do?ok=1'
@classme... | [
"ricardovegas@gmail.com"
] | ricardovegas@gmail.com |
590367367923c4ad35e9778a3db3edbf6573568f | 20f08b25df4f5d177236e54368ba080e18b1b91f | /sorting.py | 0d662fcb1bdf1d4121481a162b475eda2d2c4324 | [] | no_license | rolph-recto/interview | 0dbf8c9ded831a7312b39c53b4f1b082cf64d171 | dee9e998c25fdc80bb14b16ef5bff97094fe537a | refs/heads/master | 2021-12-11T22:23:29.172899 | 2021-10-31T05:32:05 | 2021-10-31T05:32:05 | 49,737,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,251 | py | #!/usr/bin/env python
# sorting.py
# implementation of various sorting algorithms
import random
import time
# bubblesort
# general idea: swap inversions interatively
# pros: very simple
# cons: O(n^2) worst case and average case runtime
# when to use: never, basically. use insertsort for simple sorts
def bubblesort(v... | [
"rolph.recto@gmail.com"
] | rolph.recto@gmail.com |
ab7427dce3398636e63be469e2b1f952ea720eb2 | 792a4f0f162640d2f383cf9aaae77e1c5d0c0750 | /sprite_base.py | 8989d86af6851471c875c2c72aea9f64c68bb43b | [] | no_license | vigov5/mario_game | 0a8a3006558634959db6210fc7c5052d3f55dca8 | b643558bdaddc03a5041be988c64e3ba117aee8b | refs/heads/develop | 2021-01-19T08:28:47.461645 | 2014-04-02T15:53:20 | 2014-04-02T15:53:20 | 16,535,362 | 8 | 9 | null | 2014-04-02T15:53:20 | 2014-02-05T04:48:32 | Python | UTF-8 | Python | false | false | 5,304 | py | import pygame
import config
SECRET = 1
HIDE = 72
BLANK = 2
class SpriteBase(pygame.sprite.Sprite):
FRAME_WIDTH = 0
FRAME_HEIGHT = 0
PADDING = 1
img_file = ""
opacity = 255
GRAVITY = 0.4
MAX_VX = 3
MAX_VY = 20
vx = 0
vy = 0
# vertical and horizontal state
h_state = "s... | [
"nguyenanhtien2210@gmail.com"
] | nguyenanhtien2210@gmail.com |
47f1f23ff1453064ad01d1d6458dc787214f803d | d04df72019e21ad8904149dd94b6f4e226d85d31 | /I0320045_exercise7.10.py | adc54c858d161ce38c854020e013297824f18640 | [] | no_license | HarryBrahmana/Harry-Brahmana_I0320045_Andhika-Pratama-Putra_Tugas7 | f6f626324685e578f76015737f916fe1e59ba0c6 | f890e9ed999fee65086f3f5fd08fa3b26ab7cc0c | refs/heads/main | 2023-04-06T06:40:27.576993 | 2021-04-16T14:24:04 | 2021-04-16T14:24:04 | 358,573,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | str = 'Harry Brahmana'
print(str.endswith('Brahmana'))
print(str.endswith('Brahma')) | [
"noreply@github.com"
] | HarryBrahmana.noreply@github.com |
a23bd370086a13161b3f892ff3dfdee1049360d2 | de468d3ec6b7b69664678789e5fa71b613b29687 | /scine_heron/tests/depth_view_test.py | 0d90a5f68a180cf2be0271f588b1f9b6f95c78a8 | [
"BSD-3-Clause"
] | permissive | qcscine/heron | dc566bf8bfdd5b5271ed79faed249a6552390d0d | 688d2a510fda9f6bfaf5ef3af91fa3b988703a28 | refs/heads/master | 2023-04-06T23:31:14.931706 | 2022-08-31T05:40:15 | 2022-08-31T05:40:15 | 526,650,129 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__copyright__ = """ This code is licensed under the 3-clause BSD license.
Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
See LICENSE.txt for details.
"""
from typing import Tuple, List
import pytest
from vtk import (
vtkArray,
vtkArrayData,
... | [
"scine@phys.chem.ethz.ch"
] | scine@phys.chem.ethz.ch |
806d57d8d2281630f7174477bb6424649c581cdc | 1c16ea72d1d051ec7e3dca5e23f77aff627e00cd | /backend/quiz/models.py | cd9b8dccb8398baac0bc238bd69ed5843582486c | [
"MIT"
] | permissive | mahmoud-batman/quizz-app | 28fc2bf51c7b8885043a1a051ae5d70f4f59bae0 | bebeff8d055ea769773cd1c749f42408aa83f5b9 | refs/heads/main | 2023-02-16T23:03:21.105541 | 2021-01-21T07:43:03 | 2021-01-21T07:43:03 | 306,298,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,709 | py | from django.db import models
from django.contrib.auth import get_user_model
from django.template.defaultfilters import slugify
from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
from core.utils.unique_slug import unique_slug_generator
import uuid
import os
class Subject(mode... | [
"mahmoud148043@gmail.com"
] | mahmoud148043@gmail.com |
2afaefa85fe1879b328a694d2c618f88e8594d98 | 0756849a70923c752b00df3b75435596e72a0356 | /conftest.py | d1dab9d9bf437588f2278a1d20fb7d3cb8bbdc5b | [] | no_license | qiaoshengyu/ktp_UI_test | 2eeebd0a70d8f55fb668ea1838115546356a7f11 | 0c1c42c603038254efa3a925e20ec904e39965ba | refs/heads/master | 2022-10-03T04:43:07.564027 | 2020-06-02T02:55:23 | 2020-06-02T02:55:23 | 268,543,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | """
====================================
Author:樵夫
Time:2020/5/31 18:51
====================================
"""
import pytest
from common.handle_config import config
from selenium import webdriver
from page.page_login import PageLogin
from page.page_index import PageIndex
from page.page_letter import PageLetter
fro... | [
"qiaoshengyu@tianchuangsec.com"
] | qiaoshengyu@tianchuangsec.com |
18920693a6e576a1daab10c89bfdfd5e651d735c | a00c8a827cac629e2d6319609090ae74663fe701 | /biu/db/rvisUtils.py | 08eef87a62b8a98ed90c131c2e94f1910d5308c2 | [] | no_license | thiesgehrmann/BIU | 78a7278665733eaa5f283296ee8a3cb61c9c7cb6 | c6031b24541ae8b1ee1870c8249f8c4929ff12d1 | refs/heads/master | 2021-10-07T17:11:19.214872 | 2021-09-27T11:44:05 | 2021-09-27T11:44:05 | 145,121,659 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from ..structures import fileManager as fm
from ..structures import resourceManager as rm
from .. import utils
import os
###############################################################################
# https://www.biostars.org/p/71737/
def urlFileIndex():
files = {}
files["original"] = ("http://genic-intolera... | [
"tgehrmann@shark.researchlumc.nl"
] | tgehrmann@shark.researchlumc.nl |
7a0c56fd183c3e76c8d7dddb4b5bf2061163769e | cec46b85b48af9c222b98884c85f498513a28cad | /hazirFonksiyonlar.py | 1f3f09b698d52d2567f2785fe6be3e5c8b5fedeb | [] | no_license | suleymanguven/python_fonksiyonlar | e5a876282b896f1066833974796476efef4186a1 | 15decfe91b00f9109bed3cd7c19ee3f5c0c40b7e | refs/heads/master | 2021-05-22T22:54:07.770755 | 2020-04-05T01:26:02 | 2020-04-05T01:26:02 | 253,132,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | from math import *
from random import *
import datetime
import locale
locale.setlocale(locale.LC_ALL,'italian')
""""
sayi=int(input("sayı giriniz:"))
#karekok=sqrt(sayi)
print(sqrt(sayi))
print(cos(sayi))
print(sin(sayi))
z=pow(4,5)
print(z)
print(random())
print(randint(20,50))
print(randran... | [
"noreply@github.com"
] | suleymanguven.noreply@github.com |
124ac32751df4eea549b989e47705f5681ff4376 | 58d842f60886ec8080e4f25f68bd0cf620dd0e95 | /formacionciudadana/wsgi.py | c65dba33d8dacfaffdbcbb7fc0e8658f8057bd90 | [] | no_license | pedroIgnacioM/formacion-ciudadana-1 | f760a4df6d93458a34970c0880f3e10fd1b136ba | dc38b760fc1145b680196b3919cfe8c173c8b52a | refs/heads/master | 2020-04-05T09:25:32.603380 | 2018-05-18T00:37:22 | 2018-05-18T00:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for formacionciudadana 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("D... | [
"johann.aevt@gmail.com"
] | johann.aevt@gmail.com |
a0aabd5065203de0a376d25f30d93fe9fa20ea61 | b1abf03f1ec189e55b0ccbdc2878ef3c7d361349 | /data/iqfeed/iqfeed_client.py | e84d2093ef3e7c631ae83b47c7d56635762a6d54 | [] | no_license | fagan2888/Python_Trading_Snippets | 086d0db286e4f405984a414788d001c68bbcff57 | 0b0346999f82877d156b908f8ae9290077112c92 | refs/heads/master | 2021-01-07T22:16:43.760389 | 2020-02-02T23:34:40 | 2020-02-02T23:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | 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... | [
"oanufriyev@gmail.com"
] | oanufriyev@gmail.com |
60c18ac15a27a0f4c975d0aa3c2bc2a573e180e0 | 0e4a2ca6f92c60000a916a024d5ea5de5c2ecd53 | /5 while.py | ee1013bb46ecb16d500073935c3a746c1c3cf227 | [] | no_license | Akshay7016/Python-codes | c5cfd9eab6138f8c0a1c991eaf7443b3235cca16 | b67d9d621d7067a0e9abf4ed586add1f7375db77 | refs/heads/main | 2023-06-04T17:27:14.428380 | 2021-06-30T14:32:54 | 2021-06-30T14:32:54 | 381,731,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py |
i=1
while(i<=5):
print("Akshay" ,end=" ")
j=1
while(j<=4):
print("Rocks" ,end=" ")
j=j+1
i=i+1
print()
# PS C:\Users\Akshay\Desktop\Python codes> & C:/Python/Python37-32/python.exe "c:/Users/Akshay/Desktop/Python codes/5 while.py"
# Akshay Rocks Rocks Rocks Ro... | [
"noreply@github.com"
] | Akshay7016.noreply@github.com |
4424ad241465f4c714e3af89886aee118cb9c1c6 | c56ca0e905aff3041e6ebab78dde8f90126f3ee8 | /utils/apply_transformation.py | ad8af1cd3952c762928932ae968c4c6080d3f9b5 | [] | no_license | ohadmen/python_common | 65ea9962ab29b0626a5e640a7bf492f1152953be | a4229ad86d38f8860f75ee3dbbabebccfdbcc4ef | refs/heads/master | 2023-03-16T06:16:08.975430 | 2023-03-05T20:48:16 | 2023-03-05T20:48:16 | 291,151,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import numpy as np
def apply_transformation(t: np.ndarray, pcl: np.ndarray):
"""
:param t: input transformation, should be of sie dim+1
:param pcl: point to tranformed, could be Nxdim or MxNxdim
:return: transformed points, same size as pcl
"""
if t.shape == (4, 4):
dim = 3
elif t... | [
"ohad.men@gmail.com"
] | ohad.men@gmail.com |
eff4c007beec988c88f4e2aac77216b085474a50 | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /Trees_and_Graphs/course-schedule-2.py | b4d5b19b8d116754156fc5f5b1a3d6861544c3f0 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 2,879 | py | #!/usr/bin/python3
# https://leetcode.com/problems/course-schedule-ii/
from typing import List, Tuple
"""
Topological Sort
"""
class Solution:
def __init__(self):
self.adjacencyList: List[List[int]] = list()
def isCyclicGraph(self, courseIdx: int, visited: List[bool], path: List[bool], result: List[i... | [
"tahmid.tanzim@gmail.com"
] | tahmid.tanzim@gmail.com |
fe94b59c0b21a953d48b3a1c881316a5ee3f6119 | df4ce79f977ea1d23660c65049039d917d5a5edc | /clfm_lib/fmincon.py | 52e515fab96ed8b1c7f59b4f03975ffe77f47bdd | [
"MIT"
] | permissive | JayceeLee/LyapunovLearner | 9fe23c8d3310396c4821685a0f03486996dc2d51 | a34155717f22b9715a05c4cc9df4fa6ce6efa018 | refs/heads/master | 2021-05-08T13:56:18.663356 | 2017-10-18T12:05:17 | 2017-10-18T12:05:17 | 120,049,050 | 5 | 2 | null | 2018-02-03T01:27:55 | 2018-02-03T01:27:55 | null | UTF-8 | Python | false | false | 38,770 | py | import sys
import numpy as np
import scipy as sp
import scipy.sparse as spr
from .learn_energy import matlength
# from .classify_bounds_on_vars import classifyBoundsOnVars
# def matlength(x):
# return np.max(x.shape)
def checkbbounds(xin,lbin,ubin,nvars):
#CHECKBOUNDS Verify that the bounds are valid with resp... | [
"patlekano@gmail.com"
] | patlekano@gmail.com |
439c6864f92c55e7c8b75b59ee21c8437bc45269 | 08421afc1413bc8e6c0f9c8496b66e32efb75a00 | /4-balance_and_prepeare.py | 4cac2680b386ba4fef07f538e2c7a477410edeea | [] | no_license | tpeet/siuts-thesis | 90ecb839b65be753d743e899302bad422617ba44 | 21e8f546ec73d6dbbecfe0a15ee0405d10a66cc9 | refs/heads/master | 2021-01-12T02:49:05.367280 | 2017-01-12T17:35:54 | 2017-01-12T17:35:54 | 78,111,763 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,536 | py | import time
import siuts
from os import listdir
from os.path import isfile, join
import pickle
import numpy as np
import warnings
import sklearn.utils.validation
import random
import operator
warnings.simplefilter('ignore', sklearn.utils.validation.DataConversionWarning)
def load_pickled_segments_from_file(filename... | [
"saiber@gmail.com"
] | saiber@gmail.com |
e2b58784d211849ba20dae9c0a6d4c2df1abdd90 | 043baf7f2cd8e40150bbd4c178879a5dd340348d | /dinners/tests/factories.py | f645bc02cb2e650b3c6a48bf5aa538135afb98c4 | [] | no_license | tjguk/ironcage | 1d6d70445b1da9642e1c70c72832c2738f9a942e | 914b8e60819be7b449ecc77933df13f8b100adb0 | refs/heads/master | 2021-05-06T10:20:35.486184 | 2017-11-20T16:34:17 | 2017-11-20T16:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | from datetime import datetime, timezone
from accounts.tests.factories import create_user
from dinners.models import Booking
from dinners.menus import MENUS
def create_contributors_booking(user=None, venue='contributors'):
if user is None:
user = create_user()
menu = MENUS[venue]
return Booking... | [
"peter.inglesby@gmail.com"
] | peter.inglesby@gmail.com |
f333d416d9163011ed8c06b1d0e2be8ba3de09b0 | dd2217a5c7be79d708b1cfba14e997fa551769ac | /dirvenv/bin/symilar | 145336d6663c3fd751207e342484f587b6b2b508 | [] | no_license | davigzzz/django_base | 1df91d39d35fae080e10c2b6913697ee5aba86ef | e1b1cd10fe29d40b46b35d165a764cf023090f91 | refs/heads/master | 2022-05-25T22:36:04.039920 | 2020-05-01T08:53:00 | 2020-05-01T08:53:00 | 260,415,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/home/davidguzman/Documentos/Python/directorio/dirvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"david.guzman@presidencia.gob.mx"
] | david.guzman@presidencia.gob.mx | |
75391e7604dd44bcd5816846ec2d9e53b921ff19 | 12490ecaa1ab982bf93f72d664917e833fb6bfe5 | /th_watchdog/record.py | 814ae8f8ce3ddd87cc6d16796c9482f3e63525af | [
"MIT"
] | permissive | hwjeremy/th-watchdog | 750a17431279a64009c7953e6821953ed513ceb1 | c32682f838fffa3396cabc3d83eeb4960c765fc9 | refs/heads/master | 2020-03-28T06:01:38.735891 | 2018-09-07T11:05:21 | 2018-09-07T11:05:21 | 147,809,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | """
Thornleigh Farm - VPN Watchdog
Record Module
author: hugh@blinkybeach.com
"""
from th_watchdog.vpnstate import VPNState
from th_watchdog.emailstate import EmailState
from typing import TypeVar
from datetime import datetime
from typing import Optional
from typing import Type
import os
T = TypeVar('T', bound='Record... | [
"hugh.jeremy@gmail.com"
] | hugh.jeremy@gmail.com |
80afc5ec70fc015cd26b8dc0f31017c3f9d92911 | 9dd9cb60e69524c0cadf52e6805bdba787fe0097 | /swich.py | 7c9a4928081774df0ebe5ed95f072b1f3181a011 | [] | no_license | yoshinGO/study_click | 5893cb18e6111b4f8ed718de46bb804336a8d329 | 385649b089ffba841dda874d8100b72c6df9fded | refs/heads/master | 2020-04-08T19:06:03.591650 | 2018-11-29T09:18:15 | 2018-11-29T09:18:15 | 159,639,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import click
@click.command()
@click.option('--upper', 'transformation', flag_value='upper')
@click.option('--lower', 'transformation', flag_value='lower', default=True)
def cmd(transformation):
click.echo(transformation)
def main():
cmd()
if __name__ == '__main__':
main()
| [
"kamemygenki0124@gmail.com"
] | kamemygenki0124@gmail.com |
5c60e3f3bde17a701467d4d29a986a70446e7d9b | bbce6d829118cc81b7d20919c587df1fa83d87f5 | /tool/utils.py | dc9983db10d7802a953956de8fdfb1f083a8e2e9 | [] | no_license | chilung/NCTU_Adv_DNN_HW2_2 | 02f63610bf45b89672fb978f0b8dbdfbc4e6566a | 7018b6cd01b98ca88a30c0f7d0c4d2c188668d09 | refs/heads/main | 2023-01-19T07:19:36.302639 | 2020-11-22T08:24:25 | 2020-11-22T08:24:25 | 314,708,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,179 | py | import sys
import os
import time
import math
import numpy as np
import itertools
import struct # get_image_size
import imghdr # get_image_size
def sigmoid(x):
return 1.0 / (np.exp(-x) + 1.)
def softmax(x):
x = np.exp(x - np.expand_dims(np.max(x, axis=1), axis=1))
x = x / np.expand_dims(x.sum(axis=1),... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
37dd9f3ef68fbbb69865955ba2e5916c0ab0bdba | e63dfce78be34d128e6736a86c62e68302befc4e | /signin.py | 993c432f58f40bf59d151c58375677d9d18a70dd | [] | no_license | spheppner/Selenium-Practice | c230c20adf1bc312e06a74c26abf545ac15f5629 | 9747b797721e44cb36ddca21c84d4ec6effecc95 | refs/heads/master | 2021-10-19T07:44:16.864487 | 2019-02-19T09:37:58 | 2019-02-19T09:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,064 | py | import unittest
from random import randint
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from mimesis import Person
from mimesis import Address
from mimesis import Text
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as... | [
"a.gulyayko@yandex.ru"
] | a.gulyayko@yandex.ru |
eab75d02bd9ae077bd5932dfa94e6cadcaba0a25 | 75335c06eea045b297ba7810eec45e487218a39e | /server.py | a7e7b22b0ca0548b0deb3a8202bd36f63909a9ad | [] | no_license | bamejia/racing_game_server | be410f2f498015b6c964550b324753670d07f4e5 | acf0342b696a96c5a00f2e0b720ea94d8f525fd9 | refs/heads/master | 2021-07-23T18:46:05.891050 | 2020-02-07T13:40:45 | 2020-02-07T13:40:45 | 238,778,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,504 | py | import socket
from model.game_model import GameModel
from _thread import *
from threading import Lock
from online_multiplayer.game_thread import game_thread
import json
from model.direction import Dir
import global_variables as gv
def server():
hostname = socket.gethostname()
ip = socket.gethostbyname(hostnam... | [
"bamejia@udel.edu"
] | bamejia@udel.edu |
1085012854b55da261b558a7bb7160e20fb49c5f | cd64ad6c0f1b962d41c42a7225944c95c228566b | /groups/models.py | 41c437e02ae94e89da1aab91f7e73d8ae3dff5a2 | [] | no_license | ejesse/worldcup | c5a2555b8be8707ded4cfceefb93a3283529376a | 55bbe316795822bbf94a714de8e188f5806d0837 | refs/heads/master | 2021-01-22T04:54:03.907718 | 2015-06-18T03:23:09 | 2015-06-18T03:23:09 | 37,630,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,128 | py | from collections import OrderedDict
from django.core.exceptions import ValidationError
from django.db import models
from teams.models import Team
# Create your models here.
class Fixture(models.Model):
WIN = 'WIN'
DRAW = 'DRAW'
LOSS = 'LOSS'
home_team = models.ForeignKey(Team, related_name='home_t... | [
"jesse@jesseemery.com"
] | jesse@jesseemery.com |
f96605b5a8a628ee2a52f60e5a1ebcd3540dd4da | 7294c38acb21e7d30236134b263cc93461f74629 | /cellardoor/serializers/json_serializer.py | eec9b5bbc0836d5ac5e57f99b6b7bd7ea3aae901 | [
"MIT"
] | permissive | msabramo/cellardoor | 42b97aa75f51620c01e321c24e2556d2fcfd26f2 | 1811dfa198228552e3a6440dc5a78ae0c265f27f | refs/heads/master | 2023-09-02T10:17:16.661250 | 2015-01-29T20:58:08 | 2015-01-29T20:58:08 | 30,115,197 | 0 | 0 | null | 2015-01-31T14:54:28 | 2015-01-31T14:54:27 | Python | UTF-8 | Python | false | false | 826 | py | import re
import json
from datetime import datetime
from . import Serializer
class CellarDoorJSONEncoder(json.JSONEncoder):
def default(self, obj):
try:
iterable = iter(obj)
except TypeError:
pass
else:
return list(iterable)
if isinstance(obj, datetime):
return obj.isoformat()
return s... | [
"elisha@elishacook.com"
] | elisha@elishacook.com |
248e9f4b355e1e50979d314d726f8a200955d5c9 | af79cff43e96631344a6197a5525c666860bfb45 | /7a.py | 431c83b1270821af1b03349d15e5e312f4be6bcf | [] | no_license | djaychela/aoc2019 | d09bd6c2a757e3f8184d6ed0f11fd9eaff58d635 | 78637b2858eba8bf5fbdddcc497482be544a5425 | refs/heads/master | 2020-09-30T01:44:07.766972 | 2019-12-10T16:50:07 | 2019-12-10T16:50:07 | 227,169,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | import os
from itertools import permutations
path = os.path.join(os.getcwd(), "data", "input_7a.txt")
with open(path, "r") as f:
data = f.readlines()
puzzle_input = [int(d) for d in data[0].split(",")]
def run_intcodes(loc_puzzle_input, loc_input_values, debug=False):
def get_data(index, mode):
if m... | [
"djaychela@gmail.com"
] | djaychela@gmail.com |
decf9deb8bedf1afa643866f1ca62082cf70344d | d70054d9b828e88b8fe488102109421b02ce76a6 | /rotate_image.py | 737e6cf3063de9d4c0e9037691aa1ca26b051b5e | [] | no_license | harpreet-singh/leetcode | be59ce41bf2cff26b309bd33e309228e7fffd172 | aecfba452140488495203665319e1bed9444a5b8 | refs/heads/master | 2020-06-17T23:51:14.913800 | 2019-07-16T18:49:25 | 2019-07-16T18:49:25 | 196,103,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | class Solution:
def rotate(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
matrix.reverse()
#print(matrix)
#matrix = list(map(list,zip(*matrix)))
for i in range(len(matr... | [
"noreply@github.com"
] | harpreet-singh.noreply@github.com |
185e24fe6926b4f8b5c58b8dc6342350316366fa | a1d1a09958e2b29b561f2af14724f1d0f5dc5785 | /ledTest.py | e37fdf30917c7180a6821c4176f40b97df1e4793 | [] | no_license | jadenbh13/droneSwim | 1745b5a705ea8f48eaec65d4d462030fa1638021 | 08528888293ac0c2dda94953769e340b9753ad12 | refs/heads/main | 2023-06-25T19:12:46.336417 | 2021-07-30T00:52:20 | 2021-07-30T00:52:20 | 380,055,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import logging
import time
import cflib.crtp
from cflib.crazyflie import Crazyflie
from cflib.crazyflie.mem import MemoryElement
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie
from cflib.utils import uri_helper
URI = uri_helper.uri_from_env(default='radio://0/80/2M/E7E7E7E7E7')
# Only output errors from the... | [
"jadenbhimani12@gmail.com"
] | jadenbhimani12@gmail.com |
1fdcf8560a17327ee5ec0f6e554da3ba299f1af9 | 61c9a90c46e7c63616902ef16721854c73be8ce5 | /ImagesParserFromYandex/ImageParser.py | 556ef18c7a8d1c8bf4bb02a7dab79ada3a11c87b | [] | no_license | KozhevnikovAlexandr/zootopia-project | 5e00518b82e947730079d97f1b24902f6e9f92a6 | 69a6b4e40c6968ddad8f42dcda78a62fe79ea0a4 | refs/heads/main | 2023-06-09T03:52:56.152635 | 2021-07-01T20:28:37 | 2021-07-01T20:28:37 | 351,718,317 | 0 | 2 | null | 2021-04-20T06:23:53 | 2021-03-26T08:51:31 | Jupyter Notebook | UTF-8 | Python | false | false | 2,949 | py | import requests
import json
from fake_headers import Headers
from bs4 import BeautifulSoup as bs4
class Size:
def __init__(self):
self.large = 'large'
self.medium = 'medium'
self.small = 'small'
class Preview:
def __init__(self, url: str,
width: int,
... | [
"noreply@github.com"
] | KozhevnikovAlexandr.noreply@github.com |
f7521eb4d4aacfc2c35663ce5ee54c14b67ee656 | 63176b589ea621a88397633ff34df2b14fdebfb1 | /venv/Practice42.py | 5a59263886a7bf93cfd1f6f8339d6fc9ce268477 | [] | no_license | utkarshbhardwaj22/TRAINING1 | 3b610eb407884cf84e2816d06a4cb2a8e23510c9 | 1d1321c3c3d1537b730dfd702d8088a3e21f402c | refs/heads/master | 2023-05-06T02:12:40.936069 | 2021-05-22T17:52:34 | 2021-05-22T17:52:34 | 341,592,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import requests
import json
api_key = "your api key"
url = "http://newsapi.org/v2/everything?q=tesla&from=2021-02-12&sortBy=publishedAt&apiKey={}".format(api_key)
response = requests.get(url)
print(response.text)
print(type(response.text))
dict_data = json.loads(response.text)
print(dict_data)
print(type(dict_data)) | [
"utkarsh2000bhard@gmail.com"
] | utkarsh2000bhard@gmail.com |
b2613b1a49c70cc10e0c7ed1ec31117526772ffb | e5e4f4f62c0da9c81ba858ea0c2caf9883040806 | /core/mobile_devices/apps.py | 4f7555fd101aa905c9c34fefa57982f2b919c2af | [
"MIT"
] | permissive | intelligems/django-mobile-app | 634a15aa48b1303d266081946086bb04dbb119b7 | 04c2e684bf77a4149deb1428fea921b753f0e2ec | refs/heads/master | 2021-06-02T23:13:30.193901 | 2020-04-06T09:54:37 | 2020-04-06T09:54:37 | 106,053,117 | 64 | 14 | MIT | 2020-04-06T09:52:12 | 2017-10-06T21:49:56 | Python | UTF-8 | Python | false | false | 107 | py | from django.apps import AppConfig
class MobileDevicesConfig(AppConfig):
name = 'core.mobile_devices'
| [
"koslibpro@gmail.com"
] | koslibpro@gmail.com |
93b3def8c56dfc5e858310cf3c60c71fde360968 | 0220352990bdfc8d0d0fd2216284a5d6ce47cacc | /Review/Weekend Review/calc.py | 28859f4ff9b4ac92814a28fc49e5ab9d984fbb7c | [] | no_license | baxter1707/CoffeeOrderSystem | a37907b9d72e397b9d63c971975d2d317a82f848 | 560cc3acb7bcbf9904ab21198d7c1994d406b0ab | refs/heads/master | 2021-08-29T11:51:35.591689 | 2017-12-13T21:50:17 | 2017-12-13T21:50:17 | 114,172,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import calcFunct as calc
first = float(raw_input("Enter first number."))
mathOp = (raw_input("Enter +, -, *, or /"))
second = float(raw_input("Enter second number."))
if mathOp == "+":
answer = calc.add(first, second)
elif mathOp == "-":
answer = calc.subtract(first, second)
elif mathOp == "*":
answer =... | [
"msb@Michaels-MBP.localdomain"
] | msb@Michaels-MBP.localdomain |
1145456e163cf9f1577b7221b5411f88747e796c | 062e5ea92fce23805335abd28d72dda8896c6906 | /user/urls.py | 157067e2ec7a41c0fa4f25a495fb2c10055364cf | [] | no_license | FikretYilmaz/Django_Project3 | bd65a196ace8b4959c03a2fecc848372f12aca51 | 9d704df72a16838db4c4ca2dcdc7250cd6eff8cc | refs/heads/master | 2020-11-24T06:52:16.583950 | 2019-12-14T12:26:29 | 2019-12-14T12:26:29 | 228,017,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.contrib import admin
from django.urls import path
from . import views
app_name ="user"
urlpatterns = [
path('register/', views.register, name = "register"),
path('login/', views.loginUser, name = "login"),
path('logout/', views.logoutUser, name = "logout"),
] | [
"yilmz.fikret@gmail.com"
] | yilmz.fikret@gmail.com |
b548353eabc30922d5a1654ad33ca127d8c65334 | 6b65a0254fd98e3add97533f5423b988d5cccbc9 | /Survivors.py | a295c5090fec8de0e6222a9b835d0149a2d23b15 | [] | no_license | AnaFOliveira/Evolutionary-Computation | a4c8b84c49a5faa265c1eba56c997b69ac5b888d | c67bf88620bb4440b609b6e7152beb5020153e66 | refs/heads/master | 2020-03-19T05:35:40.874752 | 2020-01-08T17:42:57 | 2020-01-08T17:42:57 | 135,946,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Conjunto de funções para selecionar os survivors
from operator import itemgetter
# Elitism
def sel_survivors_elite(elite):
def elitism(parents,offspring):
size = len(parents)
comp_elite = int(size* elite)
offspring.sort(key=itemgetter(1),reverse=True)
parents.sort(key=itemgetter(... | [
"anaf.oliveira95@gmail.com"
] | anaf.oliveira95@gmail.com |
6fd5ea6b3a66f9661d4d93a4fa3ee7fd8c7f69d8 | 107d985a67685e173ac23fe8d3aa6e1ab7eae91e | /release/scripts/mgear/rigbits/rbf_node.py | ebab9c7581e42b14386d3dbda5be7f7b15f5a3b5 | [
"MIT"
] | permissive | moChen0607/mgear4 | 83c67df26ebf8898dfb032c81563bf3fd89b4d6c | e340bd9ca95b9e99977ba9eedb0bf39c742683ff | refs/heads/master | 2023-08-16T11:31:54.455569 | 2021-10-07T03:14:01 | 2021-10-07T03:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,421 | py | #!/usr/bin/env python
"""rbf node to normalize the calls across any number of supported
rbf node types. First supported "weightDriver"/ingo clemens/Brave Rabit
Attributes:
CTL_SUFFIX (str): name of the control suffixe
DRIVEN_SUFFIX (str): suffix to be applied to driven group
DRIVER_CTL_ATTR_NAME (str): nam... | [
"miquel.campos@gmail.com"
] | miquel.campos@gmail.com |
93113329cab60289329c039bbed8550468933686 | a51e408379db9cea0ae82f196ee2bc96a93dd0e1 | /Python/CALCULADORAPITAGORAS.py | 1492ddff1f349de1491b64f4c1a331a34d6f06d7 | [] | no_license | DiegoSalazar02/CURSO-PINOLES | 5e659cf5dad344e15c5c4e265ecf957773a7df82 | 2e25457e77867ce9b287cbc7ed9998f5ac8bec2b | refs/heads/master | 2020-05-25T18:28:12.787721 | 2019-07-24T00:13:12 | 2019-07-24T00:13:12 | 187,930,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | print("Si no tienes un dato, dejalo en blanco")
print("Dame tu cateto 'a'")
a = input()
print("Dame tu cateto 'b'")
b=input()
print("Dame tu hipotenusa")
c=input()
if(not c):
c=(int(a)*int(a))+(int(b)*int(b))
c=pow(c,0.5)
if(int(a)+int(b)<int(c)):
print("Tu triangulo esta bien raro chamaco")
els... | [
"50892111+DiegoSalazar02@users.noreply.github.com"
] | 50892111+DiegoSalazar02@users.noreply.github.com |
52b12868ecc92457a61a17446a5a58f85755197b | c025aac7d3288a84d2c2f2a12dcc4ac8068e920d | /formatString.py | d7b706ce4cac6ff7f303a5d84d5d5d85e3c03601 | [] | no_license | thinkinghs/pyalgorithm | f81eb317c906a91e00fa04edd65ae5c4396b8cee | 1b6371c68ecdf940e54e8d0f890f2e671bd0baa9 | refs/heads/master | 2020-04-15T14:52:44.220382 | 2019-06-25T09:36:43 | 2019-06-25T09:36:43 | 164,771,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # https://www.codewars.com/kata/format-a-string-of-names-like-bart-lisa-and-maggie/python
# there are more short solutions. I have to study. But my solution is easy to read
def namelist(names):
if not names:
return ''
if len(names) == 1:
return names[0]['name']
name_list = ''
for i in r... | [
"noreply@github.com"
] | thinkinghs.noreply@github.com |
36176d02cf0a6adeafba9c114b7c7921e64ecd21 | 677118d53be00096610a5d881348f9f6464d8a40 | /MyProject/api/views.py | 49a6637d88eb2bcc645daf226d857a8b3245a7b8 | [] | no_license | sandipan898/django-rest-sample-project | 9ded79516461f4b8a1d4cc9bbc8f45e652b810f5 | 2097d2dbf8ef9caf914dbe18098f8c6dc2bdb003 | refs/heads/master | 2023-02-13T14:45:43.877953 | 2020-12-30T18:56:00 | 2020-12-30T18:56:00 | 324,568,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,853 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from rest_framework import serializers
from rest_framework.parsers import JSONParser
from rest_framework.serializers import Serializer
from .models import Article
from .serializers import ArticleSerializer
from django.views.decorator... | [
"sandipan.das898@gmail.com"
] | sandipan.das898@gmail.com |
cec1987aca842ac02625d72b387932b0b6678ec4 | e292531fa72c3b5b9a3d5d1433dfb4a7f69a3471 | /app/public/views.py | 0b3b946b5dda554cafcd717270ddf926b172b973 | [
"MIT"
] | permissive | MunifNagi/whiteboard | ea0d74543c7e0e289bf80195ac229c7e5de90be2 | f706ed5977a25447c1cb938313fd8a7328811749 | refs/heads/master | 2023-01-06T17:27:22.183060 | 2019-10-31T18:05:53 | 2019-10-31T18:05:53 | 218,827,710 | 0 | 0 | MIT | 2023-01-04T23:52:05 | 2019-10-31T17:57:56 | Python | UTF-8 | Python | false | false | 2,135 | py | # -*- coding: utf-8 -*-
"""Public section, including homepage and signup."""
from flask import (
Blueprint,
current_app,
flash,
redirect,
render_template,
request,
url_for,
)
from flask_login import login_required, login_user, logout_user
from app.extensions import login_manager
from app.pu... | [
"mnagi@records.nyc.gov"
] | mnagi@records.nyc.gov |
3a907909b113fd65076489fe8def626540095d6a | c7be03a4a8160750a3260609abe23a115a29848b | /Problems/117. Crawler Log Folder/Crawler_Log_Folder.py | 78505fdf449bb4b756ba1afae3f4397d333329a5 | [] | no_license | kenlee0305/Leetcode-Automation | 9399a362d0b97f8ee9226a74c847e37d50d34d2b | fc89cb7cc3f6f136200ca9acf3c6db10ad972ca4 | refs/heads/main | 2023-06-03T03:03:20.068567 | 2021-06-16T07:31:36 | 2021-06-16T07:31:36 | 424,152,427 | 1 | 0 | null | 2021-11-03T08:55:25 | 2021-11-03T08:55:24 | null | UTF-8 | Python | false | false | 376 | py | class Solution:
def minOperations(self, logs: List[str]) -> int:
count = 0
for x in logs:
if '../' in x:
if count == 0 :
pass
else:
count-=1
elif './' in x:
pass
else:
... | [
"aj97389@gmail.com"
] | aj97389@gmail.com |
a847bbcf01fba6154f6ca550379a6ffc499e3ea0 | 260d095d0422d7783d125830fa9d98529b5c60f1 | /zajecia_12/kartkowka4.py | 1e58b8733dbed65062c4f35139245a97cd93526f | [] | no_license | loafe123/pp3 | a9b8be328764ad16c6d7cdaedc2519ff95876d41 | 647f44bb888f763207ded8874cec2a07ee3c4c85 | refs/heads/master | 2022-03-30T18:30:14.246307 | 2020-01-28T12:10:23 | 2020-01-28T12:10:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
123456
To jest napis dokumentujący modułu.
'''
def rot13(text):
"""
Funkcja szyfrująca rot13
To jest napis dokumentujący funkcji.
"""
encoded = ''
for letter in text:
if letter < 'N':
encoded += chr(ord(letter) + 13)
... | [
"abukaj@users.noreply.github.com"
] | abukaj@users.noreply.github.com |
3c42e5bc139bba19c06e3aab07ee8c2d17c0dc7f | e34a44c07adb818a15dd0742761a4c2cf4258336 | /src/final_exam/q_pie/pie_chart.py | bc21630f94e0f0987d182b714255e2164e929a9a | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-jjmareck | 629e9cdb3a0f091e440e6dccbd2bc23341df4a2c | 7abfd79cb9a63192c965f828a185ccd981820bae | refs/heads/master | 2021-05-16T14:08:06.763135 | 2018-05-12T03:33:17 | 2018-05-12T03:33:17 | 118,071,035 | 0 | 0 | MIT | 2018-02-25T23:29:58 | 2018-01-19T03:22:07 | Python | UTF-8 | Python | false | false | 164 | py | class PieChart:
def __init__(self, arclist):
self.arclist = arclist
def draw(self):
for arc in self.arclist:
arc.draw()
| [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
75eb1c002ed77b3efca306601ab05f1729052e77 | 1fabf3e10cd201cc0cf9a3e82590b5f68133b46b | /main.py | 33247a65f5e0140e3018e908e8290707cdddffc3 | [] | no_license | gauthamzz/get_github_emails | 5777c5c61e06eebe4904b1f55757c8a7c7956254 | a5a462c7574b1e3fbb7e539b213112496bdd2be4 | refs/heads/master | 2023-01-14T03:34:07.840350 | 2020-11-21T11:58:07 | 2020-11-21T11:58:07 | 314,109,696 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | import typer
from src import github, utils
from typing import Optional
app = typer.Typer()
@app.command()
def contributors(owner: str, repo: str, uname: Optional[str] = typer.Argument(None)):
"""Get contributors of a repo
"""
typer.echo(github.find_contributors_from_repo(owner=owner, repo=repo, uname=una... | [
"thabeatsz@gmail.com"
] | thabeatsz@gmail.com |
d4ede4b1be60941155c4a1d06dc3b4754347282b | adc1a5ea987f1a8b50a806e65ad3bb188b6a270f | /exchangeSearch.py | ab17afe927da477503e0ee49a5466edc9b83fe76 | [] | no_license | M-aljawaheri/CalenderFill | 4ea8f175e11073fb22e225afb781255092eaf191 | 4d321adb4426ebffc466318943e99b7fd34e6686 | refs/heads/master | 2022-06-14T22:46:52.778761 | 2020-05-03T18:07:17 | 2020-05-03T18:07:17 | 228,091,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | # Exchange email deadline Extraction
# By : Mohammed Al-jawaheri
# Email : Mobj@cmu.edu -- m_aljawaheri@outlook.com
# Student -- CarnegieMellon University
from exchangelib import Credentials, Account
from re import*
#
## Handles all deadline collection. Will use RegEx through methods
## to extract ... | [
"mobj@cmu.edu"
] | mobj@cmu.edu |
46038361f24318dc1106ee990c5592e340ff7717 | 4ff67d9f3614fecf5d37bc1562638651e7346e28 | /portfolio/portfolio/urls.py | a4b9aa5833f4632784d99ed2997e97f0fee35845 | [] | no_license | techjunaid/portfolio | d86fa0e7a6c5af509858e1fb9f51c5d45325f903 | 0cfaa517fe85cfd0b9eacb18bf83ba46b329afe8 | refs/heads/master | 2022-12-07T18:20:27.048859 | 2020-08-30T05:01:51 | 2020-08-30T05:01:51 | 291,402,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | """portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"53346421+techjunaid@users.noreply.github.com"
] | 53346421+techjunaid@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.