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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c266c889f792a3b3629b97cb48f01a1e98e7ab09 | 4ca0cb74402be70c63ad8e1c67b529cd7770ba38 | /19_model-view_controller/mvc.py | f0b57f822676e41408bad59aeb0327aba2d02a44 | [] | no_license | alxfed/python-design-patterns | 06af6f8e47925bcafe39a117943dd8287a6fe567 | b1a1ffb02b6e81e44bc7f0491376f9121b325a09 | refs/heads/master | 2020-04-02T04:34:18.060976 | 2019-12-18T16:08:00 | 2019-12-18T16:08:00 | 154,022,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | """
mvc.py
"""
import sys
class GenericController(object):
def __init__(self):
self.model = GenericModel()
self.view = GenericView()
def handle(self, request):
data = self.model.get_data(request)
self.view.generate_response(data)
class GenericModel(object):
def __init__(... | [
"alxfed@gmail.com"
] | alxfed@gmail.com |
250a67bc0c4b54f6ad97213cfde878f64d8c88d8 | 9a5e417572dad9712180d89063d4a4bc0517cc04 | /app/request.py | 2f58ed48bfb409811912f4370687c5412f4db98f | [] | no_license | philipiaeveline/WATCHLIST | 39d91de12e7a515f414853c94e24eca45cd911cb | 1dcd380bf11a5980259ffad373fc23cceaa0f6fe | refs/heads/master | 2023-01-18T23:01:51.688233 | 2020-11-28T08:29:12 | 2020-11-28T08:29:12 | 316,217,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | import urllib.request,json
from .models import Movie
api_key = None
base_url = None
def configure_request(app):
global api_key,base_url
api_key = app.config['MOVIE_API_KEY']
base_url = app.config['MOVIE_API_BASE_URL']
def get_movies(category):
'''
Function that gets the json response to our url r... | [
"philipiaeveline13@gmail.com"
] | philipiaeveline13@gmail.com |
291295000c491f1a395e8bb1f95090929391a4c3 | 745844af714c767402011ac0bf50b94bf73dcbb1 | /Exercises/Results/jone2032/crud.py | ad6e316be1e09ccfc2795072e82d67a80af627c7 | [] | no_license | Mark-Seaman/UNC-CS350-2017 | 32584522e55f9678516350380d4ae046c17e712f | 7728e6068acf0732be5555be53fa615b9736ca7b | refs/heads/master | 2021-08-30T11:00:24.429682 | 2017-12-07T20:24:40 | 2017-12-07T20:24:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | # crud.py
from os.path import exists
from os.path import exists
from files import read_csv, read_file, write_csv, write_file
from csv import reader, writer
## Pair Programming Guide
# * Work in Pairs (1 keyboard + 2 brains)
# * Switch for every iteration (micro-story)
# * Test - Code - Refactor (Fail, Pass, Beautif... | [
"noreply@github.com"
] | Mark-Seaman.noreply@github.com |
697728c4d441967b7ee1b41e84a36fbef1213c3f | de77865d79a70c8e5c8f024340c198eea45c6c68 | /src_code/plot_chern.py | 8be92c963a3065dab600760a4c865a8669d02038 | [] | no_license | yunhong111/hashCorrelation | ea265f6204382e81439cf13ce7db3da8c9ccb16a | f82463ee7665aedf9a9e508008a9d7d2ff8e7123 | refs/heads/master | 2021-01-25T12:31:15.403038 | 2018-04-02T16:36:08 | 2018-04-02T16:36:08 | 123,475,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import matplotlib.pyplot as plt
import pandas as pd
flow_num = [5000*i for i in range(1, 6)]
df = pd.read_csv('../outputs/chern_values.csv', names=['a'+str(i) for i in range(5)])
print df.iloc[0:5]
# Plot
fig = plt.figure(figsize=(4.3307, 3.346))
ax = plt.subplot(111)
types = ['o-', '^-', '*-', '<-', '>-', '+-']
co... | [
"yunhong1110@gmail.com"
] | yunhong1110@gmail.com |
66379b12d4d5befc395446e0bd7e8fd9610fbfe9 | 7626a8371c7a847f93bdae5e1d6e03ee9667c3ba | /func/print_area_kz/venv/bin/sqlformat | 87ba197dbb67cb1b0c1fd9666d91f0b0353cc1f2 | [] | no_license | zzyzx4/sp | 52c815fd115b4605942baa73687838f64cd41864 | 90c7a90b3de27af674422e2c8892bad5ba7891e8 | refs/heads/master | 2020-05-23T21:20:28.166932 | 2019-07-19T11:56:49 | 2019-07-19T11:56:49 | 186,950,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/user/PycharmProjects/print_area_kz/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dastik0101@gmail.com"
] | dastik0101@gmail.com | |
d656310ee6ebfd2a08f1c9d937689b1dc201bd12 | 969b83ba4110e84434c3f955f132627427f6d305 | /server/message_unreact.py | 75b0e5bd369b6632da2297d4c0594935723ab94e | [] | no_license | emcintire/slackr | d49b3cae6d93ec7b0ee4fee22feb186d2c5db564 | c85a083c4f11ec77aaa67d186f2f59ef69a20eef | refs/heads/master | 2021-06-29T17:35:48.704628 | 2021-06-05T18:44:47 | 2021-06-05T18:44:47 | 230,976,869 | 0 | 0 | null | 2021-01-05T18:47:41 | 2019-12-30T20:39:33 | Python | UTF-8 | Python | false | false | 974 | py | import jwt
from appdata import data, valid_tokens, channels, decodeToken, getMessage, getMessageChannel, isUserChan
from server.error import ValueError, AccessError
def message_unreact(token, message_id, react_id):
global channels
try:
u_id = decodeToken(token)
#check if react_id is valid at th... | [
"noreply@github.com"
] | emcintire.noreply@github.com |
f0a406207fdc6930328b5b04a850ec7bb4b781ee | 8ba154db185f17257306dcb9929ba67f68aba396 | /Day_3/Day_3 Triangle Quest.py | a8aee3403e8b44e317479884149036ad6c46572d | [] | no_license | GILLA-SAITEJA/Innomatics_Internship | 749d2346bddcd6ad0ce757c956981f9a9a1c0cea | 43a0525aeac0ca213aeb69ad838dfbd371f88ac4 | refs/heads/main | 2023-03-25T07:33:09.768492 | 2021-03-25T15:07:16 | 2021-03-25T15:07:16 | 331,515,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also
print(int((10**i)/9)*i)
| [
"noreply@github.com"
] | GILLA-SAITEJA.noreply@github.com |
7da11b2b6560f70a07cfc5ee79bacf3b82b37c85 | 926f23a55dbe360a67bcda9714e1d28a300501bc | /stylelens_search_vector/api_client.py | e401df529385b97e7649f581d5080a6fcf9ecbad | [] | no_license | bluehackmaster/stylelens-search-vector | 08dd24b38e410b40710a7cbeb2dd4a303c981669 | a45a089039dcfa0fbfbe77ac3c12b39088147303 | refs/heads/master | 2021-05-08T04:27:06.091937 | 2017-10-26T13:08:31 | 2017-10-26T13:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,215 | py | # coding: utf-8
"""
stylelens-search-vector
This is a API document for Vector search on bl-search-faiss\"
OpenAPI spec version: 0.0.1
Contact: bluehackmaster@bluehack.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import ... | [
"master@bluehack.net"
] | master@bluehack.net |
76f8173348a5716b3da3222f4654c8d1a1347e29 | 7033686cf027f6f9d25349bdd3cc83e30aa88327 | /main.py | 6812aef93085071f6a353bf7dc8a5fa9b4d05f5a | [] | no_license | Kerni1996/SocialWebGroupProject | ee6f975d54587919b1b0ed7b2836a53f3159666f | 4c3375f017acf60107240b52f18d0c9170e7c77b | refs/heads/master | 2023-01-30T16:46:20.457753 | 2020-12-12T11:19:43 | 2020-12-12T11:19:43 | 320,377,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,281 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import GetOldTweets3 as got
import datetime
import tweepy
import snscrape.modules.twitter as sntwitter
import numpy
import ... | [
"alexander@kernreiter.at"
] | alexander@kernreiter.at |
ed9eaf8d898b82c4d3e2949e76cca0402f98f2dd | 708a540af554d48ad8cab6b3406d45e05fb96aa1 | /segmenter/visualizers/LayerOutputVisualizer.py | 972fc882306f74873f2d841e6cd70bd8ce71940b | [
"Unlicense"
] | permissive | brandongk-ubco/segmenter | a10cd2dfb8393639a4d785043b881b1b52a7074f | dbc042d31dc74f1abdc87ae10a6be78ba38ddb91 | refs/heads/master | 2023-07-18T19:28:12.034659 | 2020-12-21T04:54:59 | 2020-12-21T04:54:59 | 236,781,455 | 0 | 0 | Unlicense | 2023-07-06T21:58:36 | 2020-01-28T16:28:36 | Python | UTF-8 | Python | false | false | 2,833 | py | import os
import json
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from segmenter.visualizers.BaseVisualizer import BaseVisualizer
import glob
import numpy as np
class LayerOutputVisualizer(BaseVisualizer):
bins = np.linspace(-10, 10, num=2001)
def execute(self):
csv_f... | [
"brandongk@gmail.com"
] | brandongk@gmail.com |
aaf3e1a0d45c0ae8e0ef320f1f68bb8890160acc | 29b82a48c7373dcbbb7ddc4fc986d80579af94f0 | /src/preprocessing/prepare_warehouse_data.py | f2d5c44a5990eee9c1dee715e00df762d5ff6a0d | [] | no_license | nguyentheimo2011/cs4224-project-mongodb | 585c15f067444b614fa2e50fe8714d6f3f6b2a3e | 84fa69bc80d0c209fe6e0facb39eb1fddaeef219 | refs/heads/master | 2021-01-20T11:44:54.738723 | 2016-11-10T15:01:56 | 2016-11-10T15:01:56 | 72,109,821 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | import os
import argparse
def prepare_data():
next_delivery_order_ids = prepare_next_delivery_order_id_for_districts()
original_warehouse_file_path = os.path.join(original_data_directory, 'warehouse.csv')
original_district_file_path = os.path.join(original_data_directory, 'district.csv')
prepared_war... | [
"nguyentheimo2011@gmail.com"
] | nguyentheimo2011@gmail.com |
45e2ae6c49914c6b0cc75158ca7b01822ea962be | 017ef40dd2ae7611cbd187e6ce64d86547d0abb9 | /rc/Motor_Example.py | 6ba17e19f83c24f20af218ca1dda63264d575979 | [] | no_license | hyfan1116/playground | 70a373151c2b50c9f69a496e8f636696395638ee | fc27f42f39b4c13df0b0fcfe3ee128c4fe8641ed | refs/heads/master | 2021-01-12T15:04:11.832241 | 2019-10-14T04:08:24 | 2019-10-14T04:08:24 | 71,677,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | #!/usr/bin/python
from Adafruit_PWM_Servo_Driver import PWM
import time
# ===========================================================================
# Example Code
# ===========================================================================
# Initialise the PWM device using the default address
pwm = PWM(0x40)
# No... | [
"fanhaoyang1116\"gmail.com"
] | fanhaoyang1116"gmail.com |
984a61dca3d0c585415ca20bbaff11e349e39f16 | 974bebca86a852707b4e2ac3595498cb05654199 | /modin/engines/ray/cudf_on_ray/io/io.py | e0beabc395db44c4b882de95beae046505a1903e | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Longliveping/modin | d7fd4d01e148419165a2f19b4ce2cf53182c2904 | 18dc8f83e2ce4668e44042c56954ba15cc893e4f | refs/heads/master | 2023-04-18T06:30:19.766917 | 2021-05-09T19:39:24 | 2021-05-09T19:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | [
"noreply@github.com"
] | Longliveping.noreply@github.com |
1c59053d7c6f0cc642b0dbe1ecc9f46b90c2c6f1 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python_Advanced/05_Functions Advanced/Exercise/04_negative_vs_positive.py | db0c4a49d3f9878fa05166a33c9f802e169e1017 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | def absolute(negative_sum):
return abs(negative_sum)
def compare_negative_positive_sum(negative_sum, positive_sum):
if positive_sum >= negative_sum:
return True
else:
return False
def negative_separator(numbers):
if numbers < 0:
return True
def positive_sepa... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
245fefb6b13563caaf367493baeec4fa8694dfee | c7f476a72d485e4eba8c67a28eb0f88cb327a803 | /repeat.py | a0e7a2d9bafe6ecafe23cf294dbe0fb2ec1759af | [] | no_license | KotipalliMadhavi92/GUVI_SampleRepo | 94ec84809d87b8340200f7c2e1f974dfd993e7b4 | 5836d4e11b172ad38639fcd6ac2cd7f2645df37d | refs/heads/master | 2020-04-08T08:33:07.464675 | 2018-11-26T15:19:28 | 2018-11-26T15:19:28 | 159,182,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | a=int(input())
l=list(input().split())
ans=list()
for i in range(0,a):
if l[i] in l[i+1:]:
ans.append(l[i])
if(len(ans)==0):
print("unique")
else:
for i in ans:
print(i,end=" ")
| [
"noreply@github.com"
] | KotipalliMadhavi92.noreply@github.com |
5c5fe9527304738d1add27c1a72d2139e50b56ea | 882fc389b7082cff9bd8c9a5e39a2177658a6daa | /test.py | 4697471e0b92326df13d5c89831323c973620658 | [] | no_license | changruowang/myRegressionProj | 8fe92d4405141e35186fdf28a35e90f643d120dc | b17060134a1e3357c3bc22882f564163a17ba3e4 | refs/heads/master | 2023-03-31T05:57:47.854099 | 2021-03-31T12:21:39 | 2021-03-31T12:21:39 | 353,340,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,338 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys, glob
import torch.nn as nn
from torch.utils.data import DataLoader
import torchvision
import torch
import numpy as np
import utils
from multiprocessing import freeze_support
import dataset
from dataset import noise_class2idx, NoiseLevelRegDataset, save_csv, ... | [
"44989223+changruowang@users.noreply.github.com"
] | 44989223+changruowang@users.noreply.github.com |
e309b3d53e3f10fc4a8a3d3f0777de04aac9a701 | 0c5f0ce665cf8477f3a6c377fb5e329cc6984938 | /apps/interfaces/migrations/0002_interfaces_is_delete.py | c329d994bad75e9c6183e77e1e96aac1c2e58e2a | [] | no_license | rggaoxin/lemon_test_django | 7de61c0c24e5d802a7c986d99c8b2352d7254d56 | 0865302c4c8f095331c20a7631317aaeea395187 | refs/heads/main | 2023-02-21T03:48:02.524567 | 2021-01-15T08:56:01 | 2021-01-15T08:56:01 | 329,553,577 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Generated by Django 3.1.3 on 2021-01-14 01:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('interfaces', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='interfaces',
name='is_delete',
... | [
"467126493@qq.com"
] | 467126493@qq.com |
aee62795c6a4a1e4d51b8ae53706a90b13a95bf2 | 9ea6319966cac38a6e77e2a558e2f6a63de7595d | /qwt/math.py | d6eb818eae99df62c93c333137f5b0f5a1662bc3 | [] | no_license | xalton/PokeIA | 85ac5f7e076eba6394fcf7e16c5b66b8364c68fb | 2d1eab1c9a90dd1b7a1f776f1b2955aa35bbe480 | refs/heads/master | 2020-09-29T02:50:50.657169 | 2020-03-14T12:36:46 | 2020-03-14T12:36:46 | 226,931,122 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # -*- coding: utf-8 -*-
#
# Licensed under the terms of the Qwt License
# Copyright (c) 2002 Uwe Rathmann, for the original C++ code
# Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization
# (see LICENSE file for more details)
from qwt.qt.QtCore import qFuzzyCompare
import numpy as np
... | [
"xalton94@gmail.com"
] | xalton94@gmail.com |
a370c978a47bc4b67c07d327141825fd9ce68d99 | b441503bcdb484d098885b19a989932b8d053a71 | /neural_sp/evaluators/wordpiece.py | aae95de11e128601df6e62d74b585a82e86bef85 | [
"Apache-2.0"
] | permissive | entn-at/neural_sp | a266594b357b175b0fea18253433e32adc62810c | 9dbbb4ab3985b825f8e9120a603a6caa141c8bdd | refs/heads/master | 2020-08-28T05:48:28.928667 | 2020-06-22T19:17:53 | 2020-06-22T19:17:53 | 217,611,439 | 0 | 0 | null | 2019-10-25T20:40:18 | 2019-10-25T20:40:18 | null | UTF-8 | Python | false | false | 7,250 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Evaluate the wordpiece-level model by WER."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_functio... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
f69ca1620d84787a070cb87c845699b2c947878a | 5171454307a8ed915ad5c480443f34d4d36abd09 | /person.py | c9b7d0243d65c5ad489ddebe12777e7eeaa13ae7 | [
"MIT"
] | permissive | dpoy/python- | 1eab4a9686314ed09a8b74fe155879e8971e0fd1 | 311217a669bdd9ad70545aba5956381b577a48a5 | refs/heads/main | 2023-01-02T12:46:17.898077 | 2020-10-26T03:23:32 | 2020-10-26T03:23:32 | 302,836,136 | 1 | 0 | MIT | 2020-10-26T03:23:33 | 2020-10-10T06:53:56 | null | UTF-8 | Python | false | false | 244 | py | def build_person(first_name, last_name):
"""返回一个字典,其中包含有关一个人的信息"""
person = {'first': first_name, 'last': last_name}
return person
muscian = build_person('jimi', 'hellion')
print(muscian) | [
"noreply@github.com"
] | dpoy.noreply@github.com |
3d9b0e5df8724e5d2920fb4941c70c8a612e36c8 | 931268a497e866537492263be6fea75cf46b1aee | /GUI/main.py | 6a18b0d28a602df0daf2c7ea9d1f7ea2685a4395 | [] | no_license | Bioinf-homework/Bioinf | e905da3fda40e785008601827ebe7af6fee11294 | 918b2dd51efc3a2dcceb40eaab97e12bd041bf40 | refs/heads/master | 2020-05-29T08:52:00.015672 | 2016-12-02T05:35:27 | 2016-12-02T05:35:27 | 69,361,357 | 1 | 1 | null | 2016-11-12T14:02:17 | 2016-09-27T13:45:47 | Python | UTF-8 | Python | false | false | 1,806 | py | # coding=utf-8
import wx
from Lib import *
# ----------------------------------------------------------------------------
TitleTexts = [u"K操作",
u"Fasta算法",
u"编辑距离",
u"NW&SW算法",
u"ID3决策树"
]
class TestCB(wx.Choicebook):
def __i... | [
"519043202@qq.com"
] | 519043202@qq.com |
96b6fa8e4536f81f43eca8c0550e402ee9f52784 | 6cbb69762b952bf3708de03b977bb215ebca9653 | /lib/dynamo_sessions.py | 007ef5de62ace494da60ecf989e4af11c5d5bc08 | [
"MIT"
] | permissive | kaellis/sqs-browser-events | 98e913ecc02c3e200285b00ffc39b847d0f9fa1a | 47a74ff3c756dc70f84307453385d0bd399cc659 | refs/heads/master | 2021-01-19T16:42:19.634499 | 2017-04-13T18:11:06 | 2017-04-13T18:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,604 | py | import os
import time
import decimal
import concurrent.futures
import boto3
from boto3.dynamodb.conditions import Key, Attr
from boto3.dynamodb.types import TypeSerializer
import botocore.exceptions
import logging
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.INFO)
import common
def get_session_tabl... | [
"kenneth.ellis@thomsonreuters.com"
] | kenneth.ellis@thomsonreuters.com |
254d2a1a7db7f1c6d9ae9a7970f8bfa3bf0f2cb4 | 063d0ab929ff02c3504603399d148f1afae8fa5a | /rainfall.py | 46673d3f2ee3ddac13ff0acebc5a03d538c64891 | [] | no_license | cthurmond/Python-Practice | 2f126ef435df2e979d868897810e5f6b9e7d621f | 8f240e415c2e90487de855bbfa151e3772d4e086 | refs/heads/master | 2021-01-17T17:49:07.399938 | 2016-10-11T23:52:56 | 2016-10-11T23:52:56 | 70,644,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | rainfall_dict = {}
while True:
city_name = raw_input("Enter the name of a city: ")
if not city_name:
for city in rainfall_dict:
print city + ": " + str(rainfall_dict[city])
break
rainfall = raw_input("Enter the rainfall in mm: ")
if city_name in rainfall_dict:
... | [
"noreply@github.com"
] | cthurmond.noreply@github.com |
cab5aafff8e84c21491d9e3b216a7c83dd701455 | 8ec922f6acecd314b7be5397d2bc2f91533bbf1e | /Study/Functions.py | 037fd9e0af0d26c38e04cc45b5e0310d03b71150 | [] | no_license | andrecavalcanti18111983/Python | 18c7f46826b2a299fb6c19553ae1fe864adc31c3 | b00c4c5d24dc7926ebb013f748fde42f54b69b35 | refs/heads/main | 2023-06-26T05:01:22.709861 | 2021-07-28T12:34:59 | 2021-07-28T12:34:59 | 390,345,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | calculation_to_units = 24
name_of_unit = "hours"
def days_to_unit(num_of_days):
return f"{num_of_days} days are {num_of_days * calculation_to_units} {name_of_unit}"
def validade_and_execute():
try:
user_input_number = int(user_input)
if user_input_number > 0:
calculate_... | [
"68634379+andrelscavalcanti@users.noreply.github.com"
] | 68634379+andrelscavalcanti@users.noreply.github.com |
108110a304955c3ae58137945c8d77744beb6505 | d10ea337036d407411d63aa4d19ec1c6b6210623 | /django_project/genres/migrations/0002_alter_genre_options.py | ff7f2a43b9633f9e5d2eb8a277c29ca69d92ca1f | [] | no_license | Kyrylo-Kotelevets/Django_Book_Reviews | f8f75f5324da1c5d35c8656e9c989b3aae01b30c | 72470f926db9d8f996cf12be0b2910090ba0087e | refs/heads/master | 2023-08-10T22:21:26.507992 | 2021-09-21T12:11:43 | 2021-09-21T12:11:43 | 400,107,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # Generated by Django 3.2.6 on 2021-08-31 20:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('genres', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='genre',
options={'ordering': ('name',), 'verb... | [
"kyrylo.kotelevets@nure.ua"
] | kyrylo.kotelevets@nure.ua |
f98a1584a105d194c9e6e6a5e93adcc623f4cfab | cb61ba31b27b232ebc8c802d7ca40c72bcdfe152 | /leetcode/931. Minimum Falling Path Sum/soln.py | 1e4b6c29b5e019be51d4b3abc9a345a86c121f90 | [
"Apache-2.0"
] | permissive | saisankargochhayat/algo_quest | c7c48187c76b5cd7c2ec3f0557432606e9096241 | a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc | refs/heads/master | 2021-07-04T15:21:33.606174 | 2021-02-07T23:42:43 | 2021-02-07T23:42:43 | 67,831,927 | 5 | 1 | Apache-2.0 | 2019-10-28T03:51:03 | 2016-09-09T20:51:29 | Python | UTF-8 | Python | false | false | 1,022 | py | # So we create a DP and start from the last low and start building up the the upper rows in the dp 2d array
# dp[i][j] represents the minimum path to reach that element with the given constraints.
class Solution:
def minFallingPathSum(self, A: List[List[int]]) -> int:
dp = [[0 for j in range(len(A[0]))] fo... | [
"saisankargochhayat@gmail.com"
] | saisankargochhayat@gmail.com |
15ccd5f52842ed3e6115a9f7d0a4fde211cdd0e8 | 2f4390a25e1bba856c993e1412e935ec6bd57317 | /vanguard/urls.py | 6a3b7e8464774460103381a583ea4b6c27e11844 | [
"MIT"
] | permissive | svalleru/vanguard | af4ab5b0b8404bc28d508bd02be6e926397a6a73 | 5e76eac4bc0d5df329f33a16dd574b0ef763ae4e | refs/heads/master | 2023-08-26T17:50:38.145325 | 2023-08-02T23:02:46 | 2023-08-02T23:02:46 | 61,655,053 | 2 | 0 | MIT | 2023-08-02T23:02:47 | 2016-06-21T17:54:53 | Python | UTF-8 | Python | false | false | 939 | py | """vanguard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"shanvalleru@gmail.com"
] | shanvalleru@gmail.com |
b96f2c76b38323327b3fd2cd6fe341d4e3148b74 | ec4ce2cc5e08e032f2bdb7d8e6ba616e80e6f5f7 | /chapter11_test_code/test_cities.py | f669296324136f72db551ae3d88cecb53a02dda6 | [] | no_license | AiZhanghan/python-crash-course-a-hands-on-project-based-introduction-to-programming | 8fc54ef69636c88985df00b546bc49c4a2378e79 | 9d8c9fde7d6ab9fe664fa718e1516d7442eafd00 | refs/heads/master | 2020-09-28T18:28:56.558413 | 2019-12-12T11:05:43 | 2019-12-12T11:05:43 | 226,835,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import unittest
from city_functions import get_formated_city_name
class CityTestCase(unittest.TestCase):
'''测试city_functions.py'''
def test_city_country(self):
'''能够正确地处理像Santiago, Chile这样的城市吗?'''
formetted_city_name = get_formated_city_name('santiago', 'chile')
self.assertEqual(forme... | [
"35103759+AiZhanghan@users.noreply.github.com"
] | 35103759+AiZhanghan@users.noreply.github.com |
86a3bc23436ff8c4eff096a5796e7cd006409c98 | 2caa95bf6977f06b367bdacfe8cddb9898aad5f0 | /intro/avoidObstacles.py | 7a3aeef0462802b921f1632fb9345a7f859e5005 | [] | no_license | michelsmartinez/codefights_exercises | a92ee2ac529cf719eb08104787b7d63beb18d207 | bcdd444f1c059d37570cbe1a08f047c7c457720e | refs/heads/master | 2021-08-31T19:00:56.601653 | 2017-12-22T13:20:17 | 2017-12-22T13:20:17 | 114,759,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # You are given an array of integers representing coordinates of obstacles
# situated on a straight line.
#
# Assume that you are jumping from the point with coordinate 0 to the right.
# You are allowed only to make jumps of the same
# length represented by some integer.
#
# Find the minimal length of the jump enough t... | [
"michel.martinez@cwi.com.br"
] | michel.martinez@cwi.com.br |
dcc2d399258f579438cf9daa73f67a2279579a6f | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/smallinvSNPr1b050-055.py | b776f5ed09f35dcb7ccc13d0d18939f16d47a7d3 | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167,364 | py | # MINLP written by GAMS Convert at 02/15/18 11:44:28
#
# Equation counts
# Total E G L N X C B
# 4 0 2 2 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"christoph.neumann@kit.edu"
] | christoph.neumann@kit.edu |
8ce9919b642c2bd392dc743194f4ed17aaf8bcc5 | 592c1602789ccc632492e55120e21cd5e67ea2fd | /lib/dataTypes/Summoner.py | 40ffbd41d2f60285f2ba9934c9002f78a67d3a02 | [] | no_license | wcrwcr/py_sh_tray | 9db4c0323b08cde7d723ea7c6b1d649f36195ede | b5b45d6fb8f286ba5f531c95ccadc3641799dc4d | refs/heads/main | 2023-01-05T21:21:51.857241 | 2020-11-05T10:39:45 | 2020-11-05T10:39:45 | 310,266,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | ''''data type summoner'''
from lib.dataTypes.jsonDefinedData import jsonDefinedData
class Summoner(jsonDefinedData):
id = None
name = None
icon = None
puuid = None
def __init__(self, data):
super(Summoner, self).__init__(data)
self.id = self._json['summonerId'] #unique id... | [
"tsstsstosser@gmail.com"
] | tsstsstosser@gmail.com |
fadf1813c6bf7b19b811a7796e12fd098027bd47 | 6cf256f10838b23bb1a451551ad511816a3dbb88 | /omaha_server/sparkle/forms.py | 7f01efbd12300d78ac786d24ed0a8dd1d0ef73f3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | initialjk/omaha-server | 2ab8ba3d54e53c92b4bec512f7ac79dddb74c102 | 92bbb93a84c3d827262f2cfec7976cda7f41f1a2 | refs/heads/master | 2021-01-15T21:10:14.940483 | 2015-04-02T15:19:33 | 2015-04-02T15:19:33 | 32,273,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # coding: utf8
"""
This software is licensed under the Apache 2 license, quoted below.
Copyright 2014 Crystalnix Limited
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/... | [
"yurtaev.egor@gmail.com"
] | yurtaev.egor@gmail.com |
8d6d28f03e7dba2a24a1999e76fb628096a9fb19 | 486173e490129cec10b15c36903af3d13cfb0950 | /FP-growth/fpGrowthTest.py | 96ee73f6f17be8d5471447071182a3d3d5beda46 | [] | no_license | Hsingmin/MLinAction_on_Python2 | ce3592297cbddf4e7a5c6525b6491b1b37b87ca5 | ac5c5f8a167d3b4a5f7c7ee9e3409136db423ac0 | refs/heads/master | 2021-07-25T10:06:02.933608 | 2017-11-04T08:55:08 | 2017-11-04T08:55:08 | 103,387,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py |
# fpGrowthTest.py
import fpGrowth
from numpy import *
'''
# FP-Tree node create test
rootNode = fpGrowth.treeNode('pyramid', 9, None)
rootNode.children['eye'] = fpGrowth.treeNode('eye', 13, None)
rootNode.children['phoenix'] = fpGrowth.treeNode('phoenix', 3, None)
rootNode.disp()
'''
simData =... | [
"alfred_bit@sina.cn"
] | alfred_bit@sina.cn |
41706151fef1d1cd9a44b39dd33883328f4d028f | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/queryset_pickle/__init__.py | 65c7eab6fc54959a02377165342999a088249224 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/queryset_pickle/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
d11cc39e33656680af6cca1dabb70e63e4f5e87c | 1fd59f9fb1331cbb77b8ff14b7ab64e9aadd1db6 | /unittesting/test_crawler/test_get_body.py | 029a0a406d59774592572c0174cea8b90c56ab06 | [] | no_license | saeedghx68/crawler | fccfa19494cd6e631948085c0dfe9949e4f3fecc | a2853f8acfbb1f3a3d19dc4df14db250d19b6d87 | refs/heads/master | 2023-08-04T08:49:39.625588 | 2021-10-31T15:58:18 | 2021-10-31T15:58:18 | 168,580,167 | 10 | 0 | null | 2022-07-06T19:59:11 | 2019-01-31T19:05:22 | Python | UTF-8 | Python | false | false | 761 | py | import unittest
import asyncio
from crawl import Crawler
class TestGetBody(unittest.TestCase):
def setUp(self):
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
def test_valid_url(self):
async def valid_url():
url = 'http://yoyowallet.com'
craw... | [
"saeed.ghx68@gmail.com"
] | saeed.ghx68@gmail.com |
edb0c0132192cd46eb1316baeae7a2da78a0f89f | 2312db84a76baf32a918ed9d354dc324c842c3cb | /http/sse/hello-sse/server.py | 56e250a5cc475b1742a82ea0b0e0cf132f53d7f0 | [] | no_license | justdoit0823/notes | a6ec61c2429a76f7d9ac52d8535a97abfa96ee10 | 25da05f9fdd961949c56bcb11711934d53d50c9a | refs/heads/master | 2023-06-22T23:17:17.548741 | 2022-10-19T15:15:15 | 2022-10-19T15:15:15 | 18,003,252 | 13 | 1 | null | 2023-06-14T22:29:39 | 2014-03-22T06:01:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,283 | py |
"""Hello server send event module."""
import asyncio
import random
import string
import aiohttp
from aiohttp import web
import aiohttp_jinja2
from aiohttp_sse import sse_response
import click
import jinja2
_c_queue_mapping = {}
_shutdown_event = asyncio.Event()
def get_random_string(length):
"""Return fixed ... | [
"justdoit920823@gmail.com"
] | justdoit920823@gmail.com |
7ea66eada5f6c4acd8152bcd1f465d7d6d83e9bf | 2e4c7e3706030405cbe0d348b70a8f1df261bbf3 | /aula36.py | 82b165eeb8244e46209a46db2ee7ec116c01c60a | [] | no_license | squintal73/Python | 93b3c8dca2123999aac9c42a58936cb920966746 | e5f3dc91cdf696d146e5f763cbaf1b880533cb1c | refs/heads/master | 2022-11-14T10:23:29.137986 | 2020-07-09T04:10:23 | 2020-07-09T04:10:23 | 276,403,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # PRACTICE - PYTHON 036"
# Json
import json
carros_json='{"marca":"Honda","modelo":"HRV","cor":"Prata"}'
carros=json.loads(carros_json)
# for x in carros.values(): imprimi os valores "Honda"
# for x in carros.items(): imprimi os a linha tota ou o item "{"marca":"Honda"}"
# for x in carros(): imprimi a chave "marca"... | [
"sidnei_quintal@yahoo.com.br"
] | sidnei_quintal@yahoo.com.br |
38070280f5ab47224ff46500b9977e4b3c3b3cf9 | 12df91d7339562c11b572e7d8a4a6ca25f177357 | /二叉树/104.二叉树的最大深度.py | 02cd11b17e1b9b19f4f100e331100684d4f7518c | [] | no_license | snsunlee/LeetCode | a1827132fed8199e638da4d3afb68c222a7ffc57 | a38df8b102081f988c8dcc6deda8caaec575df82 | refs/heads/master | 2021-06-10T10:47:21.226583 | 2021-05-25T11:54:53 | 2021-05-25T11:54:53 | 185,298,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #
# @lc app=leetcode.cn id=104 lang=python3
#
# [104] 二叉树的最大深度
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def maxDepth(self, root: TreeNode) -> int:
if not root:
... | [
"snsunlee123@gmail.com"
] | snsunlee123@gmail.com |
7a1d94f0c89d9af6c453aaafa6cff4c74c4de9f7 | cb5595fbf1520e1b8ab17836050956fd319e4dee | /hog/hog.py | 9ac9307bee2ba5c316697005baca613b7a6e1de1 | [] | no_license | davidlin0241/SICP-Projects | 3da529abd792e011d7d02f8d305798efa16f74aa | 97d3729aaa3f0b598e501823337c49ba0d543257 | refs/heads/master | 2020-07-23T20:54:25.733657 | 2020-02-17T02:34:23 | 2020-02-17T02:34:23 | 207,703,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,643 | py | """CS 61A Presents The Game of Hog."""
from dice import six_sided, four_sided, make_test_dice
from ucb import main, trace, interact
GOAL_SCORE = 100 # The goal of Hog is to score 100 points.
######################
# Phase 1: Simulator #
######################
def roll_dice(num_rolls, dice=six_sided):
"""Simul... | [
"davidlin0241@gmail.com"
] | davidlin0241@gmail.com |
c0814e43f0e2e81f7a2ea1755c40e656f739b742 | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/skia/gyp/tools.gyp | a4f8cfd62ab9ccea85060ad32dc63ec9fff9cb5e | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 19,668 | gyp | # Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# GYP file to build various tools.
#
# To build on Linux:
# ./gyp_skia tools.gyp && make tools
#
{
'includes': [
'apptype_console.gypi',
],
'targets': [
{
# Build... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
873e6ba1c033baa76178ee1abf218c693f385f53 | bd390260329556fcd81f008e9f0d67ab25ab9ec8 | /CatchDownload.py | f0dbecc8e6726f7842d96ee23785768a72bbce9a | [] | no_license | VLSMB/Millia-The-Ending-CHS-Patch | 3449bff5ac560dc7dec4b3dc32ebddbc59b1d10d | 12f2b447e04883d9cbc2c1eba5c824d9fadd29b1 | refs/heads/main | 2023-07-03T21:00:06.368701 | 2021-08-09T02:59:14 | 2021-08-09T02:59:14 | 393,949,173 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | from bs4 import BeautifulSoup
import requests,re
#获取ys168网盘根目录信息
headersA = {"Accept":"*/*","Accept-Encoding":"gzip, deflate","Accept-Language":"zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2","Connection":"keep-alive","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Cookie":"__yjs_d... | [
"noreply@github.com"
] | VLSMB.noreply@github.com |
b68b5150216302b06ba998298347b7a50375061f | ece9a0b9c2c3285f8ff68376ad3311a8cd6c5f3b | /99-LargestExponential.py | e5d157cc45a9587bb3938efcebc40a99755b8220 | [] | no_license | helani04/EulerProjects | a9908912b39a0c36605ddd2798da8fe86108b90b | 719b9b2f8f9cb6d6bd3dcccfba9423c5a6f3b1b6 | refs/heads/master | 2022-04-19T07:17:24.201244 | 2020-04-18T06:19:09 | 2020-04-18T06:19:09 | 256,530,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,602 | py |
numbers=[519432,525806,632382,518061,78864,613712,466580,530130,780495,510032,525895,525320,15991,714883,960290,502358,760018,511029,166800,575487,210884,564478,555151,523163,681146,515199,563395,522587,738250,512126,923525,503780,595148,520429,177108,572629,750923,511482,440902,532446,881418,505504,422489,534197,9798... | [
"helanikumarawadu@gmail.com"
] | helanikumarawadu@gmail.com |
c6540befb02546360fde8697d9ad6f1187176976 | 6a999066cbdec2cdc1d20d068840ad7fcb0de19d | /p122_cnn_image_recognition.py | d344cd9e00c5d4b075b645724ab64799408d1dfa | [] | no_license | chrisjune/tensorflow_project | 4a4594ff800b7c84757121bba7a0c80be85789ff | 8d461ad6fd3e17ed7c7ad1a37253abe900c7f521 | refs/heads/master | 2021-04-03T08:14:18.716342 | 2018-05-19T08:06:23 | 2018-05-19T08:06:23 | 125,016,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./mnist/data/",one_hot=True)
import matplotlib.pyplot as plt
import numpy as np
#Data variabel
X = tf.placeholder(tf.float32 , [None, 28, 28, 1])
Y = tf.placeholder(tf.float32, [None, 10])
keep_prob = ... | [
"CJY@CJYui-MacBook-Air.local"
] | CJY@CJYui-MacBook-Air.local |
cf258f0e1d1a474ab2979b9f003106f8014ed209 | 0a5a22c5cf15b56e17df6f45bc92ea3414c45ada | /app.py | 429abe272f03f6b634142aa45ac5d95fd6f62085 | [] | no_license | nidhi988/predicting-salary-of-employees | 65cb0f1b4525af1838b2c8c67f382bbb4ae789a0 | f8666ac17814dc48378095eade1c11c341fce004 | refs/heads/master | 2022-11-18T04:15:48.091687 | 2020-07-17T07:58:42 | 2020-07-17T07:58:42 | 280,363,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('C:\\Users\\LOHANI\\Desktop\\predicting salary of employees\\model.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict',methods... | [
"noreply@github.com"
] | nidhi988.noreply@github.com |
9bfc406bd5d3388d37ef44d357529cc09bffcda6 | 73c3d76f451b1b12e4e83026306fd3f688a96709 | /venv/bin/flask | 042c0d88b83d728104a5b23288334c1300cc88f2 | [] | no_license | everett-yates/learning-flask | 562479567059250279b9a1070bab1ce37d15d4a8 | 3596529a62bfc43c360e2c0f6f997cc183bf6a0d | refs/heads/master | 2021-01-02T22:46:58.837859 | 2017-08-04T23:53:10 | 2017-08-04T23:53:10 | 99,387,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/home/bobby/learning-flask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"everett.yates@atlapps.net"
] | everett.yates@atlapps.net | |
f9198d9eb339474258efaac2ded39e65e899ec24 | b8e249f2bf0aa175899090128f7a77fb34aa2c1b | /apps/users/migrations/0002_auto_20190523_2209.py | ad3a4736f1152245525812b35261e78189162d03 | [] | no_license | dojo-ninja-gold/ng-server | 80d8568fa960e882df9e1a6fff7e020e93ff2990 | fcd69744a2ebf99f0c24b3136ba7a2d8a4c683e1 | refs/heads/master | 2023-05-03T21:05:54.026847 | 2019-05-24T22:29:51 | 2019-05-24T22:29:51 | 187,918,381 | 0 | 0 | null | 2023-04-21T20:32:36 | 2019-05-21T21:49:40 | Python | UTF-8 | Python | false | false | 830 | py | # Generated by Django 2.2.1 on 2019-05-23 22:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='first_name',
fie... | [
"wes@tao.team"
] | wes@tao.team |
1d35b0c6b7a5c4252763588c948c81d9b77ad15b | b458b2cf3011a73def66605b296144049909cd48 | /tests/my_trade.py | e749520a049723eff15fa850405a79187d1d6f1f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | shihliu/python-binance | 8c5607a78a4794f9b42fe90092a149f4050d4710 | c44f8a315df32c8b5d54750c27703060ec9060aa | refs/heads/master | 2021-08-22T02:47:10.423523 | 2017-11-29T04:34:30 | 2017-11-29T04:34:30 | 111,865,384 | 0 | 0 | null | 2017-11-24T01:57:33 | 2017-11-24T01:57:33 | null | UTF-8 | Python | false | false | 1,044 | py | from binance.client import Client
import json
client = Client('yq67cDjrCxGl6eeKMyTeiK1zkeArFpu8v4uB4b6TWDQdgjDlH0KjmXfHBZ1NjvJj', 'DxE7Wugo75EK8mLmybY76dbZW6tROpyNjBRd9NHsEOXqBaKq6Awgul4390xwRUdc')
my_trade = client.get_my_trades(symbol='QSPETH')
all_buy_price = all_buy_amount= 0.0
all_sell_price = all_sell_amount= 0... | [
"root@dhcp-129-210.nay.redhat.com"
] | root@dhcp-129-210.nay.redhat.com |
12f77883df8917200b77ed652bec018debcd2f8c | 280040bde598205e3bb93112695d3f0adf161093 | /data/test_fvcom.py | 5f6c849c10824fca381ea2e1c1ee7283918bd101 | [] | no_license | geoffholden/ocean-navigator | 24965f8e90222c4b9f2a3ca56cb10df523dd87f1 | 2ae745d475744bcf4770982f1de55c05b3b29238 | refs/heads/master | 2021-01-21T06:42:02.957677 | 2017-05-18T16:49:35 | 2017-05-18T16:49:35 | 91,581,750 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | import unittest
import fvcom
import datetime
import pytz
class TestFvcom(unittest.TestCase):
def test_init(self):
fvcom.Fvcom(None)
def test_open(self):
with fvcom.Fvcom('data/testdata/fvcom_test.nc'):
pass
def test_depths(self):
with fvcom.Fvcom('data/testdata/fvcom... | [
"geoff@geoffholden.com"
] | geoff@geoffholden.com |
1e0bc44fa3fba1c10f72ce9d61c6daa1c68bdcab | 888179fc56042fd50f283d8eaace04bec87ce582 | /PolicyGradient/pol_grad_unfrozen.py | e5654023e00655f4cdec72a35378fdaa87311454 | [] | no_license | stickzman/honors_thesis | c178c25b5cf6fa2d923d9f7f1ce519f28913b3a6 | 078ad97e9c7f7e07d343d16a25e5c3f7d32cbb53 | refs/heads/master | 2021-08-30T05:15:25.643928 | 2017-12-16T05:02:02 | 2017-12-16T05:02:02 | 103,351,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
import numpy as np
import gym
import matplotlib.pyplot as plt
from tutorial.tut_policy_gradient_agent import agent
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from thawedLakeEngine import Env
try:
xrange = x... | [
"Daniel.ahl1@marist.edu"
] | Daniel.ahl1@marist.edu |
e9d2fba53b75ecd2755d17c5468771018d927055 | 3d48adfc1a49a618aea10bfbc04228435e958f41 | /Synchronization_ST/TimingRecovery_ST.py | dc11310b0c6bf2f5866475244fd4076621ff4ca4 | [] | no_license | Camcore95/MetodykiProjektowTeleinf | dc691deecc595d44e4e99235f37ddd4ef65d383e | 7773f24bac4e2b14c5e3c6f63a0384c4c565724e | refs/heads/master | 2020-12-01T23:02:08.486233 | 2019-12-23T14:54:49 | 2019-12-23T14:54:49 | 230,803,413 | 0 | 0 | null | 2019-12-29T21:06:43 | 2019-12-29T21:06:42 | null | UTF-8 | Python | false | false | 2,638 | py | from Synchronization.TimingRecovery import TimingRecovery
from QPSK.Modulator import Modulator
from QPSK.Demodulator import Demodulator
from RadioTransmission_ST.RadioChannel import RadioChannel
import numpy as np
#########################################################################################################... | [
"kamilsternal20@wp.pl"
] | kamilsternal20@wp.pl |
c364bf86337f174f6c159d3984b287408e5a58e9 | 572c9dd60e56a58987a3c2551daab0f80a607d35 | /src/train/sample/text_sample_embedded.py | e42e1b2c1e1f91b33f65d64bdc8a15fb9b29e721 | [] | no_license | yogurtco/learning_framework | 07777ee3a8febdde70e0230bfd930dbee415f578 | efa786c60a3904c2d3afa1a08b821a09bec7ae2c | refs/heads/master | 2022-11-21T10:27:10.908735 | 2020-07-11T08:30:13 | 2020-07-11T08:30:13 | 278,622,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | from typing import List
import torch
from learning_framework.src.train.sample.base_sample import BaseSample
import numpy as np
class TextSampleEmbedded(BaseSample):
padding_size = 400
def __init__(self, text_data: np.ndarray, text_gt: np.ndarray):
assert isinstance(text_data, np.ndarray), "{} is not ... | [
"yogurt.co@gmail.com"
] | yogurt.co@gmail.com |
05073c0c21276b72ee5fdccd7d1ae12855c27c0c | 212770b9868cbab6c016cd6acdfb3c117bbf7ab6 | /polls/views.py | 097805857e14fc9f7433e60c48c0209e293a5930 | [] | no_license | Derstilon/SQLProject | a75cd2774a6c2c72df3a926b45d01159de336336 | fc0e70b8b738cdbc3e144340f7be3b9894bb6872 | refs/heads/master | 2022-07-07T19:32:02.346957 | 2020-06-06T18:56:09 | 2020-06-06T18:56:09 | 250,903,453 | 0 | 0 | null | 2022-06-22T01:56:46 | 2020-03-28T22:09:53 | HTML | UTF-8 | Python | false | false | 1,508 | py | from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.template import loader
from django.urls import reverse
from django.views import generic
from .models import Question, Choice
class IndexView(generic.ListView):
template_name = '... | [
"ostatni5@o2.pl"
] | ostatni5@o2.pl |
c209ff085368ec5de726e07ca1298dcd1d6c77be | 35463a0e00e2a1e90171e646eaeaadaa61d3b867 | /Part 6 - Reinforcement Learning/Section 33 - Thompson Sampling/thompson_sampling.py | 0fe5e9f6682649c01bc92218cb60f2ee5c3305d8 | [] | no_license | Redwa/Machine-Learning-A-Z | 3ef4f905a71ba2ce9eb2371869b61d820bc78bfe | 14bc93491dd3d7a940d743d71a71f286c0a7fcf1 | refs/heads/master | 2021-01-25T05:09:34.071676 | 2017-05-11T13:03:20 | 2017-05-11T13:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 17 21:49:14 2017
@author: Nott
"""
#Thompson Sampling
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Ads_CTR_Optimisation.csv')
#Implementing Thompson Sampling
import random
N = 10000
d = 10
ads_se... | [
"sawatdeekrab@gmail.com"
] | sawatdeekrab@gmail.com |
ce216ce47e0e2a40bf167808914a09f67706c10b | ac83e924105295a6dac6682c830ede44884e1437 | /Computer Vision course - Msc BGU/Exercise 1/task/dense_SIFT_example_new.py | b918b014924449c6b04f5c772ac0af081fbc395e | [] | no_license | Hengrinberg/Data-Science-Projects | 973f51307b45a03a1aa0ead8e44f234d59e839f9 | 139f3cb8c90a6d2bd12ec0ae94aa66378f745c7f | refs/heads/master | 2021-06-03T11:49:17.979701 | 2021-04-13T10:08:20 | 2021-04-13T10:08:20 | 102,189,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import skimage.data as skid
import cv2
import pylab as plt
import scipy.misc
img = scipy.misc.face()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
plt.figure(figsize=(20,10))
plt.imshow(img)
plt.show()
sift = cv2.xfeatures2d.SIFT_create()
step_size = 5
size = 5
kp = [cv2.KeyPoint(x, y, size) for y in range(0, gray.... | [
"heng@youtiligent.com"
] | heng@youtiligent.com |
6117f3c8eb4a8b3c838875fb81981e1cd8764c57 | 7cb811ca5578e92b9efa1159b2d2a8972d89c030 | /general/flutterwave_helpers.py | bfd71d17b4071624a33c1e5249351ac97f5ab5d1 | [] | no_license | isaiahiyede/izzyUzo | 251d95a8d3921c491d7caf14cbd77c48732c7675 | 4bf2f024bcad837215cd022765aeb94090e7fa52 | refs/heads/master | 2022-11-30T08:06:03.153990 | 2019-06-07T18:55:07 | 2019-06-07T18:55:07 | 190,793,404 | 0 | 0 | null | 2022-11-22T00:34:18 | 2019-06-07T18:47:02 | CSS | UTF-8 | Python | false | false | 14,772 | py | try:
from flutterwave import Flutterwave
except Exception as e:
print 'e: ',e
pass
from django.conf import settings
import random
from django.shortcuts import render, redirect
import ast
from django.contrib import messages
from django.core.urlresolvers import reverse
from sokopay.models import SokoPay, Mark... | [
"isaiahiyede.ca@gmail.com"
] | isaiahiyede.ca@gmail.com |
4b9785d208ec7bfd695f67a1c0ae0ae14af5c025 | d3e4b3e0d30dabe9714429109d2ff7b9141a6b22 | /Visualization/LagrangeInterpolationVisualization.py | 88ab36a87c9cd16c736d839ffcb9ba3d3157994f | [
"MIT"
] | permissive | SymmetricChaos/NumberTheory | 184e41bc7893f1891fa7fd074610b0c1520fa7dd | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | refs/heads/master | 2021-06-11T17:37:34.576906 | 2021-04-19T15:39:05 | 2021-04-19T15:39:05 | 175,703,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from Polynomials import lagrange_interpolation
import matplotlib.pyplot as plt
import numpy as np
points = [1,3,5,7]
function = lambda x: np.sin(x)
print("""Lagrange interpolation takes a set of n points and finds the "best" polynomial that describes them. Given n points on a plane there is a polynomial of degree n... | [
"ajfraebel@gmail.com"
] | ajfraebel@gmail.com |
0b1900e0a13d5588aa349822a427ad816264765e | 287fcd6bc49381d5b116dd541a97c0ff37141214 | /app/section/sections/hero_section.py | c5960e017024cdfa7d8610c48d487ea424d32899 | [] | no_license | elcolono/wagtail-cms | 95812323768b90e3630c5f90e59a9f0074157ab5 | b3acb2e5c8f985202da919aaa99ea9db2f6b4d51 | refs/heads/master | 2023-05-26T05:24:42.362695 | 2020-10-08T17:23:22 | 2020-10-08T17:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,839 | py | from django.db import models
from wagtail.snippets.models import register_snippet
from wagtail.admin.edit_handlers import (
MultiFieldPanel, FieldPanel, StreamFieldPanel, FieldRowPanel)
from wagtail.admin.edit_handlers import ObjectList, TabbedInterface
from wagtail.images.edit_handlers import ImageChooserPanel
fr... | [
"andreas.siedler@gmail.com"
] | andreas.siedler@gmail.com |
c845118f231d95af60dcd0e8f2f185057bc62db9 | e77912fd6681f487fdd45b61908b39990c7b413d | /ppo_ddt/agents/baseline_agent.py | 293be0562eb7dbff5bb6b53bd39eebccd2c97567 | [] | no_license | chrisyrniu/ppo_ddt | a55e7cc4c0740c0619a9fd9c048aa66eff592e10 | 913e54cdf484f0f0193cc30af934ae9d5b68c89d | refs/heads/main | 2023-06-11T20:36:12.370061 | 2021-06-29T07:13:27 | 2021-06-29T07:13:27 | 379,434,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | py | import torch
import torch.nn as nn
from torch.distributions import Categorical
from ppo_ddt.rl_helpers.mlp import MLP
import copy
from ppo_ddt.agents import CartPoleHeuristic, LunarHeuristic, \
StarCraftMacroHeuristic, StarCraftMicroHeuristic
from ppo_ddt.agents import DeepProLoNet
class BaselineFCNet(nn.Module):... | [
"noreply@github.com"
] | chrisyrniu.noreply@github.com |
b1ff28e00fcaf827759d3315508259d5c02fe49a | 912cb61eaa768716d30844990ebbdd80ab2c2f4e | /ex070.py | aad48d4aa3286cd92534b1c397274d2ac7ddf5ea | [] | no_license | luizaacampos/exerciciosCursoEmVideoPython | 5fc9bed736300916e1c26d115eb2e703ba1dd4ca | 398bfa5243adae00fb58056d1672cc20ff4a31d6 | refs/heads/main | 2023-01-06T21:48:17.068478 | 2020-11-11T12:29:10 | 2020-11-11T12:29:10 | 311,964,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | total = tk = menor = soma = 0
print('--------------Loja Sallus-----------------')
while True:
prod = input('Nome do produto: ')
valor = float(input('Preço: R$'))
soma += 1
cont = str(input('Quer continuar? [S/N] ')).upper().strip()[0]
total += valor
if valor > 1000.00:
tk += 1
if som... | [
"luiza.almcampos@gmail.com"
] | luiza.almcampos@gmail.com |
30197700259a9549341c49c7bd19ffeca986744d | fb0e99751068fa293312f60fedf8b6d0b9eae293 | /slepé_cesty_vývoje/iskušitel/najdu_testovací_soubory.py | 452504d722f35dd929333e4039ac4e9dc3d416ee | [] | no_license | BGCX261/zora-na-pruzi-hg-to-git | d9628a07e3effa6eeb15b9b5ff6d75932a6deaff | 34a331e17ba87c0de34e7f0c5b43642d5b175215 | refs/heads/master | 2021-01-19T16:52:06.478359 | 2013-08-07T19:58:42 | 2013-08-07T19:58:42 | 41,600,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/env python3
# Copyright (c) 2012 Домоглед <domogled@domogled.eu>
# @author Петр Болф <petr.bolf@domogled.eu>
import os, fnmatch
MASKA_TESTOVACÍCH_SOUBORŮ = 'testuji_*.py'
def najdu_testovací_soubory(cesta):
počet_nalezených_testů = 0
if os.path.isdir(cesta):
for cesta_... | [
"petr.bolf@domogled.eu"
] | petr.bolf@domogled.eu |
fb12a92b52212e89e2cadcc438e0da54af195126 | 60b10ea16030b487bf17642e193f42f806d4b05f | /videocapture.py | 89324137a13dbfdf43df5468eba75fe29162ee67 | [] | no_license | utkarsh-srivastav/VideoCapture | 48d1238cc1d96750ce28abe2445ac16dc9dd0870 | 2668de171e9e66587918558271175ac655738516 | refs/heads/master | 2022-12-14T11:45:30.555531 | 2020-09-10T06:11:22 | 2020-09-10T06:11:22 | 294,319,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import cv2
video = cv2.VideoCapture(0)
a = 1
while True:
a = a+1
check, frame = video.read()
print(frame)
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow("Capture", gray)
key = cv2.waitKey(1)
if key == ord('q'):
break
print(a)
video.release()
cv2.destroyAllWindows()
| [
"utkarshsrivastav233@gmail.com"
] | utkarshsrivastav233@gmail.com |
6a7e5845d8d77668de1a676f33da668cf725b5a0 | 25bc51b25262698f32554b327f2fe786fcb9ab70 | /src/api2.py | 6b856b22a5f2c9a810bb3c16293801e7769bb15d | [
"MIT"
] | permissive | classabbyamp/rtex | d8088abce0fabea9844e6e4a9de74857263e2d0c | f9d86ecbf1ab1b59668bee8af6c3709daa26c481 | refs/heads/master | 2022-10-16T02:49:28.299001 | 2020-06-02T22:49:26 | 2020-06-02T22:49:26 | 268,661,159 | 0 | 0 | MIT | 2020-06-02T00:15:44 | 2020-06-02T00:15:44 | null | UTF-8 | Python | false | false | 1,888 | py | import os
import json
import string
import re
import aiohttp
import logs
import stats
import jobs
from random_string import random_string
async def post(request):
# print(await request.text())
req = (await request.post()) or (await request.json())
code = req.get('code')
output_format = req.get('format... | [
"dxsmiley@hotmail.com"
] | dxsmiley@hotmail.com |
1ab9aeeaa915aa465fa60013804a1786e46f06ac | e8c22556d1c3da2118220b10a38950598619abfd | /TunisianLeague.py | 362581df3d8f071909014d7b19d591f295f9b7d8 | [] | no_license | mmouhib/Football-Leagues-Standings | 97542e864516d3e6d154cd5f1f46e8fca1f2a33f | a8e85659e46bd42f07e3275b38090f5e25c8bce3 | refs/heads/main | 2023-04-23T15:23:06.014620 | 2021-05-12T06:21:56 | 2021-05-12T06:21:56 | 366,610,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | from bs4 import BeautifulSoup
import os
import requests
class Team:
def __init__(self, pos, team_name, matches_played, wins, draws,
losses, goals_for, goals_against, goal_diff, pts, last_five):
self.pos = pos
self.team_name = team_name
self.matches_played = matches_played
... | [
"mouhibouni321@gmail.com"
] | mouhibouni321@gmail.com |
bbca1de8f3365de6962acd80b69471036e33422e | 68c4805ad01edd612fa714b1e0d210115e28bb7d | /venv/Lib/site-packages/numba/tests/test_config.py | de8371b8b2d4ac9757452a6d5a24a1954ff13f8d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Happy-Egg/redesigned-happiness | ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c | 08b705e3569f3daf31e44254ebd11dd8b4e6fbb3 | refs/heads/master | 2022-12-28T02:40:21.713456 | 2020-03-03T09:04:30 | 2020-03-03T09:04:30 | 204,904,444 | 2 | 1 | Apache-2.0 | 2022-12-08T06:19:04 | 2019-08-28T10:18:05 | Python | UTF-8 | Python | false | false | 3,444 | py | import os
import tempfile
import unittest
from .support import TestCase, temp_directory, override_env_config
from numba import config
try:
import yaml
_HAVE_YAML = True
except ImportError:
_HAVE_YAML = False
_skip_msg = "pyyaml needed for configuration file tests"
needs_yaml = unittest.skipIf(not _HAVE_YA... | [
"yangyang4910709@163.com"
] | yangyang4910709@163.com |
e0f22fd71048326d2bb4e2124f6e7ddf8ca591cf | a28292ebdda00ff8eb362a83d0f70bce8133258c | /logistic/views.py | a69aef397373a7316af24139daedd638c51b6f7f | [] | no_license | maratkanov-a/logistic | 7681f537c6dc21c2dfbdc89b7af1a3910897af2c | 2fa85f1bcea266f195467e9396ec86e270ca8666 | refs/heads/master | 2021-01-17T08:33:17.395073 | 2016-08-04T09:12:23 | 2016-08-04T09:12:23 | 60,477,657 | 0 | 2 | null | 2016-06-13T15:58:08 | 2016-06-05T19:44:56 | Python | UTF-8 | Python | false | false | 712 | py | from django.core import urlresolvers
from django.views import generic
from logistic import forms
from logistic import models
class Index(generic.CreateView):
template_name = 'logistic/index.html'
form_class = forms.SimpleRequestForm
model = models.SimpleRequestModel
def get_success_url(self):
... | [
"maratkanov@yandex-team.ru"
] | maratkanov@yandex-team.ru |
ecaddca74190decf179e750f4b15682975147252 | 4fee5cf517f9853cf1a33c3d1bf16247f4ecc34c | /server/log/printout.py | c389144c83c0df2ef4594a811e3d4c64102582c8 | [] | no_license | hoanduy27/GardBot | 8708030fca24bb3787959bb558b615f98fddd4d6 | dd9a87ab1b5c8bf149542c22bbc57c46aec600ba | refs/heads/master | 2023-06-06T10:14:54.886986 | 2021-06-24T15:15:49 | 2021-06-24T15:15:49 | 366,006,154 | 0 | 0 | null | 2021-06-20T03:51:20 | 2021-05-10T10:36:44 | Kotlin | UTF-8 | Python | false | false | 435 | py | class Printout:
INFO_STYLE = '\033[0;37m[INFO]'
ERROR_STYLE = '\033[1;31m[ERROR]'
WARNING_STYLE = '\033[0;33m[WARNING]'
@staticmethod
def i(key, message):
print(f'{Printout.INFO_STYLE} {key}: {message}')
@staticmethod
def e(key, message):
print(f'{Printout.ERROR_STYLE} {key}:... | [
"hoanduy27@gmail.com"
] | hoanduy27@gmail.com |
f31f612131930929e78310b8e8f88d8b51ffea52 | 5a72c3b3adff4ae034f207268af358161a5f5c4b | /historic_hebrew_dates/values/dict.py | 595216ebb08b6a05ee04e39f0f3e28180920d248 | [
"BSD-3-Clause"
] | permissive | UUDigitalHumanitieslab/historic-hebrew-dates | 3212e437a47a73abc3594dd43d35b1997cf8e418 | 5ace44d9b1315a96a96ea296383f0b618d994212 | refs/heads/develop | 2023-01-24T13:27:44.021311 | 2020-06-24T12:05:30 | 2020-06-24T12:05:30 | 176,713,362 | 1 | 0 | BSD-3-Clause | 2023-01-07T09:13:04 | 2019-03-20T10:53:28 | Python | UTF-8 | Python | false | false | 198 | py | #!/usr/bin/env python3
import yaml
from typing import Dict
def dict_value(expression: str) -> Dict:
values: Dict[str, str] = yaml.safe_load('{' + expression[1:-1] + '}')
return values
| [
"s.j.j.spoel@uu.nl"
] | s.j.j.spoel@uu.nl |
835c27431d3a140adf6503dcd77cb46bc75158db | 27522b219cf00fd702a101cb8192c77bde93f1c6 | /Motorbike Cost - Home Learning Task.py | 3ec7f69e7a5adef9f3813406095e9ae53fd69343 | [] | no_license | Rajan-95/TTA-Home-Learning | 66b9fedb95b2399e6d9daebf1ecdaef1c690e767 | 2a772209c73a9fda526a60954f20df1ccffe7479 | refs/heads/main | 2023-05-26T06:28:03.531230 | 2021-06-15T11:41:56 | 2021-06-15T11:41:56 | 377,140,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # Task: Motorcycle costs £2000, print the value of the motorcycle every year until its value drops below £1000.
motorbike = 2000
year2021 = motorbike * 0.9
print("Value of bike in 2021: £" + str(year2021))
year2022 = year2021 * 0.9
print("Value of bike in 2022: £" + str(year2022))
year2023 = year2022 * 0.9
print... | [
"noreply@github.com"
] | Rajan-95.noreply@github.com |
946c2cf07550b349ae7705ea34918564c9a275a7 | eacdc4bda210386d4773399c3ee46c4f028cca10 | /Parser/Task_3_Handler.py | 21df8c85c3736b41b0e374d1dde47e7cb9e1d0b4 | [] | no_license | 406410672/p_dtb_f | 9d32e333c6b8822d607ee42c75a26eabed896e87 | d04b693c21bd7be8ab8f4ff5add0384b71563017 | refs/heads/master | 2020-03-11T17:42:47.931249 | 2018-05-22T03:35:48 | 2018-05-22T03:35:48 | 130,155,004 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/5/9 15:15
# @Author : HT
# @Site :
# @File : Task_3_Handler.py
# @Software: PyCharm Community Edition
# @Describe: Desc
# @Issues : Issues
import functools
import re
from BaseModule.HTMLParser import HTMLParser as hp
from BaseModule.HTTPRequest i... | [
"18316551437@163.com"
] | 18316551437@163.com |
8b6ae75cd27c32f78ea740595757c1a84a66c477 | 6e43937c521b841595fbe7f59268ffc72dfefa9d | /GSP_WEB/views/index/view.py | 8abba08ca5d578311be5a2e72cc36170dcf80929 | [] | no_license | MiscCoding/gsp_web | a5e50ce7591157510021cae49c6b2994f4eaabbe | a24e319974021ba668c5f8b4000ce96d81d1483e | refs/heads/master | 2020-03-28T15:11:30.301700 | 2019-08-12T04:47:42 | 2019-08-12T04:47:42 | 148,565,440 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,123 | py | #-*- coding: utf-8 -*-
import datetime
from collections import OrderedDict
from dateutil import parser
from elasticsearch import Elasticsearch
from flask import request, render_template, Blueprint, json
from GSP_WEB import login_required, db_session, app
from GSP_WEB.common.encoder.decimalEncoder import DecimalEncode... | [
"neogeo-s@hanmail.net"
] | neogeo-s@hanmail.net |
5309bdadded82baf1d63c7d55531b2e1182bd445 | 33513f18f4ee7db581a9ccca0d15e04d3dca0e2d | /detector/YOLOv3/detector.py | 4bacdb526423c9e1f55ae6639029ba7a3ba5eab0 | [
"MIT"
] | permissive | xuarehere/yolo_series_deepsort_pytorch | 0dd73774497dadcea499b511543f3b75e29d53e1 | 691e6eb94260874de29a65702269806fc447cf8c | refs/heads/master | 2023-05-23T18:32:00.991714 | 2023-02-01T10:58:18 | 2023-02-01T10:58:18 | 513,482,826 | 36 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | import torch
import logging
import numpy as np
import cv2
try:
from .darknet import Darknet
from .yolo_utils import get_all_boxes, nms, post_process, xywh_to_xyxy, xyxy_to_xywh
from .nms import boxes_nms
except:
from darknet import Darknet
from yolo_utils import get_all_boxes, nms, post_process, xyw... | [
"xuarehere@foxmail.com"
] | xuarehere@foxmail.com |
164b19c6ae1bd8b400a1296c2b5d3a93cddf328d | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/RobSpectre-Call-Your-Family/allPythonContent.py | dfea466529f966662dd2984fc56f28256ffdd134 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,193 | py | __FILENAME__ = app
import os
import signal
from flask import Flask
from flask import render_template
from flask import url_for
from flask import request
from twilio import twiml
# Declare and configure application
app = Flask(__name__, static_url_path='/static')
app.config.from_pyfile('local_setting... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
19377378073d0491068a8850c5ec1a202b416b4e | e514bbdf8e0abe5ef0b58b94fe5f7d2afb38ea6b | /test_suite/shared_data/frame_order/cam/rotor/perm_pseudo_ellipse_z_le_x_le_y_alt/pseudo-ellipse.py | b1dec4d76ae1ec4b73e2fd5cf18f201d538cd854 | [] | no_license | edward-dauvergne/relax | 98ad63703e68a4535bfef3d6c0529e07cc84ff29 | 9710dc0f2dfe797f413756272d4bec83cf6ca1c9 | refs/heads/master | 2020-04-07T04:25:25.382027 | 2017-01-04T15:38:09 | 2017-01-04T15:38:09 | 46,500,334 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | # Optimise all 3 pseudo-ellipse permutations for the CaM rotor synthetic frame order data.
# These 3 solutions should mimic the rotor solution.
# Python module imports.
from numpy import array, cross, float64, transpose, zeros
from numpy.linalg import norm
import sys
# relax module imports.
from lib.geometry.coord_tr... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
d00b15b51af9b80c644dd6ea97b30104695d30ea | 127524f1e0b3675ba9660d0f531cfd7bd62935f0 | /quickai/yolo/utils.py | 0a1a51c24ab6b2bf55afff234575111a724bb849 | [
"MIT"
] | permissive | bryan2022/quickai | 779fc153bd98d7efc48879a37abdd18831eefe87 | 2c84bce9751131eef75e91803eb6bf6ea25c0b89 | refs/heads/main | 2023-06-15T00:56:45.188599 | 2021-07-11T14:43:59 | 2021-07-11T14:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,713 | py | import cv2
import random
import colorsys
import numpy as np
import tensorflow as tf
from .config import cfg
YOLO_CLASSES = "./coco.names"
def load_freeze_layer(model='yolov4', tiny=False):
if tiny:
if model == 'yolov3':
freeze_layouts = ['conv2d_9', 'conv2d_12']
else:
free... | [
"iamapythongeek@gmail.com"
] | iamapythongeek@gmail.com |
c3f6f7d8fc443d77d3e3e9e3fcc2804ef70cb098 | e4a565b09a8d3fd9dc46cc38c5e42fbcb94c1b05 | /nm.py | dc62e8a2fb7744f9a60632e986b66c229ef4b099 | [] | no_license | mystblue/PyTools | ca91d0a1a8850bc749adb9d05c3fd49166f58831 | 5eab64345d0ae5614f6cdabe3005b515f078a744 | refs/heads/master | 2023-09-01T19:55:37.190349 | 2023-08-31T00:55:25 | 2023-08-31T00:55:25 | 1,466,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # encoding: utf-8
import re
ubuf = ""
with open("test.html", "r") as frp:
buf = frp.read()
ubuf = buf.decode("utf-8")
ubuf = re.sub(">", ">", ubuf)
ubuf = re.sub("[ ]+$", "", ubuf)
ubuf = re.sub("<[^>]+>", "", ubuf)
with open("test.html", "w") as frp:
frp.write(ubuf.encode("utf-8"))
| [
"k-kayama@finos.hakata.fukuoka.jp"
] | k-kayama@finos.hakata.fukuoka.jp |
413cdca73ad398e6965d4f8c713960a58e72b596 | 922a58fa02ed0427e6697da54f19bc84e83f4d29 | /lyricsloader/load.py | e00562638f626b93b50868ac4bfce4788147a1d3 | [
"MIT"
] | permissive | afcarl/LyricsLoader | 560e66c48ecbc8ce95a8f41004abfa175ba496c5 | 795bc8838177fe4659df64da230b4348aed23db7 | refs/heads/master | 2020-12-04T05:18:51.204027 | 2019-08-03T16:30:42 | 2019-08-03T16:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | from typing import Dict, List, Optional, Union
import requests
from bs4 import BeautifulSoup
class LyricsLoader:
def __init__(self, artist: str, suppress_err: bool = False) -> None:
"""
:param artist: name of artist
:param suppress_err: whether to suppress LyricsLoaderError if artist/alb... | [
"dkaslovsky@gmail.com"
] | dkaslovsky@gmail.com |
662d357b17d5dcce4a11b0cc48958b54cbe77680 | 2f135256cf8c2939a92e7b2e13e5c56c69abd569 | /_constants.py | 141d72ae38aa785b38f4ddeec30d0236e52e601f | [] | no_license | mislam5285/SOA | 94fa1722d54112c301951b43361b9a612ead87d4 | f9c74ef8a153a67ce392447c47077825cfbd2b63 | refs/heads/master | 2023-04-29T23:10:15.473153 | 2021-05-18T15:09:30 | 2021-05-18T15:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py |
# samples ratios
SAMPLES_RATIO_01 = '5:1'
SAMPLES_RATIO_02 = "39:1"
SAMPLES_RATIO_03 = '50:1'
# sampling strategy
SS_ADASYN = 'ada_syn'
SS_SMOTE = 'smote'
SS_TOMEK = 'tomek'
SS_ENN = 'smote_enn'
SS_ROS = 'ros'
SS_NONE = 'none'
# base classifiers
CLF_SVC = 'SVC'
CLF_RF = 'RF'
CLF_AB = 'AB'
CLF_KNN = 'KNN'
CLF_RUSBOOS... | [
"peter.gnip@student.tuke.sk"
] | peter.gnip@student.tuke.sk |
8282401112b1b4d464f5eb4541b0d79ec6a226e1 | af67d7d0f56da5d8ac9a6fbd4b0aedcebf5a6434 | /buglab/models/evaluate.py | 6451f664c2e61472f2c8c46d28d3d1c9e7e5661b | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/neurips21-self-supervised-bug-detection-and-repair | 23ef751829dc90d83571cd68c8703e2c985e4521 | 4e51184a63aecd19174ee40fc6433260ab73d56e | refs/heads/main | 2023-05-23T12:23:41.870343 | 2022-01-19T12:16:19 | 2022-01-19T12:16:19 | 417,330,374 | 90 | 23 | MIT | 2022-08-30T11:54:55 | 2021-10-15T01:14:33 | Python | UTF-8 | Python | false | false | 11,936 | py | #!/usr/bin/env python
"""
Usage:
evaluate.py [options] MODEL_FILENAME TEST_DATA_PATH
Options:
--aml Run this in Azure ML
--azure-info=<path> Azure authentication information file (JSON). Used to load data from Azure storage.
--minibatch-size=<size> The minibatch size. [de... | [
"miallama@microsoft.com"
] | miallama@microsoft.com |
c253644311d7fe2b49eac8dac03132f4f1cdd8ba | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/302/66800/submittedfiles/testes.py | 7c56144edfa042834f7911ced03a33c1d0ca5381 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
idade = int(input('Digite sua idade'))
if idade => 18:
print ("maior de idade")
else:
print ('menor de idade')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fad7a7a03740888784aae9c82773ae506f9a7d84 | 3cc30d0b48b38e10d82cad2a142d697c79c7f308 | /src/collatinus_words/common.py | 618aef1baae39d01159544037cbac155f97a66b8 | [] | no_license | mcorne/collatinus-words | 0bf6b1c8635eebc8512f735e771642f455863d27 | da5b08bb017535037ba0c315ef51428f40b3f062 | refs/heads/master | 2023-08-17T14:21:25.335134 | 2021-09-25T18:18:53 | 2021-09-25T18:18:53 | 407,914,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import unicodedata
from pathlib import Path
class Common:
def read_model(self, file):
path = Path(__file__).parent.joinpath(file)
with path.open(encoding="utf-8") as f:
lines = unicodedata.normalize("NFC", f.read()).split("\n")
return lines
| [
"michel.corne@dgfip.finances.gouv.fr"
] | michel.corne@dgfip.finances.gouv.fr |
72f1a1f05e457a9f11bdee1d6b7442f9a3fe8ee7 | e436e729b0a78c7062311e0f48c55dd25d13faef | /tests/core/test_utils.py | b2bc8e17e86be01fde91a5b6c1f2ba12e3fdf488 | [
"MIT"
] | permissive | cad106uk/market-access-public-frontend | 71ff602f4817666ed2837432b912f108010a30a1 | 092149105b5ddb1307c613123e94750b0b8b39ac | refs/heads/master | 2023-02-03T18:48:45.838135 | 2020-12-24T09:38:56 | 2020-12-24T09:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import datetime
from unittest import TestCase
from apps.core.utils import convert_to_snake_case, chain, get_future_date
class UtilsTestCase(TestCase):
def test_get_future_date(self):
now = datetime.datetime.now()
future_date_str = get_future_date(60)
extra_days = datetime.datetime.strpt... | [
"noreply@github.com"
] | cad106uk.noreply@github.com |
d242fc244edeb09b0c77a69cefb7db4c2ecc9864 | b228d361a1256d0d168fc45f973b90ae4afe5737 | /deprecated/scratch_B120_B122.py | 110283de7ee9b942a8319b964126d99d02e506df | [] | no_license | mjstarke/globe-QA | 0c69d3c50a697401ac2e257276d2080c6dfcfbd6 | 8e8ab5c0db3fe0b96180ed98b8889ef01b148401 | refs/heads/master | 2022-07-07T14:49:17.150402 | 2019-08-09T16:02:32 | 2019-08-09T16:02:32 | 192,923,326 | 1 | 0 | null | 2022-06-21T22:27:49 | 2019-06-20T13:17:44 | Python | UTF-8 | Python | false | false | 5,563 | py | # DEPRECATED: This script is superseded partially by figure_S017.
from figure_common import *
globe_categories = [None, "none", "few", "isolated", "scattered", "broken", "overcast", "obscured"]
globe_labels = ["null", "none", "few", "isolated", "scattered", "broken", "overcast", "obscured"]
geos_categories = ["none",... | [
"matthew.j.starke@nasa.gov"
] | matthew.j.starke@nasa.gov |
1808c14f89677eda21489c6ca86615cddc39f671 | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/python/echomesh/util/math/LargestInvertible.py | d29937b39ff5a64bf2a144c83e74a0f9632c2172 | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import fractions
import math
from six.moves import xrange
# http://stackoverflow.com/questions/4798654/modular-multiplicative-inverse-function-in-python
# from https://en.wikibooks.org/wiki/Algorithm_Implementation/Mathematics/Extende... | [
"tom@swirly.com"
] | tom@swirly.com |
598f8a61b3087b0fcb7b6c6a253d5aee52cc0047 | 57cf467be3ac28d778c61d81e67895c59092ec36 | /pylogview/__main__.py | d74949329d265c9e54f8bb4bbefe4dd916662630 | [
"MIT"
] | permissive | CrazyIvan359/logview | 19c780c6ff3d7b3ade805e3af5573894a212bb71 | 4fb145843315dd03ff4ba414a5a617775d9d2af1 | refs/heads/master | 2023-02-12T17:52:51.366410 | 2021-01-16T21:46:23 | 2021-01-16T21:46:23 | 308,994,421 | 0 | 0 | MIT | 2020-11-02T01:21:49 | 2020-11-01T00:10:12 | Python | UTF-8 | Python | false | false | 194 | py | import os
import sys
def main():
from pylogview import logview
logview()
if __name__ == "__main__":
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
main()
| [
"6764025+CrazyIvan359@users.noreply.github.com"
] | 6764025+CrazyIvan359@users.noreply.github.com |
ae0d5043c4b6f21d284546b7af2d4fae2c9de60d | 8aa656ad1ccedbc26a7944ac3d4a6a3407cb8f9e | /reversestr.py | 117c90244858ea6b74fd443335701e19ed600e57 | [] | no_license | Ramyasree3010/ramyasree | 50cbf71d06ef836c9fc2bfc3b1a79386cbfce135 | 3903fd5017b5b9ee92cfcfeb0480415ac54e3c24 | refs/heads/master | 2020-03-18T14:27:52.748880 | 2018-07-07T11:19:38 | 2018-07-07T11:19:38 | 134,849,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | a=str(input())
print()
print(a[::-1])
| [
"noreply@github.com"
] | Ramyasree3010.noreply@github.com |
3e788e30fcf2f685d56dbf028eb1b93f22e164be | 6a07912090214567f77e9cd941fb92f1f3137ae6 | /cs212/Problem Set 1/2.py | 97b6cb647b9c05d52c0f4bd57cf754e82586bf20 | [] | no_license | rrampage/udacity-code | 4ab042b591fa3e9adab0183d669a8df80265ed81 | bbe968cd27da7cc453eada5b2aa29176b0121c13 | refs/heads/master | 2020-04-18T08:46:00.580903 | 2012-08-25T08:44:24 | 2012-08-25T08:44:24 | 5,352,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | # cs212 ; Problem Set 1 ; 2
# CS 212, hw1-2: Jokers Wild
#
# -----------------
# User Instructions
#
# Write a function best_wild_hand(hand) that takes as
# input a 7-card hand and returns the best 5 card hand.
# In this problem, it is possible for a hand to include
# jokers. Jokers will be treated as 'wild cards' whic... | [
"raunak1001@gmail.com"
] | raunak1001@gmail.com |
695c0b2d7954fd1051f0035d72fe20162555f864 | cfb27653926a6dec6867eeff9920462e42bf50aa | /udacity_cs101.py | b22c916b92c1b1690567199c1c263fe2c15f57b8 | [] | no_license | oscarjo89/Udacity_cs101 | 257e3df654c9b147b28c212fe08275f33b2db539 | 20306d4268f04bc5c8ea8bdda342c5e7954103c1 | refs/heads/master | 2021-01-11T15:31:17.157086 | 2017-02-04T13:14:43 | 2017-02-04T13:14:43 | 80,366,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,398 | py | # Intro to Computer Science
# Build a Search Engine & a Social Network
# https://www.udacity.com/course/intro-to-computer-science--cs101
#Lesson 1 Write your first computer program
# Sergey Brin's advice on learning to program.
# Get started on your first Python program.
# How to create and use variables in... | [
"noreply@github.com"
] | oscarjo89.noreply@github.com |
33791d780f140caa7af658d364f82aa0c8a86f28 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_streamidentifier_binding.py | e684932798111ad39584954df57a8ca7c17454bc | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 6,873 | py | #
# Copyright (c) 2008-2016 Citrix Systems, 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 l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
55d29e8a29c50328f21cb3ebad13224f1f616e71 | 4e7f16f67b52155b21c7eeb023f2f60f5b3d5c0d | /pynexradml/trainer.py | cb658b868954d8f459f71cce5609b8126b5a6dd0 | [] | no_license | DailyActie/AI_APP_HYD-py-nexrad-ml | 26b3d6202ae90bbe16e5c520d18ac07d2cd49778 | bdee8f72cbcf6728deec796e41a70c254b327e75 | refs/heads/master | 2020-12-12T02:04:26.811108 | 2012-11-28T02:22:08 | 2012-11-28T02:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,242 | py | from __future__ import division
import random
import numpy as np
import ffnn
import preprocessor
import datastore
import cache
from config import NexradConfig
def printStats(tp, tn, fp, fn, mse):
accuracy = (tp + tn) / (tp + tn + fp + fn)
precision = 0.0 if (tp + fp) == 0 else tp / (tp + fp)
recall = 0.0 ... | [
"reggiemead@gmail.com"
] | reggiemead@gmail.com |
7455f475a50afc7b088e3d342375944c71fa5075 | f6d63fa5321e9fdca9d5d76b8d1598dc61a5c164 | /app/migrations/0006_usermanager_img.py | d564433d3af175fd8cfca47cb41fd471e27229aa | [] | no_license | ake698/django_music | 8d6431bc7fda3a507c2de95212a40b371f40b24f | dabf5e787bb1404edf44ea4631261cde5a8a2632 | refs/heads/master | 2021-07-12T22:37:18.898816 | 2021-03-28T08:35:30 | 2021-03-28T08:35:30 | 243,263,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 2.1 on 2020-02-25 09:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0005_auto_20200225_1615'),
]
operations = [
migrations.AddField(
model_name='usermanager',
name='img',
... | [
"shiqing.feng@shareworks.cn"
] | shiqing.feng@shareworks.cn |
bcbcb90c7cf3f44d39c8b7ada7255ad68f25b3f9 | a20be0bd31e0ba46806d605cd4b852008b6a7141 | /New Fancy PWM motor/PWM with AND enable/desperation.py | ebc72d5b7795ac273868779d161f1dcc627b768c | [] | no_license | systemetric/hr-brain-2018 | 7dd367baf1bc348a735ec4ed1e604cabb38813af | 5a209e43ae03efd48f28d93571ddc0333fbeac0e | refs/heads/master | 2021-09-07T23:41:59.379209 | 2018-03-03T10:52:42 | 2018-03-03T10:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import time
from sr.robot import *
robot = Robot()
robot.motors[0].m0.power = 50
robot.motors[0].m1.power = -50
time.sleep(1)
robot.motors[0].m0.power = 20
robot.motors[0].m1.power = -20 | [
"jacklarkin241@gmail.com"
] | jacklarkin241@gmail.com |
95fd505de6e612fe4910474599f2a8c9473be8bd | b31c0f0d1e8a3bf575e6b86591ec1071cd9a8a3d | /mlonmcu/platform/espidf/__init__.py | 511bc4c5d06b1e9b61f42c245b0d3c14dfe8b50d | [
"Apache-2.0"
] | permissive | tum-ei-eda/mlonmcu | e75238cd7134771217153c740301a8327a7b93b1 | f1b934d5bd42b5471d21bcf257bf88c055698918 | refs/heads/main | 2023-08-07T15:12:13.466944 | 2023-07-15T13:26:21 | 2023-07-15T13:26:21 | 448,808,394 | 22 | 4 | Apache-2.0 | 2023-06-09T23:00:19 | 2022-01-17T08:20:05 | Python | UTF-8 | Python | false | false | 877 | py | #
# Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
#
# This file is part of MLonMCU.
# See https://github.com/tum-ei-eda/mlonmcu.git for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You m... | [
"philipp.van-kempen@tum.de"
] | philipp.van-kempen@tum.de |
238766efb621c4ea8ebfbc76bee09febb405c98b | 7b1420324360f79a2763a13b9f56b18e6dd45e0a | /Legacy/LG_surface_fitting.py | 8034eeed0dcaeefe231c5852da00da2fc85b1d4c | [] | no_license | Eflom/LG_Fitting | 37cc8aa45988046630fcbdcd7995a0bc6b3d5dbc | 9138261ee7b17c943ee05091114b35021fb4d009 | refs/heads/master | 2021-05-07T20:38:36.425940 | 2017-12-13T20:28:31 | 2017-12-13T20:28:31 | 108,931,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,876 | py | import numpy as np
from numpy import mean, sqrt, square, average
import numpy.ma as ma
import pylab
import matplotlib.pyplot as plt
import scipy
from scipy import special
from mpl_toolkits.mplot3d.axes3d import Axes3D
import cmath
import pandas as pd
import scipy.optimize as opt
from scipy.odr import ODR, odr, Model, D... | [
"erikflom86@gmail.com"
] | erikflom86@gmail.com |
125671ac083b8ab5d77142fb5411d4afa74e234c | 7673df8dec063e83aa01187d5a02ca8b4ac3761d | /Basic/functions.py | 8f1badb2bde7f5c4aa358988eb3330bc69a6532a | [] | no_license | jedthompson99/Python_Course | cc905b42a26a2aaf008ce5cb8aaaa6b3b66df61e | 618368390f8a7825459a20b4bc28e80c22da5dda | refs/heads/master | 2023-07-01T08:39:11.309175 | 2021-08-09T17:28:32 | 2021-08-09T17:28:32 | 361,793,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py |
def full_name(first, last):
print(f'{first} {last}')
full_name('Kristine', 'Hudgens')
def auth(email, password):
if email == 'kristine@hudgens.com' and password == 'secret':
print('You are authorized')
else:
print('You are not authorized')
auth('kristine@hudgens.com', 'asdf')
def hundred():
f... | [
"jedthompson@gmail.com"
] | jedthompson@gmail.com |
b8a88b113dc2f9df1412f3ceecd57bcfb7d140af | a87a7a4bce23ee1ade177b8ceb7fe82d4737f837 | /month04/django/day04/mysite4/bookstore/models.py | 97cfdd1568219b76f704b8ac6182b2d0c72e3761 | [] | no_license | ywzq87bzx/code | 3d9f9579f842216bb2afbaaf52e9678c25bcfd92 | e77cf592b1dd1239daa0f1cba1591e9a03fb550d | refs/heads/main | 2023-02-18T10:27:21.132762 | 2021-01-22T09:58:35 | 2021-01-22T09:58:35 | 326,974,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from django.db import models
# Create your models here.
class Book(models.Model):
title=models.CharField('书名',max_length=30)
price=models.DecimalField('定价',max_digits=5,decimal_places=2)
market_price=models.DecimalField('零售价',max_digits=5,decimal_places=2)
pub=models.CharField('出版社',max_length=30)
| [
"1070727987@qq.com"
] | 1070727987@qq.com |
7a9b228e8caa02c9bc3ce97346fd6555707087a2 | a0f882cf010a3517f074c50e3e00d1656c2d310a | /data/bank_note/note.py | c44bf0398a9913e964ed016466a25cd4a629552d | [] | no_license | bartzleby/mllib | b30973709de7f38688a5ef1031ed31879c820093 | 56c67027ef903a09bbe1936a986e4043801b8a4e | refs/heads/main | 2023-04-22T13:36:36.713401 | 2021-05-07T15:47:47 | 2021-05-07T15:47:47 | 335,476,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python3
#
# CS5350
# Danny Bartz
# March, 2021
#
# bank-note meta data in python
#
dtype = 'float'
features = ['variance', 'skewness', 'curtosis', 'entropy']
def labels_to_pmone(labels):
'''map labels in {0, 1} to {-1,1} respectively.
'''
# TODO: probably a better way..
for l in range(len(labe... | [
"bartzleby@gmail.com"
] | bartzleby@gmail.com |
d988a6b608ee1eb7cde14577d066fcf8baae9be4 | da816f085b8ff6a8a93c7c00090540f82d313cab | /posneg.py | 0499fb6e8cb47afd020dad8629d6d9db3f6d9eb6 | [] | no_license | Mehareethaa/meha | 75cc75b4f06242292ec1ec36149930890a3ea18a | 5201a962070fcbd50278774d82f20b1a45d53db3 | refs/heads/master | 2021-07-18T06:48:36.295913 | 2020-08-02T11:54:48 | 2020-08-02T11:54:48 | 198,787,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | n=int(input())
if n>1:
print("Positive")
elseif n>1:
print("Negative")
elseif n==0:
print("Zero")
else:
print("Invalid input")
| [
"noreply@github.com"
] | Mehareethaa.noreply@github.com |
5f6883e8c0e6b0a1c622e7cab2a1c38ef0de001a | 785c66f17fb44a43582f3af5291f5e46d7d76f6b | /main.py | 2ecae00dec131e26e408e380ccb196e9ba8f9f83 | [] | no_license | jamcmich/python-ftp-client | b77c200299dfff7468140eba282f4485704dae0b | 432adb1bd1a96c5bc28aaa6c8bf9c48354b5a9ea | refs/heads/main | 2023-07-31T03:15:44.115569 | 2021-09-23T21:00:21 | 2021-09-23T21:00:21 | 406,514,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,444 | py | # ----- Connecting to an FTP Server -----
# We will connect anonymously to Port 21 - Default FTP Port
# Anonymous FTP Connection
# Use an anonymous login to the FTP server.
from ftplib import FTP
try:
print("\nAttempting anonymous login...")
with FTP("ftp.dlptest.com") as ftp:
print(f"\t{ftp.getwelcom... | [
"jacobmcmichael@gmail.com"
] | jacobmcmichael@gmail.com |
ac399da5ab334b48a8e2a061255f77861963d61b | 6c24847c1134bcf02c570e10321036a8e60df27f | /dataloader/SecenFlowLoader.py | acd7afebfc0732bf1f364367101d79eced81a987 | [] | no_license | JumpXing/MABNet | d59640d56f65207f187825e353694481a44924ea | 1b250002bc92129edb21d22140c285dc0879c0f5 | refs/heads/master | 2021-03-14T14:27:36.457481 | 2020-03-12T07:42:38 | 2020-03-12T07:42:38 | 246,771,164 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py | import os
import torch
import torch.utils.data as data
import torch
import torchvision.transforms as transforms
import random
from PIL import Image, ImageOps
from utils import preprocess
from dataloader import listflowfile as lt
from utils import readpfm as rp
import numpy as np
IMG_EXTENSIONS = [
'.jpg', '.JPG',... | [
"842612690@qq.com"
] | 842612690@qq.com |
08bbe1fdcae8344e3d977489fc712f7cf859d99f | a9cb09fbd39f3dba971bff7188a7643d1cb1b744 | /loader_functions/data_loaders.py | 7dc0291454c00ca2b7b4be86b19d56392874ad36 | [] | no_license | FatBunny13/DynastyRL | 150ac0c5edfb1b8f75a33931b8d218b6f308a99d | 6b3c2e0ea04416a86181d6a5787c9bdda4371316 | refs/heads/master | 2020-04-20T18:05:07.340122 | 2019-04-22T19:30:13 | 2019-04-22T19:30:13 | 169,008,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | import os
import shelve
def save_level(player,game_map,dungeon_level):
with shelve.open('level{0}{1}'.format(player.name,dungeon_level), 'n') as data_file:
data_file['game_map'] = game_map
def save_entities(player,entities,dungeon_level):
with shelve.open('entities{0}{1}'.format(player.name,dungeon_leve... | [
"noreply@github.com"
] | FatBunny13.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.