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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae824878f45449c2a0687abe0de8588bb2fc3290 | 9ec057d901fc9a0828895d28af165884b2eeecd4 | /myapp/test.py | 5b6a3c3ad53cd112178fcbb4108c4d61d0a821f9 | [] | no_license | arpit3018/StockPred | f95706acc9aba53c5bb86fea893c5356d3285d75 | 9c8c195788c8c706e2ec880d59b758e544bd60cf | refs/heads/master | 2022-04-02T19:32:53.119344 | 2020-02-15T01:04:20 | 2020-02-15T01:04:20 | 240,580,862 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | import csv
file1 = "./companylist.csv"
file2 = "./ind_nifty500list.csv"
# Symbol, Name, Sector
with open(file1) as csv_file:
csv_reader = csv.DictReader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
if line_count == 0:
line_count += 1
else:
print(r... | [
"rishi.chawla14@gmail.com"
] | rishi.chawla14@gmail.com |
52c45fcb6941676bb95e51b20065f7003e69df4e | 502e97f0ec4f287b8280a546e7f2555ff3a5a1fd | /cnn_3d/loss_ssim.py | 1f9e166d4af572dad02709668df737d66c13e862 | [] | no_license | carlasailer/cnn_ct_pet | d350692be03432e025e33db6296ac33b36bedf08 | 4e256bb73f7ea0ab046c231762001b9f3535bb00 | refs/heads/master | 2020-12-18T23:11:24.048337 | 2020-01-22T10:40:52 | 2020-01-22T10:40:52 | 235,549,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 25 14:25:02 2019
@author: s1287
"""
import h5py
import os
import keras.backend as K
import numpy as np
def calc_ssim_git(y_true, y_pred):
"""structural similarity measurement system."""
## K1, K2 are two constants, much smaller than 1
K... | [
"40063163+carlasailer@users.noreply.github.com"
] | 40063163+carlasailer@users.noreply.github.com |
be4c81a7307446ad3fdd397b5847433df278b5b2 | 638f3cc43b1a7849ec1328207deed72eb9435565 | /pypad/collab.py | f508dd3ad06395335728ce6e7db17f8e899fd2f6 | [
"MIT"
] | permissive | candyninja001/pypad-old | 48444dea7c6037bbad0cae65e50746353b3d816e | 82bfc104c2524ca54cc415d37d2c21fec471838f | refs/heads/master | 2022-02-10T05:44:02.268337 | 2019-06-30T19:54:48 | 2019-06-30T19:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | from enum import Enum
from .dev import Dev
class Collab(Enum):
UNKNOWN = -1
NONE = 0
RAGNAROK_ONLINE = 1
TAIKO_NO_TATSUJIN = 2
EMIL_CHRONICLE_ONLINE = 3
GUNMA_NO_YABOU = 5
CRYSTAL_DEFENDER = 6
FAMITSU = 7
PRINCESS_PUNT_SWEET = 8
ANDROID = 9
SHINRABANSHO_CHOCO = 10
CAPYBA... | [
"candyninja001@gmail.com"
] | candyninja001@gmail.com |
5d1a3254422d9a759a333be1f2834e1071f49c20 | 8fbb7e8f83efbfa98e14b941bf2e687403b02d3d | /week 8/function.py | df77be2210a0e8e46f090171fa964f223f014c7e | [] | no_license | alviandk/python-sunmorn | 0c61f6042dbc3ebf897c2c6139590221c1238b9d | c3a06ba846ddea113cc0c451f110dfc05f256be7 | refs/heads/master | 2016-08-08T15:28:53.078910 | 2015-08-09T04:29:56 | 2015-08-09T04:29:56 | 35,749,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | # function without parameter and return value
# syntax to definite is "def function_name():"
def say_cool():
print "cooollll"
#syntax to call the function is "function_name()"
say_cool()
| [
"alviandk@GMAIL.COM"
] | alviandk@GMAIL.COM |
67bffd0980d1ea7f4201ae6348603c60f4fb7966 | 42fa1862effc3e494859904b76c43ce2bcd623a0 | /idealised_box_simulations_paper2b.py | 94394f21530d4fa8c134d0b1ed14dcc4aec1a8ec | [] | no_license | PaulHalloran/desktop_python_scripts | 3e83aedf3e232da610b5f7477e4d7e8fb0253f99 | 325e923527278a5c3e9ab8c978f29b2816dab087 | refs/heads/master | 2021-01-01T19:52:06.828997 | 2015-06-27T21:14:10 | 2015-06-27T21:14:10 | 38,155,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,527 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import matplotlib as mpl
results = np.genfromtxt('/home/ph290/box_modelling/boxmodel_6_box_back_to_basics/results/spg_box_model_qump_results_3.csv',delimiter = ',')
results_stg = np.genfromtxt('/home/ph290/box_modelling/boxmodel_6_box_back_to_basics/... | [
"paul.halloran@gmail.com"
] | paul.halloran@gmail.com |
c477817d17f893caa0728ca8f24b6d1a92438e18 | 28a05fedfffb11c773c3d4445cea7c525b411443 | /tests/threads/id/messages/createMessages_test.py | e3543f3a9fa8d953acf9f06d222aef3708149f5d | [] | no_license | mdomosla/zadanie2-testy-forum | 9b19740a8dbbced9ce49aeecf453309f96f00e22 | 72d2e82485b6f175d2f0e00a8f366e36a6d19079 | refs/heads/master | 2020-05-25T17:32:26.814582 | 2019-05-22T15:01:44 | 2019-05-22T15:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,137 | py | from tests.baseTest import *
from lib.random_generator import RandomGenerator
from lib.api_requests import RequestManager
from grappa import should
from api_endpoints.signup_endpoint import SignupMethods
from api_endpoints.threads_endpoint import ThreadsMethods
from api_endpoints.message_endpoint import MessageMethods
... | [
"michal.domoslawski@codahead.com"
] | michal.domoslawski@codahead.com |
640b1ecbbff09f8d8ae3a1a9b0aa9c8146f0a093 | 4ba6207a7e4aa84da494e0f6d811eca606659b73 | /groupster/migrations/0003_jobseeker_resume.py | 5f0af9769b89646d52c1f168f716bf3a2099c0e6 | [] | no_license | jkol36/groupster | da5d9d4b882cd9df7a4b187b65cdc3fe8175e794 | 5967cb7b2689dec760727c7534ff0f73a6901ba4 | refs/heads/master | 2021-01-02T09:19:49.841001 | 2015-06-10T18:57:37 | 2015-06-10T18:57:37 | 35,061,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('groupster', '0002_remove_jobseeker_resume'),
]
operations = [
migrations.AddField(
model_name='jobseeker',
... | [
"jonathankolman@gmail.com"
] | jonathankolman@gmail.com |
857103b7046057d8706f792b275140f428e91cfe | d3aaceff6cc95097f9715b9517806a47d38133c0 | /bbakdoc/events/consumers.py | 041dd11893da0a68aa062b1a63489a99ccdda2fd | [] | no_license | SELO77/django-template2 | 5f7b4febdb4ea056cf833ec3125f1935b55f4c69 | b5eafd736b2a8065fbc690b6378d3f4e8ee64834 | refs/heads/master | 2020-05-17T03:05:38.151735 | 2019-06-10T12:42:35 | 2019-06-10T12:42:35 | 183,469,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | import json
import logging
from channels.db import database_sync_to_async
from channels.generic.websocket import AsyncWebsocketConsumer, WebsocketConsumer, AsyncJsonWebsocketConsumer
# @database_sync_to_async
# def get_user_email(scope):
# return scope.user.email
from bbakdoc.events.models import EventQuestion
... | [
"seloselo1001@gmail.com"
] | seloselo1001@gmail.com |
46d2d07519f75a97e9add74926ea8d86907ad63c | caebb55c3d03a9dad4888a27394733896cf1fd65 | /configs/machines/mira/trilinos/package.py | 76a98f4c3fdd9c1bc6a12c3d87344914c8701aba | [] | no_license | mclarsen/build-test | 70d82e5cf7dcba8868263626ce168aab4df0e35e | 8861bf717335c1afef34967325c5dc3359f5fdb8 | refs/heads/master | 2020-03-19T00:41:20.426014 | 2018-05-29T22:16:12 | 2018-05-29T22:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,070 | py | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | [
"jon.rood@nrel.gov"
] | jon.rood@nrel.gov |
ce0bb9b7c37fb8d9f44611f1099941fe6efd372c | 4439b04e1fe448b1dffb8239005ca75362926c71 | /models/preresnet.py | 3cbac4fbb217498d61af53aa68c52a579fb229aa | [
"MIT"
] | permissive | yangcyself/SDPoint | 6cd69853fc92989b3f7215a440738f15d44b7618 | f4ae14d6a4126dba96ae5191b1c8f31b5724161a | refs/heads/master | 2020-04-29T03:25:41.066857 | 2019-04-08T10:49:48 | 2019-04-08T10:49:48 | 175,809,324 | 0 | 0 | MIT | 2019-03-15T11:40:07 | 2019-03-15T11:40:06 | null | UTF-8 | Python | false | false | 7,455 | py | import torch.nn as nn
import torch.nn.functional as F
import math
import random
import torch.utils.model_zoo as model_zoo
__all__ = ['PreResNet', 'preresnet18', 'preresnet34', 'preresnet50', 'preresnet101',
'preresnet152', 'preresnet200']
def conv3x3(in_planes, out_planes, stride=1):
"""3x3 convoluti... | [
"jason7fd@gmail.com"
] | jason7fd@gmail.com |
c653ef0b248892879977259685362bf27d177e0a | 6e62c6e531b307c7797cf8320920353f2ee5cd0c | /104-Maximum-Depth-of-Binary-Tree.py | 94e4f42d0df6f7f5c2a6148eca22beb054950c7b | [] | no_license | OhMesch/Algorithm-Problems | 1d7dbce7f3dda40ff1ec3e7851fb9ceb9b94d791 | 61933e7c0b8d8ffef9bd9a4af4fddfdb77568b62 | refs/heads/master | 2022-10-02T23:51:08.303274 | 2022-08-22T22:12:00 | 2022-08-22T22:12:00 | 93,125,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # Problem: Given a binary tree
# Return: Each level of the tree
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def maxDepth(self, root):
"""
:type root: TreeNode... | [
"mze5111@gmail.com"
] | mze5111@gmail.com |
585d7ba4e786f38d383aff0c3988d0d78c3af34d | 01759486a230eeb74022fc83495bb14876f72a7a | /create_label_map.py | 7ea3e27f58a4b9871fe57a569b2014ba86577ee2 | [
"Apache-2.0"
] | permissive | jwlw2022/2019_intern_project | eeac05a1e1271c1da8cfdac10075a723ff347f80 | 8c146815d4288882f41ac3ad85ba7f5da252abec | refs/heads/master | 2021-06-13T14:49:34.014300 | 2021-05-20T13:04:11 | 2021-05-20T13:04:11 | 189,961,810 | 1 | 0 | Apache-2.0 | 2019-06-13T01:53:30 | 2019-06-03T08:05:28 | Python | UTF-8 | Python | false | false | 1,133 | py | # Copyright 2019 VIA Technologies, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"noreply@github.com"
] | noreply@github.com |
ce29bf58af3e5eb3a1d8b346179897b9a2365c95 | 6370e1cea61ab3de3c5451d45e10820b2b382dfe | /settings.py | bc8d2aaeb5ba237c2c831a9ec71f5d383a6f5dc9 | [] | no_license | Maxibond/selenium_work | fd493dc318924cf2978ed18d59613f1e1b15c811 | ae766b227add7033be83fd84ccca2a07b6c5ae2c | refs/heads/master | 2020-01-23T21:09:56.495237 | 2016-12-18T19:03:34 | 2016-12-18T19:03:34 | 74,573,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | LOGIN = 'ValidLogin'
PASSWORD = 'ValidPassword'
MAIN_URL = 'http://www.reddit.com/'
| [
"jeymontor@yandex.ru"
] | jeymontor@yandex.ru |
b784cb302379736956e6936d0636e72dbf650465 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02399/s627926226.py | 2a4ef109e41aa4a7c46ff6352b1a640bb190278c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py |
1
2
3
4
5
6
a, b = [int(i) for i in input().split()]
d = a // b
r = a % b
f = a / b
print('{0} {1} {2:.5f}'.format(d, r, f)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5edcc07e987188f0acb6a688fe71c980a95958cb | 3da8e3ca17c2da404aa7c148f4e47686a2bd450b | /app.py | 69cdf11a2d3dd7a1dd974b01082ae8784abb3ea6 | [] | no_license | cjbaccus/UdaciDockerProj | d1b4c4664e44370995f42f8db7fcf89f6942a03d | 62e3e5d05522ec031739f8406e7d98c2571badf0 | refs/heads/main | 2023-07-12T05:56:34.245193 | 2021-08-17T18:53:25 | 2021-08-17T18:53:25 | 397,211,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | ips = ["{}.{}.{}.{}".format(i,i,i,i) for i in range(1,10)]
for n in ips:
print("THis is the IP address:{}".format(n))
| [
"cjbaccus@gmail.com"
] | cjbaccus@gmail.com |
d804293a9bb22f13def744ccad3cf0bcce62647f | 0fa7b9328e04d2ff5a2b607d9ec6962b7ee97532 | /vi_lib/lib/torchutils/test/test_models.py | afef409c72474e1be1ac61ba78474b7a8a8e86e3 | [] | no_license | aaronpmishkin/normalizing_flows | 4b12bcbe85f400bb27d21e93d8a3c35d9e5df90c | 249f0d99fee6d07783a2a3a595cfeb439af8c599 | refs/heads/master | 2020-04-09T01:09:40.906963 | 2018-12-14T07:47:08 | 2018-12-14T07:47:08 | 159,893,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | import unittest
import torch
import torchutils.models as models
from torchutils.params import bp2v
from torch.nn.utils import vector_to_parameters as v2p
from torch.nn.utils import parameters_to_vector as p2v
class MLPTestCase(unittest.TestCase):
def assertAllClose(self, a, b):
self.assertTrue(torch.all... | [
"aaronpmishkin@gmail.com"
] | aaronpmishkin@gmail.com |
05a8191a0221fcf44c3631cb1ae3b634e90a6c50 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fractions_20200802103056.py | a8e741def594e4049345cfbf9c195c01f24b8d0d | [] | 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 | 798 | py | def fractions(numerator,denominator):
if denominator == 0 :
return str(numerator)
number = numerator / denominator
if numerator % denominator == 0:
return str(numerator // denominator)
newStr = str(number)
print(newStr)
largeStr = newStr.split(".")
if len(largeStr[1]) > 1:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d8d24f01e219adb70d6b6d395b2bf63ff36bd787 | 6668026dd24df7a0232902533877603c52db0f80 | /basic_bot/bot.py | 3f5104cc546c43f17e7a82e3f1df5663c030f782 | [] | no_license | awadahmed97/Basic_bot | 9e0dba170bc323a58e67b3d12a95db1d7c435212 | 5cf6a3549e5c348b9b4db97a54aea12719f1144b | refs/heads/master | 2020-12-13T15:18:52.429861 | 2020-02-03T18:34:40 | 2020-02-03T18:34:40 | 234,455,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | from config import keys
from selenium import webdriver
def order(k):
driver = webdriver.Chrome('./chromedriver')
#enters the site url (key in config file must be filled)
driver.get(k['site_url'])
#For click methods inspect element in chrome
#and copy xpath of the tags you want to click
#(Right click on link o... | [
"noreply@github.com"
] | noreply@github.com |
df115539ee2bd3c37694d308801d6d8006d23e25 | 6c0861b1b7b4f024c864c3948085e7b16457503d | /Quiz/project3.py | e283758689c7b0fb6c2f8e0a56a27b5e29afeff0 | [] | no_license | NasirOrosco/Python | d228cbfe1f6e8f70402ff0e0f54f03fbc30783ec | 7d2288b6e7e34c05a5d56603706dad782dba8789 | refs/heads/main | 2023-07-10T05:29:06.654206 | 2021-08-04T03:48:30 | 2021-08-04T03:48:30 | 332,862,861 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | '''
Created on Jul 1, 2021
The purpose is too create a quiz that tests people's basic highschool knowledge.
@author: Nasir
'''
#Make a variable called score to keep track of the correct answers. And set
#it to 0.
score=0
#Ask the user question one. And store the users answer.
question1=input("What is the powerhouse of ... | [
"nasirorosco18@gmail.com"
] | nasirorosco18@gmail.com |
00dccca5378c4cc542d8e54c54e252e22ed0e38f | 5d4841bd3160418d3deb88b241edc22c7b7eab18 | /server/serving/package_scanner.py | 10cab85c3a049a56099c34414e74816f80bf0b21 | [] | no_license | cxbn12/ntu-nlp | 2493523bb886facfd661dd4194082ccd653496ae | de98f636919267a3701383636ccb31ccf108f28b | refs/heads/master | 2022-03-16T08:32:24.302783 | 2019-11-04T15:31:56 | 2019-11-04T15:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import os.path as osp
import sys
from pathlib import Path
def scan_package(path, base_dir='.'):
"""
Scan for all the python packages under a certain path. Note that this
will automatically append the scan path to the PYTHONPATH. You should be
careful if there is some packages with the same name. In th... | [
"YLI056@e.ntu.edu.sg"
] | YLI056@e.ntu.edu.sg |
0183493e05a780be89391b1fbb9d5cc5d38b1490 | 92b544bcfef1c84af63c26352f9b7320a3646c70 | /newfile.py | f0e5554c5d285d4eaf79f414bfa323d887514a25 | [] | no_license | IKRunner/newGitTest | 431c88514807107cf4d92e77896d26ed5dea8b02 | 466caf8582eacf70b1e9022a93b9bda001f2ef15 | refs/heads/main | 2023-03-20T09:18:39.833100 | 2021-03-19T06:34:52 | 2021-03-19T06:34:52 | 349,304,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | # fsfsfsd
# New iten in adlkfjadl ppppppp | [
"iachilihu@gmail.com"
] | iachilihu@gmail.com |
fae007629c51a3cee178d03c6c3f04a26b153838 | 239bdd0c6aa252de5f3edd1a7a4fd54eaa29f89d | /PPL-assignment/Class -2/mains.py | 932aad591f5616fcaca6bb2fbea24c8756bf2476 | [] | no_license | aawesh2000/PPL-Assignment- | a19d23907273b5d90ffca3f6fd373f6079a6431f | 918daa3e99a353fa8967e5df5029fc5ade225268 | refs/heads/master | 2022-12-28T13:43:31.808653 | 2020-10-01T07:56:20 | 2020-10-01T07:56:20 | 300,231,752 | 0 | 1 | null | 2020-10-09T06:56:58 | 2020-10-01T10:02:19 | null | UTF-8 | Python | false | false | 215 | py | from animal import *
from shapes import * # modularity
t = Tiger()
t.set_limbs(4)
t.show()
m = Man()
m.set_limbs(2, 2)
m.show()
c = Circle()
c.details(True, True)
c.show()
r = Square()
r.details(True)
r.show()
| [
"noreply@github.com"
] | noreply@github.com |
a37f808f292fbec37ef54a374b4b99844add9867 | 498a179cce7ba11c493dac2e1eb519ee10a42698 | /Recognizer/my_model_selectors.py | 7c28fa01b03faff96b7f9afcb21ad46eb98f2f5a | [
"Apache-2.0"
] | permissive | thealokkr/AI-Algorithms | b177f94309daf0f4bbab18fb8931d4d2976a5bf3 | 1632f4b324f5f791adae0d92239770a870d1a49a | refs/heads/master | 2021-07-09T09:38:42.677401 | 2019-03-13T06:01:02 | 2019-03-13T06:01:02 | 148,180,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,763 | py | import math
import statistics
import warnings
import numpy as np
from hmmlearn.hmm import GaussianHMM
from sklearn.model_selection import KFold
from asl_utils import combine_sequences
class ModelSelector(object):
'''
base class for model selection (strategy design pattern)
'''
def __init__(self, all... | [
"noreply@github.com"
] | noreply@github.com |
e739c6d1ddb77e7148a871dcd36bce0dfe716734 | b44cc62938ffd5e032097f2eefb2ff16bb3d630f | /app/views/search.py | b0e98cbd73c2da9f3bdf3fbe2be38f473dcd5633 | [] | no_license | rajeshagashe/universitySearch | 3761c170e0b0615af4e29bc8e85294732c98abac | 4bf2f60899a5c95f09ae4d4c429bbb40b3099b44 | refs/heads/master | 2022-12-02T03:55:47.629533 | 2020-08-10T19:56:47 | 2020-08-10T19:56:47 | 286,098,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | from flask import (
Blueprint, request
)
from app.models.universities import UniversityInfo
from app.extensions import postgres_db
import traceback
import json
from flask_sqlalchemy import SQLAlchemy
search_blueprint = Blueprint('search', __name__)
@search_blueprint.route('/universities', methods=["POST"])
def... | [
"rajeshagashe94@gmail.com"
] | rajeshagashe94@gmail.com |
392f89400bb41debeaf5b43d922ac73a8730406f | 68a3913a23da6187e41c0aae4f9b06075e9c248e | /project files/pytorch-neural-network.py | c1e0cef6cc06e596b4cc8e00e47542712ed5c410 | [] | no_license | AustinCai/RedditComment_MulticlassClassification | ca6df3fdeba6fb6f0b43ffbdd9c52dc0926bec21 | a4f2be7bcc43770d81a7f4db0f2340fc7101776e | refs/heads/master | 2020-06-01T20:51:36.739149 | 2019-09-21T14:57:30 | 2019-09-21T14:57:30 | 190,922,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | # CS 221 Neural Netork Implementation
'''
Erick Fidel Siavichay-Velasco |
This file contains a neural network implementation using PyTorch v1.1.0
'''
# Packages needed
import sys
import pickle
import torch
from torch.autograd import Variable
import torch.nn as nn
import numpy as np
class Neural_Network(nn.Module):
... | [
"acai21@stanford.edu"
] | acai21@stanford.edu |
f70701fd609628325e07ae636ee846ef48abe1ca | 37f4c86c2a6b45c86aa9544fa8eb2b1846fc30a1 | /Intro_Simple_Functions/Hospital.py | c09eb03a42efa0b234906d01f1320db2725281e8 | [] | no_license | mrbmadrid/Flask_Color_Picker | 2571e9ff62d54c94cd48b7cf4de64ae8ef06c4c3 | 7323e41c6377b3d9eec80984ecb56629e5c11fdd | refs/heads/master | 2020-03-08T23:17:48.004055 | 2018-04-06T19:38:22 | 2018-04-06T19:38:22 | 128,458,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | class Patient(object):
def __init__(self, id_num, name, allergies):
self.id = id_num
self.name = name
self.allergies = allergies
self.bed_num = -1
def display(self):
print str(self.id), self.name, self.allergies, str(self.bed_num)
class Hospital(object):
def __init__(self, name, capacity):
self.name =... | [
"mrbmadrid@gmail.com"
] | mrbmadrid@gmail.com |
564aff3730d2c16ce344e5ed8c48fcd218d1789c | ac8c31b5971161adf0b7e66d85effd0ec8f5b7dd | /Day 005/video50_E_5_2.py | 2d04f4a560b60b729707bffe0d83d77bd0142f99 | [] | no_license | satuhyva/100daysOfPython | 5f7e7e1959358bcb370f73abe0e5b9627acf01a2 | bdd93c290434aa05bcd52cd96d602bd72acc4a41 | refs/heads/master | 2023-08-17T01:10:35.218447 | 2021-09-20T05:59:15 | 2021-09-20T05:59:15 | 394,317,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # 🚨 Don't change the code below 👇
student_scores = input("Input a list of student scores ").split()
for n in range(0, len(student_scores)):
student_scores[n] = int(student_scores[n])
print(student_scores)
# 🚨 Don't change the code above 👆
#Write your code below this row 👇
highest = -1
for score in student_sc... | [
"hyvarinen.satu.i@gmail.com"
] | hyvarinen.satu.i@gmail.com |
213b094346320e7be74f72110762adf43b8b2af4 | 37af8c94c7e47bb9fee08263de8624bc59487735 | /TA(unigram).py | f80a996893176231c9c9fff00eab0c92d6ab5911 | [] | no_license | ilhamksyuriadi/TA | 0b2f046505dcd74f73fd98d88905f75891061317 | 347168d1f786e8a5b02819064a7f9d039b2cdd78 | refs/heads/master | 2020-04-17T11:05:05.398744 | 2019-07-01T15:28:02 | 2019-07-01T15:28:02 | 166,526,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,590 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 16 17:13:44 2018
@author: ilhamksyuriadi
"""
import xlrd
from nltk.tokenize import RegexpTokenizer
from Sastrawi.StopWordRemover.StopWordRemoverFactory import StopWordRemoverFactory
from Sastrawi.Stemmer.StemmerFactory import StemmerFactory
import numpy as np
... | [
"noreply@github.com"
] | noreply@github.com |
89a5d4dbe3fcb3d203ce377c78cc21872e3748e3 | a5d53e75eb34639b3c17772ad610c73e3cf935d6 | /pep234.py | 2ff0ddf3151d70752a1ea01c508a43c8c3c9ceed | [] | no_license | pkral78/lf_async_python | 42100f5b1039aedcf11828d81695db20400ea932 | 06c7ffa48267db062b341a2001879d563fd511b0 | refs/heads/master | 2023-01-09T03:41:34.205932 | 2020-11-13T14:31:18 | 2020-11-13T14:31:18 | 312,598,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | class even_iter:
def __init__(self, iterable):
self.iter = iter(iterable)
def __iter__(self):
return self
def __next__(self):
ret = next(self.iter)
try:
next(self.iter)
except StopIteration:
pass
return ret
a = [i for i in range(0,... | [
"pavel.kral@gmail.com"
] | pavel.kral@gmail.com |
5c9589687551433145ec1f6425524429354fc77d | 75c653bbe8c919ff2ebe315fc24434f5cbce8d44 | /solver/settings.py | f8925afe8d608b5843089b04010897c85fe4a0ba | [] | no_license | piotrgajdzica/math-trade-solver | 5d7953c98595ea022fe713c244c1b60d71ee3113 | 7f8faa566a9c3c9dbeca462d50a2af60150a718a | refs/heads/master | 2020-03-18T09:21:30.381018 | 2018-12-06T13:37:24 | 2018-12-06T13:37:24 | 134,559,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | group_prefix = "g"
element_prefix = "e"
| [
"p.gajdzica@labmatic.com"
] | p.gajdzica@labmatic.com |
4cfebf29e214868e5123ed92585040660fa48191 | d5b232efefd93d9ec0ee2014fcd22400dd2459a2 | /Python/multiprocessing/ex6_queue.py | 7cb3a117cd0d6d4224c160d43ef96291b33d9304 | [] | no_license | joohee/DailyCoding | cdac39a2362ec9a2e91a7f724c59e632167f45b7 | 9746628408ea269f696a15e84869ed5f16cca7f0 | refs/heads/master | 2020-04-06T13:53:58.785499 | 2016-10-27T06:39:32 | 2016-10-27T06:39:32 | 48,873,598 | 0 | 1 | null | 2016-03-03T06:24:54 | 2016-01-01T08:45:45 | Python | UTF-8 | Python | false | false | 216 | py | from multiprocessing import Process, Queue
def f(q):
q.put([42, None, 'hello'])
if __name__ == '__main__':
q = Queue()
p = Process(target=f, args=(q,))
p.start()
print(q.get())
p.join()
| [
"neigie@gmail.com"
] | neigie@gmail.com |
69ba12d03ccafd8bcc5cf81900c9c8eaceb3f501 | 1fea2c8a6fcceb58caa4caa7bea4b9140bca5749 | /src/process_data.py | 87d42c9b65d4a7d3a642b6bd9f9549934dc7316a | [] | no_license | iamaziz/queue-system | 19691881b149e0420ca80925adf19a0d7d9b8ff1 | 00087f502db597cc2114c1cc254ad60c598e015a | refs/heads/master | 2020-05-17T23:53:56.447626 | 2015-10-16T00:58:28 | 2015-10-16T00:58:28 | 42,259,668 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py |
import pandas as pd
import matplotlib.pyplot as plt
in_file = 'per-patient-data.csv'
data = pd.DataFrame.from_csv(in_file, index_col=False)
# aggregate raw per-individual patients dataset
def daily_ticks():
days = set( data.AdmitDay )
total = 0
icroom = 0
day_total = {}
for d in sorte... | [
"iamaziz.alto@gmail.com"
] | iamaziz.alto@gmail.com |
153d4d409dd7f93f7c62b1eefadb07baeb56dccf | 06afde537edeccf393106a95e4d6e03b164b03bf | /airline/flights/migrations/0004_passenger.py | e0e2968093a393f39b75730d8b54a46c7ba829e2 | [] | no_license | moustafamahdy/MyProjects | 025eced26ee5c8eebbc396c764e5ccfdc8739b8c | 51943815004dfc4450d5c3b95a0f58c5c8060928 | refs/heads/master | 2023-05-13T01:20:26.409788 | 2021-05-30T09:05:01 | 2021-05-30T09:05:01 | 371,940,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Generated by Django 3.1.7 on 2021-05-23 12:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flights', '0003_auto_20210523_1057'),
]
operations = [
migrations.CreateModel(
name='Passenger',
fields=[
... | [
"moustafa.cena1997@gmail.com"
] | moustafa.cena1997@gmail.com |
f9316f11cad08f96cbfe0273ec66617794c9de3d | 635ad5c4fe923ce67619f5275f2a4fa35882676a | /assignment_6/src/markov_model.py | b545e774c05aefe99f410da34d02dc683bf8b088 | [] | no_license | justinbrush702/bioinformatics | 1441530e0ca405df1470b6fd336c4e4449405ccf | 778fddc9659b61eb9d9d5014853ad1acb1b8bd6c | refs/heads/master | 2021-01-11T17:57:51.262903 | 2017-08-07T06:53:26 | 2017-08-07T06:53:26 | 79,883,881 | 0 | 0 | null | 2017-08-07T06:53:27 | 2017-01-24T06:06:51 | Python | UTF-8 | Python | false | false | 433 | py | states = ('Fair', 'Loaded')
observations = ('1', '2', '3', '4', '5', '6')
start_probability = {'Fair': 1.0, 'Loaded': 1.0}
transition_probability = {
'Fair': {'Fair': .95, 'Loaded': .05},
'Loaded': {'Fair': .1, 'Loaded': .9}
}
emission_probability = {
'Fair': {'1': 1.0/6.0, '2': 1.0/6.0, '3': 1.0/6.0, '... | [
"jbrush@pugetsound.edu"
] | jbrush@pugetsound.edu |
5c06b3491ae1c4100e4ad79d68d3243a832be824 | 809d3ec4425c952836cc41386a09d5150e1ef756 | /bbva/apps.py | f8a8764e8b57749e14ef73fc6c3baeef1ffc3619 | [] | no_license | luartony/datawasi_bbva | 9e197694a3f7df451f636f93c18736ad4f86e5d3 | ef630ca177c67c5878f9d65273f2e4f76c85a3f9 | refs/heads/main | 2022-12-30T10:03:41.568777 | 2020-10-18T15:40:37 | 2020-10-18T15:40:37 | 305,002,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class BbvaConfig(AppConfig):
name = 'bbva'
| [
"luartony@gmail.com"
] | luartony@gmail.com |
4cbd2d75e88612f80a7b5d0d48737e6509bdb6e6 | f4c394e57526a4810520b0461f7c23803ab4bbc5 | /hackerrank/intro/arithmeticOperators.py | dc9c563e10df4ebbcff0c28cf10d91c11f624601 | [] | no_license | anandk10/MyPythonPractice | 7a794b5c6ceb926f4bdd94b8f235ac0d788ff6ea | 4b84fe868832aa7d00947d4da2386f536c107293 | refs/heads/master | 2021-01-10T14:30:43.658040 | 2016-02-12T23:41:33 | 2016-02-12T23:41:33 | 51,621,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
# Problem link : https://www.hackerrank.com/challenges/python-arithmetic-operators
# Python 2.7
num1 = int(raw_input())
num2 = int(raw_input())
print(num1+num2)
print(num1-num2)
print(num1*num2) | [
"askarand@ads.iu.edu"
] | askarand@ads.iu.edu |
b104d48e41d9130046b0c49a32c62beba8f2a35d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/179/58876/submittedfiles/funcoes1.py | e9ffe616ef1b13fe73cb6d7961c81ad1912c3af5 | [] | 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 | 1,154 | py | # -*- coding: utf-8 -*-
def crescente(a):
cont=0
for i in range(0,len(a),1):
if a[i]>[i+1]:
cont=cont+1
if cont==len(a):
return(true)
else:
return(false)
def decrescente(a):
cont=0
for i in range(0,len(a),1):
if a[i]<[i+1]:
cont=c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f774b0b029f5480227625c6e47a5628159a4158a | 80ef10042f32c49254e7e35aebfec0f59b3e8aad | /setup.py | b77d0a540df682d654498cd5c5702d4ab07bdc82 | [] | no_license | liuzheng1990/boto3m | 70a7db42721c729a6674ba85cc7656202939fbe3 | e62ae81bce2e011f0bb0d3ffd8e0f6621366220b | refs/heads/master | 2020-03-26T13:34:34.499278 | 2017-08-20T12:29:55 | 2017-08-20T12:29:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python3
import boto3m
import sys
from setuptools import setup, find_packages
install_requires = ['boto3']
setup(name='boto3m',
version=boto3m.__version__,
description="Boto3 multiprocessing extension.",
author="Chase Nicholl",
author_email='me@chasenicholl.com',
url='http... | [
"chasenicholl@gmail.com"
] | chasenicholl@gmail.com |
cdaacfbe7fce884d91c74e79e4a520fdf8185bea | 382ce68736c1dee91dcb5eb7846eff10519d2b70 | /etcewrappers/utils/iperfserver.py | f780cf8d9b291281079960623c45cbb9d682bb1a | [] | permissive | adjacentlink/python-etce | 4345c7bd719f18022fdb96b0c30efc529948f87c | 72d58535e230f3178b1cab9616a3412514dabaf3 | refs/heads/master | 2023-08-18T05:08:53.519074 | 2022-11-17T16:47:44 | 2022-11-17T16:47:44 | 103,570,572 | 7 | 4 | BSD-3-Clause | 2022-10-11T11:13:42 | 2017-09-14T19:01:27 | Python | UTF-8 | Python | false | false | 3,528 | py | #
# Copyright (c) 2015-2018,2020 - Adjacent Link LLC, Bridgewater, New Jersey
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright... | [
"eschreiber@adjacentlink.com"
] | eschreiber@adjacentlink.com |
81311fc1eca0f83f3b69ff29b9514f2cf9cd7215 | 010ac0bc179509a77336dcc963c88a9b46117415 | /flappy bird 1.py | 5505ad0e6e1f14b77802b454c6fec81792a428c1 | [] | no_license | quirijnve/flappy-bird-ai | a9464751acde49e362846b802c756c9016fc543e | 5f07f242b32ea5a4a079798a6ec68bffab862285 | refs/heads/master | 2020-12-10T14:44:55.882296 | 2020-01-14T18:03:22 | 2020-01-14T18:03:22 | 233,623,156 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,333 | py | import pygame
import neat
import time
import os
import random
import pickle
pygame.font.init() # init font
WIN_WIDTH = 500
WIN_HEIGHT = 800
GEN = 0
win = pygame.display.set_mode((WIN_WIDTH, WIN_HEIGHT))
BIRD_IMGS = [pygame.transform.scale2x(pygame.image.load(os.path.join("E:/PY/files/flappy_bird... | [
"noreply@github.com"
] | noreply@github.com |
ae336a597ede11303d18e76036cbc9ac291953b5 | 6c90112e7d21086ef06432bb417bdb339fed4c33 | /django-tally/api/models.py | 11af0648223a22b4581387c627995055a13352e3 | [
"MIT"
] | permissive | blakelobato/BetterBusinessByReview | 9767a04cf1b1a8a8e96cdea634a24887182834ff | 1f8f0a03dc24a661b112b60fed1946142d918294 | refs/heads/master | 2022-04-04T00:08:37.474620 | 2020-02-06T21:01:00 | 2020-02-06T21:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from django.db import models
from django.conf import settings
from django.core.validators import int_list_validator
from django.contrib.auth.models import User
# Create your models here.
class Url(models.Model):
id = models.IntegerField(primary_key=True, )
url = models.CharField(max_length=5000)
# created ... | [
"LilySu@users.noreply.github.com"
] | LilySu@users.noreply.github.com |
d16e973a859df614621c3e5e61024c381e586512 | db24b911ca1e0fe33ee27a104e036d7254cf5a66 | /torchnmt/executors/validator.py | 3c968678495e5dc2accefdc88c93e95c3a388ba8 | [] | no_license | jbdel/multimedic | d5bd2f3890cabe69560716757611902f356d5d39 | 28460be61dbdbdbd80b02ceac16441ca67599942 | refs/heads/main | 2023-03-14T14:09:07.342122 | 2021-03-10T11:50:38 | 2021-03-10T11:50:38 | 341,607,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | import os
import tqdm
import numpy as np
import torch
from .base import Executor
from torchnmt.scorers.scores import compute_scores
from torchnmt.networks.rnn.beam import evaluation as rnn_evaluation
from torchnmt.networks.huggingface.beam import evaluation as transformerhug_evaluation
from torchnmt.networks.vqa.bea... | [
"jeanbenoit.delbrouck@gmail.com"
] | jeanbenoit.delbrouck@gmail.com |
73b8253035b13946cdbafdad3f3ff53fae1a417a | a14dd601cde67f67d0ba38dfd1362f7c0109cef1 | /arrays/leetcode/grid/set-matrix-zeroes-73.py | 4b6d885e0787eeebbf94701b9d37fb1cd5bc4ce0 | [] | no_license | Meaha7/dsa | d5ea1615f05dae32671af1f1c112f0c759056473 | fa80219ff8a6f4429fcf104310f4169d007af712 | refs/heads/main | 2023-09-03T18:52:41.950294 | 2021-11-05T09:14:42 | 2021-11-05T09:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | grids = [
[[1, 1, 1], [1, 0, 1], [1, 1, 1]],
[[0, 1, 2, 0], [3, 4, 5, 2], [1, 3, 1, 5]],
[[1, 2, 3, 4], [5, 0, 7, 8], [0, 10, 11, 12], [13, 14, 15, 0]]
]
# T=mn,S=m+n
def main(grid):
m, n = len(grid), len(grid[0])
rows, cols = set(), set()
for i in range(m):
for j in range(n):
... | [
"nikhilgoyal104ah4@gmail.com"
] | nikhilgoyal104ah4@gmail.com |
8396c013dc029751bc9675ccf8409518068611f2 | 63eb364d4c9e0aef7b57c7aa3cf06d0308982f33 | /venv/Scripts/pip-script.py | 3fffadc24636273d925fd5a7ba113ccc1897b22f | [] | no_license | mash0807/AppiumPython | c95089d38603a94fca3724dabeddfed6dc24cfed | 1ac6ecb6b28721a5ba8818dab1b2186d06098f37 | refs/heads/master | 2021-05-19T00:37:28.003656 | 2020-03-31T04:11:58 | 2020-03-31T04:11:58 | 251,498,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!D:\AppiumPython\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__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])
sys.exit(
... | [
"masihui2013@163.com"
] | masihui2013@163.com |
5728c56ad2589961379fc5bf44dde89a8da0f905 | 33600be564a24994e929d600b372f7f619036103 | /pool/pool/settings.py | 728397ef7dfa7209d8404596f3aaa09f2bc92bfd | [] | no_license | AlimbekovE/hackfest | b386f78020808652956124a205963a3a65c64ab2 | a147a7c9ab27afffc46cc7a173812b508fbdbbdd | refs/heads/master | 2021-04-15T13:34:21.577393 | 2018-03-24T18:15:16 | 2018-03-24T18:15:16 | 126,627,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | """
Django settings for pool project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# B... | [
"erkinbek1997@gmail.com"
] | erkinbek1997@gmail.com |
d493951f15a13b2c7e58f13b6897fc943739bfe2 | 2e4aa514b8e6843011256e7fb2e004b42f552cd1 | /market/migrations/0002_auto_20200416_1611.py | bca5820983abb415d77f6e36804e851217970267 | [] | no_license | seungw0n/project_COMP307 | 211dcafdab220f67449149af629f46df0ee77378 | 8109d123cb97bedc54df2e1ba0eaa39d55cf38e8 | refs/heads/master | 2022-04-20T17:18:50.378846 | 2020-04-22T17:30:11 | 2020-04-22T17:30:11 | 253,855,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # Generated by Django 3.0.5 on 2020-04-16 16:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import market.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('mar... | [
"vic.massenet99@gmail.com"
] | vic.massenet99@gmail.com |
239f4a8b11fc2bda9b29eb6a67b0887922b33e8e | 6cb1b63846e818255945cdf1e8faf4f3e353c735 | /venv/datafountain/taocan/ml_models.py | ed7cf0cae6f0c7603916557230a8865a64c2658d | [] | no_license | LuckyHandsomeCat/deep_learning | 3eb2bec1133f8e547436a8625b40e8bfa8bc7572 | 8c37912069a06a58f80034fe1be7ba5fbc0865d4 | refs/heads/master | 2020-08-08T02:50:10.278517 | 2018-11-30T11:11:34 | 2018-11-30T11:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,793 | py | #!/usr/bin/env python3
# -*-coding:utf8 -*-
# @TIME :2018/10/15 上午11:28
# @Author :hwwu
# @File :ml_models.py
import pandas as pd
import numpy as np
path = '/Users/liyangyang/Downloads/datafountain/taocan/'
###service_type,is_mix_service,online_time,1_total_fee,2_total_fee,3_total_fee,4_total_fee,
# month... | [
"wuhongwei@videopls.com"
] | wuhongwei@videopls.com |
4f89fddc1994f8f11802784f278c35143f8c2b33 | 0e96b335079815d176e96cf6e903f899f3ade24f | /Ecommerce-site1/site1/site1/settings.py | 238ec779cf65615e8f9a2766436b0b94f18c6dce | [] | no_license | sudarshannkarki/sda-project | ad2c0a1bed410754b078a53936ff8c11f9f4b26a | b2b17296269028149131ce273d098f575d8cf260 | refs/heads/master | 2022-12-18T14:46:19.429488 | 2020-09-29T11:31:50 | 2020-09-29T11:31:50 | 293,024,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """
Django settings for site1 project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# B... | [
"sudarshannkarki@gmail.com"
] | sudarshannkarki@gmail.com |
cbc6d79ace032603f09724dedb78052bbba46e8d | 0bd8c70bb9ef58fb3d74bf1505f4c81614e5006a | /malice.py | 93fe3bbee55f11174e78be5e4f3bd079d9365b0b | [] | no_license | stevenrkeyes/shell-with-backdoor | 24944226c202ea3f4463f2fa597861e5192dca9e | 7d04d4a968171a8df044378fcd6eeb75ba2fdaa8 | refs/heads/master | 2021-01-22T09:27:31.728301 | 2015-05-08T05:07:12 | 2015-05-08T05:07:12 | 35,215,611 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | import errno
import os.path
import shlex
import subprocess
import sys
import urllib2
def read_file(filename):
with open(filename, 'r') as fd:
# if it's the shell code file itself, return the shell code minus the
# malicious line (the import)
if filename == "shell.py":
return fd.... | [
"srkeyes@mit.edu"
] | srkeyes@mit.edu |
bc668bc1262627c4914d58c1905b1b56f82fe32b | 1d0f1258cdaadd2514ecb53a8d479dcc488d22d7 | /v0712.py | 7e1fcdae0f3c2bfbeb1a146336601fcbd1bee141 | [] | no_license | yangwei07/pymc3_mcmc | 92905eec5cca3b8c7a0c1ac552edc203a2b2475d | 6bd6f47158ea3fc2844aac56d57a4fef20187885 | refs/heads/master | 2020-05-23T21:02:15.812903 | 2019-08-05T19:22:11 | 2019-08-05T19:22:11 | 186,943,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py | import numpy as np
# from scipy.interpolate import spline
from scipy.linalg import cho_solve
from numpy.linalg import cholesky
from itertools import cycle
import pandas as pd
import matplotlib.pyplot as plt
class SimpleGP():
""" One dimensional Gaussian Process class. Uses
squared exponential covariance form.... | [
"yangwei0705@gmail.com"
] | yangwei0705@gmail.com |
666073459ed0ddc9addc536eaef21ca68580cbb7 | 4bcbb6a73e00acb0c08d709f71d13a5e563076ca | /plot.py | 8e6fdbeaf0c0159445e2d0821cc27bf1505219c0 | [] | no_license | WellJoea/MLSurvival | 1ec89af7b11fdb294f59a7600dfc5f669e275068 | 55a5431bbcf61e2da262a7f612a83fb43276a0ab | refs/heads/master | 2020-08-02T03:48:26.816226 | 2019-09-27T03:06:37 | 2019-09-27T03:06:37 | 200,193,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,339 | py |
from sklearn.metrics import roc_curve, precision_recall_curve, auc, average_precision_score, accuracy_score
from sklearn.preprocessing import label_binarize
from sklearn.linear_model import Ridge, Lasso
from statsmodels.stats.outliers_influence import variance_inflation_factor
#import scikitplot as skplt
import ... | [
"zhou.wei@genecast.com.cn"
] | zhou.wei@genecast.com.cn |
cf23584d33bfce84f66ef72be8a26832c836ce80 | faaee65a7392744238690fec6bf6dc273e17f7a6 | /backupsw/backup.py | 30c876771ab15c0e3e346b35b447abb639b9882e | [] | no_license | qingyunha/anchnet | 84df043ddee6a464462d5ce53a8e425f86a35330 | b6365693e049cd5852af35c41738599ac5d0f88e | refs/heads/master | 2021-01-19T03:10:41.008609 | 2016-07-26T16:12:35 | 2016-07-26T16:12:35 | 48,851,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import os
from os import path
from datetime import date
from ssh import sshClient
BACKUP_FOLDER = "data"
def backup(host, user, passwd):
today = date.today()
client = sshClient(host, user, passwd)
config = client.run("DISPLAY_CONFIG")
if config:
d = path.join(BACKUP_FOLDER, host)
if ... | [
"root@ubuntu.anchnet"
] | root@ubuntu.anchnet |
7c421c57614eaf8a0166b2cb606e6186fb0a4dec | 0f14296a33878c609a7fa2f714146f3a3a3865b2 | /DroneFramework/test/testDataGPS.py | 15fee293428231d7c339837ed9bc814f9cf015dc | [] | no_license | eduardodisanti/drone_control | 8579b7fa2e7706625f5e889e443e4c986d26e591 | 47253c7cd62ccdb84c34e135697b3c6735934d16 | refs/heads/master | 2020-06-12T11:27:21.883690 | 2016-05-23T15:20:29 | 2016-05-23T15:20:29 | 194,284,926 | 1 | 0 | null | 2019-06-28T14:13:30 | 2019-06-28T14:13:30 | null | UTF-8 | Python | false | false | 1,331 | py | import unittest
from hal.sensorDataGPS import SensorDataGPS
from datetime import *
data = {'latitud': 543, 'longitud': 345, 'altitud': 656}
class SensorDataGPSTest(unittest.TestCase):
def setUp(self):
self.dataGPS = SensorDataGPS(data, datetime.today())
def test_getData_NoNone(self)... | [
"eduardo.disanti@gmail.com"
] | eduardo.disanti@gmail.com |
4977e964f6a721f8ea57369593d991f4cafa79f4 | 13259e2e7d17cc68b0e9b5fc8cb94e66e13bd666 | /catkin_ws/build/catkin_generated/order_packages.py | c28f4543128ca1aa414364df35a5521529847279 | [] | no_license | AnirudhSundar4597/AuE893Spring21_AnirudhSundar | f80310edc507d8d36e93deaf1706b905e786bb08 | a6af95e6e660db561221f692283b796a717d9c95 | refs/heads/master | 2023-04-01T20:12:50.095351 | 2021-04-07T23:06:04 | 2021-04-07T23:06:04 | 333,598,202 | 0 | 2 | null | 2021-02-07T21:38:10 | 2021-01-28T00:24:19 | Makefile | UTF-8 | Python | false | false | 424 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/anirudh/git_ws/AuE893Spring21_AnirudhSundar/catkin_ws/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/anirudh/AuE8930_Anirudh/d... | [
"sundar@clemson.edu"
] | sundar@clemson.edu |
deae7399994f02fc02cd2a1de41c3876a0a42f3d | d5005de630cbfcac46b6f90be845a827a029ff0d | /urlshortner/api/serializer.py | c040926e02219c805df9c6c192f55d7729c0b142 | [] | no_license | mahinm20/url-shortner | d4b18917a002aa12f4fdd1f6f3e2bf026b34f0ad | ea084f96136d5810b8ad6d53bf0acc1a8291b782 | refs/heads/master | 2023-08-11T07:35:04.804424 | 2021-09-14T09:37:27 | 2021-09-14T09:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.db.models import fields
from rest_framework.serializers import ModelSerializer
from .models import Link
class LinkSerializer(ModelSerializer):
class Meta:
model=Link
fields='__all__'
| [
"mahinmalhotra20@gmail.com"
] | mahinmalhotra20@gmail.com |
783d9eaf39f755988c056cbfc471d7f851e2376f | dbcf98b6e62363aae0c27873494b31a87fc66b72 | /search/__init__.py | 801b8e09a375dbd1a270d7670eba10025485a202 | [] | no_license | cfannybf/be_nomad | b5c999c2dff89892d27a058809e516bbf74b7598 | be997e22678f62e512f9a09f776d9ac475f3b610 | refs/heads/master | 2022-08-26T12:13:02.682020 | 2020-05-18T18:58:26 | 2020-05-18T18:58:26 | 190,804,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from search.stack_overflow import *
from search.search_base import *
from search.stack_overflow_parser import *
from search.remoteok_parser import *
from search.remoteok import *
from search.wework import *
from search.wework_parser import *
| [
"noreply@github.com"
] | noreply@github.com |
c6755d3c49392ed98bf5598dd336b05f2b3d11fc | 296f091643221e821fc54edf3abe107701ea5394 | /app/forms.py | 5f2badb5df4cf951dc15f385e5859ec61d7fa957 | [
"Apache-2.0"
] | permissive | koksalkapucuoglu/MicroBlogwFlask | 4335ffab64950286e1b902fc36b573c99103c5c8 | fe9904d4a350c1a3e808c65122f6f9d4b11380c1 | refs/heads/master | 2023-08-20T08:53:55.097219 | 2021-09-28T19:22:35 | 2021-09-28T19:22:35 | 325,088,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Length
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRe... | [
"koksalkapucuoglu@hotmail.com"
] | koksalkapucuoglu@hotmail.com |
3a2e7b9af3dd389ece469119d3a337902f903c4b | 9ac33eada39f98bc680ba7b483a2504cfbb8a5a9 | /MNIST_EXAMPLE.py | 2ea2b7ff73ad9339de29e6731e97200f5f085c2b | [] | no_license | ZhouNan1212/DeepLearning | 600e8e03085ec6f610a91942ea74d03f03b62bba | 5ad85fa9629e1cfc16ef6af6e2ce4c7d32882be6 | refs/heads/master | 2021-08-18T16:45:21.063850 | 2017-11-23T09:43:33 | 2017-11-23T09:43:33 | 111,786,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
#载入MNIST数据集
mnist = input_data.read_data_sets("./MNIST_data/", one_hot=True)
print "Training data size: ", mnist.train.num_examples
print "Training data size: ", mnist.validation.num_examples
print "Training dat... | [
"zhounan157@163.com"
] | zhounan157@163.com |
2b8c95450b6dafc15c3eb213a1f25e67cc7da7f2 | 59b4d74dbb9439274ec799f7c371dc0f606d6812 | /app/main.py | 81ff453a790eb816aa23c8462adf760780d732c6 | [] | no_license | gitzjm/ming-blog-backend | da33291e029c5af52a659ff86815d16df48051d1 | 32493e0d7aa78ff202b742c7c490882301806cbf | refs/heads/master | 2022-12-02T16:06:01.930097 | 2020-08-21T09:48:09 | 2020-08-21T09:48:09 | 288,148,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # coding=UTF-8
"""``main``
"""
import uvicorn
from core.conf import conf
if __name__ == "__main__":
uvicorn.run(
"app:app",
host=conf.server.host,
port=int(conf.server.port),
log_level="info",
debug=bool(conf.server.debug)
)
| [
"zhaojunming@ninstarscf.com"
] | zhaojunming@ninstarscf.com |
d00bbbb216b7a6dd68e5e30782867450683596a9 | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/fase2/team17/Traduccion/Interprete/SELECT/Select_simples.py | 470eb54c24056715c25c9bffd423dd943a3e791e | [
"MIT"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 5,528 | py | from Interprete.NodoAST import NodoArbol
from Interprete.Tabla_de_simbolos import Tabla_de_simbolos
from Interprete.Arbol import Arbol
from Interprete.Valor.Valor import Valor
from Interprete.Primitivos.TIPO import TIPO
from Interprete.SELECT.indexador_auxiliar import indexador_auxiliar
from Interprete.SELECT.indexador... | [
"jm7740779@gmail.com"
] | jm7740779@gmail.com |
9d3f9d143b195b5f1bef682c639bc5c98f28425c | 326bb8dad81acd1d90255967d76097f5fedd038d | /task6.py | efd9dbe87ca817674896d5099076f3161f995437 | [] | no_license | yuki-kasahara/nus966-readable-code | 50d7cd5add593b2ce7c20df4e45f36b31ed92488 | 713d626c1b6ef9d59a3829692f30aa3312c66149 | refs/heads/main | 2023-07-28T01:55:09.890592 | 2021-09-14T05:53:50 | 2021-09-14T05:53:50 | 406,227,655 | 0 | 1 | null | 2021-09-14T04:48:49 | 2021-09-14T04:48:48 | null | UTF-8 | Python | false | false | 380 | py | import sys
import pandas as pd
args = sys.argv
dictionary = pd.read_csv("dictionary.csv")
# 引数が無ければすべて出力, IDが指定されていれば指定IDの単語出力
if len(args) <= 1:
for id_, word in zip(dictionary['ID'],dictionary['単語']):
print(str(id_) + ':' + word)
else:
print(args[1] + ':' + str(dictionary['単語'][int(args[1])])) | [
"kassan182tec@gmail.com"
] | kassan182tec@gmail.com |
da133734e4a1cdb645608157f9a0e331a43bcc6d | 9ce4f67e2b592bf2573227c8e62734a07c7998c1 | /param.py | 4083ba2d7b6cbc3667729341bc7e3e39766a43d0 | [] | no_license | cobbxia/jjiepanmen | 1a0db5ae130e3a6f7ab722a2572e674d80599259 | a4ce035266155b927a310ab8426b520a5912a67f | refs/heads/master | 2020-06-12T07:25:04.507536 | 2016-12-12T02:46:25 | 2016-12-12T02:46:25 | 75,597,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,313 | py | '''
This file contains jenkins api
'''
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
sys.path.append("./pkg")
sys.path.append("./pkg/jenkinsapi")
sys.path.append("./pkg/pytz")
sys.path.append("./pkg/requests")
import jenkinsapi
from jenkinsapi.jenkins import Jenkins
import json
import x... | [
"mingchao.xiamc@alibaba-inc.com"
] | mingchao.xiamc@alibaba-inc.com |
0adba5da91a33419ea09749723d1a920e81a0c9b | 03041e8ea52da1ead0257eb5155864c8456d569c | /iosis.py | dd9f18d4d0504ab52288baa88111be36a0f1a4dc | [] | no_license | AbhijeetSasmal1512/DemoAssistant | ce70550dea74bc49b738efd4282b1f3e1944b90a | cc3f25abab767a2cd86b1cb1bacdecbd1e3d8a95 | refs/heads/master | 2020-12-03T01:06:55.863285 | 2020-01-01T02:57:36 | 2020-01-01T02:57:36 | 231,168,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | #!/usr/bin/python2.7
import speech
import text
import os
import sqlite3
import logging
conn = sqlite3.connect('/home/abhijeet/Documents/Assistant/command.db')
speech.speak("Hello, I am Enori. What can I do for you today?")
command = text.stt()
command = command.lower()
logging.basicConfig(filename='iosis.log',level=lo... | [
"abhijeetsasmal4@gmail.com"
] | abhijeetsasmal4@gmail.com |
ec7a336d36360b63b1ea14ba97b47d6294826dcb | ecb6959f545e3a56691efba917ddfdf3217fd14f | /src/sigint_catcher.py | 677472dfa9b2647251665c4746dcfc04a011e2f1 | [] | no_license | campusrover/gen5 | 1c15aa809e2ed3877e4e81aace3fb0cab73260df | c225f56c4e92bf5ad1d35018d67f25e2fdcfebd8 | refs/heads/master | 2022-11-01T07:53:43.658999 | 2020-06-15T21:36:22 | 2020-06-15T21:36:22 | 244,982,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | #!/usr/bin/env python
import rospy
import signal
import sys
from geometry_msgs.msg import Twist
'''stops the robot when the program is remotely interrupted'''
def signal_handler(sig, frame):
print('Stopping Turtlebot3...')
twist = Twist()
cmd_vel.publish(twist)
print('Exit program...')... | [
"danbing123@gmail.com"
] | danbing123@gmail.com |
d9b86a2d17b2af62a0ab7bc718273c678c98a0ad | eafe44014fb8e3f4539c729e5bcd8ecc2fe71743 | /ifg_front/dili_api/apps.py | 1238c08bb1b3c88c1b323e8716055992beb03410 | [] | no_license | smilebulee/infogen_ims | 83deede19bdf4daf7784280da085ecd36030efa7 | a9feb634657fba93f46f2b902004a6c14a37f4c3 | refs/heads/master | 2023-05-28T07:29:55.586051 | 2023-05-24T07:50:13 | 2023-05-24T07:50:13 | 245,916,505 | 2 | 7 | null | 2023-02-15T17:51:38 | 2020-03-09T01:17:04 | JavaScript | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class DiliApiConfig(AppConfig):
name = 'dili_api'
| [
"bulee@infogen.co.kr"
] | bulee@infogen.co.kr |
5797a16c125952321a989b028c6032123109f0c2 | 3ed5562cca39fb76c3fe67d4c2c3952851c2d11b | /logic/obfuscatefile/obfuscatepythonbnf.py | e5d70c616c98b7abd042bc66541659791f36dea9 | [
"MIT"
] | permissive | blacknoize404/pymixup | f754aa6f8c9e50d2560f6e54a4a3810d35ac9c90 | 9004fbdc7939033014b0eefa669056014647a0c8 | refs/heads/master | 2021-12-09T19:26:49.517470 | 2016-06-09T19:01:04 | 2016-06-09T19:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,988 | py | from peewee import DoesNotExist
from pyparsing import Literal, Optional, ZeroOrMore
from logic.obfuscatefile import ObfuscateBNF
from logic.reserved import add_reserveds, get_reserved_by_name
from logic.utilities import obfuscate_path
class ObfuscatePythonBNF(ObfuscateBNF):
def __init__(self, get_obfuscated):
... | [
"rdevost@vinntech.com"
] | rdevost@vinntech.com |
a43a94fe49f1a181172f2b8eeeea80d2cf798ac7 | 2d159be77b57885577ded673a45864f09fc2a325 | /gio_spa/gio_spa/asgi.py | 844d6ed81ac4ac40b3201ee58a2e8fb3c1250554 | [] | no_license | mimrot47/Rest_Api_project | 9c6f7a0f4d03dd5ca39f75430f0f6185048b775b | 1676a15f889c13b45f05762efa6516080da54d7e | refs/heads/main | 2023-05-15T08:55:02.004292 | 2021-06-05T06:14:06 | 2021-06-05T06:14:06 | 374,035,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for gio_spa project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"mimrot47@gmail.com"
] | mimrot47@gmail.com |
8fd146079d1a9f6917223a64b72335f79a3d52f5 | fbec714e4080ba960a4579db9b968d6b7fbd271c | /test.py | d7b4dca8b5db5b9d3dfe5966c20691358f8469a9 | [] | no_license | Harshul-24/seq2seq-attention-ocr-pytorch | ad0f4430473ec449eda8dc383163a3de35c681c6 | 438c7d1ea43cd7ce1976313d6b6df14f8e2d7dd9 | refs/heads/master | 2023-06-30T18:33:11.069771 | 2021-07-24T16:40:03 | 2021-07-24T16:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | import torch
from PIL import Image
from pytorch_lightning import Trainer
from src.aocr import OCR, OCRDataModule
from src.utils import dataset, utils
def test(
test_path,
is_dataset = False,
output_pred_path='output.txt',
checkpoint_path='models/aocr.pth'
):
ocr = OCR()
ocr.l... | [
"sumanmichael01@gmail.com"
] | sumanmichael01@gmail.com |
f960540c3fb3be6af7a98ec90b85f320fe56808f | 2a40c887a0d51dcd3338aa82e4d93819fb11a8bb | /bot.py | b01fe153d0e371bed8a781b65261764dc0d4fb3a | [] | no_license | RIHARDA/Roblox | 17bdbba49e73b6ff022f3f62e7b557c31f5012d0 | f426d9f65edc782c7d330af157bcac536ad84590 | refs/heads/master | 2020-03-31T05:09:45.752282 | 2018-10-07T11:50:47 | 2018-10-07T11:50:47 | 151,935,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,588 | py | import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
import time
import random
from discord import Game
Client = discord.client
client = commands.Bot(command_prefix = '$')
Clientdiscord = discord.Client()
@client.event
async def on_member_join(member):
print('Recog... | [
"noreply@github.com"
] | noreply@github.com |
8202af22fadd2dfe1949f94d3867d8fe381f2584 | 5e22770baeaea428fe49f0ae5fb504bc99194593 | /autofz/fuzzer_driver/angora.py | 6b6e7ae3f9140fa9dc0785bafdf15ad6f2a09166 | [
"MIT"
] | permissive | sslab-gatech/autofz | 0b1c0c68849301efc5f51c97e50a5686416b692b | b9a795dda252aa37406d593434b710b0fbedd177 | refs/heads/main | 2023-08-01T08:24:07.236758 | 2023-04-25T22:12:49 | 2023-04-25T22:12:49 | 605,261,111 | 45 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | import os
import pathlib
import sys
import time
import peewee
# from .. import config as Config
from autofz import config as Config
from . import afl
from .controller import Controller
from .db import AngoraModel, ControllerModel, db_proxy
from .fuzzer import FuzzerDriverException, PSFuzzer
CONFIG = Config.CONFIG
FU... | [
"yufu@gatech.edu"
] | yufu@gatech.edu |
cf3e02a47a50e7f8e35623384b86ddcc999afb4e | 862d67a22cfe79eca0453331ceba86c251fabcf2 | /project_env/lib/python3.6/site-packages/websockets/handshake.py | fedc6c502388cf431fbd148f85c3cb0ad10a1f94 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | tejon-melero/minimal-python-web3-read-blockchain-example | acc66edbfeba6594ba77bd770e7da705c7b0f5f4 | f6983e4b87323670aded2498337012a18c03522e | refs/heads/master | 2022-12-16T20:50:19.383597 | 2018-10-19T12:23:05 | 2018-10-19T12:23:05 | 150,777,051 | 3 | 3 | null | 2022-11-03T07:39:04 | 2018-09-28T18:01:41 | Python | UTF-8 | Python | false | false | 5,218 | py | """
The :mod:`websockets.handshake` module deals with the WebSocket opening
handshake according to `section 4 of RFC 6455`_.
.. _section 4 of RFC 6455: http://tools.ietf.org/html/rfc6455#section-4
It provides functions to implement the handshake with any existing HTTP
library. You must pass to these functions:
- A `... | [
"matthias.karacsonyi@gmail.com"
] | matthias.karacsonyi@gmail.com |
5fc343ec90562a8219c711b173ff55a920e06348 | 7dd0264f3aced4bb7b798fe19862ab545bdd8e38 | /account/models.py | 39e63eae1112ecf6204d157496ec188a4a2205e2 | [] | no_license | NSLIGHT/fullthrottledjangoapp | 593e60404644499fa284d248adee459b9e5cbf70 | a1d57a49e9ce596e6b1552998d4753c953243a7d | refs/heads/master | 2022-12-23T06:43:55.331335 | 2020-09-22T05:59:13 | 2020-09-22T05:59:13 | 297,293,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | from django.db import models
from django.db import models
from django.contrib.auth.models import User
from django.utils.timezone import now
import datetime
from django.contrib.postgres.fields import ArrayField
class member(models.Model):
id = models.CharField(verbose_name = "id",max_length=100,primary_key=True,un... | [
"newtonkaleja@gmail.com"
] | newtonkaleja@gmail.com |
82a29e952d943526f88af2dd50b7eda0da44f165 | a38aa3779c16f31d02a2df031fd4ce072facaeb9 | /project/utils.py | 7ae54df72e5e3e66e59363eb3dbee5eab2359549 | [
"MIT"
] | permissive | nikifkon-old/csa-almaty-bot | a0a39673dfa39eb5f6ac6dd58eea08008d52c350 | f18d087c86b3b90171dec080e780e330d62e711a | refs/heads/master | 2022-11-30T07:16:45.839562 | 2020-08-19T09:48:39 | 2020-08-19T09:48:39 | 288,692,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | QUESTION_CHAR = "❓"
EXCLAMATION_CHAR = "❗️"
SEARCH_CHAR = "🔎"
BACK_CHAR = "🔙"
MENU_CHAR = "☰"
BACK_TO_MENU_TEXT = "{prefix} Вернуться к списку категорий".format(prefix=MENU_CHAR)
BACK_TO_SEARCH_RESULT = "{prefix} Вернуться к результатам поиска".format(prefix=BACK_CHAR)
OPEN_SEARCH = "{prefix} Найти вопрос".format(p... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
5b2cfdc8e73ea9308c9325c317d819077673550c | ad9d7c6103338da7f0786713fcc6e3797a5086ee | /user/models.py | 4e753e578aa6c6a16edbf081664c864167aa72c3 | [] | no_license | Azazel5/CareerAlly | 2a9ca43faef875054a762b663ab371ca959dd05f | 2dbd137593243816fa70ecd571351ff2d5675f7d | refs/heads/master | 2021-05-18T04:18:14.347406 | 2020-04-20T16:13:55 | 2020-04-20T16:13:55 | 251,102,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from django.db import models
from django.contrib.auth.models import User
from internship.models import InternshipModel
class UserInternshipProfile(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
internships_applied = models.ForeignKey(InternshipModel, on_delete=models.CASCADE, blank=T... | [
"subhanga2013@gmail.com"
] | subhanga2013@gmail.com |
ee84a86fbfe3005a8273fc6ab0187d6b08601a5f | 4fa8af452baec12a47f3148b654cf2c51efee869 | /lab3/main.py | c989e48b717bf3bee0f3ef9322c1041cefbd2fed | [] | no_license | VitalyVV/inno_datamining_spring | 168b4e591c45c5821782c8bc37f16469e126860b | ddd9d935b72125fbac632d209e8cf000fdd2c6bf | refs/heads/master | 2020-04-21T02:29:54.081084 | 2019-02-28T10:44:44 | 2019-02-28T10:44:44 | 169,256,450 | 0 | 0 | null | 2019-02-28T10:45:58 | 2019-02-05T14:44:41 | Jupyter Notebook | UTF-8 | Python | false | false | 81 | py | from .noisy_mnist import dataset
import numpy as np
noisy, clean = dataset()
| [
"v.volobuev@innopolis.ru"
] | v.volobuev@innopolis.ru |
41e48a86030f730e374988d7f00909bc2d3b0cc9 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/age_sex_20190618092905.py | f95b9e064c825ab7d3d8a555a7f973fcb638f23b | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_str = re.findall(r'(^.+?... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
57664c1e088570fae17e7586a13f77cbd55ccdca | 707409bcdc1dcc7c729696e8d0684c4bd05786c8 | /Sources/Gotcha/MouseControl.py | 49411175c8a5f10796d45b0d432e2d4e055c7d1c | [
"MIT"
] | permissive | KHUNerds/Gotcha | f1f58f1f42d4f2bf40516e6efbc231cb07917db9 | b0160da96d54cd48e5f9072d1acc4d491af0c577 | refs/heads/main | 2023-06-12T08:49:45.764110 | 2021-07-09T18:38:08 | 2021-07-09T18:38:08 | 384,382,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import pyautogui
def MousePosition() -> None:
return pyautogui.position()
def MouseMove(x : int, y : int, t : int = 0) -> None:
print("moved mouse", x, y, "while", t, "seconds")
pyautogui.moveTo(x, y, t)
def MouseClickLeft(count : int = 1) -> None:
print("clicked mouse", count)
pyautogui.click(cl... | [
"ssw03270@khu.ac.kr"
] | ssw03270@khu.ac.kr |
ea3aaa6e8b48540aa2d29098078de3207772a425 | 793ae2359153ad760fd9d096a477e239eaf1c517 | /KNearestNeighbors/kd_tree_knn.py | f415ccba11bbe16d85172dd90d1758cec4225ac6 | [] | no_license | kitkitkit745/MLTemplate | 6323640f11c48db0e369af355fceeef924cb96e0 | 129fa3b80167368523c87fe7ae93993e5c6ea8e0 | refs/heads/master | 2023-06-01T02:42:44.698095 | 2021-06-19T11:38:07 | 2021-06-19T11:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import numpy as np
from sklearn.neighbors import KDTree
class KDTreeKNN:
def __init__(self, k):
'''K Nearest Neighbors Classifier
This algorithm implement K neighbors with KDTree.
Args:
k: number of neighbors used in prediction stage
'''
self.k = k
def fit... | [
"1370454515@qq.com"
] | 1370454515@qq.com |
40d8671c94da3a301dcd8dd73470c1af8be6c4dc | 4f2cdd9a34fce873ff5995436edf403b38fb2ea5 | /Data-Structures/List/Part2/P003.py | b6642ac9b5001105f692e511ac814eb924a9b9b2 | [] | no_license | sanjeevseera/Python-Practice | 001068e9cd144c52f403a026e26e9942b56848b0 | 5ad502c0117582d5e3abd434a169d23c22ef8419 | refs/heads/master | 2021-12-11T17:24:21.136652 | 2021-08-17T10:25:01 | 2021-08-17T10:25:01 | 153,397,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
Write a Python program to generate all permutations of a list in Python.
"""
import itertools
print(list(itertools.permutations([1,2,3]))) | [
"seerasanjeev@gmail.com"
] | seerasanjeev@gmail.com |
f1d4e78aa1876b8fbdb6f861d9de041b37b3fe01 | 53c1f83d6582e9fe36ba655470fbe5d7f96f459f | /Fis_Api/Fis_Ewire_Api/statics/staticfunctions.py | b59534a86976d0c07931ed97764512ae1b2b4911 | [] | no_license | aaronpaz123/pomona-R-D | 66303fabc456ea32a07fcaf058dbdc7dd36d69a0 | e2e4430b0eadec682b31a1b5ca1832ea7bad23ea | refs/heads/main | 2023-08-28T07:43:31.561616 | 2021-10-26T11:31:51 | 2021-10-26T11:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | import requests
import json
class CommonUtil:
# Error handled post requests
def postrequestManager(URL,headers,fwReqJson):
print("code is postrequestManager")
try:
print("postrequestManager PAYLOAD ==>"+ str(fwReqJson))
print("postrequestManager ... | [
"84303172+chikkuthomas@users.noreply.github.com"
] | 84303172+chikkuthomas@users.noreply.github.com |
f1ef583aadd10cc24f2f4dbfad194f7a457bf95b | 977c5a562d3973965bfb0b4adf3cef35f9b9e135 | /Monitor.py | fa41f2206073984a580f635d296ef1287193d7e3 | [] | no_license | Adam0429/docker-try | 8939d103d1c6b6374847f57615fb67641d3d9add | 3ff80de8f57c482389babd1a3b1c4eedc07467db | refs/heads/master | 2021-04-18T22:09:56.813775 | 2018-06-11T02:51:21 | 2018-06-11T02:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from kazoo.client import KazooClient
import time
import logging
logging.basicConfig()
zk = KazooClient(hosts='127.0.0.1:2181')
zk.start()
@zk.DataWatch('/path/to/watch')
def my_func(data, stat):
if data:
print("Data is %s" % data)
print
"Version is %s" % stat.version
... | [
"872490934@qq.com"
] | 872490934@qq.com |
ff75406149e15011294ccb8e1cb60f0fc1fe9c12 | 7cd809a9410dc61238803aad6a73ed80bc15eeec | /Python/findboard.py | f7b5ffbb2def2674ff1e8db6b249e1130797cac0 | [
"MIT"
] | permissive | Oskrabble/ScrabbleOCR | ddbcb2d5b2f5641f6ee7a4ccb8e156f10b54dbb4 | 4470eca7dc476914ffaed71a6688c411fb958bdc | refs/heads/master | 2023-03-12T09:20:59.175752 | 2021-03-02T13:10:51 | 2021-03-02T13:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,997 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 26 15:20:14 2015
@author: elad
"""
from scipy.misc import imread
import numpy as np
import matplotlib.pyplot as plt
import cv2
from PIL import Image
import pytesseract
def four_point_transform(image, pts, dst=None):
# obtain a consistent order of the points and unpac... | [
"eladjoseph@hotmail.com"
] | eladjoseph@hotmail.com |
45242f33898eb7f9f32d81e88104ff79dccc109a | f9fe13fe62ba3fb1fb096da4268d5dc43e435ea4 | /44)in_range_or_not.py | 7b43b95dede8dbe7f422e93fd0c9f353fc060d58 | [] | no_license | MANNEMPRATAPVARUN/guvipy | 7e460da8b9d98c2fcd488757585d5bd207570666 | 4da4fe4f3d4855e14383015da19588ef0aea4f32 | refs/heads/master | 2020-06-10T01:22:26.063815 | 2019-06-12T13:44:44 | 2019-06-12T13:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | num2=int(input())
if num2 in range(1,10):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | noreply@github.com |
508db52a1ce4ee8d59763669cf083035e3b0ebe6 | ee6e6b1d4d00aa4d45ea430488d984e976585f61 | /app.py | 86d738dcfe62ddeea6b58c738b545eaf3bbfc9a7 | [] | no_license | MINHAS3/Mission-to-Mars | b726766f4d851d1faa20f20b2a7b052eab09476d | 3b2001006d1cd923cafebfeeae3ff1a4ed32f72c | refs/heads/master | 2023-01-11T00:45:13.281690 | 2020-11-05T18:54:31 | 2020-11-05T18:54:31 | 286,098,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from flask import Flask, render_template
from flask_pymongo import PyMongo
import scraping
app = Flask(__name__)
# Use flask_pymongo to set up mongo connection
app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app"
mongo = PyMongo(app)
@app.route("/")
def index():
mars = mongo.db.mars.find_one... | [
"noreply@github.com"
] | noreply@github.com |
05a556ef861672edfb343d7c6bee8f42af414fb8 | 0959d88eb8e1ab579dec7eb4bfc1fbaac945ea0b | /Training/HackRank/Day/d1.py | 594bf8c900683d4262274389d4fb02313fc23838 | [] | no_license | mike03052000/python | ba1b871acf853710fd840284f260d82ea8e597cf | 19045d56ae1caa305f51f1cad6c71d97b82ca47d | refs/heads/master | 2020-04-04T12:21:55.284225 | 2019-06-20T05:35:25 | 2019-06-20T05:35:25 | 155,923,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | i=4
d=4.0
s = 'Hacker Rank'
# Declare second integer, double, and String variables.
i2=0
d2=0.0
s2=''
# Read and save an integer, double, and String to your variables.
i2=int(input().strip())
d2=float(input().strip())
s2=input().strip()
# Print the sum of both integer variables on a new line.
print(i+i2)
# Print the s... | [
"saka16888@gmail.com"
] | saka16888@gmail.com |
5d6e694a8990fb46429ed901d0093ca8ac480f52 | e63dbac6d1dbe1cb8a68ac911c562d9fa9192a59 | /odvm/renderer.py | 37f8f76a5fe9b80244424dbac68738b8b16aec6d | [
"MIT"
] | permissive | hi9hlander/odvm | e5ae9fab9c3f45b2f9eb6a253db4c66fd0efa19b | 90df59ac584690a70658477ccf109c143c250d9d | refs/heads/master | 2022-01-21T02:37:58.704535 | 2017-09-25T18:59:19 | 2017-09-25T18:59:19 | 99,145,092 | 3 | 3 | MIT | 2022-01-17T00:24:26 | 2017-08-02T17:44:19 | Python | UTF-8 | Python | false | false | 6,491 | py | from panda3d.core import *
from direct.showbase.ShowBase import ShowBase
from math import tan, radians
def glsl_check_for_use(glsl,feature): return ''.join(feature.split()) in ''.join(glsl.split())
class viewport:
def __init__(self,idx=0):
self.index = idx
win_props = Window... | [
"noreply@github.com"
] | noreply@github.com |
e1202a8d6e06e1351e97305d751f7097572ef0b8 | 4a3b8c00d9d52bfb4743a525c230a7bae4766692 | /config/urls.py | c5c49726327c30a2c3dfb0b526c14f2146ee1ee8 | [
"MIT"
] | permissive | wapyce/wapyce | 36934f9ae234719cc0193e70f3638f77d0efd9e2 | abd8c85f40387aefa2a2e37ca44296ef086016a6 | refs/heads/master | 2020-03-31T03:26:47.928090 | 2018-10-29T16:26:18 | 2018-10-29T16:26:18 | 151,865,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | """
Wapyce 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-base... | [
"carlsonsantana@gmail.com"
] | carlsonsantana@gmail.com |
093d9bd346d066a2828b59e9e5e6f7131c0e5c4c | 0cac9ab396358ce89271b651bbde6d7cbd219c21 | /discovery/discovery/wsgi.py | 69ac16c1bff20abbe4b39927189333d9441f3d91 | [] | no_license | tanmaygatle/IOT-Air-Quality-Monitoring-System | 956fce07afdf359b470aa82bf825b6f30ad8611a | d73254bd251e5c9550fb176017deeead4d749bea | refs/heads/master | 2022-10-19T17:23:59.001038 | 2020-06-11T15:24:20 | 2020-06-11T15:24:20 | 266,624,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for discovery 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"tanmaygatle@gmail.com"
] | tanmaygatle@gmail.com |
46d07f77a3ed269d5cdade5ddc93f5aa2ed1312c | fe354018a25861cae72d992bcd75c5e60a21372a | /re10/diary/models.py | 5a26e16e393e2700064de6a50f205dbdc7850115 | [] | no_license | mhoshino38/pola | b218dba0621b364ca8e5a5600887f592bfb02af9 | 0bb220e3cf66a2f21cfe845780c5d5f985808d23 | refs/heads/master | 2020-06-30T13:43:53.221844 | 2019-08-06T12:18:47 | 2019-08-06T12:18:47 | 200,844,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django.db import models
from django.utils import timezone
class Day(models.Model):
title = models.CharField('Title', max_length=15)
text = models.TextField('Text', max_length=200)
date = models.DateTimeField('Date', default=timezone.now)
def __str__(self):
return self.title
| [
"noreply@github.com"
] | noreply@github.com |
b5c7e8a6d3939116d4a259600d6f18348004859d | bf53931505601b3e11edc80fd436a51f8ecdbbe2 | /checkers/Binder/checker_remote/checker/message_packers/simple_1/gen.py | b2a25907e3e087d7dc4b95e5bc3091616691ce59 | [
"MIT"
] | permissive | HITB-CyberWeek/proctf-2019 | 576ca55d4f8974767efb31e070af7147c29ee72d | 2d9acd1b255e8057db87928e51e0f94584fe55be | refs/heads/master | 2020-09-01T15:37:21.446225 | 2019-10-18T10:05:03 | 2019-10-18T10:05:03 | 218,994,529 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py |
import os,string,random
import subprocess as sp
from . import remote_runner
class Generator:
def __init__(self):
self.runner = remote_runner.RemoteVerifier("10.60.31.102",3011,"test","sfdkjfds45a")
def Generate(self,password,message,out_path,debug=False):
kk = 0
for p in password:
... | [
"awengar@gmail.com"
] | awengar@gmail.com |
7b375c81b77e9b35c1623c3699790ed98d0b9a61 | 5c90b31943aff36cab344574b16575025e649b7e | /examples/tour_examples/xkcd_tour.py | 73632b0471a64d556c17914eda6f7e0bd123423f | [
"MIT"
] | permissive | 766/SeleniumBase | 7e23adb3d40cf3d9912e2ff0f4dd56c2fafdb29b | b81e7b93e16a9abee6d2386f55c97843aa90a7d9 | refs/heads/master | 2020-08-22T08:54:47.269550 | 2019-12-06T13:44:17 | 2019-12-06T13:44:17 | 216,360,246 | 1 | 0 | MIT | 2019-12-06T13:44:18 | 2019-10-20T12:43:47 | null | UTF-8 | Python | false | false | 1,051 | py | from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basic(self):
self.open('https://xkcd.com/1117/')
self.assert_element('img[alt="My Sky"]')
self.create_shepherd_tour()
self.add_tour_step("Welcome to XKCD!")
self.add_tour_step("This is the XKCD logo.",... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
e82882454e7c7b079412b3a407adef7c35b5b239 | 501b6a773f82a44dba7e2393108c839e33b355a6 | /09_strings-and-text/09_05_new_friends_1.py | 9f584b942188cfc7da1a3894e2ec5626472c2738 | [] | no_license | Bat-Turtle/python-101 | fda2c79e3a270924f37494b25377b5645098a5c7 | 8f4582a5a9b398d2163c27aa8fe433efd8ff69fa | refs/heads/main | 2023-08-19T16:37:46.732125 | 2021-10-26T16:46:46 | 2021-10-26T16:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | # Write code that produces a SyntaxError when you run this script.
| [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
2c50b80a79ede26179b05b15661a360e8989d621 | 31a76dee722a0ac480c66a140ad6174317673590 | /utils.py | 3f37a2ea92fac7bb70abd60a091b6901fa7ebcab | [
"BSD-3-Clause"
] | permissive | 84KaliPleXon3/pacu | 0daa9478efa06d66efba55f1423ece17600e4585 | c7a593508bce3a23a9e8bfb074b3a9e3273b0847 | refs/heads/master | 2023-05-07T02:13:16.002285 | 2020-07-23T22:28:13 | 2020-07-23T22:28:13 | 282,970,681 | 1 | 1 | BSD-3-Clause | 2021-06-02T02:39:41 | 2020-07-27T17:38:19 | Python | UTF-8 | Python | false | false | 2,416 | py | import signal
import sys
import datetime
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from core.base import DATABASE_CONNECTION_PATH
def get_database_connection(database_connection_path=DATABASE_CONNECTION_PATH):
""" Unlike ... | [
"spencer.gietzen@rhinosecuritylabs.com"
] | spencer.gietzen@rhinosecuritylabs.com |
a5ee8b7271e9e0da6bd88f441dcf2a89f1596281 | aa3ce8a382f558da491a9b2805207e48a6799c7e | /augmentations.py | 65e0761e0cb83d303867247c74dbcf3fbd11d6cd | [] | no_license | shao15xiang/human_protein_atlas | 6c203ef7edc9c92b5934004f4a920ca0f04248a1 | 40d0211098ae75c7959e26e31ccc97531751cde2 | refs/heads/master | 2020-04-10T22:44:30.746683 | 2018-12-10T07:33:09 | 2018-12-10T07:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | from albumentations import (
HorizontalFlip, IAAPerspective, ShiftScaleRotate, CLAHE, RandomRotate90,
Transpose, ShiftScaleRotate, Blur, OpticalDistortion, GridDistortion, HueSaturationValue,
IAAAdditiveGaussianNoise, GaussNoise, MotionBlur, MedianBlur, IAAPiecewiseAffine,
IAASharpen, IAAEmboss, RandomC... | [
"igor.soldatov@gmail.com"
] | igor.soldatov@gmail.com |
5f3ee79f89fafb19dad9451f6cffe1c65b2d3829 | c947f34d61fe1e9a13d2278a96d44055b775cafa | /Practica3/max_crossing_subarray.py | ba92fc9f7766d2e63efdc4fd4e43ef97eaa5adef | [] | no_license | Gushley110/Analisis_de_Algoritmos | 7524bc35627def747e6cfd6bb6c85262e0d85304 | 8d00f76febf64ee66ff000243a240208620241c5 | refs/heads/master | 2020-03-17T08:21:29.465639 | 2018-05-15T00:16:49 | 2018-05-15T00:16:49 | 133,435,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | def max_crossing_subarray(array,low,mid,high):
left = -10000
right = -10000
sum = 0
for i in range(mid,low-1,-1):
sum += array[i]
print("Left:",array[i])
if (sum > left):
left = sum
max_left = i
sum = 0
for j in range(mid+1,high):
sum += array[j]
print("Right:",array[j])
if (sum > right):
... | [
"gusley_dominator@hotmail.com"
] | gusley_dominator@hotmail.com |
840818ed1d4ca9614ddc8d07d9a5a898c8711762 | 8cd57eb880c6e774a79465023a7ca4590163b3bd | /db.py | ab84376bd4cff6f8c213438669dd070749536fe4 | [] | no_license | 0xanp/Blackjack | 57c389ac9224d7e6e54ae0f36cca5c742ce404da | eb6c27c2e9a8cac95c7d9e7e217c68f0184c35e9 | refs/heads/master | 2022-06-05T03:33:27.183525 | 2020-01-01T02:13:30 | 2020-01-01T02:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | FILENAME = "money.txt"
def write_money(money):
with open(FILENAME, "w") as file:
file.write(str(money))
def read_money():
try:
with open(FILENAME, "r") as file:
line = file.readline()
money = float(line)
return money
except FileNotFoundError:
return None... | [
"anbinhpham110799@gmail.com"
] | anbinhpham110799@gmail.com |
406388d49c81933799d471eb501b9b1c2cc3f50f | 2dca600f76ecd234ab5a87aa23f4f924b48a9759 | /hello_cozmo.py | 438d9cc3ee4b2ca9773490e170b030311dbc6647 | [] | no_license | LCasta17/HelloCozmo | ac4edfca243b5f5e27a3b2428e2eaf996a3f99b4 | ada4be4b021ebe35e231fa4ae09d77935f773ae9 | refs/heads/master | 2021-05-02T12:50:25.565848 | 2018-11-27T22:42:01 | 2018-11-27T22:51:40 | 120,747,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python3
'''Merry Christmas
Make Cozmo say 'Merry Christmas' to Axel & Eléa.
'''
import cozmo
def cozmo_program(robot: cozmo.robot.Robot):
robot.say_text("Hello Axel and Eléa. I wish you a Merry Christmas!").wait_for_completed()
cozmo.run_program(cozmo_program)
| [
"lcastanie@dhcp-100-97-61-128.svl.corp.google.com"
] | lcastanie@dhcp-100-97-61-128.svl.corp.google.com |
dc3a3df04d9eba2f8895e74b91128c8c0b6b8a41 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/scattergeo/marker/colorbar/_title.py | e584a0b07ef22e6fd0a89b476a1df8aef97c2e3d | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 1,264 | py | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(
self,
plotly_name='title',
parent_name='scattergeo.marker.colorbar',
**kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_na... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
ffcbace8393906b7652d282087d796a02f36841c | b5bc2246081c4878f2c59ea9e517d63c9543ae02 | /twistedUtils.py | af3066b9268d533ee0de49f12304fdea743cf635 | [] | no_license | TheDeusGroup/generic-twisted-handler | e93496531c0fb3e654ae01a3d1d9669a469342e6 | 5fa6a9360614c9790b8cff481cafe104925e0820 | refs/heads/master | 2021-02-06T21:03:04.079694 | 2020-02-29T08:58:43 | 2020-02-29T08:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | #########################
# utils func for Twisted Client and Server handlers
#########################
from const import BASE_MESSAGE, EnvMapping
import json
import copy
def buildMessage( event, kwargs = None ):
''' Builds a JSON message between Clients and Servers
Inputs:
event: str: type of event ... | [
"twvoegt92@gmail.com"
] | twvoegt92@gmail.com |
52487d8cf7c2315f041b691dcaaa4e0b2f68cfbb | 486244b49422ebea1a3b51d4fe9a6e59939cc86c | /MyAsyncHttp/coroutine_version/async_io_utils/http_request.py | 54cd25d109231380feeaf6a07033c105252a9181 | [] | no_license | heiwushi/MyAsyncHttp | 7d032b62174dbb146e3a48c39a42eae17a59ba46 | 19d157399e0b2cc5396e226797a4cd97bae9488e | refs/heads/wangchen | 2022-12-02T05:24:57.387304 | 2020-08-09T01:41:43 | 2020-08-09T01:41:43 | 275,340,901 | 1 | 0 | null | 2020-07-25T10:11:22 | 2020-06-27T09:37:16 | Python | UTF-8 | Python | false | false | 4,667 | py | from MyAsyncHttp.coroutine_version.loop import get_event_loop
import socket
from MyAsyncHttp.coroutine_version.fd_manger import FdManger
from MyAsyncHttp.coroutine_version.http_utils import parse_http_response_header
import select
from MyAsyncHttp.coroutine_version.future import Future
from collections import defaultdi... | [
"447648965@qq.com"
] | 447648965@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.