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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce745bc83fd08998d867c0ec245ba218d19c4298 | 6e6ef650d0fd5e5006dab4d755bb4ac77de43072 | /openreview/create_basic_openreview_dataset.py | aba3de742d65cd752a0945164be8a4122fb474c7 | [] | no_license | raymondroc/an-open-review-of-openreview | b2f2a4dcd7badbbd55ab535f4f319ae8d888afa6 | 7d94a42096759b36739090f9801dc2a09dec0380 | refs/heads/main | 2023-01-10T15:22:06.851193 | 2020-11-13T18:39:30 | 2020-11-13T18:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | from __future__ import print_function
import openreview
import pandas as pd
import pickle
def parse_data():
"""Clean and parse raw data"""
lines = []
header = ("conference,year,paper,authors,"
"emails,ratings,confidences,decisions,"
"cmt_before_review,"
"cmt_b... | [
"kganapathy23@gmail.com"
] | kganapathy23@gmail.com |
1c930e410b98d1fae3b2475161e5d1d4f296a1a8 | 3a499c01c976c0d985d9921c64a9ed2bdd8ae457 | /etc/hello.py | 3bea3975c2ade2b3b2307676b6718206ffb3b827 | [] | no_license | kkmjj/sparta_study | 1430ae39d4f38bc4771f0e4b974780ff9037212a | b4dc630d737f90905e45ed34e0949efc69c526cb | refs/heads/master | 2020-09-21T09:04:49.722474 | 2020-02-07T03:49:05 | 2020-02-07T03:49:05 | 224,749,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | name = ' bob' # ์๋ฃํ์ ๋ฐ๋ก ์๋ง๋ค์ด๋ ๋จ
num = 12
print (name, num)
# ๋ฆฌ์คํธ
a_list = []
a_list.append(1)
a_list.append([1, 2])
print(a_list)
# dic
a_dict = {}
# ํจ์
def sum_all(a, b, c):
return a + b + c
#ํด์ฆ
def name(name):
if(name=="๊น๋ฏผ์ค"):
print (name)
name("๊น๋ฏผ์ค")
name("๊น์ค")
#๋ฐ๋ณต๋ฌธ
for_list =[1,2,3,4... | [
"mjkim1201@naver.com"
] | mjkim1201@naver.com |
db6dac8b0b6013de4ea57a1b57fa20f6b8d368f8 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/add_and_search_word.py | 13c99ec33dbc7abde7199d0dc2552efa2636dc28 | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 2,277 | py | # https://leetcode.com/problems/add-and-search-word-data-structure-design/
"""
Design a data structure that supports the following two operations:
void addWord(word)
bool search(word)
search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
894b732050372338c14fa012e7f9b16f6e1eadbf | 11812a0cc7b818292e601ecdd4aa4c4e03d131c5 | /02_ๅคไปปๅก/3_ๅ็จ/hm_15_ไฝฟ็จๅ็จๅฎๆๅคไปปๅก็ปๆ.py | ed3306cb3d774702e938b02a0d1ebc14291efd90 | [] | no_license | SunshineFaxixi/Python_Learning | f1e55adcfa898489cc9146ccfb220f0b48a31a22 | ab3ca44d013311b6de02124091acc4c36a83c4d9 | refs/heads/master | 2021-08-16T05:47:29.963118 | 2021-01-04T13:48:30 | 2021-01-04T13:48:30 | 238,857,341 | 1 | 0 | null | 2020-03-03T13:53:08 | 2020-02-07T06:21:46 | HTML | UTF-8 | Python | false | false | 409 | py | import gevent
import time
import random
from gevent import monkey
def coroutine_work(coroutine_name):
for i in range(10):
print(coroutine_name, i)
time.sleep(random.random())
def main():
monkey.patch_all() # ๆ่กฅไธ
gevent.joinall([
gevent.spawn(coroutine_work, "work1"),
ge... | [
"xxhan2018@163.com"
] | xxhan2018@163.com |
5b7ef9e36ad051f8020055d5ddecfbee31905843 | 63289b50fd61f1365476dbee9daf5f64f0632d0e | /FoodApp/migrations/0001_initial.py | 7ee83bcf0b01a0c365bcb3b0303351d3f7b686a9 | [] | no_license | pradeepvarma22/Food_Review | 98b97fba71fcf78fb2335046a312299627b96d65 | 76c96580716398746e1bf78cb5613795a03e8abb | refs/heads/master | 2023-03-01T01:26:48.286331 | 2021-02-06T19:29:07 | 2021-02-06T19:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | # Generated by Django 3.0.4 on 2021-02-06 08:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"pradeepvarma107@gmail.com"
] | pradeepvarma107@gmail.com |
b332a21d8410d1f50d009e15238f801aced23ad4 | f8565c4d6a96dd91c2a6cd247f180f7c7d1054ff | /changing_internalLines.py | 7f7df0d0c1dc8e9afd73acd5abe3b5562bcd1bec | [] | no_license | AhmedAlhallag/Python_SomeJunk | d625e243c7bb7e78d4ca1d2547f9d4c3e7fb59ee | e45b2e8af5326b7d627edc87345b1a7f5d4b9268 | refs/heads/master | 2022-11-15T07:06:19.064093 | 2020-07-13T17:01:57 | 2020-07-13T17:01:57 | 279,363,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # with open("user_output.txt","r") as file:
fnName = "Hamada"
i = 1
with open("pyt1_edited.py", "w") as edited:
for line in open("pyt1.py", "r").readlines():
comIDX = line.find("#")
if comIDX >= 0:
# we found a comment; remove it
print(f"Found a Comment:x{i}")
... | [
"alhallag@gmail.com"
] | alhallag@gmail.com |
329444be3e093f08598e5a613a554721a6d6e9b1 | f99e42d181267f35ffaa7a47106d188bbe9f1094 | /codekata/91.py | 086d614fa3eba2704fdf10a7a701cdfee2d485c5 | [] | no_license | DEEPTHA26/guvi | 92d0992548a8ccbffc5e2ba8b702184cc2c42929 | 84816f470c08ede86a87b010cfd5ef5573d045f8 | refs/heads/master | 2020-06-15T20:29:44.864601 | 2019-06-30T15:18:17 | 2019-06-30T15:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | z,x,c=map(int,input().split())
v=z*x*c
t=(2*z*x)+(2*x*c)+(2*c*z)
print(t,v)
| [
"noreply@github.com"
] | DEEPTHA26.noreply@github.com |
fe1cd37ddd5460332b2a2248effe4f29cf9f8f34 | 0f94eef14ffe0e9502e20f20d0e4c74045e46bec | /views/match.py | ffa81cd89a9f70fd063f6e0ac5405ff2a6b565b8 | [] | no_license | Ikeaven/P4_konrath_kevin | 63d5c229f39f64fe6d60ed0a40c63db7c153229c | b65637e3f3dcb9ad88df08902df48cbebc0cf75e | refs/heads/master | 2023-06-17T02:50:44.278125 | 2021-07-02T13:38:33 | 2021-07-02T13:38:33 | 368,557,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """ Match View Module """
import pandas as pd
from .utilities import UtilitiesView
class MatchView:
def display_match(self, match):
"""Print all match informations in a pandas DataFrame
Args:
match (obj): Match instance
"""
UtilitiesView().line_separator()
pr... | [
"36306272+Ikeaven@users.noreply.github.com"
] | 36306272+Ikeaven@users.noreply.github.com |
fa66f392d5e1dd703fe2551c4d35c4dcbf3660a8 | 275c84881b0eeb06df1ac44fb84c64991d8b41e4 | /env/bin/alembic | ac3b4718fbc778bfe2ad264ccea3949b71d41983 | [] | no_license | natagonz/mambang | ddd37de0b15717a9a3292e381fa5cb482d3fa5ed | cabab22dfaf04d31fb6b6bebbaaa92cffa9b0e0b | refs/heads/master | 2020-03-11T00:36:11.013564 | 2018-04-16T01:36:07 | 2018-04-16T01:36:07 | 129,667,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | #!/var/www/html/ems/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@dev.mambangsehat.com"
] | root@dev.mambangsehat.com | |
b4edfc32c00e21b7065ff29a25b0321737f977df | aa8098d44e92a1b5aeb9676ca8b15b4c701b297f | /exceptions.py | 9dcddae19e95c786344328998f5dcbce03cbf92f | [
"MIT"
] | permissive | rpierlot/LaPosteClient | 7b331c4a7b3c0d64425b46edf7a5782af28ab2f1 | 70eba4f42fec795b883c26f516a40aa0fa116de1 | refs/heads/master | 2021-08-31T18:23:47.487722 | 2017-12-21T13:29:40 | 2017-12-22T10:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | class TrackShipmentError(Exception):
def __init__(self, code, message):
self.code = code
self.message = message
| [
"rpierlot-ext@deezer.com"
] | rpierlot-ext@deezer.com |
5cfdde968cee2e114cd56c641bad909c4f4adb5f | ebc5c949aa4e0e87afb0cd1daf2780e5306a3e02 | /KafkaProducer.py | 1ac7a66a166cf47b7278627d9b56c620c35c2139 | [] | no_license | ecvasile/python-big-data | e1e53c91750ef46bf5430715c756a48a43cfa482 | 6543dd0713212acb2ab76dc965640a004c718cc6 | refs/heads/master | 2023-02-15T22:34:00.882930 | 2021-01-07T16:03:04 | 2021-01-07T16:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from TrafficSimulator import TrafficGenerator
from kafka import KafkaProducer
# create decoder object from pcap file
pkt_obj = enumerate(TrafficGenerator('/home/cloudera-master/2018-04-05_09-36-26_Default_SPW-4.pcap'))
# create Kafka producer
producer = KafkaProducer(bootstrap_servers='cldmaster.local:9092', # batch... | [
"eduardvasile@JackSparrows.lan"
] | eduardvasile@JackSparrows.lan |
a9dd8620e61118abf0707b5fb0f71735b60984ba | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /gp/business_logic/business_objects/monopoly.py | f40bcc4ebbf90d3908c5f5b1da8a279f7018e9f4 | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import datetime
__author__ = 'erezrubinstein'
class Monopoly(object):
def __init__(self, store_id, monopoly_type_id, trade_area_id, start_date, end_date):
self.store_id = store_id
self.monopoly_type_id = monopoly_type_id
self.trade_area_id = trade_area_id
self.start_date = start_da... | [
"erezrubinstein@hotmail.com"
] | erezrubinstein@hotmail.com |
91abe388075942a28f543fc7085eb9c91a707e33 | c1aa719c6d0f66c0530e06e478c13f3c1fbcc5de | /Fabrizio/RNN/src_RNN/allprocess/DataSet.py | 3b6004fe9a48ad53cc1845928b82347f1b89738b | [] | no_license | deepbrain2016/websiteclassificator | 5d3c2c77c39a778aa79f483b0bc2eae6618470a2 | dde350f28d6df3fe267ebde7a8658a9dfb0b7e7c | refs/heads/master | 2021-01-12T09:50:45.532510 | 2016-12-15T16:53:18 | 2016-12-15T16:53:18 | 76,276,524 | 0 | 0 | null | 2016-12-29T08:39:40 | 2016-12-12T16:52:42 | Python | UTF-8 | Python | false | false | 4,057 | py | '''
Created on 03/ott/2016
@author: fabrizio
'''
from Parameters import *
from keras.datasets import imdb
from keras.preprocessing import sequence
import pickle,numpy,sys
class DataSet(object):
'''
classdocs
'''
def load_data_contex(self,nomefile):
reader = pickle.load(open(nomef... | [
"defausti@istat.it"
] | defausti@istat.it |
83c5651a93a1bee73e720ee98900ca34bc8bc05b | e7bca56e03831ee604a3765867f235a27e261c85 | /src/utils/finance_metrics.py | f9d11ffbde7a6f5f2cec28be9b77d78e7de5333c | [
"MIT"
] | permissive | WatweA/RNNforPairsTrading | 8bac598424891620e1bf0b31b7400b96d6f90018 | 44379de85712a411c501524473c5569964f1c4b6 | refs/heads/main | 2023-04-10T20:52:22.884222 | 2021-04-26T21:38:17 | 2021-04-26T21:38:17 | 352,525,153 | 1 | 0 | null | 2021-03-30T16:56:34 | 2021-03-29T05:21:40 | Jupyter Notebook | UTF-8 | Python | false | false | 3,561 | py | from typing import Tuple, Dict, Optional
import numpy as np
import pandas as pd
TRADING_DAYS = 252
def to_signal(predicted_returns: np.ndarray,
signal_dict: Dict[Tuple[Optional[float], Optional[float]], float] = None
) -> np.ndarray:
"""
Generate a list of signals given a list o... | [
"45186715+WatweA@users.noreply.github.com"
] | 45186715+WatweA@users.noreply.github.com |
655844d63f2a4178988a51339f7f95e0c8e8ab96 | 8855e6bc0aa97dbd0ef31ea3dcc3c51d46690891 | /testing/dag_communication.py | 1366a664412d5bc4654e3fb84e3fea12f4932344 | [] | no_license | brian-kalinowski-sonos/airflow-poc | 9be76adb7bb380495cca78f890104205ced16371 | c3e9549cefc1946ea416a78fa6ce63a287ab6ad6 | refs/heads/master | 2021-04-24T05:17:27.201740 | 2020-02-25T18:26:48 | 2020-02-25T18:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | import unittest
from datetime import datetime
from airflow.models import DagBag,TaskInstance
class TestDagCommiunication(unittest.TestCase):
LOAD_SECOND_THRESHOLD = 2
def setUp(self):
self.dagbag = DagBag()
self.emails='airflow@example.com'
self.dag_id = 'hello_world_xcoms'
self... | [
"hardik.furia@sonos.com"
] | hardik.furia@sonos.com |
cc9b53516891ad24d377268578b0a33545678476 | cc13c060d7d3ed555d68073c770fc0aca3c67f82 | /project-euler/p120.py | 22d9eafb1fc0366c71a382683916e5589a729e70 | [] | no_license | Devang-25/acm-icpc | 8bd29cc90119a6269ccd61729d8e67a8b642b131 | a036bdbba60f8b363ee2d6cb9814e82e5536e02e | refs/heads/master | 2022-04-01T02:52:51.367994 | 2020-01-24T11:46:01 | 2020-01-24T11:46:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # a + 1
# a^2 + 2a + 1 = 2a + 1
# 2a^2 + 2a = 3a + 1
# ...
# a - 1
# a^2 - 2a + 1 = -2a + 1
# (-2a + 1) (a - 1) = 3a - 1
# (3a - 1)(a - 1) = -4a + 1
def solve(a):
result = 0
for n in range(1, 2 * a):
r = n * a + 1
if n % 2 == 0:
r -= n * a - 1
else:
r += n * a -... | [
"ftiasch0@gmail.com"
] | ftiasch0@gmail.com |
581e1c1d60197ef7fb2dec645612f33e5e7cfc99 | 930b54f510c25ba970bc17684006df28ee627c0f | /diversos/ExampleGenerateLog.py | 0e24bb5483fe04392d95bcb61a81ba1833184ba1 | [] | no_license | fgirardi/SourcePython | 33e3cfcaa328b7943855dabbe219730f338b1b7a | 43538d95c00a67e11154598641f71409f71a856b | refs/heads/master | 2020-04-10T03:58:15.331458 | 2019-08-24T22:04:30 | 2019-08-24T22:04:30 | 124,260,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import logging
import time
logging.basicConfig(level = logging.INFO, filename = time.strftime("my-%Y-%m-%d.log"))
logging.debug("debug")
logging.info("info")
logging.warning("warning")
logging.error("error")
logging.critical("critical")
| [
"girardi.fabiano@gmail.com"
] | girardi.fabiano@gmail.com |
664eb7abb9eb41389f8841ef285b03ec9b8d74a8 | 5aedbd845fb6341bc9737c534760b51e3baa868c | /rakutenMobileCheck.py | 28f155ba4fd1fecb9e523b04302f0cb23a99e763 | [] | no_license | suzusho515/- | 83ff9b3fb347f5ec17b330c5010919407360051a | 90272043d7611de1ed444e78672fd1bb83d5e41b | refs/heads/main | 2023-08-14T12:47:26.613656 | 2021-10-03T04:13:33 | 2021-10-03T04:13:33 | 412,972,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,115 | py | import json
from time import sleep
import datetime
import win32com.client
import threading
import eel
from common.driver import Driver
from common.logger import set_logger
DATE_FORMAT = '%Y-%m-%d-%H-%M-%S'
class Search:
"""
ๆฅฝๅคฉใขใใคใซใงๅจๅบซใ็ขบ่ชใใๅฆ็
"""
def __init__(self, rakuten_url, s... | [
"noreply@github.com"
] | suzusho515.noreply@github.com |
34ce5c921dd9f1b778bc6419d7f3772aa88e3545 | 1193a870dae7233f284b90993d0563a3c6b8bc9d | /number.py | bd9b8255f5e01d3e79ffc32be6dc63c01b656d51 | [] | no_license | sabin-nepal/python | 6892363ffb27d7deb762cdff1b5059b3d2ca41b9 | bfcd8953b30d3bd73d13d092b0b7bfcaf349ccda | refs/heads/master | 2020-04-19T14:50:31.610515 | 2019-02-18T07:20:13 | 2019-02-18T07:20:13 | 168,255,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #enter 10 number
i=0
list = []
while i<10:
data= int(input('Enter the 10 numbers to be added in list'))
list.append(data)
i+=1
print(list)
##display only evenn number from a list
#if length is unknown
#size = len(list)
#print(size)
j = 0
new_list =[]
while j <10:
if list[j]%2==0:
new_list.ap... | [
"sabinnepal2k17@gmail.com"
] | sabinnepal2k17@gmail.com |
d07346a54a738ce1a6f148d25d58bdae099d3070 | e569fed15f699fd5ebd8333671274cf527fabbfb | /Dokkan_Battle/__init__.py | cd1ddc37759d09afd6de2cbff78872b68a36016f | [] | no_license | sagarp-patel/dokkan_set | 09812c142408d720f96ba4d3a75f28605144071c | fc470d2e55d511952719fcc02adf2247db6c3bb4 | refs/heads/master | 2020-05-23T08:20:47.091055 | 2019-05-14T19:36:39 | 2019-05-14T19:36:39 | 186,684,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #This file will run the application
from DokkanGUI import Window
import sys
from PyQt5 import QtWidgets,QtGui
app = QtWidgets.QApplication(sys.argv)
a_window = Window()
sys.exit(app.exec_())
| [
"sagarp@coyote.csusb.edu"
] | sagarp@coyote.csusb.edu |
dcb41c3975358829574421abff12c1fd1b3ed047 | d128dc06cff15a60d9d431c03516766d19a72cdc | /101 Tasks/Task 081.py | 0b4e6320771ce66c2b6a53bc0c96c3c0ebbae30c | [] | no_license | NguyenVanDuc2022/Self-study | eb66f06a74dc4900a91ec73705236b2b55e673d2 | a42c5c251ef9339ba33d8944583b239a5f2cddfa | refs/heads/main | 2023-08-28T02:12:29.440153 | 2021-10-06T03:03:25 | 2021-10-06T03:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """
Question 081 - Level 03
Please write a program to generate all sentences where subject is in ["I", "You"] and the object is in ["Hockey",
"Football"].
Hints: Use list[index] notation to get a element from a list.
--- Nguyen Van Duc ---
"""
subjects = ["I", "You"]
verbs = ["Hockey", "Football"]
for i in range(len(su... | [
"nvduc.ds@hotmail.com"
] | nvduc.ds@hotmail.com |
be841d0c140f1313cdf1a56717dd41a56a9726d5 | 9e68b186856d0cab2513d2d3ca1b383847e5aa11 | /virtual/bin/django-admin.py | 364ad7a2af5440f2efb00decd6b9659835112c31 | [
"MIT"
] | permissive | Yvonne-Ouma/Neighborhood | 9af5a8a2e802ec1cb987b672a012ec9a63a9cb06 | 9dcd5b65c1deb7a72b022e670790d8242d71bebe | refs/heads/master | 2020-04-01T20:58:23.361371 | 2018-10-23T14:34:06 | 2018-10-23T14:34:06 | 153,629,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/home/yyvonne/Desktop/nhood/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"yvonneouma98@gmail.com"
] | yvonneouma98@gmail.com |
854af7420db7d0f4e86a40c4f14decf87adb1b66 | 283f5fb9b6e17b51ec087cb21d0f8a2ed1441f61 | /src/datasets/k_fold_split.py | 53f7abe49a511767412477f8b27bc5478ee62f74 | [] | no_license | javierleung/bias-detection | 4af1667a637a3b0d0778ef2f1b5bd727018bde00 | 4563c805a6c77a0c3706a3abf8ac84e676edd26a | refs/heads/master | 2022-04-12T17:14:06.975381 | 2020-04-01T13:19:43 | 2020-04-01T13:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | """
Utilitary functions for splitting a dataset into subsets.
"""
import torch
from torch.utils.data import Dataset, Subset
def k_fold_split(dataset, k):
"""Return k pairs of (train_subset, test_subset) representing k-fold splits"""
# TODO
# can be done by using sklearn, but only with already tensorized ... | [
"andrecruz97@gmail.com"
] | andrecruz97@gmail.com |
1dc0dea861966e90029e565da5df0e5edce1c8de | 73e8ce6e3b1b938359928f9c9e1620e1ded0f8de | /pomtracker/extensions.py | 3e7310b5c5d3094dbef354d7eef0b25ad26b90bc | [] | no_license | haydenhw/pomtracker-flask | 78db7de671453ac3a4a2043b0bbb7914f1d4e34e | bb460a09befaf4bd17129b5d0e1b4766d415869d | refs/heads/master | 2023-04-23T21:57:04.172481 | 2021-04-02T15:44:29 | 2021-04-02T15:44:29 | 284,805,426 | 0 | 0 | null | 2021-05-06T20:25:59 | 2020-08-03T20:55:37 | Python | UTF-8 | Python | false | false | 878 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class CrudMixin:
@classmethod
def find_by_id(cls, id_):
return cls.query.filter_by(id=id_).first()
@classmethod
def find_by_user_id(cls, user_id):
return cls.query.filter_by(user_id=user_id).all()
@classmethod
def cre... | [
"hayden321@gmail.com"
] | hayden321@gmail.com |
cd7fe7d9b83a05f42d321c44d90d1d46ece98287 | 3dfd14d5b19fffb361b55f55581547e1ee2ff3a3 | /adi/trash/browser/browser.py | 45f138f31c032ecfe60b78a7656656b9d3d5163e | [] | no_license | idgserpro/adi.trash | 5a13036bcfa0c495cc3571d8acc35ee883a3e7d4 | a9c6fb350b6cd4ce4e40646ac12598cc9dbf407f | refs/heads/master | 2021-01-01T18:51:38.472346 | 2017-07-26T18:17:09 | 2017-07-26T18:17:09 | 88,053,711 | 0 | 0 | null | 2017-04-12T13:16:18 | 2017-04-12T13:16:18 | null | UTF-8 | Python | false | false | 3,096 | py | from plone import api
from zope.i18nmessageid import MessageFactory
from Products.statusmessages.interfaces import IStatusMessage
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
_ = MessageFactory('plone')
class Trash(BrowserView):
def _... | [
"contact@ida-ebkes.eu"
] | contact@ida-ebkes.eu |
c39e8230c431368878239dd20fc0eb3c5513713d | 65184b509bd974d0475f7b51c50b7b6701adf57e | /packageDaisy/euler.py | 00a7a1dd501c508f48c4277d09b60813ce668caa | [] | no_license | Locki22/Assignment5 | a043ea23e6c4a881d3b14da432f6d17a6b1802d5 | 0e250d7e9df4a41b7e3735869a6794529a57d754 | refs/heads/master | 2020-06-17T05:16:19.555629 | 2019-07-26T21:06:28 | 2019-07-26T21:06:28 | 195,809,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 14:59:51 2019
@author: nickh
"""
def euler(initial, tendency, h=1):
"""Integrate forward in time using Euler's method of numerical integration.
initial + h*tendency
Arguments
---------
initial : float
The initial state.
... | [
"noreply@github.com"
] | Locki22.noreply@github.com |
9bdd0b54603f4bced8f4c82edb28d3dca4e88841 | 4a191e5aecd53c4cea28482a0179539eeb6cd74b | /blogproject/settings.py | a7f99cc15f936dff53808f9385c2c2992e57abbc | [] | no_license | jiangjingwei/blogproject | 631a2e8e2f72420cce45ddaf152174852376d831 | daf14e88092dc030a3ab0c295ee06fb6b2164372 | refs/heads/master | 2020-03-14T23:29:08.052253 | 2018-05-10T11:35:59 | 2018-05-10T11:35:59 | 131,846,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | """
Django settings for blogproject project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"270159429@qq.com"
] | 270159429@qq.com |
0a3714c4393419c790f0b83b5e274f57f3d9effd | c140ad38b1463024e289ceb0d5d6d44a45c91724 | /test/test_sed.py | de9b9a31a4d19a6bce8f59f8af9aff375038c1e6 | [
"Apache-2.0"
] | permissive | NVIDIA/hpc-container-maker | 3a333526decbd18352ef8d1fb3bec0033be221e8 | 60fd2a51c171258a6b3f93c2523101cb7018ba1b | refs/heads/master | 2023-08-21T13:32:27.132476 | 2023-06-12T21:12:40 | 2023-06-12T21:12:40 | 126,385,168 | 419 | 88 | Apache-2.0 | 2023-09-11T18:33:26 | 2018-03-22T19:26:41 | Python | UTF-8 | Python | false | false | 1,626 | py | # Copyright (c) 2018, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
97fa0e9ee730c87d48b090216f91c70f823bd477 | 682638ecc330000ac70d92db66552546aaa72d2f | /eg.py | b2100faeadce53e2dc2275b1fa9765c09b758f44 | [] | no_license | inirpa/fashion-mnist-keras | 5f2e095af2f7a939d22bdccfe513ee5e8d29a8f2 | b31b522e23d52c2b4838bcf7a7bd773c6a12e37e | refs/heads/master | 2022-01-06T20:17:30.405540 | 2019-02-18T04:12:27 | 2019-02-18T04:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
#########download and extract data set
# Load the fashion-mnist pre-shuffled train data and test data
# data_train = pd.read_csv('data/fashion_train.csv')
# data_test = pd.read_csv(... | [
"nirparai@yahoo.com"
] | nirparai@yahoo.com |
c5e0dd3c000acac9c2ceaabe7ab9ea965ce8179e | c07516e3cd8a0f94be5e77fc8ff83f4552c145d3 | /Day 5/password-generator.py | b31e56264fa320668901292a68c76fd7b610707e | [] | no_license | zaahidali/100-Days-of-Python | 3556c5db3a054be8b2a60cd780d59e1da1a23d6c | 1613c0e62430affeb4486d24f358e8bc120c5255 | refs/heads/master | 2023-07-13T05:24:04.593860 | 2021-08-24T17:13:16 | 2021-08-24T17:13:16 | 398,355,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | #Password Generator Project
import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers... | [
"zahid.4317@gmail.com"
] | zahid.4317@gmail.com |
26241c413c173bca992b68e16ce9ce180b940a87 | e1fcff197b13428fe2e17846d6eac60952b8dcc7 | /src/featurization/featurize.py | 805c901e15d64f7f53f62ad7f9ff4d6e7fca1f40 | [
"MIT"
] | permissive | bejerano-lab/X-CAP | 254ffec90478b21e32bc1e1c3511ed818ccd117f | 4ceeea89b00aa72024c30ae52fc369f360e26390 | refs/heads/main | 2023-04-07T11:43:59.532265 | 2022-06-22T23:52:39 | 2022-06-22T23:52:39 | 499,202,286 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,313 | py | import argparse
import os
import sys
from tqdm import tqdm
import conservation
import gene_essentiality
import locations
import metadata
import omim
import read_through
import reinitiation
import rvis
import splicing
import transcript
import transcript_class
import utils
def init(reference_data, annovar_dir):
gen... | [
"rrastogi@stanford.edu"
] | rrastogi@stanford.edu |
e1801dc6a75d9de1f8b1bfd8f299d1984ab4f812 | 92cdb723909e6c096780ea7251349512393632f0 | /deeppavlov/agents/ner/dictionary.py | 71c1f954f24596fc6932e5f67515c9e2ec65fcb3 | [
"Apache-2.0"
] | permissive | World-Speak/deeppavlov | f89a6fb59eb7e0285059a428a0cdbc0063793746 | 3bc3c01e96368adf4dda7e7198d03a84ef8c0812 | refs/heads/master | 2021-07-20T15:07:29.857887 | 2017-10-30T16:24:52 | 2017-10-30T16:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | import copy
import os
import pickle
from collections import defaultdict
from parlai.core.dict import DictionaryAgent
from parlai.core.params import class2str
def get_char_dict():
base_characters = u'\"#$%&\'()+,-./0123456789:;<>?ABCDEFGHI' \
u'JKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstu' \
... | [
"arkhipov@yahoo.com"
] | arkhipov@yahoo.com |
38659ed0474ddb03208bf582aa89246ec5811daa | 7f7c8b33462c07d73c9426bc54640f6657a06693 | /scripts/common.py | a77bddfddfd29c0be5726f1fa26381c8f27bde0b | [
"MIT"
] | permissive | zenithght/gengine | 6ae148dd67718b92f54d3821c681dd171f6710bf | d4ce904883c61023dade814cec1182a9d61fc8dd | refs/heads/master | 2020-06-30T23:31:58.729647 | 2016-11-18T12:37:29 | 2016-11-18T12:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py | #!/usr/bin/python3
import platform
import os
import sys
import argparse
import multiprocessing
import os.path
debugMode = False
targetDir = None
rootPath = None
buildPath = None
binaryPath = None
itMustRun = False
html5Mode = False
buildUrho3D = False
targetPlatform = "undefined"
targetMode = "undefined"
def printn(... | [
"gauthier.billot@fishingcactus.com"
] | gauthier.billot@fishingcactus.com |
9002cd217cd0450f581da569094cf0043a5f2e4e | 9bd08d744f07d9cea9d5a95ecf3e9aede6c0b7f2 | /Web/manage.py | 9d1c895b0d94e16af1a9dc11a45ff1e2cde752e1 | [
"MIT"
] | permissive | tunglambk/image_style_transfer | f05d28dfd91e83efc3263b84ef0a9395329940c1 | 9b5e01f12d5363cf61a7b7538a5daa54600f8eda | refs/heads/master | 2022-12-26T01:19:59.685210 | 2020-10-04T10:55:33 | 2020-10-04T10:55:33 | 297,641,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python3
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Web.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"lamphambatung92@gmail.com"
] | lamphambatung92@gmail.com |
795985da57f6d924af7ddb13359a42bc964faca8 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/aws/ImagebuilderImageRecipeEBSEncrypted.py | 754146fc760da36332b301b41159066dcef14f23 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 1,199 | py | from typing import Dict, List, Any
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
from checkov.common.models.enums import CheckCategories, CheckResult
class ImagebuilderImageRecipeEBSEncrypted(BaseResourceCheck):
def __init__(self):
name = "Ensure that Image Recipe E... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
8d9bb6926f1bd85ef8da53778229913d6ac4bc86 | a8160d8e37a227fd4d8b5fed6a1c4c1eef980612 | /dsnalgo/sort_pile_of_cards.py | cd0bcb2f01f2b3b82b47bf0086785a3c148482e7 | [] | no_license | gauravtatke/codetinkering | c5d5e1259592b681573c864bc9aabfbfd5d41cbd | fe3c39e0c1cb689dad5f5305a890f21a3edb2260 | refs/heads/master | 2022-09-29T02:39:50.601689 | 2022-09-21T16:02:51 | 2022-09-21T16:02:51 | 93,332,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python3
# We have N cards with each card numbered from 1 to N. All cards are randomly shuffled. We are allowed only operation moveCard(n) which moves the card with value n to the top of the pile. You are required to find out the minimum number of moveCard() operations required to sort the cards in incre... | [
"gauravtatke23@gmail.com"
] | gauravtatke23@gmail.com |
2f8969c2405bef1307bb54cc0d04bd39b9cc79cd | 42a2226d9d2d6c6c8e43e07f08bef14ec83ebba6 | /noise_removal/fbs/ebl.py | c2ea756049ff11cb7bc570cb92f797996a25b893 | [] | no_license | sdimitro/minions | 0037adf7f49357562bd70d3c959b83189d338b0f | aab490e5eb9a8d248f880cb87b4c3d76e1179b8c | refs/heads/master | 2020-12-19T22:56:44.404452 | 2017-02-11T16:42:14 | 2017-02-11T16:42:14 | 30,044,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py |
from bs4 import BeautifulSoup
import sys
blacklist = [
"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1",
"place:type=6&sort=14&maxResults=10",
"http://www.ubuntu.com/",
"http://wiki.ubuntu.com/",
"https://answers.launchpad.ne... | [
"serapheimd@gmail.com"
] | serapheimd@gmail.com |
bf0f163132ee363249ab666a58a0edde8ea1a057 | a82cacae7081f4a04fabdf87cb2833d4ce8bc6db | /crm/forms.py | bca14f2bd27002ded460bf7ea07585e02a7218ca | [] | no_license | sadhikari89/mfscrm | 55909712f808344611d8ed3b45b3cc17d88125e9 | ea1275f8a97542a07e0ffc08d5b597d7e95d2490 | refs/heads/master | 2020-03-31T06:30:01.629465 | 2018-10-08T05:11:38 | 2018-10-08T05:11:38 | 151,985,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django import forms
from .models import Customer, Service, Product
class CustomerForm(forms.ModelForm):
class Meta:
model = Customer
fields = ('cust_name', 'organization','role', 'bldgroom', 'state',
'account_number', 'address', 'city', 'zipcode', 'email')
class ServiceForm(... | [
"surajadhikari@unomaha.edu"
] | surajadhikari@unomaha.edu |
6ffb9e979f6730bd14fd463eb7ba98fc4547a482 | db739516bba702ebe230016e090d6b6f00caf83a | /lib/annotate.py | af8b132c417571b998feb898cfd6358bf821e123 | [
"MIT"
] | permissive | adamewing/discord-retro | 2cb9a37adfd0604de2cc7a9c353886ea9d8d2137 | 1afc09d60ffc138c0890bd02d707fe5d408a63d8 | refs/heads/master | 2021-01-10T21:08:07.972791 | 2013-03-11T23:16:04 | 2013-03-11T23:16:04 | 4,288,385 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | #!/bin/env python
"""
Copyright (C) 2012 by Adam Ewing (adam.ewing@gmail.com)
Released under the MIT license, see LICENSE.txt
"""
import pysam, sys, re
def uniqann(annList):
uniq = {}
for ann in annList:
uniq[ann] = 1
return uniq.keys()
def checkfile(fname):
try:
open(fname)
e... | [
"adam.ewing@gmail.com"
] | adam.ewing@gmail.com |
7988673d625c38b116306c3d3c27e2d0d379bbe3 | 8bb0536528c72829fe117dd2f8adf264f4c8b05e | /v2/theme/browser/v2_generic_view.py | 49421e022e714390d10282b20e243a371ad3f29d | [] | no_license | v2lab/v2.theme | b688b14121dfdca6ead8baf2b7f59e247dfa52dc | 1fe5dd22fd9a40804cf2f386c70afed7a6d3dff4 | refs/heads/master | 2021-08-20T05:04:03.694831 | 2021-07-14T12:09:45 | 2021-07-14T12:09:45 | 16,309,357 | 0 | 0 | null | 2014-07-15T04:59:52 | 2014-01-28T10:59:17 | Python | UTF-8 | Python | false | false | 5,639 | py | import time
from Acquisition import aq_inner
from zope.component import getUtility
from Products.Five import BrowserView
from Products.CMFPlone.interfaces import IPloneSiteRoot
from collective.contentleadimage.config import IMAGE_FIELD_NAME
from collective.contentleadimage.leadimageprefs import ILeadImagePrefsForm
from... | [
"sachoco@gmail.com"
] | sachoco@gmail.com |
25e821a9bec8b64ae9e066769b7eebc81a5708ff | 02a4c0b5f4451441d01ef5db012a2362475f70c7 | /SSL_pretask/src/layers.py | 0add36a15a998549cdb28a6cce42609fa33d7470 | [] | no_license | YasminHeimann/Anomaly-Detection-on-Graphs | bb2045b279c232a8aa52124e68124d225f4b7c6d | db3ba31642b1163e99d6f2cefd1c6c71f3d476fd | refs/heads/master | 2023-08-17T08:37:49.481721 | 2021-09-22T23:44:38 | 2021-09-22T23:44:38 | 387,911,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,297 | py | import math
import torch
from torch.nn.parameter import Parameter
from torch.nn.modules.module import Module
from torch import nn
import torch.nn.functional as F
class GraphConvolutionBS(Module):
"""
GCN Layer with BN, Self-loop and Res connection.
"""
def __init__(self, in_features, out_features,... | [
"yasmin.heimann@mail.huji.ac.il"
] | yasmin.heimann@mail.huji.ac.il |
94e2a43014b05f292486e68815f57b103be12c22 | f161fa804dc78cb87c160368b24a7ff34bfcd20d | /clubCalendar/clubCalendar/settings.py | c7f75f5230485e48dc77e444618aa74174e0450d | [
"MIT"
] | permissive | AkshilVT/clubCalendar | 42bf47afce2b4fa2d5f50adf5f4a1cad5a74c211 | 3a9d51d3b3586e22d2f16f8b8797508d86300b0a | refs/heads/main | 2023-03-31T11:23:44.556582 | 2021-03-28T08:24:49 | 2021-03-28T08:24:49 | 351,843,313 | 1 | 0 | MIT | 2021-03-26T16:21:54 | 2021-03-26T16:21:54 | null | UTF-8 | Python | false | false | 3,267 | py | """
Django settings for clubCalendar project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"72624080+kavania2002@users.noreply.github.com"
] | 72624080+kavania2002@users.noreply.github.com |
da0e360ef04be5b4a9aef897331aa98e4b9ce97c | 4d93c6999f1c938f12b7ff6fb779557e1a77479f | /chapter11/names.py | 37cab2bbcddd9ca3a3f64613ed94eea1aa8473fc | [] | no_license | MadhuV99/pywork | 5efd1aac74f2c88413bb90bbc9e0d0c250057e7c | 81ea17d8bed89ba57cdd35d2ceb0560f68a21cc8 | refs/heads/main | 2023-01-20T06:50:03.004849 | 2020-11-29T16:01:06 | 2020-11-29T16:01:06 | 312,609,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # names.py
from name_function import get_formatted_name
print("Enter 'q' at any time to quit.")
while True:
first = input("\nPlease give me a first name: ")
if first.strip().lower() == 'q':
break
last = input("Please give me a last name: ")
if last.strip().lower() == 'q':
break
for... | [
"madhuvasudevan@yahoo.com"
] | madhuvasudevan@yahoo.com |
84aadccad73e8e097a909f5cd923cc4bfa9a9772 | 9e54fca9aaa7f96d4084606465ebe20f4789d229 | /export.py | f8d94e123cc8c04026be91dbe45a5d97e35b3adc | [
"Apache-2.0"
] | permissive | AliceWn/git-rv | c05dbaba52097c5c30d9f55ee79ea17162e66de7 | 918a4adae67f43fe4cafeafbc086f089f60e31a6 | refs/heads/master | 2020-05-15T19:42:50.603260 | 2015-09-23T20:48:13 | 2015-09-23T20:48:13 | 182,462,578 | 0 | 0 | Apache-2.0 | 2019-04-20T23:06:45 | 2019-04-20T23:06:45 | null | UTF-8 | Python | false | false | 16,180 | py | # Copyright 2013 Google 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 writing, soft... | [
"dhermes@google.com"
] | dhermes@google.com |
9b6fafae6e237ae5ae6bc66af26f63455b3fe79b | 080b9a32a5665e5fdf2be3ff45aee2c2c0bdcaf6 | /topicApp/migrations/0006_auto_20191007_2031.py | e4e1f0a73f64a090857a6539af325ad70495c85f | [] | no_license | brittmagee/EidsonBikeCo-SEI23-Project4 | 10d4e7135ed323be3fe3ab7c6b23c7b0d1d728ba | 193ff51daa3d73fe0612519aaea5fbb4f9240e45 | refs/heads/master | 2021-06-20T23:49:28.602813 | 2020-01-04T03:57:39 | 2020-01-04T03:57:39 | 212,595,585 | 0 | 1 | null | 2021-06-10T22:02:34 | 2019-10-03T14:04:40 | JavaScript | UTF-8 | Python | false | false | 465 | py | # Generated by Django 2.1.11 on 2019-10-07 20:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topicApp', '0005_auto_20191007_2026'),
]
operations = [
migrations.AlterField(
model_name='bike',
name='color',
... | [
"brittgmagee@gmail.com"
] | brittgmagee@gmail.com |
7e087ad12814d8c1853c447a882c149bcee80703 | 34fae60a658df5877e5fe0574a93fec2ebffb27f | /trolls/urls.py | 0ae5254ac392d43d3a67ebcaa95aec3d3bcddb6b | [] | no_license | MoniCore/react_frontend_django_backend | 0cc0432c6a7aaa854d6ed837d323dc4908706481 | ad69245db33e6f0727507667fe171bc10a7a8852 | refs/heads/master | 2023-06-24T12:39:50.839767 | 2021-07-24T17:13:59 | 2021-07-24T17:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from django.urls import path
from django.urls import re_path
from django.contrib.auth import views as auth_views
from . import views
app_name = 'trolls'
urlpatterns = [
path('dashboard',view=views.trollsdashboard, name='trollsdashboard'),
] | [
"pheonix20210101@gmail.com"
] | pheonix20210101@gmail.com |
dfff7c198e095b1ee257e50bf1e6ce303894264d | 4ba5d35bb6513dd0f45ce515cd5d5c8bdf1a9627 | /pic.py | 6b42fe492eb5f8ae04d1019a7b8c6e70def95e27 | [] | no_license | alanwong2357/CS147-Mask-Detection-System | 02cfd7bafd12afa2d732be3d3364c636d5016f65 | 98a0c958f06ea134ab0bdbc78075ef48635e722c | refs/heads/master | 2023-05-15T06:37:35.841235 | 2021-06-04T09:18:19 | 2021-06-04T09:18:19 | 373,779,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import cv2
videoCaptureObject = cv2.VideoCapture(0)
while(True):
ret,frame = videoCaptureObject.read()
cv2.imshow('Capturing Video',frame)
if(cv2.waitKey(1) & 0xFF == ord('y')):
cv2.imwrite('pic.png', frame)
cv2.destroyAllWindows()
break
elif(cv2.waitKey(1) & 0xFF == ord('q')):
videoCaptureObject.... | [
"alanwong2357@gmail.com"
] | alanwong2357@gmail.com |
df24f45384238ba36f523f3f1d406f6de20dd805 | cf999cbba3a57065fcb138f0a03b3492c596e993 | /correlation.py | 6feecfe40984b9d5d8c5e1de719c107a2614e137 | [] | no_license | Michal-Stempkowski/NotSoAwesomeSRNotAtAll | 79c368fef9250429b248982718318bad45d878a5 | 16930077c5012f1bc83ea2709a54b0e2420a4b07 | refs/heads/master | 2021-01-01T16:59:49.641981 | 2015-01-28T15:56:12 | 2015-01-28T15:56:12 | 28,886,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,306 | py | from functools import reduce
import os
from audiolazy.lazy_filters import z
from audiolazy.lazy_lpc import lpc
from audiolazy.lazy_math import dB20
from audiolazy.lazy_synth import line
from numpy.fft import rfft
import matplotlib.pyplot as plot
import math
from numpy.ma import abs
class Point(object):
def __ini... | [
"michulix@gmail.com"
] | michulix@gmail.com |
b7330826eae31b9d839278ea4340891bf58b4dd4 | 7abd326c73cbbf5bacb5c343177be1f35689f175 | /venv/bin/python-config | 19afd2d11d9faa9cdab0634bbbb72134a5d3561c | [] | no_license | vipul-rao/company-to-domain | 763c476639f1fb39e8dff4bc3111ee7a96ac22ae | 7f9b8a3ad6d213abd60d69f7900e2f03952e3872 | refs/heads/master | 2020-03-09T10:14:18.358904 | 2018-04-10T03:52:03 | 2018-04-10T03:52:03 | 128,730,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/home/vipul/PycharmProjects/domain/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"vipulrao355@gmail.com"
] | vipulrao355@gmail.com | |
d163b55d4ea29236a3c4039c83ab916de00909ce | 2f37b47c9676d316d639b210a11f22a15ef62929 | /IOT/urls.py | a35d862be019b26c7350382ce430b03b96199e41 | [] | no_license | SumanthKumarAlimi/IOTCLUB | 241cca39d2ddb0dcf5e97e70c8196805be371548 | 7af83b00597fd85535fba9527dc7e4f60ebda240 | refs/heads/master | 2020-06-11T02:44:10.034539 | 2019-06-26T04:26:35 | 2019-06-26T04:26:35 | 186,881,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from django.conf.urls import url
from . import views
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
url(r'^$', views.homepage, name='index'),
url(r'^workshops/$', views.workshops, name='workshops'),
url(r'^course/$', views.course, name='course'),
url(r'^achievement... | [
"director@digi-labs.co.in"
] | director@digi-labs.co.in |
67d83f8708af74d0a824b6d18678142207d2bfcf | f08073f559ba9f415e6f2bf029fcb44194043d51 | /verifiable_mpc/trinocchio/wip_keygen_geppetri.py | 811ba5ac8f9c70c691996666a5c912f29fd6b644 | [
"MIT"
] | permissive | marcusmjh/verifiable_mpc | ac4c90456a886883cfe61130ef0b3a4d24aa0065 | 8f9b734c28e98057cb3928870cb504ab045c3a83 | refs/heads/main | 2023-06-20T08:58:08.667413 | 2021-07-14T08:23:41 | 2021-07-14T08:23:41 | 385,866,654 | 0 | 0 | MIT | 2021-07-14T08:23:14 | 2021-07-14T08:23:13 | null | UTF-8 | Python | false | false | 2,729 | py | # WORK-IN-PROGRESS
""" Implementation of Geppetri key gen steps with BN256 curves
Using pairings.py from https://github.com/randombit/pairings.py
Alternative for bn128 by Ethereum: https://github.com/ethereum/py_ecc/blob/master/py_ecc/bn128/bn128_curve.py
"""
import os, sys
project_root = sys.path.append... | [
"a.j.m.segers@tue.nl"
] | a.j.m.segers@tue.nl |
fb627818bd609c0bff8ac51d2e910b7ebb29b86f | e463fa2008ebceb3aae88eed000303abc060d471 | /student_admit/studentnet.py | 5e3b7023353588621adb8cd5646c57db9ef9e39e | [] | no_license | satyam15mishra/Pytorch_NNs | 437c8d069a45b0cac14249a6bc31778c8cd8f18f | 636500476706e7a4b0047a79800a1e6a792402fb | refs/heads/master | 2020-08-12T10:54:15.507633 | 2019-11-12T05:14:04 | 2019-11-12T05:14:04 | 214,754,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import torch
from torch import nn
data = pd.read_csv('studentdata.csv')
X = data.iloc[:,[1,2,3]]
y = data.iloc[:, 0]
def plot_data(data):
X_plot = np.array(data[['gre', 'gpa']])
y_plot = np.array(data['admit'])
admitted = X_plot[np.argwhere(... | [
"noreply@github.com"
] | satyam15mishra.noreply@github.com |
e14a0b8c28734a04f58c05b7c832436033fda1be | cb86daa80f9de85f632fd91de04006d32c0102a0 | /process_tweets/cross_verify_tweets.py | 441f5c5ff9eef1dd16804b7f7daec357cfa86b88 | [] | no_license | ericshape/CREDBANK-data | a537fd4c2b2046daa5dca2e826af6e7cc1ab09f4 | 2d37e9fca16f3c0fae338135e6048da46dd0cc13 | refs/heads/master | 2021-01-17T11:04:56.271620 | 2016-04-09T23:36:45 | 2016-04-09T23:36:45 | 55,520,040 | 0 | 0 | null | 2016-04-05T15:34:01 | 2016-04-05T15:34:01 | null | UTF-8 | Python | false | false | 2,998 | py | # created by Ji Wang ericshape @ 4/5/16 11:47 AM
import numpy as np
import json
import sys
import re
idRegEx = re.compile(r".*ID=")
endElRegEx = re.compile(r"'.*")
ratingsFile = "cred_event_TurkRatings.data"
tweetsFile = "cred_event_SearchTweets.data"
merge_outputFile = "merge_timeline.output"
inputFile = "cred_eve... | [
"wangjiprc@gmail.com"
] | wangjiprc@gmail.com |
ebf76df12eb5235a73cdd6f5d758ef04022f8eeb | f889a1de574dc55425677bcbea6410bf360cddd6 | /labels/serializers.py | 74182afaf2891bdffd2e90bdb064a3c2a8072f99 | [] | no_license | Hagbuck/MyBlackSmith | 816b3b711db021ee702a19b3240bb30c48271bc6 | 671088bee46d2fa705bfd9b37f059610bcdd2252 | refs/heads/main | 2023-01-24T12:23:18.255371 | 2020-12-02T16:46:19 | 2020-12-02T16:46:19 | 313,397,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from rest_framework import serializers
from .models import Label
from accounts.serializers import UserSerializer
from projects.serializers import ProjectSerializer
class LabelSerializer(serializers.HyperlinkedModelSerializer):
user = UserSerializer()
project = ProjectSerializer()
class Meta:
mod... | [
"anthony.vuillemin@outlook.fr"
] | anthony.vuillemin@outlook.fr |
4d95c1bb8a988d7e5e3af479f81f0a22535e8b70 | 8bfbc75043aa155939d3fa6b0029c21720d2db22 | /test.py | 7ede08cae896b2b4051bd6faf896be0d5f1660a2 | [] | no_license | miguel-mzbi/computer-vision | a18f1122284ff1b4dacef0b3dca2c30267fada24 | 15659208d3cc63f6d1ba4c1e8f8eb04162124d1a | refs/heads/master | 2020-09-03T18:06:56.979020 | 2019-11-27T03:16:04 | 2019-11-27T03:16:04 | 219,528,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
def getMask(hsvImage):
lower = (0,10,50)
upper = (180,40,100)
mask = cv2.inRange(hsvImage, lower, upper)
return mask
def applyMask(mask, hsvImage):
return cv2.bitwise_and(hsvImage, hsvImage, mask=mask)
def processFrame(cap):
... | [
"miguel.mzbi@gmail.com"
] | miguel.mzbi@gmail.com |
66e2e93e2395070c67f8869a11803e3cfb16d2bc | a67980fc4b398bb8a9cc3250ba4efaf461cf4f87 | /tiandiPythonClient/__init__.py | afa480458a033c8a9af3ff3dd7178b2b6f268329 | [] | no_license | RobbieXie/NetflixConductorPythonClient | b4651e50916ecee898a97f4a2bc83d97cf66874c | 7347a6a7b4f87ff0812f48ac8e1441b72db52882 | refs/heads/master | 2021-03-24T10:32:37.679252 | 2018-01-20T12:44:02 | 2018-01-20T12:44:02 | 116,361,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | __version__ = '1.0.0'
VERSION = tuple(map(int, __version__.split('.')))
__all__ = ['workflow'] | [
"619835217@qq.com"
] | 619835217@qq.com |
9219214be204f69c7705e81f0d1058af1e0041f4 | 1171af9cc0c1b524959bf6a3018eddee48034318 | /config.py | 7ffb7a2c45bb2b381f2b4a6211dcca004100c8b5 | [] | no_license | fengo4142/robotframework-email | 44e2c467b7f6f524a71e23d2c46def465be34437 | ce587a54dea0684494638225cb803a85041c25a7 | refs/heads/master | 2020-10-02T01:53:23.741721 | 2019-05-23T11:10:11 | 2019-05-23T11:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py |
# condition to send email if 'True' email will be sent
SEND_EMAIL = True
# email smtp (smpt of yahoo, gmail, msn, outlook etc.,)
SMPT = "smtp.gmail.com:587"
# email subject
SUBJECT = "MyProject Automation Execution Status"
# credentials
FROM = "XXXXX@gmail.com"
PASSWORD = "XXXXX"
# receivers
TO = "XXXXX@gmail.com"... | [
"shiva.adirala@zenq.com"
] | shiva.adirala@zenq.com |
68f4bea959f9353ceedb880f2548198b8b3a7073 | 60e821452f5c7e517be23dc4a513881d2d3d953d | /tempCodeRunnerFile.py | d5f7b8b3189aed3f7457b23b64cebec8304aa18b | [] | no_license | Akj1710/Desktop-Assistant | 451672625f43c8a2f35373675b8cf3aa4630f530 | bf6bd4068d81559258b7087f4c63d6f4b914e598 | refs/heads/master | 2022-12-30T17:30:40.929377 | 2020-10-22T13:56:39 | 2020-10-22T13:56:39 | 306,356,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py |
def takeCommand():
#it takes microphone input from the user and converts into string
r=sr.Recognizer()
with sr.Microphone() as source: | [
"camtam1710@gmail.com"
] | camtam1710@gmail.com |
81f0eb4b24ff712328b49bbcd84509d2ab1cc296 | a3a89b54af31deb583ea039657cc6a8c79a91bff | /PG/pytorch_util.py | a4a6b2ac237a5d31813f1e76c1e461b4281c8392 | [] | no_license | bunengzhucefeng/rl_algorithm_reimplementation | 1c4348a4914f090943e04aa8b5b8a2b6a105f35a | 5ef53154ea68de9f3cb84e829944646476148f9b | refs/heads/main | 2023-06-08T18:20:19.827511 | 2021-07-02T12:28:24 | 2021-07-02T12:28:24 | 382,340,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | from typing import Union
import torch
from torch import nn
Activation = Union[str, nn.Module]
_str_to_activation = {
'relu': nn.ReLU(),
'tanh': nn.Tanh(),
'leaky_relu': nn.LeakyReLU(),
'sigmoid': nn.Sigmoid(),
'selu': nn.SELU(),
'softplus': nn.Softplus(),
'identity': nn.Identity(),
}
d... | [
"1801213983@pku.edu.cn"
] | 1801213983@pku.edu.cn |
16c2b16ecf6b6fd0fb698e196b6d01c2bda07d10 | d78411d389ce2a02b72b3ae8793d8b04a0eb76c0 | /src/utils/badges.py | 6d7a404db49f79c2a93e72c12f9d43bc286b78e3 | [] | no_license | codeday/discord-challenge | 338d483cf94cb7ae08606e07e9b58b41b3e28c81 | a17f2e895b4c7c0c33b4a8090a57b2ef502c4892 | refs/heads/master | 2023-02-25T19:38:04.918062 | 2021-02-03T00:24:44 | 2021-02-03T00:24:44 | 328,318,328 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import json
from jwt import encode
import time
import requests
import logging
from os import getenv
def gql_token():
secret = getenv("GQL_ACCOUNT_SECRET")
message = {
"scopes": "write:users",
"exp": int(time.time()) + (60*60*24)
}
return encode(message, secret, algorithm='HS256').decod... | [
"nikhil@gargmail.com"
] | nikhil@gargmail.com |
be4ff8e37c554502f027d56bef88710044acdfea | 6aa85c51e1a0bfaa2733f5ec8babc7297e209707 | /rs2_ros_aligned_depth.py | 85ad472d0571b530af29191b406e10abf122f1fd | [] | no_license | KingBigHandsome/IntelRealSenseD435 | 02b1470c83606dd00210aadbd99b4e3e7852e3ca | 666d12c960b90cc973d76fbf6e784d525f8bb075 | refs/heads/master | 2020-04-08T18:02:05.093933 | 2018-12-07T05:46:38 | 2018-12-07T05:46:38 | 159,591,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | #!/usr/bin/env python
from __future__ import print_function
import roslib
roslib.load_manifest('realsense2_camera')
import sys
import rospy
import cv2
import numpy as np
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
class Image_converter:
def __in... | [
"noreply@github.com"
] | KingBigHandsome.noreply@github.com |
eb621fa706f1fb5e6a98134f911aa9907b0257da | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__numpy_1_15_4/numpy/matrixlib/tests/__init__.py | aeeeb27fd221b666a211ced69a956b7500092e85 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__numpy_1_15_4/numpy/matrixlib/tests/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
3063a211d9d9d17cd1f5aede9bd9170c6237a64a | b36e5a6d1a450cbbd9545b2aa85eee5245515d6b | /myslq.py | 8386670d125a055b4d84894ece014bc5d1e0680d | [] | no_license | ikerseco/mysqlpy | 54d333fe41f41cbc3057cac2a8e788cda2224967 | 4482fdb780e6e40f8c2ece7bbb07152aeeb0c850 | refs/heads/master | 2021-03-30T21:58:07.358819 | 2018-08-17T15:05:24 | 2018-08-17T15:05:24 | 124,822,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,957 | py | import pymysql.cursors
import json
from m_arr.array_explo import explot
from m_arr.array_explo import implot
from inser_t.insert import read
#from inser_t.insert
"""
print("Zure datubasera konektatzen:\n")
dbi = input("\t*jarri zure databasearen izena:")
useri = input("\t*user:")
passwordi = input("\t*password:")
host... | [
"33206796+ikerseco@users.noreply.github.com"
] | 33206796+ikerseco@users.noreply.github.com |
f30c88dfd616203247b156a17bed169e52e39d60 | 36bc6ceb273d4703a5cc92a59d8b82fbccdb5deb | /bhabana/tools/generate_vocabulary.py | 35d245996af8815d7b4d61f02fe1d91f833ddff3 | [
"Apache-2.0"
] | permissive | dashayushman/bhabana | a18345dcedde8712777b10a5edb42883490fb4d5 | 7438505e20be53a4c524324abf9cf8985d0fc684 | refs/heads/develop | 2022-10-30T22:28:56.103462 | 2018-02-09T10:40:33 | 2018-02-09T10:40:33 | 106,683,432 | 0 | 1 | Apache-2.0 | 2022-10-06T22:44:07 | 2017-10-12T11:23:08 | Python | UTF-8 | Python | false | false | 4,977 | py | # Copied from
# https://github.com/google/seq2seq/blob/master/bin/tools/generate_vocab.py
#
# Copyright 2017 Google 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.ap... | [
"dash.ayushman.99@gmail.com"
] | dash.ayushman.99@gmail.com |
da992c15b4e0a9fd1234d5e3a0f1a2116b27e0a9 | cfef60d72091264f6bccaf218d4ec8f301a7b7ad | /fabric_helpers/machines/ubuntu.py | 96a52ee465b554be0c0b3af1a234fede00f59cbc | [] | no_license | punteney/fabric_helpers | 9a6fbeceaa7c24257dcb1c13cc0244194a07085e | 291af17b3cbc25b71d7887a6f09ba8caba8d63de | refs/heads/master | 2021-01-19T22:29:32.823515 | 2010-11-15T18:03:40 | 2010-11-15T18:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | from fabric import state
from fabric.api import run, sudo, cd, local
from fabric.contrib.files import append
from fabric_helpers.machines import Machine
class UbuntuServer(Machine):
def __init__(self,
public_address,
env_name,
open_ports=[],
private_address=None... | [
"punteney@gmail.com"
] | punteney@gmail.com |
f0e30cd721e3980995d0f449df77418b9cfddd8a | 30e1dc84fe8c54d26ef4a1aff000a83af6f612be | /deps/src/libxml2-2.9.1/python/tests/reader5.py | 220a3e5bbafc048a0ea35a0277fe47bbaca38f99 | [
"MIT",
"BSD-3-Clause"
] | permissive | Sitispeaks/turicreate | 0bda7c21ee97f5ae7dc09502f6a72abcb729536d | d42280b16cb466a608e7e723d8edfbe5977253b6 | refs/heads/main | 2023-05-19T17:55:21.938724 | 2021-06-14T17:53:17 | 2021-06-14T17:53:17 | 385,034,849 | 1 | 0 | BSD-3-Clause | 2021-07-11T19:23:21 | 2021-07-11T19:23:20 | null | UTF-8 | Python | false | false | 1,246 | py | #!/usr/bin/python -u
#
# this tests the Expand() API of the xmlTextReader interface
# this extract the Dragon bibliography entries from the XML specification
#
import libxml2
import sys
# Memory debug specific
libxml2.debugMemory(1)
expect="""<bibl id="Aho" key="Aho/Ullman">Aho, Alfred V.,
Ravi Sethi, and Jeffrey D. ... | [
"znation@apple.com"
] | znation@apple.com |
ab93a5d3ea18d2855c94ec70eb505259cf21f234 | f703a31c8d215d3d40b4e7520b02cc96a1190076 | /prob_calculator.py | 266b7d3d90c01d62e58e16963b95d5e4369f5498 | [] | no_license | alfredojry/probability-calculator | 4be73105cf0acb34ebadc4391a7e15d0b885e86f | 93c440cb5fb776e894c9429d819de41a2029fdc5 | refs/heads/master | 2023-07-19T02:15:02.931123 | 2021-09-13T01:05:07 | 2021-09-13T01:05:07 | 405,791,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | import copy
import random
# Consider using the modules imported above.
class Hat(object):
def __init__(self, **kwargs):
self.contents = []
for k, v in kwargs.items():
self.contents += [k] * v
def draw(self, n):
if n > len(self.contents):
return self.contents
... | [
"43357527+alfredojry@users.noreply.github.com"
] | 43357527+alfredojry@users.noreply.github.com |
8619b701ca3e625d7e82d606e87038282feb7484 | 9987ac2bcb8e2734a34a8ebe8b81de6ff66050ee | /covidsample/covidsample/urls.py | cca3b3faa5dc5df92cc3d02a8fd41158784f402f | [] | no_license | ShivamDhoundiyal/covid_project_sample | a3037b075c9e794e50068ffbf6724057c1bb359b | d78fc4c06487b8ed7c064bcad1aded66e058eeda | refs/heads/master | 2023-05-06T22:11:01.112088 | 2021-05-29T17:37:08 | 2021-05-29T17:37:08 | 372,034,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """covidsample URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"noreply@github.com"
] | ShivamDhoundiyal.noreply@github.com |
21bc273b168a4292b9ba2c6ea2d0ece7a0b03517 | 018e9acbf1a7e8dca939095082cd2cb490a08029 | /recommender_system_matrix_factorization/pyspark_MF.py | 0f20746e86d63838f31ff247e74a3cd0d0b0ea05 | [] | no_license | C-Dongbo/machine_learning | 9843e47a6164daa9032b9b89af318b26ffe7d286 | a0a82e0b645a449935575c7c6bf462913ae279fb | refs/heads/master | 2021-03-01T14:29:22.946163 | 2020-09-27T23:23:51 | 2020-09-27T23:23:51 | 245,792,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | import numpy as np
import pandas as pd
import pyspark
from pyspark import SparkContext
from pyspark.sql import SQLContext
from pyspark.mllib.recommendation import ALS, MatrixFactorizationModel, Rating
sc = SparkContext(master="local", appName="first app")
df_rdd = sc.textFile('./data/ml-1m/ratings.dat').map(lambda x... | [
"chlehdrms3@gmail.com"
] | chlehdrms3@gmail.com |
19118ac2682ba0a41cc6ecf02fba8d63dfcff830 | f575ab0c484632ca7b8fe21760500fdc514ee355 | /code_chef_programs/Beginner/Days_in_month.py | f576c38f6c406f5d51f90239df6314d2bb8874eb | [] | no_license | sonalisaraswat/My-Programs | dae042327c7f1076d51e98ef28166c0784b50570 | 2b3ef3804b12db34dc1efe26ab9a383fd65a29f5 | refs/heads/master | 2018-09-06T07:08:32.939030 | 2018-06-25T14:48:33 | 2018-06-25T14:48:33 | 117,707,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | for t in range(int(input())):
w,s=[ch for ch in input().split()]
L1=[4,4,4,4,4,4,4]
L2=['mon','tues','wed','thurs','fri','sat','sun']
if(int(w)==28):
print(*L1,sep=' ')
elif(int(w)==29):
ind = L2.index(s)
L1[ind] += 1
print(*L1, sep=' ')
elif (int(w)==30... | [
"noreply@github.com"
] | sonalisaraswat.noreply@github.com |
0f0f679d63b3379178b8318f35c97e7382f885c9 | 9f5648f4b50d7657f3692b20e4a8d6761af7f9bf | /manage.py | 18a6d194bf48e15ecad6ff89ce45df50ac58280d | [] | no_license | DevelopWithAP/quality_control | 2fe2617bbffdb814e2d68b60a17fcd09408c5afd | 41b7eaadcd6e65029f8fb359923dd48ba9f033c7 | refs/heads/master | 2023-08-27T06:09:18.013082 | 2021-11-08T15:57:02 | 2021-11-08T15:57:02 | 398,589,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'quality_control.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"apostolisparga@gmail.com"
] | apostolisparga@gmail.com |
613a05d5b9323597ee0f9e94723dca996486037c | 527a8996239ce00c469642ba6e15406afe15c70c | /cybersecmodule/cybersecmodule/urls.py | c56e5fabed14c8617c13e62d8c023f101817d0db | [] | no_license | gabrielgamero/pythonapp2 | 596302ee525dc75d6b34d8c8e8805f503e6b1f94 | b2a1594641e35e8ebbcb5639344b81f8b625cd64 | refs/heads/master | 2023-03-13T15:15:17.653599 | 2021-03-12T03:56:45 | 2021-03-12T03:56:45 | 346,925,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | """cybersecmodule URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"gabriel.gamero@pucp.pe"
] | gabriel.gamero@pucp.pe |
0d5db6af7c7852a4890054a62024e6713e579c74 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TriggerCommon/TriggerMenu/python/l1menu/Menu_Physics_HI_v5.py | 15f0ee3b1a83a6c0196d246fe4a72355984a0428 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,900 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
def print_available():
from TriggerMenu.l1.Lvl1Flags import Lvl1Flags
defineMenu()
available = []
for i in range(512):
if i==463: continue #reserved for L1_RD2_BGRP14, L1_RD3_BGRP15 now assigned to 510 for partition 3 ATR-1... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
3355b64a3de450994ba4ceeab1aa8a93558c962b | ada2c8c05027f523d29fa0f60c642fa537fc074d | /src/app/settings.py | 02eb23aa1a4dd64717e3643dda0e9a61aaf1eb77 | [] | no_license | Tehtehteh/sendify | fc9290a90ead2d4107ec09b956dbfe927a6b63cc | c4f236fb7877b7d99eafce75f38d05a1d1ef01a7 | refs/heads/master | 2020-03-21T03:55:22.478681 | 2018-06-24T19:11:22 | 2018-06-24T19:11:22 | 138,081,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import os
import logging
from copy import deepcopy
logger = logging.getLogger('application')
async def create_settings():
return Settings.from_defaults()
class Settings(object):
_defaults = {
'app': {
'port': 8080,
},
'db': {
'host': 'localhost',
... | [
"tehfvpr@gmail.com"
] | tehfvpr@gmail.com |
1d50097e0a83ffa78fdcb9bc614bf2bf6cbe3300 | a4d5fc4fc6f528bae0b1c352010aa816e3e7dcb6 | /analysis/sorting_busan.py | e664bc467531e5c5f297161c6c7b46803b46d2a5 | [] | no_license | sseung30/project | b3bb5cdb7770ecd95c70f8669190ffc62bda50fc | 5bc72410c1eb7375e72203e61c3bd18d56f81811 | refs/heads/master | 2022-12-03T23:08:51.679822 | 2020-08-23T18:30:26 | 2020-08-23T18:30:26 | 289,080,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
import numpy as np
import pandas as pd
from datetime import datetime
import warnings
warnings.filterwarnings('ignore')
# In[2]:
# ํ๊ตญ์ด ํ์๋ฅผ ์ํด ๋๋์คํ์ด ์ฌ์ฉ
# matplotlib ํฐํธ์ค์
plt.rc('font', family='NanumSquareOTF') # Fo... | [
"noreply@github.com"
] | sseung30.noreply@github.com |
5a9714251bbb986adb690630e02932243d1f0693 | ed4230d4dc48477a25528c76c159ae934ef2b5a6 | /2019_2-Proyecto_Taller_Django/diazstone/inicio/migrations/0010_fotito.py | c921235c3d0992798afc01a45a50889e8e690e38 | [] | no_license | Yhatoh/USM-Tareas | 2092bf87a5bd48e7414c5e048bd7b5b2fbebff7c | 939be727b0ba82426c7c8ce4661e1c1c626a6987 | refs/heads/master | 2023-02-21T13:27:33.185330 | 2021-01-25T03:12:46 | 2021-01-25T03:12:46 | 324,416,603 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 2.2.6 on 2019-10-10 05:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inicio', '0009_auto_20191009_2057'),
]
operations = [
migrations.CreateModel(
name='Fotito',
fields=[
... | [
"gacarmonat@gmail.com"
] | gacarmonat@gmail.com |
24cbc9c4271d2f7d14986f9fe038a23070e18c79 | 2fd6fdb39f3c62d1d9dac0fdbb20ba077f204a9d | /Acquire_Valued_Shopper_Challenge/gen_vw_features.py | 57652060d9936d4e28ff0e6b4596590f85c7aabb | [
"MIT"
] | permissive | snafis/Kaggle | 60443822c516c52a7a88ca46b44ed194bfd31d62 | c617c7fa47aa9cbf7a236559b53ba190622a4e5f | refs/heads/master | 2022-09-06T09:57:25.760379 | 2020-05-25T04:34:10 | 2020-05-25T04:34:10 | 195,595,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,480 | py | # -*- coding: UTF-8 -*-
"""
Kaggle Challenge:
"http://www.kaggle.com/c/acquire-valued-shoppers-challenge/"
'Reduce the data and generate features' by Triskelion
After a forum post by BreakfastPirate
Very mediocre and hacky code, single-purpose, but pretty fast
Some refactoring by Zygmunt Zajฤ
c <zygmunt@fastml.com>
... | [
"shifath.nafis@gmail.com"
] | shifath.nafis@gmail.com |
5a347c87bc2dbee5984e90800c414e99838da150 | 40a9818f59f430992be53b428851ddf476e866f4 | /SparkCourse/total-spent.py | b3cb6b27cd2ad63c9f01bc3e70f2a86660a4c5f0 | [] | no_license | fejxc/python | baed124af1e796aebf202a4c0c99e93b3688ccce | b3566d9ffffad78158ac67cb4c02badaac544bea | refs/heads/master | 2023-05-04T11:17:35.003910 | 2021-05-25T15:51:50 | 2021-05-25T15:51:50 | 287,763,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from pyspark import SparkConf, SparkContext
conf = SparkConf().setMaster("local").setAppName("FriendsByAge")
sc = SparkContext(conf = conf)
def parseLine(line):
fields = line.split(',')
customer_ID = int(fields[0])
amount_spent = float(fields[2])
return ( customer_ID, amount_spent)
lines =... | [
"1031364436@qq.com"
] | 1031364436@qq.com |
8528817f2e818ab95c640dec2fbc42d988e68de4 | 8bd63bc56b39d26458ad54b7f18c4b149c1e3ce2 | /sphinx-files/rst-files/Data/code/2011/11/000032/binary_liquid_mixture_immiscibility_and_stability.py | d86c0be99462bbdd27b0749ff15621910c02ba82 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | isabella232/scipy-central-rescue | 43270c0e1850b989fbe9a5b1a06c3be11d16464a | 2b331610d52c189ae96bea4f4ce2ec343146b608 | refs/heads/master | 2021-09-06T09:17:30.627497 | 2018-02-04T19:41:11 | 2018-02-04T19:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,469 | py | # License: Creative Commons Zero (almost public domain) http://scpyce.org/cc0
#Determines regions of immiscibility and any limits of essential instability
#for a binary liquid mixture of components B and C. the excess Gibbs energy of
#mixing is given explicitly by an empirical equation:
#deltaGex/RT = xBxC[k1+k2... | [
"jiayue.li@berkeley.edu"
] | jiayue.li@berkeley.edu |
02c053a332e8c66afa1b50f843361da692cf6096 | 4b05c7f8c5b7505e96842f12e34150829374f0b3 | /mysql_connect.py | 6e383072c37ae2e8af7f43c5aa4be62e236fbd76 | [] | no_license | jcodewriter/craigslist-scraping | 11d01ea889bcf1a42fd4cf00c66ed156a0b48630 | 92ff84e777b55fd09fc0a4b00179cd21ba6f1cbb | refs/heads/main | 2023-05-24T00:01:58.878050 | 2021-06-18T22:31:26 | 2021-06-18T22:31:26 | 378,133,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from mysql.connector import MySQLConnection, Error
from mysql_dbconfig import read_db_config
""" Connect to MySQL database """
db_config = read_db_config()
connect = None
try:
print('Connecting to MySQL database...')
connect = MySQLConnection(**db_config)
if connect.is_connected():
print('Connectio... | [
"jcodewriter@gmail.com"
] | jcodewriter@gmail.com |
6c25422c8ff41dbdd27f33cd691c33afb6f7064f | 17e9b949c0ee60a24673583ad1f7296e00512ab1 | /backend/isic/isic_crawler.py | f3570005f65cfcf529446b2e3e6ab0869fe854b3 | [
"MIT"
] | permissive | Huy-Ngo/skin-crawler | 5a47aa1fdfffae71ee0bcfb158a709e5ae6aab00 | fada2c8608dd01c06d7987a409854ca86dee2ea1 | refs/heads/main | 2023-01-30T03:47:08.428625 | 2020-12-02T07:00:47 | 2020-12-02T07:00:47 | 311,970,798 | 4 | 3 | MIT | 2020-12-02T07:00:49 | 2020-11-11T12:55:37 | Python | UTF-8 | Python | false | false | 4,051 | py | import requests
import os
from io import BytesIO
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
"""A module to fetch data from International Skin Imaging Collaboration API
For further information about the API: https://isic-archive.com/api/v1/
"""
def ISIC_request(response, num=100):
""... | [
"noreply@github.com"
] | Huy-Ngo.noreply@github.com |
4869a312afecf5587acf929abf9f9adcd24f3ff4 | 3a50c0712e0a31b88d0a5e80a0c01dbefc6a6e75 | /thrift/lib/python/any/test/serializer.py | e10f1866cd979f95c40dfcde5b071bca2dbe8ba4 | [
"Apache-2.0"
] | permissive | facebook/fbthrift | 3b7b94a533666c965ce69cfd6054041218b1ea6f | 53cf6f138a7648efe5aef9a263aabed3d282df91 | refs/heads/main | 2023-08-24T12:51:32.367985 | 2023-08-24T08:28:35 | 2023-08-24T08:28:35 | 11,131,631 | 2,347 | 666 | Apache-2.0 | 2023-09-01T01:44:39 | 2013-07-02T18:15:51 | C++ | UTF-8 | Python | false | false | 7,122 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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 requi... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2bd62843ae04e565226e5515c198315358a1d2ac | c5073f127ba5f5e6d6ea90b288b1d4902b00db77 | /experiment-files/cgi/submit.cgi | 15b45c6623734c5e771c854c14c878d30a2c9b2c | [] | no_license | halpinsa/2018MScDiss | 2e65d545a28a65095f80b834cc8d991b3de8758c | 9ce9839d57023d39bb01c93da24e181cf5717a5b | refs/heads/master | 2020-03-26T18:49:16.866918 | 2018-08-18T17:48:16 | 2018-08-18T17:48:16 | 145,232,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | cgi | #!/usr/bin/python
import cgi
import cgitb
import sys
cgitb.enable()
import os
import psycopg2
import json
print "Content-Type: application/json"
print
f = open('req.txt' , 'r')
for line in f:
p = line.strip()
f.close();
#Define our connection string
conn_string = "host='pgteach' dbname='online_questions' user='s1... | [
"halpinsa@tcd.ie"
] | halpinsa@tcd.ie |
789fc68e0ed940ae1793520de0f87348d70c0aad | a4b15a63e222581d024a84f02588ffa498b34f60 | /pandoratradingsolution/predictions/admin.py | de425e540888a506997cc524fae7bcb531a4a526 | [] | no_license | inikishin/PandoraTradingSolutions | 286e95d4b84c2de80195e6fe4b98fddb94429a53 | 9551014188a40876dee8ca176b8ec0430958e5af | refs/heads/master | 2023-05-04T23:48:55.510647 | 2021-05-24T12:08:54 | 2021-05-24T12:08:54 | 265,003,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from django.contrib import admin
from .models import PredictionHorizon, Prediction
admin.site.register(PredictionHorizon)
class PredictionAdmin(admin.ModelAdmin):
list_display = ['ticker', 'horizon', 'created', 'currentprice', 'predictprice', 'prctChange', 'probability']
list_filter = ['created', 'ticker', 'h... | [
"inikishin@gmail.com"
] | inikishin@gmail.com |
d4d14e7908dbf00e1dc37aa7dda53942b6749f3f | 7020c615dbc3391c43869e6b8f58a30860f1206b | /app/views.py | 86821cddd3e2ccaf5238ab27d20e143402eccaec | [] | no_license | jerrylizilong/autotest_platform | ae6358c95b14dd09757ee9c7fd5d3aa5c677689b | 6c43ee096396a6568d3e1dd2844a26f74e73611e | refs/heads/master | 2023-08-17T23:20:33.895934 | 2023-08-05T14:04:18 | 2023-08-05T14:04:18 | 142,558,059 | 649 | 268 | null | 2023-08-05T14:04:20 | 2018-07-27T09:36:53 | JavaScript | UTF-8 | Python | false | false | 883 | py | from flask import render_template, session
from app.view import user
from app import app
@app.route('/')
@app.route('/index')
@user.authorize
def index():
list = session.get('user', None)
username = list[0]["username"]
return render_template("util/index.html", message='Hello, %s' % username)
@app.route('/... | [
"lizion138@163.com"
] | lizion138@163.com |
d9ffcbceac38827fdbfd583282e8743c87b35428 | fe7e57c1001f8c95c141fd959fe942b320468a63 | /py_lby/rename/rename-prefixAdd.py | 91f578894fc8ac86f9c29966c497ffafd9e01eda | [] | no_license | libaiyu/PE_mark | 66178449a0fb66459b8f85e0c83e8687c24e4993 | 13fa601116b3b10ca2a55586c1b8d6b3d4c6c0c1 | refs/heads/master | 2020-06-26T13:26:19.543740 | 2017-07-13T07:49:18 | 2017-07-13T07:49:18 | 97,019,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | #! python3
# _*_ coding: utf_8 _*_
import os
import re
dirName = input('please input the directory: ')
fileType = input('input the file type: ')
fReg = re.compile('.' + fileType + '$')
prefix = input('please input the prefix: ')
pre = re.compile('^' + prefix)
files = os.listdir(dirName)
count = 0
finishCount = 0
for... | [
"709097185@qq.com"
] | 709097185@qq.com |
220fab6089513f0840fae4e66571819307003fef | 6b8703c5e7a8a2b0a0308bc2399695695bf89a0a | /mysite/urls.py | 8a2b3675dab4177ab42c102be20eb01efba834a0 | [] | no_license | IreneGaoc/CMPUT404LAB6 | 2078fb1d2e5623ec0584deaf41aa6117dd8c43d0 | a48a975059e716c4f7d1cc409f4990f33eacd4bb | refs/heads/master | 2020-04-23T00:26:23.045490 | 2019-02-15T01:10:01 | 2019-02-15T01:10:01 | 170,779,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from django.urls import include path
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]
| [
"zgao1@ualberta.ca"
] | zgao1@ualberta.ca |
a574f989e0cfb49efad5504ef1959e4592372c4b | 0a5b1693b93dcd23b7b56ed888dd0a3fda78e90f | /usersapp/urls.py | 411dc70ddb3f3d7a9878c59656f0389abf89ce5f | [] | no_license | welz-atm/NoteAppDjangoandRN | 831859b5202ef34b536f747dead7290911e6f2ec | 6d575810208f2215b8d9fdd1917fdfef7b931b64 | refs/heads/master | 2023-01-07T17:08:29.770201 | 2020-11-06T16:03:26 | 2020-11-06T16:03:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.urls import path
from usersapp.api.views import register_user, change_password, ObtainAuthTokenView, AllUsers
from rest_framework.urlpatterns import format_suffix_patterns
app_name = 'notesapp'
urlpatterns = [
path('register/', register_user, name='register_user'),
path('list/', AllUsers.as_view()... | [
"59687594+welz-atm@users.noreply.github.com"
] | 59687594+welz-atm@users.noreply.github.com |
b0d9fef2ad69d5bfe724b957d8aff99d7220846f | 80abb2b35886bcc4ea305ef7a91b7a8a4541b81c | /q2_phylofactor/_phylofactor.py | 487b75951b2d8e3983e221a8201ff8a0d278eba8 | [] | no_license | johnchase/q2-phylofactor | fcbdedc224356eede5b06378fd894f4a10f766b5 | af9acec44fc56618e985ff679ff006314a6c316d | refs/heads/master | 2020-03-16T23:41:21.564707 | 2018-07-09T23:27:26 | 2018-07-09T23:27:26 | 133,087,391 | 1 | 3 | null | 2018-06-14T21:42:58 | 2018-05-11T20:50:08 | Python | UTF-8 | Python | false | false | 4,954 | py | import os
import subprocess
import tempfile
import biom
import skbio
import pandas as pd
import qiime2
from q2_types.tree import NewickFormat
from qiime2 import Metadata
def run_commands(cmds, verbose=True):
if verbose:
print("Running external command line application(s). This may print "
"... | [
"chasejohnh@gmail.com"
] | chasejohnh@gmail.com |
b40cd4001119de85952c78f3996d2b98f1343b32 | 9c225ac6c033deecb01c95e47fcd5ee3737a0e44 | /rango/models.py | a7e0fbf7f643f7fdfd7cbb039d23c9a99a2a0090 | [] | no_license | shanQshuiY/rango | a70784cf959482e2e72ccdf56895128cf1633b41 | a0681e75bcbfc77e5b10434c1acc58dd8cb428fc | refs/heads/master | 2021-07-01T16:56:41.747044 | 2017-09-22T10:48:21 | 2017-09-22T10:48:21 | 103,117,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
from django.template.defaultfilters import slugify
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
views = model... | [
"yangzhihuilzy@sina.com"
] | yangzhihuilzy@sina.com |
a195765ba259353475c5b8845033de67c2618de3 | 61f39d1febf9077e77250f4f1576b04d903ab2f0 | /argument by value.py | 0b8463ca16ff935d6a9ecdcd0e21603d69872767 | [] | no_license | malli1996/interview | f387c14449e03ae5af8628288add47849ec4e762 | ee2be057c778817a42d5d5d8167e676705448142 | refs/heads/master | 2020-07-03T01:49:29.088570 | 2019-08-16T01:10:50 | 2019-08-16T01:10:50 | 201,747,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | '''def foo(l):
l = [4,5,6]
return l
mylist = [1,200,3]
foo(mylist)'''
def foo(ii):
ii = 5
i = 6
foo(i)
| [
"noreply@github.com"
] | malli1996.noreply@github.com |
6bef0061951f422698c3e7c02ff2d483b56ab394 | 599caedb27dbd4573a8f717f23cd652b30aa6574 | /main.py | d6abf6b38e71c9357c910ead0a50d31de0f6a736 | [] | no_license | Kaedenn/Kaye | d3b752409fccad96fd8c45ed105a4692d2d81a66 | d57a195088b2108be24c7a97cab9dc9b7c5d87b9 | refs/heads/master | 2020-05-18T05:12:31.502003 | 2016-02-14T01:04:38 | 2016-02-14T01:04:38 | 31,037,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/usr/bin/env python
"""
Kaye--a remake of Neru Kye, which is a remake of Kye.
"""
import sys
import source
if __name__ == "__main__":
game = source.kaye.Kaye()
game.main()
| [
"kaedenn@gmail.com"
] | kaedenn@gmail.com |
bdfd83783996168ac1c732dceec9cb1333f00075 | 9e8ebc9d4b27d550a23a8c94d80bfdfcd429548f | /withPool.py | 637d7398c64a8d7ba800b33bcf4974defeefb350 | [] | no_license | MDProject/ConvNN | d51196807069273a530633516c555fec5b657df7 | a108f0b5c649f2c1d597e1cea91600f75a4b27ba | refs/heads/master | 2020-05-24T11:29:18.976381 | 2019-05-31T08:03:07 | 2019-05-31T08:03:07 | 187,249,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,024 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torch.nn.functional as F
import torch.optim as optim
import os.path as IO
import numpy as np
conv1 = []
conv2 = []
conv3 = []
FC = []
class Net(nn.... | [
"noreply@github.com"
] | MDProject.noreply@github.com |
7e7d1b9026dfc15931ee9281fa1c3cbbd6ee0303 | c818eafff8fb9cfb052e9c016aa7de67de246f21 | /sales/migrations/0027_remove_return_receipt.py | b27fbc4fb3e044ba81c8479d9cf55a5e81ca6c45 | [] | no_license | mugagambi/mgh-server | a4275b07243f476db9d63e568c8b9331190b75f0 | da966882bd695df606622ab816cd93fab1d53773 | refs/heads/master | 2021-10-22T05:52:15.354561 | 2019-03-08T11:50:19 | 2019-03-08T11:50:19 | 120,087,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Generated by Django 2.0.3 on 2018-04-17 15:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('sales', '0026_return_approved_by'),
]
operations = [
migrations.RemoveField(
model_name='return',
name='receipt',
),... | [
"mugagambi@gmail.com"
] | mugagambi@gmail.com |
60479426cc9150e33b3165fffc354d6ed03f1068 | 3493b395b7d8aba7a42401eb5a997967ab07352f | /models/image.py | aef03ebb693bc35a19f12da78775ee9e43d2a2b1 | [] | no_license | hachibeeDI/Giza | 334af48372defd66b6ab872bb2b753f32d69c8f4 | 12552ce5863f66d418c8c57d4c387e9ea6494999 | refs/heads/master | 2021-01-10T20:21:22.825538 | 2014-02-21T01:17:31 | 2014-02-21T01:17:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # -*- coding: utf-8 -*-
from __future__ import (print_function, division, absolute_import, unicode_literals, )
from os import (path, )
from base64 import b64decode
from flask import (jsonify, )
from .project import Projects
_ALLOWED_EXTENSIONS = {'PNG', 'png', 'JPG', 'jpg', 'jpeg', 'gif'}
def make_image(entry_i... | [
"daiki.ogura@soliton.co.jp"
] | daiki.ogura@soliton.co.jp |
4db586bf6bffedab7a1c883b8f6c0e720434fe87 | 10d87423fe57af7258d7c327db06034a80700571 | /gym_minigrid/envs/fourroom.py | ed6047002a07f36ceead3de4c7fbb76645a275c5 | [
"BSD-3-Clause"
] | permissive | johannah/gym-minigrid | dee47bc1cd5587d069f2094173053ee3f1e42f5e | 127eef302c4e52f0b976c10304a2b33390fbca78 | refs/heads/master | 2021-08-30T10:27:25.191472 | 2017-12-17T14:08:59 | 2017-12-17T14:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from gym_minigrid.minigrid import *
from gym_minigrid.register import register
| [
"maximechevalierb@gmail.com"
] | maximechevalierb@gmail.com |
47e8742a744f9ec9021e601b6a15d12833728306 | 9b0b204c3093a0d545fed6e0119f550a2f39f862 | /src/grammar_tester/lgmisc.py | ef5eee449822455d58ad8cc76b81467b2fa7ca17 | [
"MIT"
] | permissive | akolonin/language-learning | 581909ff84014949d33225e40bbb90e40a7dccc7 | 022c34a3066aa97ea0d007419e026247a4f78dd5 | refs/heads/master | 2020-03-22T09:55:51.442357 | 2018-12-24T14:50:13 | 2018-12-24T14:50:13 | 139,869,814 | 0 | 0 | MIT | 2018-12-24T14:43:24 | 2018-07-05T15:39:42 | Jupyter Notebook | UTF-8 | Python | false | false | 7,675 | py | import re
import os
import shutil
import logging
from .optconst import *
__all__ = ['get_output_suffix', 'print_output', 'LGParseError', 'LG_DICT_PATH', 'create_grammar_dir', 'get_dir_name',
'ParserError']
LG_DICT_PATH = "/usr/local/share/link-grammar"
LINK_1ST_TOKEN_INDEX = 0
LINK_2ND_TOKEN_INDEX = 1
... | [
"alex-gl@mail.ru"
] | alex-gl@mail.ru |
46d902ffa02a481fd53104565242dfa4f6b75921 | 255604fa876c9a54dfaef9057b9373c70e0a4cbb | /NewsPaper/NewsPaper/settings.py | 8a37750dc8511cff1c61ac8662faaa935c1be059 | [] | no_license | Ritter00/NP_D4.4 | 39fba8c2ebd6cfd8d6ca1fda61be8836bfef5ff4 | 5c8118dc4c3ffc25095a45d3d3990ba7397f4184 | refs/heads/main | 2023-08-16T01:50:12.642934 | 2021-09-23T09:10:56 | 2021-09-23T09:10:56 | 405,026,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | """
Django settings for NewsPaper project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"olzim@tut.by"
] | olzim@tut.by |
78598224140536167f75d8b24ba0b0e9f07edb6f | bcf07603c2e75a47b20d5e40972bb8f37ffb74bd | /facebook-echobot/lib/python3.6/_bootlocale.py | b5a60607fb67adeeab4707fa21ef4ba575afead0 | [] | no_license | abhishekSinghG/Messenger-Bot | f41340028d57487ef376042c93d52b52e7fd0362 | 5a5212c218d155f02edd06fd5dae1eda3aabfcac | refs/heads/master | 2022-05-01T17:31:01.452311 | 2019-10-25T05:07:07 | 2019-10-25T05:07:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /Users/abhisheksingh/anaconda3/lib/python3.6/_bootlocale.py | [
"abhisheksingh@Abhisheks-MacBook-Pro-2.local"
] | abhisheksingh@Abhisheks-MacBook-Pro-2.local |
6fe28c1650cd7e713a29cacf981272ea53492be1 | 98c76cb102adbbd3d91ba456e0e29424a143a96b | /Pi/teststuff/twitterNameGetter.py | 2171eeac9535742ff69720d6222013849bfcf12e | [
"MIT"
] | permissive | juggler2000/Mimic | b7ca7ba8d40133cdae7cb2ecda1c56031bf7ccf3 | 190e35380ec5dd0bd823a6fe4500f4d97c343675 | refs/heads/master | 2021-05-14T03:47:26.950159 | 2017-11-29T22:22:34 | 2017-11-29T22:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python
# encoding: utf-8
import json
import re
import tweepy #https://github.com/tweepy/tweepy
#Twitter API credentials
consumer_key = "qsaZuBudT7HRaXf4JU0x0KtML"
consumer_secret = "C6hpOGEtzTc9xoCeABgEnWxwWXjp3qOIpxrNiYerCoSGXZRqEd"
access_key = "896619221475614720-MBUhORGyemI4ueSPdW8cAHJIaNzgdr9"
acce... | [
"samrtreadgold@gmail.com"
] | samrtreadgold@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.