blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
323801345ddf65b4f2d46b72eae6c8c91ab6e767 | 11147666888ce8a0d6bd540b1d1d4bf7a788f4bb | /server/botserver.py | 84f5477d38903f2a824ba9d8243e8d3f9b0b299b | [
"MIT"
] | permissive | Kileak/Kileak-Slack-Base-Bot | 4ef4312955db30e54dd36e2f50e279c33af7fce2 | 5a1c14b96383f4d5bbbde87670d4f080530c4fdf | refs/heads/master | 2021-01-20T08:24:33.079050 | 2017-09-07T12:20:43 | 2017-09-07T12:20:43 | 101,556,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,200 | py | import json
import threading
import time
from slackclient import SlackClient
from handlers.handler_factory import *
from handlers import *
from util.loghandler import *
from bottypes.invalid_console_command import *
class BotServer(threading.Thread):
# global lock for locking global data in bot server
threa... | [
"razor99@gmx.de"
] | razor99@gmx.de |
9782fd2180f9d64e673c362aad00d0e19916f9e3 | dcdde01af29567eba920ffcf340605251aa726be | /flask/flsk.py | 7964838ff06455a8dc7653023413917e3b9739b6 | [] | no_license | MeherMS/python | b9f3d77ef97a72f4e68deb77f767fa45f7160a43 | 66296d552755a11600a8fba4d241efa13e0f3b50 | refs/heads/main | 2023-03-25T11:07:41.007216 | 2021-03-27T23:40:59 | 2021-03-27T23:40:59 | 352,113,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
from flask import Flask, jsonify, request
import pickle
import json
# load model
model = pickle.load(open('model.pkl','rb'))
data = {'Pclass': 3
, 'Age': 2
, 'SibSp': 1
, 'Fare': 50}
data = json.dumps(data)
# app
app = Flask(__name... | [
"noreply@github.com"
] | noreply@github.com |
d78e4bb780d288b7d29be51d0fba08d43575ed04 | e0e60b1efc1d91e39dfba9b612d82cf32b5efcda | /mysite/Grade_A/models.py | 4be9ab3e9110a63784716f2acd792856cbe9f654 | [] | no_license | Apaisley/Grade-A | f187b76c1a74a3edca35712dd361f6c49d60fbe6 | d750372c7e0e6c31efb1eb2699b84f7c56df3887 | refs/heads/master | 2021-09-23T03:54:51.311184 | 2020-03-12T00:56:45 | 2020-03-12T00:56:45 | 238,564,849 | 0 | 0 | null | 2021-09-22T19:40:01 | 2020-02-05T22:54:50 | Python | UTF-8 | Python | false | false | 5,374 | py | from django.db import models
from taggit.managers import TaggableManager
from django.utils.datetime_safe import datetime
from django.dispatch import receiver
from django.db.models.signals import post_save
import numpy as np
from django.contrib.auth.models import User
# Create your models here.
#////////////////////-... | [
"apaisley2017@gmail.com"
] | apaisley2017@gmail.com |
cffd64491c65e0ffc66d3cb53f6958c2596eb53b | 7bdb103ab024adf67fdd209af6377e86659656dc | /pydicom/errors.py | 8872313e29db0a934a18f8302a83025a4f3b3365 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | glemaitre/pydicom | b58b71f3a0082595a4d62586be21b574c63a76f9 | d88f78e90a8df1cc314858049edaa403be3f5526 | refs/heads/master | 2020-02-26T14:13:25.970610 | 2017-07-31T22:35:55 | 2017-08-01T12:41:22 | 58,641,730 | 0 | 0 | NOASSERTION | 2023-04-29T22:22:23 | 2016-05-12T12:59:33 | Python | UTF-8 | Python | false | false | 876 | py | # errors.py
"""Module for pydicom exception classes"""
#
# Copyright (c) 2013 Darcy Mason
# This file is part of pydicom, released under a modified MIT license.
# See the file LICENSE included with this distribution, also
# available at https://github.com/pydicom/pydicom
#
class InvalidDicomError(Exception):
... | [
"darcymason@gmail.com"
] | darcymason@gmail.com |
0e185c34961eff4289c4c9d576294c3a43be2ae6 | 4dd9a94828221013244d56443ce988b49c749523 | /neural_net.py | 589a7d86c407d6c653e2bd7c4fd28d4e7a919928 | [] | no_license | dhorrall/deep_learning_foundations | e452084d91c684ebc9d54de452041ecff2704733 | 714457299508bf9b7a5b3b18dd260c842c432cfe | refs/heads/master | 2021-01-09T06:16:20.121329 | 2017-06-06T14:27:49 | 2017-06-06T14:27:49 | 80,946,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | '''
Created on Jan 29, 2017
@author: derekh1
'''
from numpy import exp, array, random, dot
class NeuralNetwork():
def __init__(self):
# Seed the random number generator, so it generates the same numbers
# every time the program runs.
random.seed(1)
# We model a single neuron, wit... | [
"derekh1@oc7043351046.ibm.com"
] | derekh1@oc7043351046.ibm.com |
082b2931c6c4dbd7173131856b1c308a119963b8 | 18740007244035abf66efb0c4c37eca457806cce | /infrastructure/cloudformation/troposphere/storage.py | 5ce481321753c61486729cc7dacb45fbe8b5d2a6 | [] | no_license | khueue/khueue-diary | 7773b34fc0214cdd04133cd8cb38ec5e8096318c | 90de164b997ebde328d4f116b94f588a3c394cec | refs/heads/master | 2020-04-07T02:28:26.654045 | 2019-01-22T12:37:23 | 2019-01-22T12:37:23 | 157,977,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | import troposphere
import troposphere.cloudfront
import troposphere.s3
import awacs
import awacs.s3
CONFIG = {
'app_bucket': {
'name': 'khueue-diary-app',
},
'pipeline_bucket': {
'name': 'khueue-diary-pipeline',
'object_lifetime_days': 30,
},
'log_bucket': {
'name': 'khueue-diary-logs',
'object_lifetim... | [
"khueue@gmail.com"
] | khueue@gmail.com |
6093d2129fcc9b86264e32f2199313f4ee2360fc | bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0 | /venv/Lib/site-packages/twisted/web/_http2.py | 1a425a7729ffd88e8e0c2c4b4f98294cbdc6f975 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | DuaNoDo/PythonProject | 543e153553c58e7174031b910fd6451399afcc81 | 2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c | refs/heads/master | 2020-05-07T22:22:29.878944 | 2019-06-14T07:44:35 | 2019-06-14T07:44:35 | 180,941,166 | 1 | 1 | null | 2019-06-04T06:27:29 | 2019-04-12T06:05:42 | Python | UTF-8 | Python | false | false | 45,541 | py | # -*- test-case-name: twisted.web.test.test_http2 -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
HTTP2 Implementation
This is the basic server-side protocol implementation used by the Twisted
Web server for HTTP2. This functionality is intended to be combined with the
HTTP/1.1 and HT... | [
"teadone@naver.com"
] | teadone@naver.com |
075026177bd5d8967534c7183b390a63941c8beb | f4205df28c7b9817acd03aa78c24adcc501a65b8 | /run.py | 766037e23811d8ad0a4f210904cad02d954fcc1e | [
"MIT"
] | permissive | chelseaayoo/Password-manager | d8133f6827b30aa919f2cd179ffd5c0ecfb3ae23 | e7abe7c334427e40e78515066845e8cf742b367d | refs/heads/master | 2023-08-28T09:45:20.495179 | 2021-10-26T06:15:49 | 2021-10-26T06:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | #!/usr/bin/env python3.8
#!/usr/bin/env python3.6
from credential import Credential
from user import User
def create_credential(login_username,password):
'''
Function to create a new credential
'''
new_credential = Credential(login_username,password)
return new_credential
def save_credentials(creden... | [
"chelsea.ayoo@student.moringaschool.com"
] | chelsea.ayoo@student.moringaschool.com |
54256fc282316da722359a762ee5dc1ab76d62a0 | 09c4fef0e8941a40b5cdd1b1f689031361852727 | /csvwriter.py | d1aef78e356fdc96b6f3a281462513cd9776bdd1 | [] | no_license | jw910731/NTNU_TextProcessing_Final | c109fa3d1c391638817902c2fb5073e9063ad1a8 | 3ce60778b4868251e9de4e2a980b3f118a9c0352 | refs/heads/main | 2023-02-12T20:06:20.516885 | 2021-01-12T07:31:01 | 2021-01-12T07:31:01 | 307,621,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import pandas as pd
def csvwrite(DICT):
pd.DataFrame(DICT).to_csv('output.csv', header=True,encoding='utf-8') | [
"adam20001002@gmail.com"
] | adam20001002@gmail.com |
a7e699f06dbaa2415ab8f0ce348214b552cfc045 | 2c5302a8f6962c2de4849c0a49271033ca4fbfbd | /Day-30/Day_30_VishwaPatel.py | 24b68063b1058a4c94682b5d6b1d95b172b53b5a | [] | no_license | 136tejas/30DayOfPython | 4db35033e413b9ec7dc6c0c0871d12b6a1e39555 | 20df271cd8ed3170aad2ee359a6a28f9f682a5b5 | refs/heads/main | 2023-08-11T10:51:39.357383 | 2021-10-04T07:34:44 | 2021-10-04T07:34:44 | 379,897,363 | 0 | 0 | null | 2021-06-24T11:10:35 | 2021-06-24T11:10:35 | null | UTF-8 | Python | false | false | 445 | py | import numpy as np
m = int(input('Enter rows'))
n = int(input('Enter columns'))
l = []
b = []
for i in range(m):
l = []
for j in range(n):
e = int(input('Enter element: '))
l.append(e)
b.append(l)
print("Original matrix")
print(np.matrix(b))
for i in range(m):
for j in range(n):
... | [
"noreply@github.com"
] | noreply@github.com |
6abcb0d176f43e109d8555a90281fa679fce1a72 | 64ac3af07036f240bc333f58f9ff9924d6fea06a | /modelrerank/src/main.py | 4502decd697e2341bdca9cb97474a8a809929668 | [
"Apache-2.0"
] | permissive | stevencdang/AutoML-DS-Components | b9e12011fd958f4734f323f4882806e8be4b64f2 | b0490262d3db5307c37f82c92e25cd938dd3a242 | refs/heads/master | 2023-01-10T13:06:27.167187 | 2019-03-28T18:11:40 | 2019-03-28T18:11:40 | 175,680,072 | 0 | 0 | Apache-2.0 | 2023-01-04T23:30:19 | 2019-03-14T18:42:27 | Python | UTF-8 | Python | false | false | 2,992 | py |
# Author: Steven C. Dang
# Main script for importing provided D3M dataset schemas for operation on datasets
import logging
import os.path as path
import sys
import json
import pprint
import argparse
import csv
import pandas as pd
# Workflow component specific imports
from ls_utilities.ls_logging import setup_loggin... | [
"stevencdang@gmail.com"
] | stevencdang@gmail.com |
d005e74749c88692012dd32e899d20852ffbc130 | c223e858c9ebf1b734221e4db4b3d594993a5536 | /thespian/system/timing.py | ec5f22afa79083a0f4d2f9c23f08117403194959 | [
"MIT"
] | permissive | jfasenfest/Thespian | 17f9738aff648328a40f94d3225427d82fe27e39 | 5979a2c9791b774fb620253bb62253c95cf7d4b5 | refs/heads/master | 2020-12-26T00:27:09.446001 | 2016-11-28T21:48:20 | 2016-11-28T21:48:20 | 48,067,029 | 0 | 0 | null | 2016-11-21T23:17:52 | 2015-12-15T20:24:12 | Python | UTF-8 | Python | false | false | 6,566 | py | from datetime import datetime, timedelta
###
### Time Management
###
def timePeriodSeconds(basis, other=None):
if isinstance(basis, datetime):
if isinstance(other, datetime):
return timePeriodSeconds(other - basis)
if isinstance(basis, timedelta):
try:
return basis.tot... | [
"kquick@godaddy.com"
] | kquick@godaddy.com |
8cea560fba02030a0a26133fc24eb1c13946c0a5 | ae6177cf2ebe87c3749f03e0ffaade2dac8b8688 | /AulasPython/Parte1/Semana4/decrescente.py | 275cbedae0412d30178947b70b66b0b611437eff | [] | no_license | jmarq76/Learning_Programming | 8a7c598a733c1ba9983103e4aa284bed80ffabbe | bf15d351e239529645fb74a355e296d085683921 | refs/heads/master | 2022-11-17T23:03:32.236684 | 2020-07-07T12:05:56 | 2020-07-07T12:05:56 | 277,804,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py |
decrescente = True
anterior = int(input("Digite o primeiro número da sequência: "))
valor = 1
while valor != 0 and decrescente:
valor = int(input("Digite o próximo da sequência: "))
if valor > anterior:
decrescente = False
anterior = valor
if decrescente:
print("A sequência está em orde... | [
"58978254+jmarq76@users.noreply.github.com"
] | 58978254+jmarq76@users.noreply.github.com |
d019acbd04f6f92c44b1c6b5ef4f6c1d988e6d74 | c50c22c8f814c8d9b697337891904aa0be0edf56 | /shortest_string.py | b26e0a4d78a888e7c2d4a6252bf9b0d4e510728a | [] | no_license | mhiloca/Codewars | a6dc6e8ea5e5c1e97fb4a3d01a059b3120b556b7 | 3155e4b20fbd96c8e7fbe6564014a136d095c079 | refs/heads/master | 2020-07-11T12:41:19.997254 | 2019-11-01T12:44:38 | 2019-11-01T12:44:38 | 204,541,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | """
Simple, given a string of words, return the length of the shortest word(s).
String will never be empty and you do not need to account for different data types.
"""
def find_short(s):
return min(len(x) for x in s) | [
"mhiloca@gmail.com"
] | mhiloca@gmail.com |
c5d4d2f46c24a51bf6824c2c8735e80bc1f67f80 | 3f4464c932403615c1fbbaf82eaec096426b1ef5 | /StartOutPy4/CH6 Files and Exceptions/write_sales.py | ecb7c7a8611babac6e9db4c42a7bbdc92ed31f8e | [] | no_license | arcstarusa/prime | 99af6e3fed275982bf11ada7bf1297294d527e91 | 5f1102aa7b6eaba18f97eb388525d48ab4cac563 | refs/heads/master | 2020-03-22T14:07:08.079963 | 2019-05-09T11:45:21 | 2019-05-09T11:45:21 | 140,154,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | # This program prompts the user for sales amounts
# and writes those amounts to the sales.txt file. 6-8
def main():
# Get the numbers of days.
num_days = int(input('For how many days do ' + 'you have sales? '))
# Open a nuew file named sales.txt.
sales_file = open('sales.txt', 'w')
# Get the amoun... | [
"40938410+edwardigarashi@users.noreply.github.com"
] | 40938410+edwardigarashi@users.noreply.github.com |
0c2357d7adb5b24a1223a63d777fbf1484ae81ab | 6bcb73fc72587d24927eb9f1450ba3e676c421cf | /setup.py | 9d6ec105a703c31f0bd3be9f32394427a8abd00f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SorchaYang/Scopy | ed26cb9026de898e89e1d39bb7a8af2d041a34a9 | 897f9f0f41a90e0cff1e2fd28a7e82cfac051306 | refs/heads/master | 2022-06-09T19:14:14.962262 | 2020-05-07T10:16:07 | 2020-05-07T10:16:07 | 262,022,320 | 4 | 0 | MIT | 2020-05-07T10:40:58 | 2020-05-07T10:40:58 | null | UTF-8 | Python | false | false | 1,702 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 15 13:21:07 2019
@Author: Zhi-Jiang Yang, Dong-Sheng Cao
@Institution: CBDD Group, Xiangya School of Pharmaceutical Science, CSU, China
@Homepage: http://www.scbdd.com
@Mail: yzjkid9@gmail.com; oriental-cds@163.com
@Blog: https://blog.moyule.me
I love my senpai forerver!... | [
"yzjkid9@gmail.com"
] | yzjkid9@gmail.com |
d906c6552a6f100ecb942e4634c4b7e28aa9643d | e5cf384933ccc0b54edfc1e775e56586bc100f74 | /pixiv_downloader/pixiv_downloader.py | 1f858e4e6da6edd7f92feb021b5f5213814f07ce | [] | no_license | Einsbon/DeepLearning-with-Pixiv | bda902c07a955fe3bff081fb10986ca7e2fdaad0 | 642aadc892766623a5f861ab448975f36deab8ce | refs/heads/master | 2020-03-28T14:30:19.162858 | 2018-09-12T18:48:56 | 2018-09-12T18:48:56 | 148,493,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,885 | py | from selenium import webdriver
from bs4 import BeautifulSoup
import time
import urllib.request
import urllib
import getpass
import os
import shutil
phantompath = r'C:\Users\Einsbon\Documents\Python_Projects\python_window\crawler\pixiv_low_quality_image_crawler\phantomjs.exe'
chromepath = 'C:\\Users\\Einsbon\... | [
"noreply@github.com"
] | noreply@github.com |
d547c8a2ec1e142851a69e65f88b8dd40d883aaf | 5bf143f904a19a8ff94cf4a7ef8da8da25de3458 | /analyze_sentiment.py | 8d744c14a23fb55013f1cb8285781cf4c8a71f11 | [] | no_license | kurobeko1259/multsum | 7d51a181e43ae8ce28aab7af6e8dee9a48d276ad | cfd4fe98c8371578c804ec85197a75a59fa92869 | refs/heads/master | 2020-04-06T23:00:45.765070 | 2018-11-21T06:34:18 | 2018-11-21T06:34:18 | 157,854,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys, re, math, numpy
from sets import Set
f = open(os.path.dirname(__file__)+"/emotion_words_positive.txt")
#positive_emotions = Set(f.readlines())
positive_emotions = set()
for pos in f.readlines():
#print pos
positive_emotions.add(pos.replace("\n", ""))
f = o... | [
"[s.u.zzz1259@icloud.com]"
] | [s.u.zzz1259@icloud.com] |
40cf04c7d362189c7309e4ba6a220708a877cf9a | a4e2bd84a06e41a446b521a4a16ecf85e8aee76a | /locate_chromedriver.py | 968593b2dcbe3e79d6acfe7d62da1c0bde8ea2ec | [] | no_license | 526avijitgupta/Bookaway-testing | 273715bb07ab2b5216e4231b1ca63024846c0953 | cb3babd4b60de2e5b1e931fc63880987385ad052 | refs/heads/master | 2021-01-22T09:04:12.689869 | 2014-10-31T13:35:52 | 2014-10-31T13:35:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python
# Filename: local_settings.py
import os
print "Locating chromedriver on your machine.."
chromedriver = os.popen("find / -name 'chromedriver' -not -name '*.*' 2>/dev/null").read()
chromedriver = str(chromedriver.split("\n")[0])
if(chromedriver):
print ("chromedriver found! Executing Script..")
else:
... | [
"526avijitgupta@gmail.com"
] | 526avijitgupta@gmail.com |
d4ec50f6dfaad60ee5b78a209f3dfea8cc4a1456 | eabe353d086aacfe2953eaf5ec8cf71668ae1448 | /backend/card/migrations/0001_initial.py | 3dbd597c01a62d3b027b59fd1094d179e39c1c4d | [] | no_license | epc91/oblique-strategies | d5961e7b0ac92b3338cc6bddf213673d2779661a | de9ac2b1a75b44944534750178641ae1b34604a0 | refs/heads/main | 2023-07-10T11:30:05.971381 | 2021-08-24T23:16:38 | 2021-08-24T23:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.2.6 on 2021-08-14 01:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Card',
fields=[
('id', models.BigAutoField(... | [
"eduardopeschke@gmail.com"
] | eduardopeschke@gmail.com |
07774d6b330c67e1c6a3bd8784a7181f14658bae | 329e8d1ac5b2d38fef727921fdcebc9435dc8842 | /sysdetails.py | 419b8d78f0c693d716f6e4f0dec0d2d730574463 | [
"MIT"
] | permissive | ChankitSaini/DaisyX-Extra | 082a9a008df458bd3aeb765c068055598bea5978 | e1cafbbb4f5a7845ffd70e16e4395e7e797b2cf7 | refs/heads/main | 2023-04-24T02:25:15.715245 | 2021-05-14T05:18:19 | 2021-05-14T05:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | import platform
import sys
from datetime import datetime
import psutil
from telethon import __version__
from DaisyX.utils import admin_cmd, sudo_cmd
from DaisyX import ALIVE_NAME
# ================= CONSTANT =================
DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else bot.me.first_name
# =======================... | [
"noreply@github.com"
] | noreply@github.com |
c7a1545c04ec79435caf4f721bcbd105da6ab6dc | 18e6cf3e0f748b55738d927c9ea0b0dda71dd60c | /modelo mvc/main.py | fa3118ceea937e8e73a8b6cd0e7db5ad20be8448 | [] | no_license | Adjailson/AulasETE | d0d94697d2c74afb4b38c176d34d6264e2e12ff3 | 0a223e41e8680a7eddac6443a4d9c21ab5d808b9 | refs/heads/main | 2023-09-04T18:52:38.252095 | 2021-11-23T14:48:22 | 2021-11-23T14:48:22 | 399,248,907 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from view.telaView import TelaView
TelaView()
| [
"noreply@github.com"
] | noreply@github.com |
7afc571991601facfe9836680cdc867c586faa8b | ae3b0909aa4b9f96c17385c1c2e62721817121fe | /policy/task_decomposition_all_without_task.py | 580d0829db47525b4d360c18566c1892655c7fe7 | [] | no_license | saki-37/StarCraft | 9f58912f8006e60559d174fdb046c7fc16c15728 | a915116526478a00690393554f7ddf11b5acda5e | refs/heads/master | 2023-07-13T08:17:26.665932 | 2021-08-19T02:32:16 | 2021-08-19T02:32:16 | 398,439,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,091 | py | '''不传0。没有task score。按列求和选择最优动作。
'''
import torch
import os
from network.task_rnn_all import TaskRNNAll, TaskRNNAllwoTask
from network.task_decomposition_all import TaskDecompositionAll
import torch.nn.functional as F
import time
class TDAll:
def __init__(self, args):
self.n_actions = args.n_actions
... | [
"852488062@qq.com"
] | 852488062@qq.com |
ee3ca22e9c0f5e05bbf59b552966f070d8a674d9 | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /20~29/ABC021/honest.py | 9c7f3d43c9ab13670129a435bb52b6b7b42038ab | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | n = int(input())
a, b = map(int, input().split())
m = int(input())
x, y = [0] * m, [0] * m
data = [[] for _ in range(n)]
for i in range(m):
x, y = map(int, input().split())
data[x - 1].append(y - 1)
data[y - 1].append(x - 1)
dist = [[-1] * n for i in range(n)]
dist[a - 1][b - 1] = 0 | [
"yuuya15009@gmail.com"
] | yuuya15009@gmail.com |
62a6d539be9bbfbbbbed23228177058ae2f177d0 | 189d590adf09e309862e5f3aef1012c8a6e0b337 | /userbot/plugin/rename.py | d34526cdf9e8f7d497224a26489c06d9e3e5c380 | [
"MIT"
] | permissive | LegitWoLf/BlackShadowBot | dbabec745ccbb6dac5615dfaa5dd8a24849c9c4b | be3e3e5f390141944ce2f412274cbb0e1463c493 | refs/heads/master | 2022-07-02T21:30:25.346111 | 2020-05-15T11:50:04 | 2020-05-15T11:50:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,728 | py | """Rename Telegram Files
Syntax:
.rename file.name
.rnupload file.name
.rnstreamupload file.name
By @Ck_ATR"""
import aiohttp
import asyncio
from datetime import datetime
from hachoir.metadata import extractMetadata
from hachoir.parser import createParser
import json
import os
import requests
import subprocess
from tel... | [
"noreply@github.com"
] | noreply@github.com |
08b555c7ec6ff9ee16e439791eb8fbf841af3b69 | 8d74ac2b0acad1a10bc916d8566181ac801c7597 | /articles/migrations/0007_auto_20210305_2120.py | 4b9e92250ae194fa86adcf0379f40449a515f1d4 | [] | no_license | PatrickBoynton/news-app | e459b08f651258388d0d20074d94a685ad57d44f | 125464d4ff89d7a2297536e39ba4dd770e5089fa | refs/heads/main | 2023-08-22T00:17:30.512303 | 2021-09-24T05:19:32 | 2021-09-24T05:19:32 | 343,518,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # Generated by Django 3.1.7 on 2021-03-05 21:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0006_auto_20210305_0416'),
]
operations = [
migrations.AlterField(
model_name='article',
name='article_s... | [
"jpboynton3@gmail.com"
] | jpboynton3@gmail.com |
ba928fba58eaca0bce8982e702f44206ea394ad4 | 631d667ad3f5ef759923e63644e82af5e6bdebf6 | /Cryptology/Cyphers/Cyphers/CypherGeneration/Bifid/BifidUtil.py | 7f6969a258ced04ba6d69ce894d5b5c5178752f2 | [] | no_license | frankbryce/First | e808537593f96fb693e65bb909cd1a84dc2fa76e | a69ccb715a65d7647272402790674336e72431f0 | refs/heads/master | 2020-12-28T23:34:58.777395 | 2014-05-15T00:15:52 | 2014-05-15T00:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import StrUtil as s
alphabet = 'ABCDEFGHIKLMNOPQRSTUVWXYZ' # intentionally missing 'j'
Table = []
Result = []
def SetKey(keyword):
global Table
keyword = jtoi(s.StripStr(keyword))
keyalph = s.GenerateKeyedAlphabet(keyword,alphabet)
Table = [keyalph[i:i+5] for i in xrange(0, len(keyalph), 5)]
retur... | [
"jonnyjack7@gmail.com"
] | jonnyjack7@gmail.com |
4bbad83e050e46e0bd882f7147d3faa597ef6614 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/files_beta/setup.py | 917c1b376b39507335d14d388323f62f011a8a2c | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 1,858 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
62604aec9fec8d853af4fd5bdc81a077ae397e7c | 4e567fc53288f53cdcfa37c0f5490a29cf4bc0cd | /projects-inventory/inventory/inventorya.py | dc89e6b234d8d28aaf3a41b5b98a5039f3ac59d3 | [] | no_license | sidarmawan/ansible_training | 3e4bba3bde4557a23c92735314f09328319463c9 | 77d3acb3430143458de07ca2b8257f3a2637f59b | refs/heads/master | 2022-04-08T06:01:31.043044 | 2020-01-16T09:56:41 | 2020-01-16T09:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | htttps://materials.example.com/labs/projects-inventory/inventorya.py: Unsupported scheme ‘htttps’.
| [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
db7d00585385b6589b6b11d0e3b16814d349cc17 | a61ebd1507eeaa334aff44800b022ef0a258752a | /Code/CodeChef/remainder.py | 37c511c002d48cc5390d47f937a2ec559c35e257 | [
"MIT"
] | permissive | Jimut123/competitive_programming | 14ce0ab65414e6086763519f95487cddc91205a9 | b4cdebaceee719c1a256921829ebafda11c515f5 | refs/heads/master | 2023-03-05T15:42:57.194176 | 2022-04-08T08:53:26 | 2022-04-08T08:53:26 | 156,541,142 | 1 | 0 | null | 2019-05-29T17:10:28 | 2018-11-07T12:09:55 | C++ | UTF-8 | Python | false | false | 152 | py | #jimutbahanpal@yahoo.com
t = int(input())
l = []
for i in range(t):
m,n = map(int,input().split())
l.append(m%n)
for item in l:
print(item)
| [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
33bb22d6d151a3b8a644cd786b43bd9822fdbecd | 8f02ed34ca9d4c82cf3b6305792e0b43cb032456 | /motor_descuento/test/test_articulos.py | e8008d54a3a3d2ce86cabe415c54fdde4a89b02c | [
"Apache-2.0"
] | permissive | angelquin1986/tiptopDescuentos | 977569c15a9e5d3632177f4f7ce39c156931be3a | 6bca61d3142b75eee0e72f3932aeabcf1457526a | refs/heads/master | 2023-07-30T02:09:35.119053 | 2020-06-19T17:11:47 | 2020-06-19T17:11:47 | 272,595,003 | 0 | 0 | Apache-2.0 | 2021-09-22T19:15:28 | 2020-06-16T02:53:13 | TypeScript | UTF-8 | Python | false | false | 1,509 | py | """
@author aquingaluisa
"""
# Cargamos el módulo unittest
import os
import random
import pytest
from django.test import TestCase
# Creamos una clase heredando de TestCase
from motor_descuento.logica_negocio import ln_articulo as ln_articulo, ln_descuento
from motor_descuento.modelo.modelo_productos import Product
fr... | [
"aquingaluisa@galapagosislands.com"
] | aquingaluisa@galapagosislands.com |
ea6f324c9eaa7e365c7e8d1385843b1e0080dd62 | 5f0ce32209a69ca934174631df447b8d4d13caaa | /bibliotecaMath.py | 408d5eaecc1fb58bbb5282697c3d4545a2ba33a6 | [] | no_license | arthurcardosof/praticando-python | 8fea1da81ab09402d35db9f8cebfeaae664e90bb | f3c997e1963ddf1caad0396a6ec52803dc309583 | refs/heads/master | 2020-12-21T07:48:17.650179 | 2020-01-26T19:26:00 | 2020-01-26T19:26:00 | 236,363,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | '''
Exercicio: Crie uma função para verificar se uma palavra é palíndrome. Retorna true se for uma palavra palíndrome, e false se não for.
Exemplos de palavras palindromes: ovo, arara
'arara' -> [0], [1], [2]
'''
def palindrome(palavra): return palavra == palavra[::-1]
print(palindrome('arara'))
print(palindrome('m... | [
"panchobauer@gmail.com"
] | panchobauer@gmail.com |
65a4c9be5fe8054649cd3ece5dbe367bc18a3e9e | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/55JumpGame.py | f503b433be7298c6acd75a571e1e0b2c43dd3322 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 398 | py | # coding=utf-8
'''
Created on 2017�3�7�
@author: Administrator
'''
class Solution(object):
def canJump(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
mini_true = len(nums) - 1
for i in xrange(len(nums) - 1, -1, -1):
if nums[i] >= (mini_t... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
c80f4c821974aa8bd95e8d011cc9d0f71baae2a6 | 19e4d45d574d6dedd46fa9fac20faa1151fa2601 | /Euler49-PrimePermutations.py | a15d07ba65b2b5b3933211a5860e9f535f18255b | [] | no_license | zzflux/ProjectEuler | bba88d5e42232aa0d39d8325a7752f0983084135 | 796d0ed72738031a300a0e950bb792d046518e73 | refs/heads/master | 2021-01-01T05:14:19.125012 | 2016-04-25T22:45:17 | 2016-04-25T22:45:17 | 56,016,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | #Project Euler problem #49
#Prime permutations
#Jon McMahon 2016
import DivisibilityTools as dtools
import itertools as itools
import math
DIGITS = 4
SEQ_LEN = 3
BLACKLIST = ((1487, 4817, 8147),)
PRIMELIST = dtools.primeListWithDigits(DIGITS)
PRIMESET = frozenset(PRIMELIST)
GREATEST_PRIME = max(PRIMELIST)
SMALLEST_PR... | [
"jonmcmahon21@gmail.com"
] | jonmcmahon21@gmail.com |
7d4cf1affeb7426291e784ea8cf7e185ac843347 | 3bd3441d6cf42b50ce627db32495004d1e515d63 | /Lesson2/weather_station.py | e9c0349c1930f32517de816f5972e5bfe26f3c5e | [] | no_license | MikalaiMikalalai/head_first_design_patterns | cf8006a3b7d8f531a4872d150a73b5ed77b88a23 | 8792eae3d73e30912f93bf56c7d7b2d844e3d5ec | refs/heads/master | 2021-02-27T02:22:25.057364 | 2020-04-18T02:22:43 | 2020-04-18T02:22:43 | 245,570,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,367 | py | ######################################################
# Observer #
######################################################
import abc
import collections
######################################################
# Interfaces #
#############... | [
"mikalaip@google.com"
] | mikalaip@google.com |
71402662a43efd9f3ece9bfc6b5fb824add27987 | c676bf5e77ba43639faa6f17646245f9d55d8687 | /tests/ut/python/ops/test_tuple_slice.py | ea5112995c06203210d7c6ca569e2949187c6f26 | [
"Apache-2.0",
"BSD-3-Clause-Open-MPI",
"MPL-2.0-no-copyleft-exception",
"LGPL-2.1-only",
"BSD-3-Clause",
"MPL-2.0",
"MPL-1.0",
"Libpng",
"AGPL-3.0-only",
"MPL-1.1",
"LicenseRef-scancode-proprietary-license",
"MIT",
"IJG",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Z... | permissive | zhengnengjin/mindspore | 1e2644e311f54a8bd17010180198a46499e9c88f | 544b859bb5f46611882749088b44c5aebae0fba1 | refs/heads/master | 2022-05-13T05:34:21.658335 | 2020-04-28T06:39:53 | 2020-04-28T06:39:53 | 259,522,589 | 2 | 0 | Apache-2.0 | 2020-04-28T03:35:33 | 2020-04-28T03:35:33 | null | UTF-8 | Python | false | false | 4,665 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
a34d691e65e99a6c67292407136f05cfbeaeb546 | bafacfb2290ba3d32963ecfbfb6a749e71438050 | /cli_site/cli/migrations/0002_auto_20190705_1248.py | 004b28b80608f1b9385ba5bd9682755af98f08ac | [] | no_license | OneTallProgrammer/django-cli | 185066a564d52afe9f07301b0e94383b72735f64 | 8107b68b57c101fb20cdf857fbd6e5fe9bcbc69a | refs/heads/master | 2020-06-14T05:24:05.038459 | 2019-07-10T19:20:21 | 2019-07-10T19:20:21 | 194,916,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # Generated by Django 2.2.2 on 2019-07-05 12:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cli', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Agent',
field... | [
"jmcauthen@live.com"
] | jmcauthen@live.com |
8d4588530f69c619168a4cc1e6f9fb07ba1e6326 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_RelativeDifference/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_RelativeDifference_Lag1Trend_12_12_20.py | b92931e266c853cfe294b5ace5bc7d11ca7edc8c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 280 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
ec63ed048f6211cd69e8bc2bc40d3e6f418eaf0d | 336cd9225281befde93e01858ede15f70d3e5b47 | /params/cartpole_obs/shm_default copy.py | 2ab5c02726c7c6586d11fff9f5736ea8bffe8c5f | [] | no_license | GuancongLuo/mpc-mpnet-py | 7d6ba9f0c954185a724421091b1b098ec6d148e6 | 3d8d8ef743fd467fd2ffe177021edc6e852fd094 | refs/heads/master | 2023-02-06T03:49:06.072105 | 2020-12-07T11:01:08 | 2020-12-07T11:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | import numpy as np
def get_params():
params = {
'solver_type': "cem",
'n_problem': 1,
'n_sample': 32,
'n_elite': 8,
'n_t': 1,
'max_it': 5,
'converge_r': 0.1,
'dt': 2e-3,
'mu_u': [0],
'sigma_u': [400],
'mu_t': 0.5,
's... | [
"you@example.com"
] | you@example.com |
89474e153defaaa9938f24de4429e92defcd0542 | d723b9c2dcfc9e3366928fd0ea18ee5ee19c2b3c | /backend/apps/detections/upload_sets.py | 140c2d9bcfbee0781d15cc18a2aab00c879d9188 | [] | no_license | skarzi/yb_hackathon_2019 | ff8266e89ae6fa74d57c61e4117d6fc176dba825 | 83c3d96795f6b14f97683ad5c998579adb3faaf4 | refs/heads/master | 2020-09-11T01:34:55.206979 | 2020-07-19T07:50:16 | 2020-07-19T07:50:16 | 221,895,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from flask import current_app
from flask_uploads import (
IMAGES,
UploadSet,
configure_uploads,
)
detections = UploadSet(name='detections', extensions=IMAGES)
configure_uploads(current_app, (detections,))
| [
"skarzynski_lukasz@protonmail.com"
] | skarzynski_lukasz@protonmail.com |
81aa064e876bd2b4d52c97a334447ea805b84532 | e32f87eeccab48b690af53cc9e9c5558c21ce589 | /brownian_tree/tools/size.py | b27caad8c830dc1ab0fcbb3d859a992928c9627a | [] | no_license | mblicharz/diffusion-limited-aggregation | c822f21f7d0c0e7aba8c0dbe870bcff8ec650b7e | 40ed87c9d909ddf154483365a3c8bf525adb2b5b | refs/heads/master | 2023-05-31T11:38:11.878870 | 2021-07-02T15:14:00 | 2021-07-02T15:14:00 | 378,947,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Size:
def __init__(self, max_x: int, max_y: int):
self._validate(max_x, max_y)
self.max_x = max_x
self.max_y = max_y
def _validate(self, max_x, max_y) -> bool:
if max_x < 0 or max_y < 0:
raise ValueError(
"Both dimensions should be equal or grea... | [
"maciej.blicharz@protonmail.com"
] | maciej.blicharz@protonmail.com |
f63c373acfcbf528968315471e17ac98b2ea26b0 | 595471f4acc7c6db2b414019e069bcb510f24edc | /blog/migrations/0001_initial.py | 41c9e2d8887c36b9e654ce6c7e8239d8ee358c7c | [] | no_license | UshieChris/Blog-PROJECT | 9ffcbde536283443e6743d8b729691d18e4e1432 | 3bd751c49f95101579a9d6d0dc59c5f730ad1ec6 | refs/heads/main | 2023-03-30T03:39:48.214184 | 2021-04-09T16:29:01 | 2021-04-09T16:29:01 | 356,331,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # Generated by Django 3.0.5 on 2020-12-18 10:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"chrisushie301@gmail.com"
] | chrisushie301@gmail.com |
4b4a097a95f1da6da6dfa3927d7c83d66941ecdf | d8f0761acc94f9f1c0365e5a1716c9e17c6e4e16 | /scrapers/bs4_selectors/selector.py | cabcd3ea0bed6889945755aac7fe5cf0cdf9cd8c | [] | no_license | lesleyfon/one-time-scrapers | 75ca851107d59b4f2b7cd816b2ae46ecd11d6bc0 | 6ee5443497c9e05924abf5704c16112beb740064 | refs/heads/master | 2023-05-02T12:58:21.693133 | 2021-05-21T13:09:57 | 2021-05-21T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | ##############################
#
# Beautiful Soup cheat sheet
#
# by
#
# Code Monkey King
#
##############################
# Step 1: import packages
import requests
from bs4 import BeautifulSoup
# Step 2: define target URL
url = 'https://podsearch.com/listing/car-talk.html'
# Step 3: make HTTP request... | [
"freesoft.for.people@gmail.com"
] | freesoft.for.people@gmail.com |
aa9c2bf1b305cc6403a880948c9ce34f01af5268 | 2d19317ab9af09be9e6c8f0a25d4a43d4632b680 | /first_project/urls.py | 44eee9ee4a82b0a41d31cece1c0325b3b2218316 | [] | no_license | rudiq4/first_project | 73837d297b21ccd7c706fc08373473e9e4cd8b29 | ba0e987f863f599da9700c355875af76158b76f0 | refs/heads/master | 2021-01-25T13:41:56.102967 | 2018-03-27T14:15:26 | 2018-03-27T14:15:26 | 123,607,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """first_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
Cl... | [
"rudikvovan@gmail.com"
] | rudikvovan@gmail.com |
80a957f639ad9152f7478c2f7c5faf20dff26992 | 3907034857319c47efd09429f994ff4c8a34a642 | /bienes/urls.py | 9cb1ec71e2006a9673df3a25d19c1a410aaa861f | [] | no_license | xcarlx/bienes | c018af7582f725e06d354144bac8641e348192ab | 48a69798ead5d627b38a2d9afe84ad484ca4e7da | refs/heads/master | 2020-04-17T02:36:14.054458 | 2019-02-19T20:44:15 | 2019-02-19T20:44:15 | 166,143,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """bienes 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 ... | [
"cruiz@regioncajamarca.gob.pe"
] | cruiz@regioncajamarca.gob.pe |
f3b980f098f1f78d08ed82f4a62c12949fb78bde | 5c3fcfd1c30036154af34de9fbf11b77ebd31777 | /9444/ass1/hw1/src/part3.py | 05bd53f4097cb69ca9688d6c2d276e110cb6ed30 | [] | no_license | Skylerliutian/UNSW_19T3 | d5fc13a744aa6193c904404b9ef37010e89261a0 | cdc6324b5622a7326869f58c0cc53dd9976f22cb | refs/heads/master | 2022-04-16T13:37:43.400815 | 2020-03-27T09:46:43 | 2020-03-27T09:46:43 | 250,228,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,778 | py | #!/usr/bin/env python3
"""
part3.py
UNSW COMP9444 Neural Networks and Deep Learning
ONLY COMPLETE METHODS AND CLASSES MARKED "TODO".
DO NOT MODIFY IMPORTS. DO NOT ADD EXTRA FUNCTIONS.
DO NOT MODIFY EXISTING FUNCTION SIGNATURES.
DO NOT IMPORT ADDITIONAL LIBRARIES.
DOING SO MAY CAUSE YOUR CODE TO FAIL AUTOMATED TESTIN... | [
"skyler151096@gmail.com"
] | skyler151096@gmail.com |
4bbf1ff6013d7a48ce63d817454fb8940a26487f | 7d23fff61314842d6d7d8ca106382d163a04f139 | /watch/models.py | 3a423333ca2230cec766903c543e4a2e444032de | [
"MIT"
] | permissive | GeGe-K/Neighbourhood | 8b71bc789a72d34769436a5a912ffde87b3c014b | 366667dff147141558732e5c6f5004fe4cff221e | refs/heads/master | 2022-12-09T18:26:27.536704 | 2019-01-16T14:13:37 | 2019-01-16T14:13:37 | 165,236,886 | 0 | 0 | MIT | 2022-12-08T01:32:31 | 2019-01-11T12:00:41 | Python | UTF-8 | Python | false | false | 3,462 | py | from django.db import models
from django.contrib.auth.models import User
import datetime as dt
# Create your models here.
class Location(models.Model):
name = models.CharField(max_length=40)
def __str__(self):
return self.name
class Neighbourhood(models.Model):
'''
Neighbourhood cl... | [
"gloriagivondo@gmail.com"
] | gloriagivondo@gmail.com |
3bb37917a0398704646cc7328ac2b1f67c1f8a85 | 1ca5995b3f1debd011cf4c9d3382979ad103ff40 | /ros_workspace/src/regions/src/applytransformations.py | 167f015c21a78140e0270e815319a39cff8b1325 | [] | no_license | rcxking/cv_final_project | 06e864554affd19d062909c6b6b3d5e907f19f4f | 8751cd15d23afe721e4c523675dcd4648a4e2308 | refs/heads/master | 2020-06-01T17:53:19.579281 | 2015-05-15T16:24:24 | 2015-05-15T16:24:24 | 34,287,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | #!/usr/bin/python
'''
applytransformations.py - This script applies a series of transformations
to an input side of images and pickles the data.
Bryant Pong / Micah Corah
CSCI-4962
5/10/15
Last Updated: Bryant Pong: 5/14/15 - 5:10 PM
'''
# Python Imports:
import cv2
import numpy as np
from matplotlib import pyplot ... | [
"rcxking@gmail.com"
] | rcxking@gmail.com |
4ac983d36e1373bef3ae2040efb427f6810916b4 | 83e85a05d87d784d5beffe8d3c7c709bda9ffe6b | /py_src/samoa/request/replication_state.py | f1edef830b6e914167e2526762a1c227ed5af975 | [] | no_license | jgraettinger/samoa | 42c3015e525f3fdad61725ff4be569e758b32cc9 | 36d17dddeea0cc28a223e839ebf3cfb0bf3f7c07 | refs/heads/master | 2020-04-09T10:11:22.750684 | 2011-10-22T22:32:23 | 2011-10-22T22:32:23 | 533,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from _request import ReplicationState
| [
"johng@boomer.(none)"
] | johng@boomer.(none) |
a04bc47a13938f0f6f6d24f671bdcad4533f47f9 | 362efa5644c13e9a370e4d6ce4730833358e0ff0 | /MyWebsite/AGR/AGR/settings.py | 8bcd4ef8e2ed8fe4edddf75d747689f7b2af9f82 | [] | no_license | ISS-IS-IRSPM-AGR/-IRSPM | f07d7133d3005fbb14e784d8a2e719613f17dc0a | 556fc45cb31ddf56dd557305a603a514eaab672c | refs/heads/master | 2023-04-01T03:11:23.162711 | 2021-03-14T16:24:38 | 2021-03-14T16:24:38 | 347,680,073 | 0 | 1 | null | 2021-03-14T16:21:41 | 2021-03-14T15:51:06 | JavaScript | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for AGR project.
Generated by 'django-admin startproject' using Django 3.1.7.
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 pathlib impo... | [
"21048103+antoniadevina@users.noreply.github.com"
] | 21048103+antoniadevina@users.noreply.github.com |
5d8565f123ea80979f9cd6a4454521fd2ddff15c | b0de612c2f7d03399c0d02c5aaf858a72c9ad818 | /armi/nuclearDataIO/cccc/tests/test_rzflux.py | 93771c4e863ba214363f58516bdda65027c1eb5c | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | wangcj05/armi | 2007e7abf4b422caca0157fc4405b7f45fc6c118 | 8919afdfce75451b291e45ca1bc2e03c044c2090 | refs/heads/master | 2022-12-22T00:05:47.561722 | 2022-12-13T16:46:57 | 2022-12-13T16:46:57 | 277,868,987 | 0 | 0 | Apache-2.0 | 2020-07-07T16:32:40 | 2020-07-07T16:32:39 | null | UTF-8 | Python | false | false | 2,673 | py | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"noreply@github.com"
] | noreply@github.com |
58a803cde41cd78a494ce62be9283c642fa86e83 | eaea162301e30aece2bafc08a868c33ebe753324 | /main.py | d5db9e0a139f8043fbf0bd4dfdd9e6903ff8179d | [] | no_license | LAEQ/Pollution_StructurationTools | a56616638e20368c2d1fa41634d6cc277376b378 | 5439f9e148a0055781100fd9164c9068dd260199 | refs/heads/master | 2020-04-21T04:10:47.345888 | 2019-07-24T14:35:54 | 2019-07-24T14:35:54 | 169,305,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 07 14:15:16 2018
@author: GelbJ
"""
Racine = "E:/Datas/_Montreal 2019/A)_FieldData"
######################################################
### Config Steph
######################################################
#Users = ["ID1_JR"]
#Users=["ID2_LN"]
#Users=... | [
"noreply@github.com"
] | noreply@github.com |
0ee4eca75016f2b835c19c87122bb9b245e074d6 | f69580425242d3c2e27881f0c85be73915a6f81e | /pydnd/character/models.py | 84079f946cf1dddd30273502390f5c778fe56e77 | [] | no_license | pyasi/pydnd | 83c9a8626e60b32797d9c6abbdf9ba7ab36bdb4e | a2e880c8a7264d313cad56f9ea0eec72309ac20e | refs/heads/master | 2020-03-07T08:37:43.767559 | 2018-05-03T13:57:53 | 2018-05-03T13:57:53 | 127,384,097 | 0 | 0 | null | 2018-05-03T13:57:54 | 2018-03-30T05:09:48 | Python | UTF-8 | Python | false | false | 1,770 | py | from django.db import models
from pydnd.mechanics.models import MagicSchool
class AbilityScore(models.Model):
name = models.CharField(max_length=100, unique=True)
full_name = models.CharField(max_length=100)
desc = models.CharField(max_length=10000)
def __str__(self):
return self.full_name
... | [
"pyasi8192@gmail.com"
] | pyasi8192@gmail.com |
82f795bf9a7875dc84a5097c204ab284d9770801 | d232b3aa9449ad13a5b33f141d432c5a9f46aa7e | /Day3-1.py | bd0c791662db9a061f1774f4ef8d4bda64cf922f | [] | no_license | stephanie19950405/Python200805 | e75ba082faa65367a977652e65b2088e3d4669c5 | ad8a71874b0919aad49e6f9fe5cf214121a050a7 | refs/heads/master | 2022-11-26T02:59:39.331128 | 2020-08-05T08:41:29 | 2020-08-05T08:41:29 | 285,170,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 5 09:26:48 2020
@author: AE401
"""
for i in range(1,10):
for j in range(1,10):
print(i,"x",j,"=",i*j) | [
"noreply@github.com"
] | noreply@github.com |
3f710f824a9ba3fc05f946ea786168e280edb9f3 | 05040f0dce123be0d88e760808fdf6b1bbf1ac43 | /backend/manage.py | 38f19f1341ecef8ebd95be44a20975de9823d12e | [] | no_license | crowdbotics-apps/mobile-8-dec-dev-16453 | 8026421c163ab200a0106faaf3567faf469b348f | 3cc2feeba0d1a753a98db7167491e5a28d7ae6fe | refs/heads/master | 2023-01-23T10:02:48.817260 | 2020-12-08T15:42:47 | 2020-12-08T15:42:47 | 319,665,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | 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", "mobile_8_dec_dev_16453.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
72a405e1ba0507690cafee76a320b4682d94aac3 | b236c7ce962b3f35d70589993833f24eaf3ce948 | /train.py | 1f188e44283e9df69675b39c5da3d4783585b862 | [
"MIT"
] | permissive | Wblossom/Retinaface--without-landm | 499e11ef4fe51c7684c04769e4b4b3f0480f828e | 53c3574c95abab3665ce51de81cbf54b10d97fc9 | refs/heads/main | 2023-01-01T06:39:54.481816 | 2020-10-21T10:48:09 | 2020-10-21T10:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import torch
import torch.optim as optim
import torch.backends.cudnn as cudnn
import argparse
import torch.utils.data as data
from data import WiderFaceDetection, detection_collate, preproc, cfg_mnet, cfg_re50
from layers.modules import MultiBoxLos... | [
"kylin33@outlook.com"
] | kylin33@outlook.com |
14539757dac6949ee5971550e5ce037dd82f2b1f | d1a6f7a61035e8e85f70663677eef0794ed42b8f | /create dictonary.py | 3c5eb2d0df31c49d8ad7a5a6594eefab23a1db46 | [] | no_license | shubhamfursule/Create-Dictonry | aaf9a665dc14c950c54c9713b2f9d879f239f822 | d251528ae1b654a72964fb7daf43d404d4a3c5ba | refs/heads/main | 2023-02-09T03:20:07.039319 | 2020-12-28T18:15:44 | 2020-12-28T18:15:44 | 325,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | dicts={}
while True:
try:
key,value=map(str,input().split(","))
except:
print("Please Enter proper way")
else:
if key=="STOP":
break
else:
try:
dicts.update({key:int(value)})
except:
... | [
"noreply@github.com"
] | noreply@github.com |
f974ed4dfce8a8ce9c6813f917c8078319276785 | d6de09317cf3aeba4af26ae9ebacb3669f85899b | /oAuth/venv/bin/pip3 | 9c8aec44a34ad396320fcc678c1c0230d62a0182 | [] | no_license | Vaibhav-Kotadiya/Flask-oAuth | 66a0fd57ab3242cc81ecdef250d69b166248ff59 | 817ef470328cd5341fdb7ffa0354b3574d3dd936 | refs/heads/master | 2022-12-09T07:02:49.437622 | 2020-09-15T16:03:54 | 2020-09-15T16:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/Users/mac/PycharmProjects/Flask-oAuth/oAuth/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"mac@MACs-MacBook-Pro.local"
] | mac@MACs-MacBook-Pro.local | |
8b7bcd726beabde390de9d1928fa4f6a36307508 | 2e0a18c571b5f8000e9900e9a332eca5aff54f0f | /guppe/Seção 7/Deque.py | f759ccf0d293c473ffd25d117524a60bebc7daff | [] | no_license | LucasFerreiraB/Teste | bbf57e92db2bcc4795316c513959d2674252264b | d2b542aff96a27a727706df887506336062fbbda | refs/heads/master | 2022-09-27T11:38:07.755660 | 2020-06-05T18:38:22 | 2020-06-05T18:38:22 | 269,750,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
Modulo Collections - Deque
Podemos dizer que o Deque é uma lista de alto performance.
"""
# Import
from collections import deque
# Criando deques
deq = deque('lucas')
print(deq)
# Adicionando elementos no deque
deq.append('y') # adiciona no final
print(deq)
deq.appendleft('k') # adiciona no comeco
print(de... | [
"lucasferreira9b@gmail.com"
] | lucasferreira9b@gmail.com |
27818e0cbd1150b9c136e42d2890085eb3918eeb | e5a1e766d32fa2475b23e8bda93462ea98938a8f | /new_chat/wsgi.py | 2f4a3672370594a951791355a78a5ed6f3af4d72 | [] | no_license | ShoaibMoeen/Django_Chat_App | 7993efeb603d6df7315108822dff1a2513df8dba | 27c8c99d5f7308c710741b0454f81ec85ff3707a | refs/heads/master | 2023-03-05T20:29:35.349574 | 2021-02-17T09:27:02 | 2021-02-17T09:27:02 | 338,788,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for new_chat 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... | [
"shoaibmoeen4343@gmail.com"
] | shoaibmoeen4343@gmail.com |
2dda85a9ba04d01eb6f79efbf26e1aa3f5fe73a8 | b23f9b54f622032e71a80a497ca2d7dbd48469ad | /setup.py | d7560750ca56a0500f4ae92ea7dba81932711c29 | [] | no_license | h4ck3rm1k3/pycparserext | 15cf0a02429f3fd6bad977cd612e74ca7b20b891 | 489fd9c4804e7b3f17760b0800cf81a930a2ec7e | refs/heads/master | 2021-01-21T08:32:39.114178 | 2016-04-03T05:22:38 | 2016-04-03T05:22:38 | 55,293,358 | 0 | 0 | null | 2016-04-02T12:29:40 | 2016-04-02T12:29:40 | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/env python
# -*- coding: latin1 -*-
from setuptools import setup
setup(name="pycparserext",
version="2016.1",
description="Extensions for pycparser",
long_description=open("README.rst", "r").read(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audien... | [
"inform@tiker.net"
] | inform@tiker.net |
701090d667fe4a9f5daf26aa08d32a2d7dde0dcb | cda5f9506ff9a05ca6cc5c6fd29a56bb645f03e3 | /Grasshopper-Terminal-game-combat-function.py | 1265b0149a59ea7ccf489495107d14273b4188b1 | [] | no_license | zecollokaris/toy-problems | bc28799f41cdbddfa5a4a56c613031b3f52430bc | 66f6462ace04afbe025d90956573ef295d66f41f | refs/heads/master | 2020-03-25T00:20:17.099894 | 2018-08-04T20:12:16 | 2018-08-04T20:12:16 | 143,180,896 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | #############################################################################################################
######Question######
# Create a combat function that takes the player's current health and the amount of damage recieved,
# and returns the player's new health.
# Health can't be less than 0.
###########... | [
"collo.kariss@gmail.com"
] | collo.kariss@gmail.com |
f4ef0d969896be33f79af58aaa8261cb2e9aec27 | f112dfe38732f131156556ab724e2b9a01d317ae | /week6/12-olimp-results.py | 84111b344ca01350a77d270fb1eafcce9b46a3ef | [] | no_license | pharick/python-coursera | 2a92bf467e0ddd35a573ea4e29fff9a37e45bd24 | 3e24ac9385eada126e7c4753f71cd38181987fbf | refs/heads/master | 2020-04-04T03:44:45.067099 | 2019-03-20T07:10:22 | 2019-03-20T07:10:22 | 155,724,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n = int(input())
students = []
for i in range(n):
student = input().split()
students.append((student[0], int(student[1])))
students.sort(key=lambda student: -student[1])
for student in students:
print(student[0])
| [
"artemforkunov@gmail.com"
] | artemforkunov@gmail.com |
ea9bdeb9e2025531d7f315d480fb6d55a59df027 | ab36c659808a9c6f7b4dc873fbffd63d4b7a54cc | /functions.py | 0b8ce7451229eecd8741cb36884c4b506c1cb54f | [] | no_license | Mixpap/Ptyxiaki | 697da20d66f48df1adea1961871b3fdc4ac06913 | 6cb2dd1196f2bab275b81d17a35a85044d64b40f | refs/heads/master | 2021-01-22T13:42:16.877514 | 2015-07-28T13:02:45 | 2015-07-28T13:02:45 | 27,761,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,905 | py | from astropy.io import fits
from astropy import wcs
from astropy.table import Table
import numpy as np
import pywcsgrid2
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from matplotlib.colors import LogNorm
from matplotlib.patches import Rectangle
from mpl_toolkits.axes_grid1.inset_locator import... | [
"mighalis@gmail.com"
] | mighalis@gmail.com |
c961d180e49b2f37329b439a63ed3caf39182499 | 61febabc6aa34b7c47208aa7be5dfca88287ddaf | /Ch. 5 If Statements/Alien_Colors_2.py | f3d2b2cede94db66aee11d3245b9b9571a6284d5 | [] | no_license | chrisstophere/Python-Crash-Course | 4be7262acc2ff8ad26d99aceb028c25e4c7f9b0b | 702c44734e93df68ec55831626fb7a7a22ce2b8d | refs/heads/master | 2021-05-24T10:31:54.679224 | 2020-05-07T21:10:09 | 2020-05-07T21:10:09 | 253,520,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | alien_color = 'red'
if alien_color == 'green':
print(f"You shot the {alien_color} alien. You earned 5 points.")
elif alien_color != 'green':
print(f"You shot the {alien_color} alien. You earned 10 points.") | [
"chris@ewentech.com"
] | chris@ewentech.com |
70dd6b6891e4793418f9b327dcf8ddb1de563ef7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/clouds_20200703183549.py | deecd69a4f52fe13e3dd7c9a278d545d91b636a2 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def jumpingClouds(c):
i = 0
jumps = 0
while i < len(c)-2:
if c[i] == 0 and c[i+2] == 0:
print('here')
print('c---->',c[i],'i-->',i)
jumps +=1
i +=2
elif c[i] == 0 and c[i+1] == 0:
print('here2')
print('c---->',c[i],'i-... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
14b6e041b02bb82c853acc82a39ce2540e479dbf | 71d1c48161fadaaed2e9c4437e1194ce13b18622 | /working_with_api/english_vocabulary.py | b3b6503565d79ed20257c0d739fc6b1499e9b953 | [] | no_license | ikventure/some_projects | 2f43eef7ebe91e7d2ffaf4f96f2b55a4a8b7c141 | c87a1cab28662de8524ac3d77ba1884bd1fc53b9 | refs/heads/main | 2023-08-16T17:26:53.033466 | 2021-09-14T07:24:42 | 2021-09-14T07:24:42 | 401,194,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 11 16:15:44 2020
@author: ikventure
"""
filename = 'SUM_of_cet4+6+toefl+gre.txt'
txt = open(filename, "r").read()
txt = txt.lower()
all_words = txt.split()
words1, words2 = [], []
for word in all_words:
if len(word) == 6 and word[0] == word[-1] and word[1] != word[4]... | [
"ikventurelove@gmail.com"
] | ikventurelove@gmail.com |
f0ec7fdedb65b26187793048fe26edf04bd719b9 | b06b79983d2dbe596e9ad2171694f9124cdc7fc1 | /Python/memoryExample.py | 432ad951664f2b50a485e499b2e98253b74d72f5 | [] | no_license | ljthink/TDC-2 | 87e89124eb08c3b181f0aca2bed4a5beca43dd88 | b09ed8783a2401e8eaa35eb99a3bff79aaa382c3 | refs/heads/master | 2022-11-19T06:44:14.588905 | 2020-07-23T00:24:32 | 2020-07-23T00:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from QuartusMemory import QuartusMemory
q = QuartusMemory()
# Find index of instance named RAM1
inst = q.find_instance('RAM1')
# Read memory from device
arr = q.read_mem(inst,True)
# Print contents of address 0x04
print('Arr1:')
for k in arr[4]:
print(str(k) + ' ',end='')
print()
# Copy the array and change on... | [
"me@lramsey.com"
] | me@lramsey.com |
3ef2026eb83017aa5c24665674b8d15767fb2008 | 51d8f003828d6ee6e6611f0e133b1e35cf400601 | /ipaxi/ixbr_api/core/tests/use_cases_tests/test_service_use_case.py | 830992ce3f08fe190f0264ea26fd19099f6e8a39 | [
"Apache-2.0"
] | permissive | tatubola/xpto | 23b5f7a42c13c7d39eb321e52b9b4b2d1ef76c4c | 6ed8cec23b06bccb1edf57e6b67af017f9a162d3 | refs/heads/master | 2020-04-02T11:05:24.560009 | 2018-10-23T17:41:10 | 2018-10-23T17:41:10 | 154,370,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from unittest.mock import patch
from django.core.exceptions import ValidationError
from django.test import TestCase
from model_mommy import mommy
from ...models import ContactsMap, MLPAv4, Tag
from ...use_cases.service_use_case import delete_service_use_case
from ..login import DefaultLogin
class ServiceUseCaseTest... | [
"dmoniz@nic.br"
] | dmoniz@nic.br |
a6262547823f4b422a3298d7263130a495f95dc7 | 14825e285a5637d0c7e981e3c32c3b961e89f981 | /Identification/Rider.py | e6a641da3302e9d3b322b635a0a257877b712f91 | [] | no_license | simohn/Ride_on_Time | ef43627f6b65732309c41bf51692066e7920f8fc | 7e9ca19ba1c4c82f8423819b61345c686affb454 | refs/heads/master | 2020-04-21T16:31:26.765286 | 2019-08-27T18:10:28 | 2019-08-27T18:10:28 | 169,704,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # Code written by Simon Schauppenlehner
# Last change: 22.06.2019
import numpy as np
class Rider:
# Private class variable
_unique_id = 1000
# Public methods
def __init__(self, id=-1):
if id == -1:
self.id = self._get_unique_id()
else:
self.id = id
... | [
"schauppinger@gmail.com"
] | schauppinger@gmail.com |
2cf7a4b05dd7a1a4b8cd95fbc9af7fcfbc6af2ce | b42af24fae93c62573256c47bc10df396a098c01 | /snakegameyash.py | 3547106350dc9cc09401cc31f74ed7a3425382c4 | [] | no_license | YashVardhan-444/snakegame | ac597e284e4b4eb74038dd06200538dc930de494 | ac5807808dd45cfcb90898ab0112e45db1b9ff98 | refs/heads/main | 2023-07-13T11:18:31.361490 | 2021-08-13T16:11:17 | 2021-08-13T16:11:17 | 308,942,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | import pygame
from pygame import mixer
import time
import random
pygame.init()
white = (255, 255, 255) # constants defined to be used in the code ahead
# These parameters are color code for red,green and blue respectively
yellow = (255, 255, 102)
black = (0, 0, 0)
red = (213, 50, 80)
green = (0, 255, 0)
... | [
"noreply@github.com"
] | noreply@github.com |
cc578e23762a3824d2011e2c493327ac6fa7534f | 40361071089b4f243962c5dd2e0bd6144f76acbd | /cell_count_utils.py | 769ebe2450f13b3cdaf08e2d1dc651be248d2d58 | [] | no_license | liaorongfan/cell-counting | d555d06e8113ffc2dcf4c19e1e4003a9c61f8fac | 0f0640225fa3f6884efdd315158bf14dc47bedc1 | refs/heads/main | 2023-05-05T20:17:46.539954 | 2021-05-23T14:39:40 | 2021-05-23T14:39:40 | 370,076,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,942 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
def plt_show(img, figsize=(24, 6), gray=True):
"""默认画灰度图"""
plt.figure(figsize=figsize)
plt.grid(False)
if gray:
plt.imshow(img, 'gray')
else:
plt.imshow(img)
plt.show()
pass
def plt_show_... | [
"15670381505@163.com"
] | 15670381505@163.com |
841c1efe6325c2b67960e896a83526bf52ba892d | eb7541314c5368b8fc7d9264b25ae1f6813829bc | /Longest_Palindromic_Subsequence.py | e0801b6f9927041d8e62d26fc6a1196e8fabf181 | [] | no_license | BibekKoirala/DynamicProgramming | 7f7fbf18a5f2b8113dc232dbd3ba047d898727f1 | 81ca3e83ac4bc320c0cd12e2b638b5a044f7ed09 | refs/heads/master | 2022-12-03T18:08:42.392955 | 2020-08-19T07:30:58 | 2020-08-19T07:30:58 | 283,597,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def LPS(s):
Lookup = [[0 if i != j else 1 for i in range(len(s))] for j in range(len(s))]
k = 1
while k < len(s):
i = 0
j = k
while j < len(s):
if s[i] == s[j]:
Lookup[i][j] = Lookup[i + 1][j - 1] + 2
else:
Lookup[i][j] = max(L... | [
"bibek.high@gmail.com"
] | bibek.high@gmail.com |
89fe832ad18539d9ffcc91dc818c1d4a5827b99c | 0f2391cb82f218ed7505266c5f708725ed064427 | /roman-numerals-take-two/roman.py | d47eb096b46c40035d14e9d809a97c71d456881a | [] | no_license | tomviner/tdd-dojo | e34c6ecb1fd27113b0a0b33a5609c23d6695d226 | 3e35847b2e1d7b73132ee3a07a546abe26322e74 | refs/heads/master | 2021-01-22T02:34:06.146674 | 2014-11-25T14:07:51 | 2014-11-25T14:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | """
Roman Numerals
Write a function to convert from normal numbers to Roman Numerals: e.g.
1 => I
4 => IV
7 => VII
10 => X
99 => XCIX
"""
LOOKUP_NUMERALS = (
(1000, 'M'),
(900, 'CM'),
(500, 'D'),
(400, 'CD'),
(100, 'C'),
(90, 'XC'),
(50, 'L'),
(40, 'XL'),
(10, 'X'),
(9,... | [
"tom.viner@hogarthww.com"
] | tom.viner@hogarthww.com |
5656efc34e8254aae61d10bea0f54846789da243 | 338062cc2bb422f1364fd18ad5e721f6f713907a | /30. Библиотеки Python. Встроенные модули/Классная работа/Дни рождения друзей.py | 901cba0c8631ab75c84e2788ce36d59850346786 | [] | no_license | rady1337/FirstYandexLyceumCourse | f3421d5eac7e7fbea4f5e266ebeb6479b89941cf | 0d27e452eda046ddd487d6471eeb7d9eb475bd39 | refs/heads/master | 2022-06-17T03:07:51.017888 | 2020-05-12T22:17:34 | 2020-05-12T22:17:34 | 263,459,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import datetime as dtdin = dt.datetime.now()dn = dt.timedelta(days=int(input()))print((din + dn).day, (din + dn).month) | [
"noreply@github.com"
] | noreply@github.com |
87edc282a225d250961e93168a4da4a287edcf14 | 97f0f649b007f0ac9f7e2c7f4efdec1f06d6b154 | /decision_implementation.py | 9314086d4dd4f91519211d6d8a107c731d0b37a2 | [] | no_license | ajaymalik2592/projects | de877ea8aebde28900158a6c9a1f576caf64ccd5 | 0cabd9f85f6b056d82c28243157a06c64f45afc8 | refs/heads/master | 2020-05-14T08:24:03.121768 | 2019-04-16T16:03:59 | 2019-04-16T16:03:59 | 181,722,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | import numpy as np
import math
import csv
import random
data = []
with open('shuffled_data.csv', "rt") as filereader:
fil = csv.reader(filereader, delimiter= ' ' )
for rows in fil:
data.append(rows)
formated_data = []
i = 0
for da in data:
if(i == 207):
break
i+=1
da = da[0]
d... | [
"noreply@github.com"
] | noreply@github.com |
dca84f844680918ece78d15a17c804d7d4f4dc67 | b7683c108e68ee2d28573edf55923eb34cc2f5ee | /3_Image_Processing/9_Contours/1_Intro/1_Contours_on_binary.py | 9be454d9d82d0531c5524d093ed11ff8b9fa6b0f | [] | no_license | aCuissot/openVC_win_py_tutorial | cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01 | 7186b629747cb16f2bf42a03d2339d3dc3ea77bd | refs/heads/master | 2020-05-18T12:17:04.619047 | 2019-07-10T13:45:00 | 2019-07-10T13:45:00 | 184,403,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import numpy as np
import cv2 as cv
im = cv.imread('../../../Data/in/a.jpg')
imgray = cv.cvtColor(im, cv.COLOR_BGR2GRAY)
_, thresh = cv.threshold(imgray, 127, 255, 0)
contours, hierarchy = cv.findContours(thresh, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
cv.drawContours(im, contours, -1, (0, 255, 0), 3)
"""
pour ne dessine... | [
"harrypotter9752@gmail.com"
] | harrypotter9752@gmail.com |
7ee9aa6ee96971123bb69bee59b0a2cc28d60822 | c4ed52e5e9d0b059915bbf84c05b3af15ada4c59 | /test1.py | 0bf4d04c902597be641ec2d3c411cc4d8fe1c954 | [] | no_license | KI0KA/eop-by-Python | a70ae68d8399218d8ceed40032850fb15bdfc113 | 2ce8f1e4055dd6f3953f00c0f06f3b4adc1c8a7d | refs/heads/master | 2022-04-24T13:25:59.266896 | 2020-04-16T23:01:52 | 2020-04-16T23:01:52 | 258,407,300 | 0 | 0 | null | 2020-04-24T04:40:31 | 2020-04-24T04:40:30 | null | UTF-8 | Python | false | false | 103 | py | # test program
def main():
print("my first album".split())
if __name__ == "__main__":
main()
| [
"p9u78sxh@s.okayama-u.ac.jp"
] | p9u78sxh@s.okayama-u.ac.jp |
2508cb82f30d9ebd8cad74771e679948dda148d0 | 0a5618aba3e801cbd986a3c8a02c8bfbaafddb4d | /data_utils/utils.py | 36cd93312e8cabda8dbeb6b8b3a25c5a7a9bcf00 | [] | no_license | hmcck27/ps-helper-nlp | 2f899c2ae22524e5531c78b2a257ac0a0b043c7b | 6a99aa6a91477ac35f94b1548c9e8e9b441b9b8b | refs/heads/master | 2023-08-27T22:59:05.846434 | 2021-10-28T07:14:05 | 2021-10-28T07:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | import json
import torch
from pathlib import Path
class Config:
def __init__(self, json_path):
with open(json_path, mode='r') as io:
params = json.loads(io.read())
self.__dict__.update(params)
def save(self, json_path):
with open(json_path, mode='w') as io:
jso... | [
"backend@JK.local"
] | backend@JK.local |
e2305deb0d46015fcf8ec048392eb7496180110b | 73ed323e7fc049dd1dff3b6556987a5ed11db48e | /roman_to_integer.py | 1502741d73e71598134f514d19e6416dc6b0af1e | [] | no_license | andyOrigin123/LeetCode_easy_problems_with_python3 | 3c81fe5fac1cb0201ae1c37b5dbaea7531a3a4b5 | ede0c8ec7d325fc18741ca903b45e8d2ef963039 | refs/heads/master | 2020-04-30T20:54:39.944731 | 2019-03-26T15:11:01 | 2019-03-26T15:11:01 | 177,081,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | """
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve i... | [
"noreply@github.com"
] | noreply@github.com |
56c2dc305f24ba5731f349d4284d1ede0e056579 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/ebs-default-kms-key-id_modify.py | 9590bdb3b63ab3aa9cd39ae2bf409a3fec3eef4f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/modify-ebs-default-kms-key-id.html
if __name... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
3da46091f694239b44ce3c59e315748ab9fcae39 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/pandas/tests/groupby/test_filters.py | 2ce04fc77408301e12a3a44d30366dafee4d3aad | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 20,388 | py | import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Series, Timestamp
import pandas.util.testing as tm
def test_filter_series():
s = pd.Series([1, 3, 20, 5, 22, 24, 7])
expected_odd = pd.Series([1, 3, 5, 7], index=[0, 1, 3, 6])
expected_even = pd.Series([20, 22, 24], index=... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
34055673d955ae3740bf5aea6ba66a3cb020511c | 8c770324ddd14971f977f49ed29be2360d4ace6c | /assignment2.2.py | 267c9fdede76f5ec4fce384ecd620e91be5f89b8 | [] | no_license | Tathagatac001/Python_assignment | 9db4b0d9325696d4391fbf2723531b9dd765764b | 6b55546174a2a70a89e062e8680ab3b3d330fb47 | refs/heads/master | 2018-09-10T03:34:28.844667 | 2018-06-05T09:40:02 | 2018-06-05T09:40:02 | 115,848,048 | 0 | 0 | null | 2018-02-10T06:35:10 | 2017-12-31T06:52:47 | Python | UTF-8 | Python | false | false | 158 | py | my_input='*'
for i in range(0,2):
for j in range(1,6):
if i == 0:
print my_input * (j-i)
if i != 0 and (6-j-i) != 0:
print my_input * (6-j-i) | [
"noreply@github.com"
] | noreply@github.com |
20a86eda7d13a8fc89be63deebdf830ce2d59c53 | 3a8050cea13e94853954d52ff55552b0c3d8a2b1 | /extendedmodels/Race.py | 1dfc5f0b67395a14503170a067815fbb432fb8a9 | [] | no_license | marcelomrocha/frecog | eb5fb606fbeeff78982cf4322584cac1f1f84202 | 181a86df6e11203081372538fae274fbd37cfc89 | refs/heads/master | 2023-04-16T22:59:34.622823 | 2021-04-12T01:36:03 | 2021-04-12T01:36:03 | 355,626,321 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | from basemodels import VGGFace
import os
from pathlib import Path
import gdown
import numpy as np
from keras.models import Model, Sequential
from keras.layers import Convolution2D, Flatten, Activation
import zipfile
def loadModel():
model = VGGFace.baseModel()
#--------------------------
clas... | [
"noreply@github.com"
] | noreply@github.com |
325a3b9477e74cb62718555392992eecbe79e947 | e37665534d517821f1bdb907902a818773d28e58 | /autotrading/scheduler/trader.py | f9a8da82d4570e2ec8494617f00fdbc34d7505f2 | [] | no_license | hyeon95y/tutorial_trading_2 | 2103cc27c4ced490cb98e24d6c8e707ac4d51d2c | 1a5526deeffd50784fdeaf408416be060dadccb9 | refs/heads/main | 2023-02-28T05:26:29.245523 | 2021-02-06T07:37:51 | 2021-02-06T07:37:51 | 335,929,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | import configparser
import datetime
from celery import Celery
from autotrading.db.mongodb import MongoDbHandler
from autotrading.machine.korbit_machine import KorbitMachine
from autotrading.pusher.slack import PushSlack
app = Celery(
"get_coin_info",
backend="redis://localhost:6379/0",
broker="redis://lo... | [
"hyeon95y@gmail.com"
] | hyeon95y@gmail.com |
eea41913ddcd22156013f964a4b6b70d017450aa | 8ea896e975fdb967f013e2b69d453df8881eb8f9 | /spark-2.x/src/main/python/ml/logistic_regression_summary_example.py | 26882a8dc7de5dbc1caf79a70959595925d295f6 | [
"Apache-2.0"
] | permissive | lhfei/spark-in-action | 1d0df5a22230e458be2583066537c09d20a1b98b | 0bf915588f4aa36b17b89a2a8f4a055b342e2295 | refs/heads/master | 2022-07-15T05:43:02.805743 | 2020-08-25T07:33:59 | 2020-08-25T07:33:59 | 33,342,589 | 6 | 3 | Apache-2.0 | 2022-06-27T16:13:02 | 2015-04-03T02:36:44 | Scala | UTF-8 | Python | false | false | 2,508 | 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 n... | [
"lhfeilaile@gmail.com"
] | lhfeilaile@gmail.com |
6bf1fcb69afde705f23184d4247094c7518ea8a8 | 21a29ab436a0f48c9968da788ba6ee2c293a8ad1 | /scripts/pdts/pdts_dropA_t0.py | 9c54822e5a81b3a036abddd99ded99f9eceb23eb | [
"MIT"
] | permissive | bazhiyong/chempropBayes | 3520a8cc17d4fe556869229a0de3855538fa5440 | 88d660398a772705804568b671b3614c636505aa | refs/heads/master | 2023-03-19T19:15:13.219611 | 2020-12-30T14:50:59 | 2020-12-30T14:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | import os
import torch
# checks
print('working directory is:')
print(os.getcwd())
print('is CUDA available?')
print(torch.cuda.is_available())
# imports
from chemprop.args import TrainArgs
from chemprop.train.pdts import pdts
# instantiate args class and load from dict
args = TrainArgs()
args.from_dict({
'datase... | [
"willlamb@beaker.cs.ucl.ac.uk"
] | willlamb@beaker.cs.ucl.ac.uk |
a2c28551321a031321b269385b8a40dee9d39c56 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/tables/azure-data-tables/azure/data/tables/_generated/aio/operations/_service_operations.py | 4ef1391d9b929f9750111cbb76a4882ccc33b059 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 13,225 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
9f04a9500f8175d8ed755a33ec11a015c460d1ad | dd32fef3e19dfde746c2a0e67a460470397c98fd | /scripts/converter.py | 2a430feebda1cf9b031ea53b1aaf8243c439c9ad | [
"MIT",
"Apache-2.0"
] | permissive | sujiongming-git/captcha_trainer | bfffeb9845d178d6c0fade75ac927cb2a00c7877 | fa14ebd42aad91cd97724c7bc275d79b1008facc | refs/heads/master | 2023-06-18T11:42:20.226556 | 2021-07-17T14:11:30 | 2021-07-17T14:11:30 | 295,317,327 | 0 | 0 | Apache-2.0 | 2020-09-14T05:53:18 | 2020-09-14T05:53:17 | null | UTF-8 | Python | false | false | 816 | py | import re
import os
import hashlib
# 训练集路径
root = "/Users/jm.su/Documents/code/captcha_trainer/scripts/taiwan-post/"
all_files = os.listdir(root)
for file in all_files:
old_path = os.path.join(root, file)
print(old_path)
if "-" in file:
file = file.split("-", 1)[-1]
print(file)
# continu... | [
"jm.su@aftership.com"
] | jm.su@aftership.com |
5cd7b233417a40dd0a9ef71afaa6969d9ba3b514 | 0fc891df6703ce3f91fe6005a6c582e573ed6c13 | /CWMT/user_login/migrations/0015_auto_20170811_1319.py | a97c1ba8d678eadfeaa3a8c5c6947edbde7ec3a2 | [] | no_license | Zeco-01/CWMT2017-REG | ce155343575d3b8b49eda584b40bdd1716368e38 | 5e71ddc38f3020d1582d0b38f2f8d0eace615b88 | refs/heads/master | 2021-01-02T22:19:25.372629 | 2017-09-18T06:46:11 | 2017-09-18T06:46:11 | 99,318,036 | 1 | 1 | null | 2017-08-11T15:17:24 | 2017-08-04T07:47:43 | Python | UTF-8 | Python | false | false | 521 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-11 13:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_login', '0014_auto_20170811_1310'),
]
operations = [
migrations.AlterF... | [
"leezehua@outlook.com"
] | leezehua@outlook.com |
e30eac1ded6ffcfd4458f5a272fdbbeb01c07f3a | f3a7eae3031bb9afe75116a9b86278490ac4a7e6 | /text/symbols.py | c329f2df647246d4d8e564a02e78e26b68ac2691 | [
"BSD-3-Clause",
"MIT"
] | permissive | LOCS-AI/Multilanguage_Tacotron_2 | ea34c4fb41e8112537529945b5a31cf2e78d0610 | 82c788fb26d93c6735c54c2fe4ae7bcbd0eec69f | refs/heads/master | 2022-12-31T01:39:57.432804 | 2020-10-08T00:04:58 | 2020-10-08T00:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """ from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. '''
fr... | [
"thien@locslab.com"
] | thien@locslab.com |
24afdc57d33138a22371de464d7a9b191044f405 | 70be3c06f85f79e5660a1943e08651c6a5dc1032 | /stats_test.py | 0c7911d12bc2571e969d8cd8d612a8f513152511 | [] | no_license | archisman-panigrahi/ppa-stats-1 | fa2353caedd88f3284e3cb8e723c676cefd9ad97 | bb69387c122fa9d532aa5917938a3df3caa77ad9 | refs/heads/master | 2023-08-22T12:51:32.148712 | 2021-06-17T04:44:49 | 2021-06-17T04:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | import collections
from launchpadlib.launchpad import Launchpad
from pprint import pprint
import os
_lp_cachedir = os.path.expanduser("~/.launchpadlib/cache/")
launchpad = Launchpad.login_anonymously('anon', 'production', _lp_cachedir)
def get_binaries(ppa_owner, ppa_name, package):
owner = launchpad.people[ppa... | [
"hsheth2@gmail.com"
] | hsheth2@gmail.com |
b3de1c46413851b6c79b57c8ef17df6ce6239f08 | 7af268d7aa98473612afcb21fdeaf9ae4bfd6a5c | /electra_spacing/dataset/dataset.py | 4d540cb9b136e5ae3c9025ed54b60e7f1586c678 | [
"Apache-2.0"
] | permissive | seujung/electra_spacing | 3db19460a64cb9acde3d55e5ff72ba2a905ea3a1 | 7f7711567fff68284546e081f4236647dba6b5ac | refs/heads/master | 2022-11-28T14:04:08.971835 | 2020-08-14T13:48:41 | 2020-08-14T13:48:41 | 287,406,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | import torch
import dill
import pandas as pd
from random import random
from operator import itemgetter
from electra_spacing.tokenizer import get_tokenizer
special_tokens = ['[PAD]', '[UNK]', '[CLS]', '[SEP]', '[MASK]']
class SpacingDataset(torch.utils.data.Dataset):
def __init__(
self,
file_path... | [
"digit82@gmail.com"
] | digit82@gmail.com |
f0ee93a4074c8da518c1450c274a30b1cdd2ac23 | fde3f15c0640d542d13d448947933defa7e3b1df | /src/_test/test_login_fail.py | 81965bdc1fc2ce631552b0ae289693e00617031e | [
"MIT"
] | permissive | zxdxjtu/cloudComputingProject | 8c67d559eed520d39a9ad0afbe626613b55ba334 | f5b1f9254e3795f1ee64eec7234643d4a98e5996 | refs/heads/master | 2021-05-04T05:55:25.829756 | 2016-10-16T17:04:13 | 2016-10-16T17:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app import app
from blueprint_test_case import BaseTestCase
class FlaskTestCase(BaseTestCase):
# Ensure login behaves correctly with incorrect credentials
def test_incorrect_login(self):
response = self.cl... | [
"rxie25@gmail.com"
] | rxie25@gmail.com |
03608d220d4d293c64e7d19d2c5178953574c174 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7/W_w_M_to_C_pyr/pyr_6s/L7/step10_a.py | 6c005ce2d39cf14a6d40bc0a6f470140b0365a40 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942,122 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
df8348437cb3f52a36143204a8098092a7baae05 | cdd2003610c4c451dc38781d5ece2cf4e8138c27 | /src/convert_rviz.py | cd66d10b1a8cd9aecf17d38b1ef969533384d9a9 | [] | no_license | DLu/rwt_config_generator | 7efb29d773dddae0868be14606ba91893fae806c | 873b1aa0d4c94cdba3b15ef85d46f70c26f6dc86 | refs/heads/master | 2020-12-24T16:24:02.304617 | 2016-03-03T19:04:52 | 2016-03-03T19:04:52 | 39,230,985 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | #!/usr/bin/python
from __future__ import print_function
import sys
import yaml
from rwt_config_generator import *
import argparse
import rospy
def warning(*objs):
print("WARNING: ", *objs, file=sys.stderr)
parser = argparse.ArgumentParser()
parser.add_argument('rviz_config')
parser.add_argument('output_html_f... | [
"davidvlu@gmail.com"
] | davidvlu@gmail.com |
e43360af1818f7088e1ee3d0ef5d5ef217670f8a | 057caac442baac22cc9040519e3366156f79400e | /lista1/zadanie2.py | 4ef382a4e7f3f6901d3b3e6c524ca180d608cd8e | [] | no_license | KleczkoPawel/Python | 370239245e5a9e416b0f598bccd426034f2039c8 | ad565c1227ff4c621f2e996578a1d9a19d06f0e3 | refs/heads/main | 2023-03-27T10:04:06.788344 | 2021-01-21T07:30:52 | 2021-01-21T07:30:52 | 304,240,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import math
a=3
b=4
alfa=47
Pole=a*b*math.sin(alfa*math.pi/180)/2
print(Pole) | [
"noreply@github.com"
] | noreply@github.com |
37d110627122f58399dd78c0806effabc6ac07e5 | c2014b0a4ee80f39d4f3c4578341312ea963e615 | /Assignment2/RFassignment2Predict.py | 26468bea0c38693611a0420f1d0f91ae7a05dc0c | [
"MIT"
] | permissive | MaximilianMihoc/MachineLearning | a65fb5d783076a76db3127d1cd661e01cb4fc79b | bee03a4beea58bc500c890229536536cf78c8f43 | refs/heads/master | 2020-04-01T18:28:49.371455 | 2018-10-21T14:36:32 | 2018-10-21T14:36:32 | 153,495,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | from pandas import DataFrame
from sklearn import preprocessing
from sklearn.feature_extraction import DictVectorizer
import numpy as np
import pandas as pd
import csv
from sklearn import tree
from sklearn import cross_validation
from sklearn.cross_validation import train_test_split
from sklearn.metrics import confusion... | [
"max.mihoc@gmail.com"
] | max.mihoc@gmail.com |
f025afbae8373d9c8e6056447c01f0f352ed3c2d | 12cf92d68790693e06a7088c98a856ced4536554 | /tools/pruneMentions.py | 5c04c03c14f9dac73b4c6d5f576ebdb6301d17d3 | [] | permissive | DaylightingSociety/SocMap | b334ff49c986c55c57dedc450e0bde035077daa3 | c8e9f40efdcee2c765cd02b6398d948fecf6bd83 | refs/heads/master | 2021-05-05T06:37:15.683469 | 2020-09-14T16:14:02 | 2020-09-14T16:14:02 | 118,809,485 | 18 | 4 | BSD-3-Clause | 2019-06-18T22:00:29 | 2018-01-24T19:07:59 | Python | UTF-8 | Python | false | false | 707 | py | #!/usr/bin/env python3
import sys, os
import igraph as ig
# This script deletes all edges with < threshold number of mentions
# It does *not* delete inaccessible nodes afterwards (see pruneInaccessible.py)
if __name__ == "__main__":
if( len(sys.argv) != 4 ):
print("USAGE: %s <mention threshold> <original.gml> <pr... | [
"milo.trujillo@daylightingsociety.org"
] | milo.trujillo@daylightingsociety.org |
4568f2467a081a10c3b7057b1d105a5e0f16e682 | 2bd5e4c50dc9f0d19f9f20ffdaf0b88578fd7644 | /Matmatic.py | 42b7f86d1b6fe851238c47cc7550adf3098386e0 | [] | no_license | Mistik535/Zadachi | e248e9d0c6fc094545bab798af60870782868ce1 | d37b2b9fbd1c52c1d9a7345c8aa5a197e4527902 | refs/heads/main | 2023-07-03T10:25:50.728833 | 2021-07-22T17:23:55 | 2021-07-22T17:23:55 | 348,099,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # a = 2
# b = 2
# c = 3
# # #y = list(map(int, input().split()))
# x = (a + 2 * b - 3 * c) / (5 * a + 4)
# print(x)
#
# # dont work!
import math
#
# a = 2
# b = 2
# # x = (a ** 2) + (b ** 3)
# # w =
# x = math.sqrt(math.pow(a, 2) + math.pow(b, 3))
# print("x:", x)
#
# y = 1
# x = 2.136 + (2 / 3) * y
# print(x)
#
# a =... | [
"mr.chadway@gmail.com"
] | mr.chadway@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.