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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2514f32e71a028a6e1421e5456b756a92898f22 | ccfc0566cd646cbe1837affef08baec8cd245d3b | /src/robot/model/control.py | bafd41a03b8be08ca4906403ab2cae40e68f9a71 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | bmalhi/robotframework | 9f395d3197cdd7925b8def3aeb50b14fc31e83e2 | eaadffabc98b587c108cc904e0e54ce368020dd7 | refs/heads/master | 2023-03-01T14:30:23.110935 | 2021-02-05T16:01:30 | 2021-02-05T16:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | [
"peke@iki.fi"
] | peke@iki.fi |
27ccd8b04a33985f148559a4f0bac6880457f3b4 | 3a529a8ce5152cf767d5128c1d6fadef466a6568 | /supvisors/tests/test_rpcrequests.py | f88761b53b41e0182bf8c215c5ec28708619d4bf | [
"Apache-2.0"
] | permissive | whantt/supvisors | 45cf430d14f8fee0385a5f7943142f3b380b6dc1 | fd2b775a986ab3eebd215a35e39260f2efcf8a5c | refs/heads/master | 2020-03-26T22:55:18.636061 | 2017-08-11T09:22:25 | 2017-08-11T09:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
# ======================================================================
# Copyright 2016 Julien LE CLEACH
#
# 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 Lice... | [
"julien.6387.dev@gmail.com"
] | julien.6387.dev@gmail.com |
9476d039397b65a5ba497de0ae04ede5d125ac1b | 81c9e289f12fcc3b7eaf7f1aaaedec8961f0805d | /CodeCombat/Backwoods Forest/Python/arrowproofwolf.py | 8fef89b732e28e3f94f7aee58c18418171680c71 | [] | no_license | Narishm/Portfolio | 16574906d35880cb064251d8140e83b719fcc9e5 | c147d6c2f871d1badea808dd9c022650f027a828 | refs/heads/master | 2020-06-04T01:28:07.316324 | 2019-06-21T14:48:27 | 2019-06-21T14:48:27 | 191,808,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # Collect mushrooms.
# First, come to the wolf pet and wake up it (say).
hero.moveXY(12, 34)
hero.say("Wake up Wolf!")
# Next collect mushrooms just usual items.
while True:
item = hero.findNearestItem()
if item and item.type == "mushroom":
hero.moveXY(item.pos.x, item.pos.y)
| [
"narishm@gmail.com"
] | narishm@gmail.com |
c090416439854dbe34aafc88e9f5df75c5918d13 | 6d9de3f9db85421e85b78264b663f15318e98109 | /lightertheme/__init__.py | e1b654a67c89709fed517542420855cd7e8189fe | [
"BSD-3-Clause"
] | permissive | lijiangsheng1/trac-LighterTheme | 6895e966c72b10c29f91e0acaa838157aeb787a2 | 668b1b12ca80c43ee4caa7198a7c5c633c1a0808 | refs/heads/master | 2021-01-18T05:39:57.662034 | 2013-01-21T19:25:36 | 2013-01-21T19:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | from pkg_resources import resource_filename
from genshi.builder import tag
from genshi.filters import Transformer
from genshi.filters.transform import StreamBuffer
from trac.core import *
from trac.config import *
from trac.web.chrome import Chrome, add_stylesheet, add_script
from trac.web.chrome import ITemplateProv... | [
"ejucovy@gmail.com"
] | ejucovy@gmail.com |
98e0f0919c82ba7f0922206dd661f4502af88028 | daf9cef150840543ad19c3bbe52cc79512b71ee8 | /api/migrations/versions/c1b93103c752_.py | cd1c9ac370b4730e738cb168eef1003efe2ecab7 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | sjrumsby/queue-management | 7cfd65731892e8bd4aff74f8780fd5a9243f1085 | b068b1730d2fa4517d54e64f04364828473ebf46 | refs/heads/master | 2020-03-17T22:08:45.081239 | 2020-02-20T04:42:56 | 2020-02-20T04:42:56 | 133,990,692 | 0 | 2 | Apache-2.0 | 2019-11-06T17:35:59 | 2018-05-18T18:30:06 | Python | UTF-8 | Python | false | false | 18,476 | py | """empty message
Revision ID: c1b93103c752
Revises:
Create Date: 2019-05-23 15:29:33.842103
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utc
# revision identifiers, used by Alembic.
revision = 'c1b93103c752'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"karim.gillani@gov.bc.ca"
] | karim.gillani@gov.bc.ca |
e288ec9c6b01bfc94e0961c80c5244b45f91d8b5 | a146a5d372b5577df75c2ec8e5ffd9145424b343 | /thesis/utils.py | d14f880f399cab1f1787fd021fa8e3e504866e64 | [] | no_license | suvayu/Bs2DsKTools | 5650adda5c65cb3bb7c5f14b8de70800186a1a28 | 51362876b8ea3fe1d08f116427cf0ddc382c6e7c | refs/heads/master | 2016-09-10T22:09:39.013016 | 2015-09-23T12:47:14 | 2015-09-23T12:47:14 | 2,955,124 | 1 | 0 | null | 2014-11-28T14:06:00 | 2011-12-10T20:31:03 | C++ | UTF-8 | Python | false | false | 868 | py | # coding=utf-8
"""Some plotting utilities"""
def get_limits(hist, xaxis=True):
"""Get limits of histogram"""
if xaxis:
return (hist.GetXaxis().GetXmin(), hist.GetXaxis().GetXmax())
else:
return (hist.GetMinimum(), hist.GetMaximum())
def get_mark(hist, mark, yaxis):
"""Get an axis tha... | [
"Suvayu.Ali@cern.ch"
] | Suvayu.Ali@cern.ch |
87e7c7ddc09b14e09d684369a4c2e3536af494a9 | c2ce398f425e0831a37222132c05118e63b2b8a7 | /Algorithms and Data Structures Labs/darabaliqasimi_lab2.py | 68842761dbeaa8a2e579f9281dc9d95ca478a483 | [] | no_license | daqasimi18/Computer-Science | f196ba1b705f682c8b462ff5ff5434dc7f0a5c39 | 9adb6ba54c97a52df7963e8dec4cba395b6b7e4e | refs/heads/master | 2023-09-02T20:52:56.990002 | 2021-11-07T22:28:23 | 2021-11-07T22:28:23 | 290,384,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | import argparse
class Student:
def __init__(self, ID, firstName, lastName, email, year, gpa):
self.ID = ID
self.firstName = firstName
self.lastName = lastName
self.email = email
if year == "FR" or year == "SO" or year == "JR" or year == "SR":
self.year = year
... | [
"noreply@github.com"
] | noreply@github.com |
706cb2651eefee8d08111ffb08c27c41afbb170b | c7071fe677a0cbea69fc2b4d9ad293119511b353 | /main/migrations/0008_auto_20201120_2314.py | eff45ae476f77b8b1a75c3f524292f803b15428a | [] | no_license | jimmyliaoviva/MuseumDjango | 3465fb83a88b771456a60e3c29cc6c45916c9450 | 663573932965cb1f46e42646ad9cfa98c4129a8c | refs/heads/main | 2023-02-13T19:08:40.460158 | 2021-01-09T07:02:17 | 2021-01-09T07:02:17 | 306,344,255 | 0 | 0 | null | 2020-11-04T09:35:56 | 2020-10-22T13:21:44 | JavaScript | UTF-8 | Python | false | false | 575 | py | # Generated by Django 3.1.2 on 2020-11-20 15:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0007_auto_20201120_2310'),
]
operations = [
migrations.AlterField(
model_name='museum',
name='address',
... | [
"jimmy.liao86@gmail.com"
] | jimmy.liao86@gmail.com |
662ce7c1a12dd892985f598755caa07f6ab529ad | 884e7ff7e46ca3f1864af9695c14cf8fcc184532 | /django/210310/repeat/articles/models.py | e08a1efc015e27dd2e63ae4d24aaac96bbfc60f5 | [] | no_license | landformdev/TIL | 54f9d331453fe5e2c3292e20e05a2829e42ca7f9 | c6d4c70a956361602213b339f906be8a0fa8f61f | refs/heads/master | 2023-06-03T23:16:52.654946 | 2021-06-18T13:57:48 | 2021-06-18T13:57:48 | 332,991,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from django.db import models
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=10)
content = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self):
return f'{self.... | [
"landform.dev@gmail.com"
] | landform.dev@gmail.com |
44628e5760fdd48bffd2c64b42a444b470549a75 | c420126f7808ad4db529b2e43966ee72434f3058 | /src/dev/generate_targets.py | cf44f13a09e5d71d0fd9d5bfa555722918653af3 | [] | no_license | lijian8/Turtlebot3_complete_coverage | a8af9334e76c253ef88e2548660096d7a4f5746c | d3eae256ccbd4a925e17cebb25cb4fa0ce33d99f | refs/heads/master | 2022-12-06T08:59:47.048921 | 2020-08-26T19:16:25 | 2020-08-26T19:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | from __future__ import print_function
import numpy as np
from numpy import savetxt
# from geometry_msgs.msg import Quaternion
import math
class generateTargets():
width = 0
height = 0
resolution = 0.05
def __init__(self):
pass
def convert_pgm_to_dict(self):
pgmf = open('/home/... | [
"hjack2667@gmail.com"
] | hjack2667@gmail.com |
c253c273fb8c240f6eda595e492a460e88fd798c | ebdb33a86794a779714318f8a0b8397c3d6002b5 | /processing/state_processing_dataframe.py | 04a3eff325b03a22706837096af11c0d1c700efc | [] | no_license | ShabbirHasan1/interactive-corporate-report | b52c6c404a3b2f96f27b3770b7086a59400fb74a | ce0d81ab775ded84334ce599950dae9adaa978c5 | refs/heads/master | 2023-05-16T17:15:52.651033 | 2020-02-20T05:32:46 | 2020-02-20T05:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,326 | py | import plotly.plotly as py
import pandas as pd
import numpy as np
import os
import _pickle as pickle
# rd = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/2011_us_ag_exports.csv')
my_path = os.path.abspath(os.path.dirname('__file__'))
path_in_file = os.path.join(my_path, "../data/google/addres... | [
"islashires@gmail.com"
] | islashires@gmail.com |
0f12c641f199e1afddcc4e04b72faeb06508291d | e37f73457d585b136598f7c0e005d6c26c390762 | /RL/pylearn/BNN/BNN.py | 0f93056d0316c325eedffec0361b1778d7264313 | [] | no_license | KitauraHiromi/ode_RL | ee6e004fffe26e66bcbb2b21d41fe037ebd76beb | 223e5fd73187719746b932f5c5a0b5ab192ccd44 | refs/heads/master | 2021-03-27T20:49:46.861621 | 2017-03-01T10:58:13 | 2017-03-01T10:58:13 | 76,459,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,580 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
sns.set_style('white')
sns.set_context('talk')
import pymc3 as pm
import theano.tensor as T
import theano
from pylearn.rl_lib.kld import *
# bayes_by_backprop.py import
'''
from theano.tensor.shared_randomstreams import Rando... | [
"kitaura@isi.imi.i.u-tokyo.ac.jp"
] | kitaura@isi.imi.i.u-tokyo.ac.jp |
5da56a41d37bd6a06001a6c309de136371ee030d | 28c82784b17dd8bb1cbeb133e81958c33e875684 | /tests/test_calculations.py | 611d6e86e7fa09c8d64355e815a0bd211a1064d7 | [
"MIT"
] | permissive | dwahme/physics_calc_enabler | 7e7c673601a1fda720114a9fea0e2a9b7e52e311 | f0fc4c9214cd024344c5f0d3684b29666339395e | refs/heads/master | 2020-04-03T00:27:56.566201 | 2018-12-31T17:48:17 | 2018-12-31T17:48:17 | 154,900,221 | 0 | 0 | MIT | 2018-12-31T17:48:18 | 2018-10-26T22:16:38 | Python | UTF-8 | Python | false | false | 3,028 | py | from physics import calculations
import pytest
def test_velocity_0():
dist = 1
time = 1
result = calculations.velocity(dist, time)
assert result == 1
def test_velocity_1():
dist = 5
time = 2
result = calculations.velocity(dist, time)
assert result == 2.5
assert result == 0
d... | [
"dwahme1@gmail.com"
] | dwahme1@gmail.com |
0429702f841154a6b3c52a7c5bc1ab962b2a74ec | 8c012e19a67149e115a62285baaa234489761862 | /neural_style_transfer/src/utils/image.py | 9a63a458615126847e9d2d74f8fb5a5d01875223 | [] | no_license | VukGlisovic/computer_vision | 48dec57e830ff53a271843e66e0fdeb56c1ddf5c | 1ff12abb5546bdc8836bb082026e90a497b14e31 | refs/heads/master | 2023-07-08T08:41:02.436119 | 2023-06-22T19:23:35 | 2023-06-22T19:23:35 | 214,006,518 | 2 | 0 | null | 2023-07-06T23:28:59 | 2019-10-09T19:31:40 | Python | UTF-8 | Python | false | false | 2,201 | py | import os
import numpy as np
import PIL.Image
import matplotlib.pyplot as plt
import tensorflow as tf
def load_img(path_to_img, max_dim=99999):
"""Loads an image from path_to_img. The image is directly
scaled to the [0,1] interval. If necessary decreases the
shape of the image while preserving the aspect ... | [
"GlisovicVuk@gmail.com"
] | GlisovicVuk@gmail.com |
7059cf018373b2a557745fe1b1ad8b28b3e3e7ba | f1d7b08bd3758fd039b6c7b67914d9663a1d6748 | /xml_getter.py | 3764aa82f721348546a61e4430fcb17540f5ef47 | [] | no_license | MaxKam/Python-XML-Parser | 55e0793aae61e1de59d30bfa1e92393ccc74cb8a | 39e1d7e3e012cdea232ce39679dbb385685e3a85 | refs/heads/master | 2021-01-15T17:50:36.466535 | 2017-08-10T19:57:09 | 2017-08-10T19:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import requests
class Xml_Get_Network(object):
def net_request(self, url):
r = requests.get(str(url))
return r.text
class Xml_Get_File(object):
def file_reader(self, filePath):
file_open = open(filePath,'r')
file_cont = file_open.read()
file_open.close()
r... | [
"maxk893@gmail.com"
] | maxk893@gmail.com |
846001177d03521601523b2dbe2191f974d98fa7 | 34aa10ad60869c515fb9c75488e3033244f9f524 | /stack/155.py | 627ee422cafc94681fff82953b346749474c84b3 | [] | no_license | superMC5657/leetcode-py | 558a98a4f995a545b42abe044ce23fd8d55d4b2b | 0bbad7154f9f936eca42a34d7772ffdc3c94e6b2 | refs/heads/master | 2023-06-24T09:35:12.655302 | 2021-07-26T15:47:25 | 2021-07-26T15:47:25 | 270,066,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | # -*- coding: utf-8 -*-
# !@time: 2020-09-10 19:46:25
# !@author: superMC @email: 18758266469@163.com
# !@question title: min-stack
# 设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。
#
#
# push(x) —— 将元素 x 推入栈中。
# pop() —— 删除栈顶的元素。
# top() —— 获取栈顶元素。
# getMin() —— 检索栈中的最小元素。
#
#
#
#
# 示例:
#
# 输入:
# ["... | [
"18758266469.com"
] | 18758266469.com |
9078cec0531b1e641d20efdb3b6539c9c484fdd9 | 899a3e63c5759754d807919fbdbfe08bafe53088 | /PSET2/q3_RNNLM.py | 1a57603c6979ab2551d7cc0be8d10488abd36c03 | [] | no_license | tusharkumar91/CS224D-Deep-Learning-for-Natural-Language-Processing-Coursework | ac193cda63fb0156b3226d3154562c68cbce203d | 2f989642dbec38b98fca4100643e9ab083a8519b | refs/heads/master | 2021-08-19T13:48:54.096405 | 2017-11-26T12:28:26 | 2017-11-26T12:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,295 | py | import getpass
import sys
import time
import numpy as np
from copy import deepcopy
from q2_initialization import xavier_weight_init
from utils import calculate_perplexity, get_ptb_dataset, Vocab
from utils import ptb_iterator, sample
import tensorflow as tf
from tensorflow.python.ops.seq2seq import sequence_loss
from... | [
"tusharkumar91@gmail.com"
] | tusharkumar91@gmail.com |
1f3bcb88d9623185907236922add160291a345b7 | 678a7c7622dace343e21b591bf5726b91ff967c1 | /products/migrations/0007_product_featured.py | 85ea0342112c9830768f7b5b574aa55f62161017 | [
"MIT"
] | permissive | DKMDebugin/ecommerce | 4229308470ec94779d5d572b63a69b6eef71c8f6 | 427d18f19cabd128fe21c716d965e85b8e91a169 | refs/heads/master | 2022-12-22T12:10:13.089421 | 2020-09-24T18:35:38 | 2020-09-24T18:35:38 | 298,361,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.1.7 on 2019-03-20 16:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0006_auto_20190320_1433'),
]
operations = [
migrations.AddField(
model_name='product',
name='featured',
... | [
"salimonjamiu@yahoo.com"
] | salimonjamiu@yahoo.com |
ecaaf6820a4b74985174ec4962307d0e76caae1b | a25730949518e9654fb105d396b40fa8f29a5e5c | /venv/bin/pip | 4ae258b5e9790b3861544b49e526f3959247b625 | [] | no_license | VasiHemanth/MovieRaterApi | 6c0772fc222a5a2990dee393aee0c901dd6d1cac | fbe0953b383de459d6eeaf709f458f071b3c9ae9 | refs/heads/main | 2023-01-22T17:59:28.614363 | 2020-12-04T17:34:54 | 2020-12-04T17:34:54 | 318,586,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/hemanth/Desktop/MovieRaterApi/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hemanth.vasi1716@gmail.com"
] | hemanth.vasi1716@gmail.com | |
062ad9dc571345a7f470daa1d624c95fab71381b | 8f21513b8ba9e583246908006cac98e5e473e245 | /2_date_time.py | 4e845b6d46313ee7c1aa2f575d6f4ed98c8d58b0 | [] | no_license | MatsakB/Lesson3 | 6335bdeb86e3216e4576c170096d7bcf57ec4b2d | 69493f147720ac7d975421d7400e6964ecfac3a2 | refs/heads/master | 2020-04-10T06:35:22.069664 | 2018-12-08T08:45:20 | 2018-12-08T08:45:20 | 160,859,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from datetime import datetime, timedelta
date_today = datetime.now()
delta_days = timedelta(days=1)
delta_months = timedelta(days=30)
date_yesterday = date_today-delta_days
date_month_before = date_today-delta_months
print(date_today.strftime('%d.%m.%y'))
print(date_yesterday.strftime('%d.%m.%y'))
print(date_month_be... | [
"you@example.com"
] | you@example.com |
9dff611ce8c416ca448290265e0c1f4cc3aa44bd | e72832b7b64238d06baa6c47617bc4b4d0398828 | /src/LoadToPostgreSQL.py | 2d6d4eaee77dd2adf5a00a0e6bc69a50119a1559 | [] | no_license | Nkumar-GIT/sfly_code | 0f62da922cc93814fa4793fd3bd6c206e748697b | 348dc161d861fa6515e0a3b7bd1f4b045cdf7477 | refs/heads/master | 2021-07-21T12:48:42.768343 | 2018-10-07T17:29:30 | 2018-10-07T17:29:30 | 135,966,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | #This python program is to read the file having json data and load into PostGreSQL database, calulate customer LTV values
import json
try:
import psycopg2
except:
print ("Install psycopg2 to connect postgres")
exit(123)
class my_parser:
def __init__(self):
self.conn = psycopg2.connect(da... | [
"noreply@github.com"
] | noreply@github.com |
70d61280fe256434d2e2dbbafd8c96131311e837 | 647e216d8ab8280a0dbdd03e254615aedb2b432d | /certproxy/certproxy.py | 1527682962343b906bda546f41b03f5ee868ae02 | [
"BSD-3-Clause"
] | permissive | geneanet/certproxy | ab4e8311a0f4f7dc6eb9e13179f227e21cbcddfe | 0359be47eb9ba4d86fb30e4a5c16093f6a9ab98e | refs/heads/master | 2023-05-25T03:42:31.060814 | 2023-05-17T15:34:26 | 2023-05-17T15:34:26 | 87,809,577 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,879 | py | # -*- coding: utf-8 -*-
from gevent import monkey
monkey.patch_all()
import logging
import logging.config
import argparse
import os.path
from .tools.misc import print_array
from .config import load_config
rootlogger = logging.getLogger()
logger = logging.getLogger('certproxy')
logging.getLogger('acme.client').setLev... | [
"herve.bry@geneanet.org"
] | herve.bry@geneanet.org |
a2859f4ac719600fa16c18391c0265afda7857f5 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/scripts/test/test_scripts.py | 8705a90f7287a1f2a71871bea4ec36b22d67d56a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 6,855 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for the command-line scripts in the top-level I{bin/} directory.
Tests for actual functionality belong elsewhere, written in a way that doesn't
involve launching child processes.
"""
from os import devnull, getcwd, chdir
fro... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
d946595b8a80438b4e9003b20921b50148b10cbe | 7bf3f61a28f2f3e0d60c45fa9eaf45f75d73537b | /database_setup.py | 0f28b26ae766afac03c4496b914399f1780ec29f | [] | no_license | mrukhlov/udacity_catalog | 758475ef0fa958a38be85fd0367c2bde3f169ddf | 69a7e5a7d2b66195f7e88c7dcd5b820cd5920ef6 | refs/heads/master | 2021-01-13T11:17:14.428774 | 2016-12-23T13:16:38 | 2016-12-23T13:16:38 | 77,226,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
Base = declarative_base()
class User(Base):
__tablename__ = 'user'
name = Column(String(250), nullable=False)
email = Colum... | [
"mrukhlov@speaktoit.com"
] | mrukhlov@speaktoit.com |
f144fec17ff955f0806f4a5f976eb5a2072ff5dc | 92ae735d5dc6f6a094daedbd32614e714d0b8c4a | /newsletter/settings.py | 9ab91d32d35e7f7387b06c550e337e75ac0022a6 | [
"MIT"
] | permissive | Williano/Final-Senior-Year-Project- | 3b01ac9fd85753720b01c2245cf9b71648aad35d | 4bd988575537b37b5cf852b616d3db5666c95e7f | refs/heads/master | 2023-08-07T16:11:42.778492 | 2023-06-05T04:59:06 | 2023-06-05T04:59:06 | 121,346,340 | 173 | 60 | MIT | 2023-06-05T04:59:07 | 2018-02-13T06:17:16 | Python | UTF-8 | Python | false | false | 3,167 | py | from importlib import import_module
from django.conf import settings as django_settings
from django.core.exceptions import ImproperlyConfigured
from .utils import Singleton
class Settings(object):
"""
A settings object that proxies settings and handles defaults, inspired
by `django-appconf` and the way ... | [
"paawilly17@gmail.com"
] | paawilly17@gmail.com |
b283616a42ab5b1bc6c464b5dd6373beda635121 | 210543a29ce4d4cb4d1dde37153db596f97c1bd6 | /pregunta3.py | 017cdc3c02cefebe4dc6f2526829d8f4cbbc3807 | [
"MIT"
] | permissive | jpmartel/09Tarea | 2187c0c7584637e35fb1fc57be78c671d4d065a0 | c1d2d0c2d6bbf357d25c7795a8cdb5e3e9b3246d | refs/heads/master | 2020-05-29T11:07:14.916024 | 2015-11-25T08:38:26 | 2015-11-25T08:38:26 | 46,579,129 | 0 | 0 | null | 2015-11-20T18:20:45 | 2015-11-20T18:20:45 | null | UTF-8 | Python | false | false | 2,473 | py | """
Este script realiza un modelo lineal para la relacion entre el flujo en la
banda i y la banda z de cuasares con datos de Data Release 9 (data/DR9Q.dat)
del survey SDSS.
Incluye intervalo de confianza al 95% utilizando una simulacion de Monte Carlo
"""
from __future__ import division
import numpy as np
import matplo... | [
"jepamartel@gmail.com"
] | jepamartel@gmail.com |
ff3771b5c0f1674a5c668a6a8e2b5f78017cab70 | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/auth/exceptions.py | b07bd1f9d71b922ba849cb4dc2a0eac9562fdd33 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 1,206 | py | # Copyright 2017 Google 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 applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
5bedf1ca160ad884d194f63f42e38325d3e2d2a7 | 9458c9288fcfdfa2df1cb642d4ee095c2bc5de0f | /bin/check_aws_vpn_connection | 0d66a3a8c586254cd8fa1422b1934e56ba3aa763 | [] | no_license | sculley/nagios-checks | ad0aad99ffd5559412f43bda072df389f666282f | a3cdc8a9a942c05e00acaafae0580481483b8727 | refs/heads/master | 2021-01-10T04:06:05.261340 | 2016-04-02T10:50:56 | 2016-04-02T10:50:56 | 55,289,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | #!/usr/bin/env python
import argparse
import boto3
import sys
parser = argparse.ArgumentParser(
description='Check the status of an AWS VPC VPN connection.'
)
parser.add_argument(
'--aws-access-key-id',
action='store',
required=False,
default=None
)
parser.add_argument(
'--aws-secret-access-ke... | [
"sculley@bookdepository.com"
] | sculley@bookdepository.com | |
4b31f83f0e7bd915c4339fb0a70226a626ec3f52 | aa834fb62fb3475e451fc14e35238798cbe669ed | /jazebeh/jazebeh/wsgi.py | bfbdaa9ee8ab5004d41907969b4aac3ce69e9f15 | [] | no_license | Hamidmirzapour/jazebeh | 6f43598493bdb0db3b0a0a9c9bf043bd7e3453f5 | 1a1cec56e40db933174ee0a3e9999591196ec408 | refs/heads/master | 2023-08-07T00:46:50.818168 | 2021-10-13T06:28:20 | 2021-10-13T06:28:20 | 416,606,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for jazebeh 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"zahrariahi1372@gmail.com"
] | zahrariahi1372@gmail.com |
90a2a82f8329a61183b730bef95b89488c1088f3 | 1bedc95b9f3cd18d540f75920cbd9d1e70ce09be | /my_virtual_environment/lib/python3.6/site-packages/allauth/socialaccount/providers/shopify/tests.py | 400664009e097e7f9f8934440a3bb41ce435614b | [] | no_license | kchikweshe/mysite | 4d0538515695948212835e7dffc950295e90f4fc | 7e6e75a2ceb6d0458bb5913789da272774be3ea5 | refs/heads/main | 2023-04-16T13:50:37.590142 | 2021-04-02T15:51:28 | 2021-04-02T15:51:28 | 349,225,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | import json
from urllib.parse import parse_qs, urlparse
from django.test.utils import override_settings
from django.urls import reverse
from allauth.socialaccount.models import SocialAccount
from allauth.socialaccount.providers import registry
from allauth.socialaccount.tests import create_oauth2_tests
from allauth.t... | [
"kombogc@gmail.com"
] | kombogc@gmail.com |
dc768c5a2982a554ecbde52148df68d05e357efd | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/test/test_transformer.py | eb8ef8ab031ce6e160d63f4fdf244baf063d4060 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 1,146 | py | import unittest
from test import test_support
# Silence Py3k warning
test_support.import_module('compiler', deprecated=True)
from compiler import transformer, ast
from compiler import compile
class Tests(unittest.TestCase):
def testMultipleLHS(self):
""" Test multiple targets on the left hand ... | [
"278688386@qq.com"
] | 278688386@qq.com |
c4cf6b79750619a64bf805ea92b072c8016ac07a | 62fccd68b0fb0fe90d2b2d7bdb36e17aa167b725 | /parse_xml.py | ba93f5124768ae528c7fe98d0b4287f811f7dfd7 | [] | no_license | yingl910/DataWrangling_Python | a89432c9adf73de4ec7ea10f052739f0e83af518 | a2474e119d6aa69eaf978e9af089e023f9be6b41 | refs/heads/master | 2020-05-30T09:09:02.956827 | 2017-02-21T03:05:51 | 2017-02-21T03:05:51 | 82,628,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import xml.etree.ElementTree as ET
import pprint
tree = ET.parse("exampleResearchArticle.xml")
root = tree.getroot()
print("\nChildren of root:")
for child in root:
print(child.tag)
title = root.find('./fm/bibl/title') #support basic x path expression
title_text = ''
for p in title:
title_text += p.text
prin... | [
"noreply@github.com"
] | noreply@github.com |
5845d9798484600f3f9b0aa80c90c985e300c4c2 | 151e0244ad7c6af1c1413f44307d04d9f4a07b8b | /Infopulse_v0.0.1/flask_app.py | 2aaddbcc30d78bfe81f16c82ca56178e3185a8e3 | [] | no_license | Spanarchie/dev_sandbox | 18a6e21b985c20018964a744696b7624f6a66900 | 2917b84d37356e244baed53893a6ea12317a3a3a | refs/heads/master | 2021-01-10T20:11:48.098916 | 2013-11-17T23:16:25 | 2013-11-17T23:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # A very simple Flask Hello World app for you to get started with...
from flask import Flask
from flask import render_template, flash, redirect
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def hello_world():
return render_template('index.html')
# @app.route('/brief')
# def hello_world():
# jso... | [
"colinmoorehill@icloud.com"
] | colinmoorehill@icloud.com |
0ab7de9708f41d8a6c7cb4c3135cab6d34c33060 | 2e0a2c25579c56398f558bb1538bddc39bfc66cc | /migrations/versions/afa1f72829c6_posts_table.py | 8ec693a17224edcddf41b83763d7c13c9cbc2a87 | [] | no_license | rob212/microblog | 990e5506ddb11e9b0e739bf0fd92b11a15331314 | 502c529c8f81e83df3b95add7ce4725811185247 | refs/heads/master | 2023-05-11T04:24:44.057151 | 2019-12-16T11:54:59 | 2019-12-16T11:54:59 | 226,367,656 | 0 | 0 | null | 2023-05-01T21:18:54 | 2019-12-06T16:23:15 | Python | UTF-8 | Python | false | false | 1,057 | py | """posts table
Revision ID: afa1f72829c6
Revises: f829ff78abea
Create Date: 2019-12-09 16:41:17.171570
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'afa1f72829c6'
down_revision = 'f829ff78abea'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"robertmcbryde83@gmail.com"
] | robertmcbryde83@gmail.com |
f01d8b667d7cbe661b091c769a821a2dc0b8e50f | a29da55a260162424de5b8831197e9e81410e525 | /Leetcode/006Z字形变换.py | 502ddb691403c1a363fe990052872f79574f4759 | [] | no_license | nicowjy/practice | 82c59bf861c628bc6b733a1efce6be2a316bd37d | 435dcf47de52bba48259a5affc5b1dda0ece15c1 | refs/heads/master | 2021-06-27T22:12:27.530240 | 2020-10-18T14:33:43 | 2020-10-18T14:33:43 | 175,775,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
class Solution(object):
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if not s or not numRows:
return ''
if numRows == 1:
return s
tmp = [''] * numRo... | [
"luoshuqiannian@163.com"
] | luoshuqiannian@163.com |
e81ecbc79ac8e7c78235ad1d0dfede4ed6cc140f | 84ad9d78379acc312810e287277f686cce59e103 | /Day 1 - 21/Day 6.py | faeafc8815154753992ddf1cad701c2355b4693e | [] | no_license | Zoom30/100-python | d42f3a82e0d018354bc0a4a65ccd5c25b9223a25 | ae5ee3f95bf13741d80cc71a6df0113104101cfa | refs/heads/main | 2023-08-30T13:51:18.873363 | 2021-09-19T18:18:30 | 2021-09-19T18:18:30 | 394,455,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | def myFunction(name):
print("Hello", name)
myFunction(5)
def anotherFunction():
print("hello")
print(f"{10 + 2}")
anotherFunction() | [
"63873134+Zoom30@users.noreply.github.com"
] | 63873134+Zoom30@users.noreply.github.com |
7588e0b50d82ff81490c180db39e55febd0d85ab | f8bdc46409c9f5eaf3d85ef157260589462d941a | /demos/instance_occlsegm/examples/synthetic2d/legacy/view_arc2017_occlusion.py | 408b6b042140818b8b6f50d4e6382df6fedf1f5c | [
"MIT",
"BSD-3-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 1,604 | py | #!/usr/bin/env python
import chainer_mask_rcnn
import instance_occlsegm_lib
import contrib
if __name__ == '__main__':
dataset = contrib.datasets.ARC2017OcclusionDataset(
split='train', do_aug=True)
def visualize_func(dataset, index):
img, bboxes, labels, lbls = dataset[index]
class_... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
70bd0a4af737074986860d67eeb4cf197e1fde83 | 74f0b155cf87e248e49eca2dd6e43c4840a9ff92 | /HeteroGraphMethod/heterogeneous/myheter.py | baab7d37d566c499efdedc9543d7dce43f3eebf5 | [] | no_license | LeoDuhz/LOG_Analysis | 8c2a0cd890c0c138115b1bdcba9495180a92d3fc | 48823853330e666a05a97b5b43ff37c182b0fb09 | refs/heads/master | 2023-04-02T03:11:33.228007 | 2021-04-17T08:21:50 | 2021-04-17T08:21:50 | 329,039,912 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | import torch
from torch.nn import Linear,ModuleList as MList
from typing import Union, Optional, List
import itertools as it
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
def to_matrix(l,n):
return [l[i:i+n] for i in range(0, len(l), n)]
class HeterogeneousGraph(torch.nn.Module):
def _... | [
"1119653713@qq.com"
] | 1119653713@qq.com |
356b42a5dc2e5510172def6f99495211486cb87b | f66a3f3a2e968dee45ad339fe4237b556566e3a0 | /Programmers/LEVEL1/TrialExamination.py | 757ca8e63a6f638a320939c2a2473774fcf5aba3 | [] | no_license | Albert-learner/Algorithm | 358e3b8496c3ea419b7f8dd74a0899b116bf1028 | 9fbb2c94ae35161ccc31e2c5976f6fdf426eea8d | refs/heads/main | 2023-08-04T15:48:21.041206 | 2023-07-29T12:37:31 | 2023-07-29T12:37:31 | 209,938,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # 19. 모의고사
def solution(answers):
answer = []
# 1, 2, 3번 수포자들 규칙 저장 리스트
people = [[1, 2, 3, 4, 5],
[2, 1, 2, 3, 2, 4, 2, 5],
[3, 3, 1, 1, 2, 2, 4, 4, 5, 5]]
# 3명 수포자들 맞춘 결과 저장 리스트
results = []
for person in people:
results.append(sum([cost ==... | [
"noreply@github.com"
] | noreply@github.com |
03015d82d33d45c0fabe7b558139d1ec0440a6c2 | 504e2026a7b77c4c4080a73d487edbb630a9e502 | /apps/page/migrations/0012_auto_20200928_1353.py | d3bb3fb8e74cab7f526644420910e2b3c0e13fea | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | TaiBIF/portal20 | 596282794e3158ddd5b8c86c524d87d74de33f09 | 4d3fec84bc9dffa1f9ac372eb4745318a781781b | refs/heads/develop | 2023-08-22T03:58:47.601666 | 2023-08-08T09:58:26 | 2023-08-08T09:58:26 | 231,320,445 | 7 | 9 | MIT | 2023-08-30T13:29:07 | 2020-01-02T06:22:59 | JavaScript | UTF-8 | Python | false | false | 358 | py | # Generated by Django 3.0.7 on 2020-09-28 05:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('page', '0011_auto_20200321_1051'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='upload',
... | [
"v0220225@gmail.com"
] | v0220225@gmail.com |
70bc331f3ab7dcdf0904d00a928becf959b12a5e | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_wf_correlation1.py | 946851bae269b8bc3790a4acf9f9905235827943 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | from xcp2k.inputsection import InputSection
from _mp2_info1 import _mp2_info1
from _direct_canonical1 import _direct_canonical1
from _wfc_gpw1 import _wfc_gpw1
from _ri_mp21 import _ri_mp21
from _opt_ri_basis1 import _opt_ri_basis1
from _ri_rpa1 import _ri_rpa1
from _ri_laplace1 import _ri_laplace1
from _cphf1 import _... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dc105ee3ebf7961d65457444ef73bc1b0dea023c | 9364aa349573cb9ec1612f48152a0d47a4013550 | /Python_Assignment/space_age/setup.py | 2cb36bb2e04958e9d92a13943d0ad0a46464b70f | [
"MIT"
] | permissive | anitabaral/lf_internship_workspace | f3121f5fcf2825624072c0cc07a761d2203a32bb | 49a6ba8f618665d3b8fd5f38596747f3d08efde2 | refs/heads/master | 2023-07-13T15:22:03.409782 | 2021-08-17T03:28:04 | 2021-08-17T03:28:04 | 389,962,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import pathlib
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# This call to setup() does all the work
setup(
name="space_age",
version="1.0.2",
description="It gives your age i... | [
"baralanita2@gmail.com"
] | baralanita2@gmail.com |
d676f93bd043279f8c7ce22c61dd0cde1752ad9c | 40450033ed92fd92f00190938c9a96a9f918ddc8 | /venv/Scripts/pip3.7-script.py | f2771a897c15ec1056d8eb3430539539093243af | [] | no_license | futurecoming/backtest | a9f72aef6aba678b39974d702106497e87233d74 | e5e7af64fac54fdd57033deaae8650461442e4b7 | refs/heads/master | 2021-04-17T04:17:56.296510 | 2020-06-20T06:47:03 | 2020-06-20T06:47:03 | 249,412,237 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!F:\py\backtest\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
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(
... | [
"lastavenger@163.com"
] | lastavenger@163.com |
cb36c9be3bc342c0c62dd969b7902a6509251dde | c39c0c56dc72b35842b02982a866e1c4880e7965 | /tool/v0.2.0/print_keycodedef.py | cf14594016a06b79da0ca9d0f54882a142b5ff07 | [
"MIT"
] | permissive | odeilly/todochute-releases | c98804864059cf7713f4bb90eda812b1073cf22b | 2d60f1e141a82406a9a773b08ecace75733ad556 | refs/heads/master | 2023-03-15T16:47:31.966376 | 2019-08-26T08:05:36 | 2019-08-26T08:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # -*- coding: utf-8 -*-
import string
template = "'{{u}}' : {{n}},"
data_all = ''
for i in range(26):
l = string.ascii_lowercase[i]
u = string.ascii_uppercase[i]
n = str(65 + i);
data_one = template.replace('{{u}}', u).replace('{{n}}', n)
data_all += '\n' + data_one
template = "'{{i}}' : {{n}},"... | [
"stakiran@users.noreply.github.com"
] | stakiran@users.noreply.github.com |
0ad7b8b3042b93f9121ac5163c3716b786ceee02 | 33ca2eebaff2b16e2daa673e064440856967c52b | /resources/wscript | 51d25b96b1f2dbc22aa2fb7fe3721df391989dbf | [] | no_license | jstheoriginal/PebbleTextWatch | d155bdf0c632fcb24302a12062213037af429648 | f29e99bbb3855fafd8b9bf43742d9d2b7d2213f9 | refs/heads/master | 2020-12-25T00:03:19.144833 | 2013-08-18T22:40:25 | 2013-08-18T22:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | /Users/justinstanley/pebble-dev/PebbleSDK-1.12/Pebble/sdk/resources/wscript | [
"justin.stanley@gmail.com"
] | justin.stanley@gmail.com | |
0b04f14eb3f2ad19ed930dd9c65c7bfb98d2a1e8 | 3aed3ab166afbfad1924d1124659ac3552eca909 | /catalog/views.py | d293ae1091fdd13445bdcada5e8bbfebc3d96b0a | [] | no_license | peayah/LittleLibrary | ee50a3f6a7f84d4e702863575cc8ce8c12944937 | 2b1c926f4b0b9a63f8633a6cdb0b5ae12c06618b | refs/heads/main | 2023-05-30T22:03:26.160976 | 2021-06-27T08:04:52 | 2021-06-27T08:04:52 | 365,938,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py |
from django.shortcuts import render
from django.views import generic
from catalog.models import Book, Author, BookInstance, Genre
from django.shortcuts import get_object_or_404
from django.contrib.auth.mixins import LoginRequiredMixin
class LoanedBooksByUserListView(LoginRequiredMixin,generic.ListView):
"""Generi... | [
"basiccreation@yahoo.com"
] | basiccreation@yahoo.com |
c1e572eb0ecb415a5651c7a7e2561a27e847bfb2 | f4c6e73d1c03dfdc21608c04abad98196a58c8a7 | /login/templates/app/account/Get_Logon_Token.py | 7efc614d7b20589e5b6df4e6d668a34cfb5d3708 | [] | no_license | yuhao2358575914/lrts-interface | 8dec77e2f6c3a9c7ebd99c580da66df3c6a44e3c | 0b9890d47b82b9e4d5f307ee0063f4562dfa1414 | refs/heads/master | 2022-12-08T20:26:27.000459 | 2020-08-26T04:40:23 | 2020-08-26T04:40:23 | 293,411,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2020/1/17 10:16
# @Author : caozhuo
# @FileName: Get_Logon_Token.py
# @Software: PyCharm
import json
from login.templates.app.account import Get_Auto_Register_Token
from login.templates.utils import getconf, httputils
from login.templates.utils.confutils imp... | [
"caozhuo@lazyaudio.com"
] | caozhuo@lazyaudio.com |
3e7af994a6235be22aa1a34320c806ffcc69e7cd | 0ca1d8363439e0e34d7eaa54f021ff0b2940cac7 | /facturacion/migrations/0016_auto_20181130_1741.py | 8521ce266772004f3ca7a4e556672f389672ca4b | [] | no_license | geovanniberdugo/medhis | d6b606ef2c391738ee5fa4209712b6c0eb01ae40 | b8f8df111432bfab537853ed8e8dbd4603e9707d | refs/heads/main | 2023-02-13T19:44:33.699689 | 2021-01-15T22:08:35 | 2021-01-15T22:08:35 | 330,032,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-30 22:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facturacion', '0015_auto_20181120_1824'),
]
operations = [
migrations.Alte... | [
"geovanni.berdugo@gmail.com"
] | geovanni.berdugo@gmail.com |
eb45feff5211c794b8bd0b999d5df6c13c16ddee | c07819f9fbf8512ca603ae081d3d274ae4ff4f52 | /knapsack/knapsack.py | 18f41e879a74f8a4123c807be0bf56c92ec811f2 | [
"MIT"
] | permissive | farcpan/quantum_computing | 3d11bc1cce44a42fa0c1277f2af5bd2aaa15e936 | a0d42d88cecb6dafec77a98d1f78190d2d0ee41b | refs/heads/master | 2020-04-05T14:40:28.784256 | 2019-03-11T01:55:30 | 2019-03-11T01:55:30 | 156,934,946 | 0 | 0 | null | 2019-03-11T01:38:42 | 2018-11-10T01:05:38 | Python | UTF-8 | Python | false | false | 4,012 | py | """
knapsack.py
"""
import sys
import csv
import time
import dimod
import neal
import numpy as np
from dwave_qbsolv import QBSolv
from dwave.system.samplers import DWaveSampler
from dwave.system.composites import EmbeddingComposite
from pyqubo import Array, Constraint, Placeholder, solve_qubo
class KnapsackProbl... | [
"miyazaki.carp@gmail.com"
] | miyazaki.carp@gmail.com |
24fde24a17146c695046ccf5a8a43b5dea10a7cb | 82798cc9d4a03bfd82c4604b89649b5340c1dd05 | /PROBLEMS/find_max_sum_contigous_sub_array.py | ea5e25897cba48b5e5b091fd8ac1304cb0cfebcb | [] | no_license | gnanadeepika/MISC | fec33d2cd539ecce0c85b8c8c588ca83244feb06 | 673551dccee1e9e74c20e702932d98ac54f0a365 | refs/heads/master | 2021-05-06T12:24:41.817887 | 2019-04-23T10:15:00 | 2019-04-23T10:15:00 | 113,055,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | a=[-2,-3,4,-1,-2,1,5,-3]
def find_max_sum_contigious_array(a):
max=a[0]
sum=a[0]
for i in range(1,len(a)):
sum=sum+a[i]
if sum < 0 : sum =0
if sum > max : max = sum
return max
print(find_max_sum_contigious_array(a))
| [
"deepika.gnana@thomsonreuters.com"
] | deepika.gnana@thomsonreuters.com |
55c9f793d6b123cbf7276a8bba888e4622b2a03b | 5db464246d0c5c2b3d7a706623bbc7b729c0c762 | /modules/auth.py | 7beb9e2e08e9d6a2e0cec7cd32f4559b50e4289b | [] | no_license | Teku16/kittenbot | 20938cd3c9a2997ee364d948af1b582c72e5cd0d | eefdf4d5a50239c72512bb1745216aa8a2163184 | refs/heads/master | 2021-01-15T20:18:31.943853 | 2015-10-28T01:14:28 | 2015-10-28T01:14:28 | 42,699,490 | 0 | 0 | null | 2015-09-18T04:22:12 | 2015-09-18T04:22:12 | null | UTF-8 | Python | false | false | 2,356 | py | from datetime import datetime, timedelta
from collections import defaultdict
def init():
Auth()
class Auth():
auth_commands = {
'auth': 0,
}
command_descriptions = {
'auth': """
Sends the specifed Auth [message] to Authserv
Syntax: auth [message]
""",
... | [
"teku1998@gmail.com"
] | teku1998@gmail.com |
0305298556634026fc465b8ed50f5932e0cbd1a5 | 864b3cc5b5cb38c77ee77a6bc3680d0dc12106b5 | /bot/errors.py | f7b4f60fec2f18607881c17f5b1002d13f162ae9 | [] | no_license | CaffeineDuck/otakumandu-bot | 7cdbb4d3d7c750e0e40037375f34f3d22693fcc0 | b0c2182e710d1aa6743922609c68b5a152a7614e | refs/heads/master | 2023-08-18T21:11:13.574356 | 2021-09-25T06:02:42 | 2021-09-25T06:02:42 | 394,174,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from discord.ext import commands
class WelcomeNotConfigured(commands.CommandError):
def __str__(self) -> str:
return "Welcome has not been configured yet!"
class WelcomeAlreadyConfigured(commands.CommandError):
def __str__(self) -> str:
return "Welcome has been already configured you can't o... | [
"samrid.pandit@gmail.com"
] | samrid.pandit@gmail.com |
947ba05a1aaf6d6710b2f89a1c39bd5bd0527861 | cb37c0b35fc04d5f34b97a7201811052a80b6279 | /archive_2020/scripts/print_svcs.py | c1dae1eb01905b0bff7b90415a9dc777fbafca36 | [] | no_license | olsenmatthew/NS | c8fe85dbee18f6096c1b00c39bc7248360879a43 | 43f26e97f7f18727e0a99d585dcb0e71277fb8ef | refs/heads/master | 2023-03-02T02:36:00.730919 | 2020-12-12T04:00:53 | 2020-12-12T04:00:53 | 343,050,214 | 0 | 1 | null | 2021-02-28T07:54:02 | 2021-02-28T07:54:01 | null | UTF-8 | Python | false | false | 5,343 | py | import asyncio
from bleak import discover, BleakClient
from bleak.exc import BleakDotNetTaskError, BleakError
DEVICE_INFO_SERVICE = '180A'
MANUFACTURER_NAME_CHAR = '2A29'
HARDWARE_REVISION_CHAR = '2A27'
FIRMWARE_REVISION_CHAR = '2A26'
SOFTWARE_REVISION_CHAR = ... | [
"olsenmatthew780@gmail.com"
] | olsenmatthew780@gmail.com |
8aa7c771cb6f0fabbd8fa2e9e77379c746733365 | 56a8b447ac54a681315b04d530d916357b7ab163 | /eland/tests/field_mappings/test_scripted_fields_pytest.py | 54c2760ba84765ff167877a45ab15d7d399195ff | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | redNixon/eland | 524c493dbef584f715beb9c5788ab829c799c659 | 1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3 | refs/heads/master | 2021-05-20T14:13:48.516654 | 2020-04-02T01:46:10 | 2020-04-02T01:46:10 | 252,328,347 | 0 | 0 | Apache-2.0 | 2020-04-02T01:46:11 | 2020-04-02T01:43:47 | null | UTF-8 | Python | false | false | 2,171 | py | # Copyright 2019 Elasticsearch BV
#
# 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 applicabl... | [
"noreply@github.com"
] | noreply@github.com |
96d3ef7124f1d20922a37c482305578a536be494 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/video/QVI_ID2930_for_PyTorch/datas/__init__.py | 3f2183896479f5bf7d870a252d3f4a6d07fccc07 | [
"GPL-1.0-or-later",
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 822 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
dad08eeee7fccc17fc3f3098df796c056864d4c0 | 571c0ac6086b6d02bba799ef7bde76627856c4e0 | /Factorial/Factorial.py | b7c03c0373c69b1ee47d4a79b1f10ce6997a7731 | [] | no_license | RP28/Algorithms | 47c90f7ac5034eea4222f58798ce3671bb573fa5 | 7e43d4f261fed01094c10b9a9298c31c7c081157 | refs/heads/master | 2023-09-01T10:42:20.814051 | 2021-10-19T16:33:07 | 2021-10-19T16:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #initializing var
user_input = 's'
factorial = 1
#looping until the user enters a valid number
while not user_input.isdigit():
user_input = input ("Enter a number ")
try:
#storing user input in variable val
val = int(user_input)
#checking is number is less then 0 becasue factorial for negative numbers ... | [
"mpatel296@myseneca.ca"
] | mpatel296@myseneca.ca |
8dbbdf529ee5d0d9dc1eb9aa478ad944bb5fceb1 | afee897bd03ac5aefa9e510732950589a788ba8d | /PYTHON/RETO 3/reto3.py | 1b787888122837c5ce893bb2fc5c3f86967c7e14 | [] | no_license | johnarley2007/UPB | f0a2c19cccd0dbd688343a02da1d5964fc2f910c | 987e180bd24777dec3ffa26adb63759e507d4b13 | refs/heads/main | 2023-06-11T08:45:49.282152 | 2021-07-02T02:11:19 | 2021-07-02T02:11:19 | 380,082,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,160 | py | from os import system
import os
import time
system("clear")
coordenadas =[]
print ("Bienvenido al sistema de ubicación para zonas públicas WIFI")
x="51661"
y="16615"
try:
usuario=(input("Digite el ususario: "))
if usuario==x:
system("clear")
contrasena=(input("Digite la contraseña: "))
i... | [
"johnarley2007@hotmail.com"
] | johnarley2007@hotmail.com |
51274ca3cd903a1395ead193a927c16c2d3ea977 | 81a06d2d3e315601439efa63bc5146c9fc869ff9 | /app/utils.py | 778f0e520d229b17858bba202ef1d3352c82072a | [] | no_license | VitaliiFisenko/bot | acb3966d297d4093c2717b2911a6c0e7146da5fa | 5c9db1e06b0d120e684d1fc6c086fcd4abfd1b94 | refs/heads/master | 2021-05-20T11:17:37.346950 | 2020-04-04T17:43:29 | 2020-04-04T17:43:29 | 252,271,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import yaml
def load_config():
with open('../config.yml') as conf:
return yaml.safe_load(conf)
| [
"vitaliifisenko@Vitaliis-MacBook-Pro.local"
] | vitaliifisenko@Vitaliis-MacBook-Pro.local |
f21c92a6eee062835b951bb1aa4832c13c4d8015 | 0f12c30ff95228a424a746ae4e1c298e6e69742c | /program/analyze_soap.py | 92104943ceaedbdea1f6c82ce2acc86ee815babd | [] | no_license | hori1537/mofs_soap | 397b91c675a88597cd363d08ae5392aec5eb91a2 | e098f46b904c62fbebe328573194dd3100d9bd0c | refs/heads/master | 2020-06-30T23:39:04.411723 | 2020-04-03T08:42:52 | 2020-04-03T08:42:52 | 200,984,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | from dscribe.descriptors import SOAP
import ase.io
import glob
import sys
import pandas as pd
import numpy as np
path_ = glob.glob('/home/garaken/mofs/data_20/*')
print(path_)
df_ = pd.DataFrame(columns = ['cif_file', 'soap'])
df_ = pd.DataFrame()
df_out = pd.DataFrame()
var_df = pd.DataFrame()
for cif_path in ... | [
"noreply@github.com"
] | noreply@github.com |
069c7475291cb3c386b3b0c09b660e5422fc682a | 834274cdcc13a3b000558b8123d678279c83ab98 | /countries_field/bitfield/models.py | 61a7c8062cdcea5fb8c6d7d3c27ce740785dde53 | [
"Unlicense"
] | permissive | onrik/django-countries-field | 6cb3569c44a912ea0d66bfda88b38ec7379f21ce | c6e03f3279839b71de43e68d0b08f25b4f47d43b | refs/heads/master | 2020-12-25T04:38:15.021792 | 2017-01-02T09:51:11 | 2017-01-02T09:51:11 | 77,823,908 | 0 | 1 | null | 2017-01-02T09:48:06 | 2017-01-02T09:48:05 | null | UTF-8 | Python | false | false | 7,421 | py | from __future__ import absolute_import
from django.utils import six
from django.db.models import signals
from django.db.models.fields import Field, BigIntegerField
from django.db.models.fields.subclassing import Creator
from django.db.models.fields.subclassing import SubfieldBase
from .forms import BitFormField
from ... | [
"and@rey.im"
] | and@rey.im |
4baafa4fa1c03ee8eafeece9e23406f3b452d311 | 51b58d762afe24c4019bc0ab496526d0b228e5e2 | /firstpro/manage.py | 55e2f55818963436babde5b07cc382ae040415bd | [] | no_license | maninathsahoo/Myrepo | 66603cc5b7eeb8eda0c82ca7202750a190fe0f94 | 947931696d1ecedb45627188129da4cc57ed12d6 | refs/heads/master | 2020-06-28T23:36:00.471080 | 2019-09-10T19:39:08 | 2019-09-10T19:39:08 | 200,372,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'firstpro.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"noreply@github.com"
] | noreply@github.com |
258c7e7730f7dcfc58404705362466c414aa2af4 | 8b865eca2facf190369df4303fd6550c31614f72 | /project04/bagInterface.py | 49ca757766fdb7a64aa4d786bbe30b5e0f3d4fe9 | [] | no_license | Yamase31/cs112 | 16ba1732441e70065f2aded7542907ccb35e048e | 199c5731b0bcbd475d8a8d2c9429eaebfbc1d180 | refs/heads/main | 2023-06-30T13:34:43.086674 | 2021-08-10T03:14:45 | 2021-08-10T03:14:45 | 394,503,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | """
Author: James Lawson, Harry Pinkerton, Laurie Jones
File: baginterface.py
Speficitactions of the methods for all bag classes. Running this code will
not produce any results, but it shows the headers and docstrings of the methods
that MUST be included or supported in any bag class.
"""
class BagInterface(object):... | [
"noreply@github.com"
] | noreply@github.com |
d454ee79742bbf7b555240e05ae0700d83559c75 | 29fad6273eb43fcbaff7460b2b68fea66d9ebc8c | /custom-vpc/custom_vpc/custom_vpc_stack.py | 99ef9dd2bd53bf2c57edf14bd1ebc1b98829cff7 | [] | no_license | satishbr/cdk-demos | a3b2c7ca32551eb1c0264f8125f2ffc9413d00ff | 14568c885322f561d548de0d1175f3b60ee87df0 | refs/heads/master | 2022-11-10T16:58:38.105403 | 2020-04-15T10:20:19 | 2020-04-15T10:20:19 | 275,331,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from aws_cdk import (
aws_ec2 as ec2,
core
)
class CustomVpcStack(core.Stack):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kwargs)
# The code that defines your stack goes here
# https://docs.aws.amazon.com/cdk/api/latest/py... | [
"13oct08@quantumfoam.uni.cc"
] | 13oct08@quantumfoam.uni.cc |
00f502880899ebc4ff3c56f1b131f1ba2ae7846c | 0e25538b2f24f1bc002b19a61391017c17667d3d | /xsharepoint/win_xspmanagedpath.py | 527691433ba4407838d8a7cd0c78122a6cfd4090 | [] | no_license | trondhindenes/Ansible-Auto-Generated-Modules | 725fae6ba9b0eef00c9fdc21179e2500dfd6725f | efa6ac8cd2b545116f24c1929936eb8cc5c8d337 | refs/heads/master | 2020-04-06T09:21:00.756651 | 2016-10-07T07:08:29 | 2016-10-07T07:08:29 | 36,883,816 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"trond@hindenes.com"
] | trond@hindenes.com |
f1ac09e55fd53c22b9bdfc4b481c8a535d308913 | 8034eb79752f8849bffa1e5995ec3673318b2ebe | /tasks/migrations/0001_initial.py | 9c7cbde427dd361ad93ca0836a6ba57cb68dc606 | [] | no_license | 42musaev/task_manager | 7d6e3176c1c091b2931676b8ace5b16f4fe2be9c | d9eb6cb3b361a7dccaea2a9b7c07b87bf835099c | refs/heads/main | 2023-04-01T21:22:07.738028 | 2021-04-11T16:11:43 | 2021-04-11T16:11:43 | 299,609,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | # Generated by Django 3.2 on 2021-04-10 18:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"42musaev@gmail.com"
] | 42musaev@gmail.com |
87c8fd838556cfb48109a7f23785843cd9897775 | 389ea180312ddec4f3440403a5d4d18056aadccd | /django/django_intro/Great_Number_Game/Great_Number_Game/urls.py | 3c8ce0098606870759f66e34399f21200c7ee29d | [] | no_license | laythirshaud/python_stack | f85ec962ac11b74a8db76ef22d7fdabb0f50dae3 | 629d9edc53a6e4bb5f9deb520c89bcf6d9e00a1d | refs/heads/main | 2023-05-10T19:54:28.456415 | 2021-06-02T10:54:04 | 2021-06-02T10:54:04 | 364,529,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | """Great_Number_Game URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"laythirshaid1998@gmail.com"
] | laythirshaid1998@gmail.com |
10f52e7bdeba40a1dedbf716740e94e15becc8a4 | 0834484e95b8ead3aef2199f0ffb14338cf56418 | /KaraokeCompass/__init__.py | 68b156a68d19db23262b7018ce43b446a30dfb80 | [] | no_license | jmschleicher11/Insight_project | 5db76a0d6a05f693ebb1b5018f764c510ae7ee3c | 4e0b45394853398eeb626f633e7d58511d2f4b31 | refs/heads/master | 2020-03-21T09:58:20.621462 | 2018-06-28T17:01:09 | 2018-06-28T17:01:09 | 138,427,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from flask import Flask
app = Flask(__name__)
from KaraokeCompass import views
| [
"jmschleicher11@gmail.com"
] | jmschleicher11@gmail.com |
9e447e768685afcefa095bdef5de64e2d3daae5b | 7cb1fc36179ceeee488226e0151e900f48fd5960 | /main.py | b331595bc47e6cad5d3458648592419ba2bba578 | [] | no_license | Vijayaraghavan-VR/Poker | 0cf5d6dc028bc14318140e9431c8b165e3520a80 | 8f18e26b104cf31610d4843e7042fd02aa83132c | refs/heads/master | 2022-11-22T07:54:12.205129 | 2020-07-25T09:32:01 | 2020-07-25T09:32:01 | 282,299,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | from poker.card import Card
from poker.deck import Deck
from poker.game_round import GameRound
from poker.hand import Hand
from poker.player import Player
deck = Deck()
cards = Card.create_standard_52_cards()
deck.add_cards(cards)
hand1 = Hand()
hand2 = Hand()
player1 = Player(name = "Vijay",hand = hand1)
player2 =... | [
"59435339+Vijayaraghavan-VR@users.noreply.github.com"
] | 59435339+Vijayaraghavan-VR@users.noreply.github.com |
c9a358ad1b719fc709930d4e77d0e79842255b8d | ff2f79a3c9b38f67692cda635b4cbbd837ee52d6 | /misc-files/project2/program1.py | 90a9a2a7ce0af4788bec4c7d776caafaf436bcdd | [] | no_license | cis241-f20/class-material | 4adc017da49b0b914cbe13621a6eb6834b13c329 | 3b8de44fc78f9d58d43fed9e38b25e73bb52e751 | refs/heads/master | 2023-01-28T11:00:04.975651 | 2020-12-11T16:47:06 | 2020-12-11T16:47:06 | 289,544,071 | 7 | 13 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import argparse
import time
import random
parser = argparse.ArgumentParser()
parser.add_argument("n",type=int)
args = parser.parse_args()
n = args.n
x = random.sample(range(1000), k=n)
y = random.sample(range(1000), k=n)
res = 0
timeavg = 0
ntrials = 20
for i in range(ntrials):
start = time.time()
for i in ra... | [
"carrieer@gvsu.edu"
] | carrieer@gvsu.edu |
84187813982783ed1d30663de5146be4acf7ac64 | 98e4686742146ec557a6c61a83540ca69f27f077 | /classification/Net/ResNetHeatMap/generate_heatmap.py | 399c3b1171a546f4d3636d38bd41260b4485603d | [] | no_license | UpCoder/Secret | b862c91d5229f7ceaa787475e5fc01f349a8cb98 | 15a9b7c50eaf4a5f4fd4856446d51fa4d7917c88 | refs/heads/master | 2021-07-09T19:13:41.816810 | 2017-10-10T04:16:30 | 2017-10-10T04:16:30 | 105,138,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,013 | py | # # -*- coding=utf-8 -*-
# # 根据我们训练好的模型来生成概率图模型
# from tools.image_operations import extract_patchs_return
# import tensorflow as tf
# from net_config import Net_Config as net_config
# from resnet import inference
# import numpy as np
# import sys
# import math
# from PIL import Image
# import os
# MOMENTUM = 0.9
#
# F... | [
"546043882@qq.com"
] | 546043882@qq.com |
662279a514c63703b6ba7f544bf6d8f4549ed982 | a8bf8680239089138a8888a9c7cffde182718eec | /Utils/simulator_utils.py | 66fa6d0af45c427fa480437607b29e172a35e7de | [] | no_license | suryadheeshjith/Epidemic-Simulator-UI | 6ef1a865f40902e3e57ff1544e7d83bf61d55196 | d1ed78065941e811248c4e3eba2e171f85d5e171 | refs/heads/master | 2023-06-03T08:54:35.817148 | 2021-06-20T06:28:35 | 2021-06-20T06:28:35 | 368,614,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,303 | py | from Utils.streamlit_utils import get_progress_UI_list
from Utils.file_utils import files_checker, get_model_from_file, get_policy_from_file, get_file_names_list, get_config_path, get_file_paths
import Simulator.World
import Simulator.vulnerability_detection.Algorithm as Algorithm
import Simulator.ReadFile as ReadFile
... | [
"Surya.dheeshjith@gmail.com"
] | Surya.dheeshjith@gmail.com |
ca9a0b1b724463237918dad331d360b6e2814524 | b834a80f1f57f79991abc3a32359bcc2d8a26eff | /train.py | 7e02934f6e7aa27d21ec3b7640ed9883f4c3d2df | [
"MIT"
] | permissive | dumengnanbuaa/super-structured-lottery-tickets | 3681c98e8f21f9c99ba1977eef1443056bb20873 | caad8b6618831cfde9ba764bfe27ab7564dfda60 | refs/heads/main | 2023-06-26T04:31:46.820336 | 2021-07-28T18:31:29 | 2021-07-28T18:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,868 | py | # coding=utf-8
# Copyright (c) Microsoft. All rights reserved.
import argparse
import json
import os
import random
from datetime import datetime
from pprint import pprint
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader, BatchSampler
from pretrained_models import *
from tensorboardX impo... | [
"cliang73@gatech.edu"
] | cliang73@gatech.edu |
f55c22cf2cdfba0f061061f089dc376bae3c84a0 | 2e637462852d93442c79f0345b5a64135be8962e | /EdwinCheruiyot/count_zeros.py | a4e9f4cd24be3e821b3604197b5ec8d968d19a12 | [] | no_license | EdwinCheruiyot/micropilot-entry-challenge | 488741af299228116aca11eeda3decdb6bdc9e1c | dc6276e627630d259e95caa949988e48c591e04f | refs/heads/main | 2023-03-17T17:32:27.243859 | 2021-03-01T19:05:48 | 2021-03-01T19:05:48 | 343,499,034 | 0 | 0 | null | 2021-03-01T17:23:13 | 2021-03-01T17:23:12 | null | UTF-8 | Python | false | false | 460 | py | def CountZeros(A): # Create a function called CountZero
count=0 # Initialize the count value
for i in A: # Create a for loop to get values in the array
if i == 0: # check if value matches Zero
count+=1 # count the number of times the value occurs
print("Number of times Zero occurs: ",cou... | [
"edukipchirchir@gmail.com"
] | edukipchirchir@gmail.com |
22eb9e75dca526f81c86c89b406f27f2f542edda | 5e3d7d421c40e4912e9e782ab75a63adfbf731f8 | /aoi_keras/load_data.py | 0d625d0aff7aaa3434f6e10a6266dc14db02c3e0 | [] | no_license | jayenliao/DL-AOI | f890daef273874ee151870e2438f29ca3ae74c50 | c303b65bb206b07f5dd69601c04023ea6428a411 | refs/heads/main | 2023-05-06T00:42:21.667035 | 2021-05-27T15:43:02 | 2021-05-27T15:43:02 | 370,878,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import numpy as np
import pandas as pd
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from sklearn.model_selection import train_test_split
def load_with_preprocessing(dataPATH:str, trainDATA:str, label:str, batch_size:int, resize:int, val_size:float, test_size:float, preprocess_hyper:dict, see... | [
"jay.chiehen@gmail.com"
] | jay.chiehen@gmail.com |
efcb8644dbd1e633e20c52441f49fbfc6e02e2c3 | 6b12876a501b51ec10b062db8d26227188903387 | /settings.py | b345abddd5c36d0624eb287b2c97bb2fbf3d6b1e | [] | no_license | jivid/django-custom-user | fed9cb2fe65b8a9d1ad7752e60af4d7ae927907f | 7aafe1dd954c0dc187d6413e0382c0c168a854a0 | refs/heads/master | 2021-01-10T09:10:20.496803 | 2013-04-23T20:40:46 | 2013-04-23T20:40:46 | 8,559,768 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | # Django settings for project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
# Add this line and specify where your new custom model is created
AUTH_USER_MODEL = 'custom-user.models.CustomUser'
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'dja... | [
"drajkuma1@gmail.com"
] | drajkuma1@gmail.com |
2407745c75d7ca85e8683e02f858075f868b447a | 9b639327ffb1ee18e88904bc2e158d55205acc0b | /plot_multifreq_lic.py | cc2727d74c10908c58cfef293ca806223c30a714 | [] | no_license | guanyilun/gc_plots | 6aebfef07013a2d7feb3975a7b76cf3dfc5fbd22 | f4c1c68a3364fe77f949c6121c38448374314c9e | refs/heads/master | 2023-06-25T06:04:17.530867 | 2021-07-19T21:55:17 | 2021-07-19T21:55:17 | 339,585,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | """This script produces LIC plot based on multifrequency temperature
plot
"""
import argparse, os, os.path as op
import numpy as np
import matplotlib.pyplot as plt
from pixell import enmap, enplot, utils as u
from matplotlib import colors
from common import *
import lib
import plotstyle
# parser defined in common
p... | [
"zoom.aaron@gmail.com"
] | zoom.aaron@gmail.com |
0681e4919822450a149df6a9ebf09f9bd101b37f | 2d837bca6989f61996e4e8e96635d722c97241c3 | /core/gtk_table.py | eaae443c2d7d162408c56f74d7190bb125d20de0 | [] | no_license | gsy/gmusic | 1485e11f4d63241f012b9e2ee27bbdb1ef563ce5 | 277e70c83a0ffcc00f2fc93933668dc16add11a8 | refs/heads/master | 2020-03-26T20:48:54.145376 | 2013-05-03T07:28:37 | 2013-05-03T07:28:37 | 9,724,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | #!/usr/bin/env python
# -*- coding: utf-8
import pygtk
pygtk.require('2.0')
import gtk
class albumViewer:
def __init__(self):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.connect("destroy", lambda w:gtk.main_quit())
self.table = gtk.Table(1, 2, False)
self.table.set_ro... | [
"gtcxg@hotmail.com"
] | gtcxg@hotmail.com |
6a781309d6f1bd975c43115c9b95423831a2d5c0 | 9a3c7972c4b169966ab9c9a0d4f5548cd477b2a7 | /tests/test_package.py | ffbdab75b53662660267a42babf0656ce553c0c2 | [
"MIT"
] | permissive | Seondong/python | c5283ce062c44d863b642ca2f0908d2cc3c4ba92 | b738bca1f9583590c0b9060d1146542443cde6f9 | refs/heads/master | 2023-03-17T13:07:38.463169 | 2020-03-06T05:54:47 | 2020-03-06T05:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | from typing import List, Iterator
import pytest
@pytest.mark.parametrize('black', ['y', 'n'])
@pytest.mark.parametrize('mypy', ['do not use', 'beginner', 'expert'])
@pytest.mark.parametrize('requirements', ['requirements-dev.txt'])
def test_requirements_include_specifiers(
cookies, context, black, mypy, requirem... | [
"wintermy201@gmail.com"
] | wintermy201@gmail.com |
009894d1b984df1f7ce0e0232ce424428a125574 | affb707a1eb67ca3d142214f42df568a703d17bb | /tests/fast_tests/test_fcnet.py | 6615dc8800213bc7490c9f47a5873f67fca334ea | [
"MIT"
] | permissive | SHITIANYU-hue/h-baselines | a8fc075af375aea64294b6f240020acb80135868 | 6d7ad294aca69d0cfe69904fc8f7390eab486a9d | refs/heads/master | 2022-06-25T01:04:00.607765 | 2020-05-04T10:20:32 | 2020-05-04T10:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,154 | py | """Tests for the policies in the hbaselines/fcnet subdirectory."""
import unittest
import numpy as np
import tensorflow as tf
from gym.spaces import Box
from hbaselines.utils.tf_util import get_trainable_vars
from hbaselines.fcnet.td3 import FeedForwardPolicy as TD3FeedForwardPolicy
from hbaselines.fcnet.sac import Fe... | [
"noreply@github.com"
] | noreply@github.com |
23eefae887f9a6f32116c9f5960e16953f901faf | e76969c2105dd323895be6b1a48dd9b345d57124 | /Googletest.py | 34a3fde75b10802ba2a2737bb6a1ac076eba4676 | [] | no_license | Lazarus9000/WashingMachineMonitor | b7331235a4adbdc99f6ce687a675d5424e81b5cf | f325624930d7065feeb4c3b61ef5ba7a29a40c99 | refs/heads/master | 2020-04-06T04:59:50.984011 | 2017-08-01T20:23:16 | 2017-08-01T20:23:16 | 56,428,592 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | #!/usr/bin/env python
import json
import sys
import time
import gspread
from oauth2client.client import SignedJwtAssertionCredentials
import math
time.sleep(1)
GDOCS_OAUTH_JSON = 'C:\Users\jegha\Documents\GitHub\WashingMachineMonitor\MyProject-07f7568ae491.json'
status = "off"
# Google Docs spreadsheet name... | [
"jegharen@gmail.com"
] | jegharen@gmail.com |
de96aa4bb2a93049c7f693c1bdc643001403ed58 | 14619749da2c3efe1601f04fcf1411e094a0ea9a | /week3_greedy_algorithms/4_maximum_advertisement_revenue/dot_product.py | ec5ae3b67c9ce14146cc9ab7559741c32886f6e8 | [] | no_license | data-solver/Algorithmic_toolbox | ce50c4d7a68ccc9f668a6df7f2f173527957d4c0 | 8f5f4ca2c70d4e3eb50d800c6148ff1f7552545a | refs/heads/main | 2023-03-27T08:10:38.516147 | 2021-03-23T21:45:54 | 2021-03-23T21:45:54 | 340,983,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #Uses python3
import sys
def max_dot_product(a, b):
#write your code here
a.sort()
b.sort()
result = sum([a[i] * b[i] for i in range(len(a))])
# res = 0
# for i in range(len(a)):
# res += a[i] * b[i]
return result
if __name__ == '__main__':
input = sys.stdin.read()
data = lis... | [
"kumargd@hotmail.co.uk"
] | kumargd@hotmail.co.uk |
e79fc291d0bce48d70d630b7c7ce7cf186c6cd4f | e84c6288ffaa3520675ebf8fe527c83d10ee3c45 | /main.py | f2a97da312255dd3b215507ace4ba37f21a49146 | [] | no_license | Foxoon/Automous-Car | 5f9dce22f9d20d6cd5d39c96467eb385a2904c47 | b95044bceae30cfba91bddec8c6a91ff711769f8 | refs/heads/master | 2020-12-21T05:56:33.049570 | 2020-01-26T15:17:46 | 2020-01-26T15:17:46 | 236,329,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,493 | py | import cv2
import numpy as np
def imgproc(img):
grey = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
kernel = 5
#gaussian filter to remove noises
smooth = cv2.GaussianBlur(grey, (kernel, kernel), 0)
canny = cv2.Canny(smooth, 50, 150)
return canny
#region of interest
def roi(canny):
height = cann... | [
"fabien.co93@gmail.com"
] | fabien.co93@gmail.com |
fbb7a48e3703ec702f818b04a3e99eb3b10645ee | af4fe1a88c8551089ed83502fe81a804d8e6e275 | /wallet_server.py | 6ffee2440b4332b8b0252c28318ca51d26912ab0 | [] | no_license | snjssk/blockchain-lesson | ba918194d42cbd9182f7a47074647d36788db733 | 0eb26b99bede5da1fc4ada474e4e758589de2106 | refs/heads/master | 2023-01-06T15:57:09.447836 | 2020-10-30T14:36:58 | 2020-10-30T14:36:58 | 298,605,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | from flask import Flask
from flask import jsonify
from flask import render_template
import wallet
app = Flask(__name__, template_folder='./templates')
# top
@app.route('/')
def index():
return render_template('./index.html')
# postで返す
@app.route('/wallet', methods=['POST'])
def create_wallet():
my_wallet = ... | [
"snjssk0403@gmail.com"
] | snjssk0403@gmail.com |
b30521c581db98eaee926940ca9665a284de4175 | c495ba3f80bcf1aa25b02099f72421248ed4b4ed | /djangoecommerce/settings.py | 66a17a8aa334c2899c23a742931a3084dcb197b1 | [] | no_license | gutonovaes19/djangoecommerce | b1d919f1d239651308f16e07a568f55b479cd62b | 71d1e87eb5b90a3a5c7668f82ed57dc6dcf29ddf | refs/heads/master | 2020-03-24T21:53:59.034954 | 2019-01-10T19:09:34 | 2019-01-10T19:09:34 | 143,056,231 | 0 | 0 | null | 2018-12-11T17:08:35 | 2018-07-31T19:07:57 | Python | UTF-8 | Python | false | false | 3,700 | py | """
Django settings for djangoecommerce project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impo... | [
"gustavo@optionsinformatica.com.br"
] | gustavo@optionsinformatica.com.br |
6a61f6445c74967d9422d6b4739e394a79e11568 | 6eae4a2f7326238820bca29f9a2d99fb054f91e4 | /src/blog/settings.py | 5348a0f815fe878e1bf8eb108d2fa5a1e15a2eb0 | [
"MIT"
] | permissive | jach58/api-blog | 88e69f80378be4ecfc110aa54363556eb3053c78 | 5e668289856669537f2d6dc7236ec4f1e566e765 | refs/heads/master | 2021-04-03T09:47:39.386947 | 2018-03-11T04:58:56 | 2018-03-11T04:58:56 | 124,724,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Buil... | [
"jach58@hotmail.com"
] | jach58@hotmail.com |
17ca80818c4e98d775bd47988532ab10c5e05de8 | c8d11e5b7625b856ed42fe7cdc0c39843578f014 | /napari/components/camera.py | 40d20752a3f940d223eb9155dca9fd022d05af49 | [
"BSD-3-Clause"
] | permissive | carlosan1708/napari | 8dba8aebb5a3dd65939e0a576efa18210759180a | f49e81a15c024a0a67124907f5be70e9185e5eaa | refs/heads/master | 2023-04-23T02:42:40.349064 | 2021-04-29T12:13:23 | 2021-04-29T12:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | from typing import Tuple
from pydantic import validator
from ..utils.events import EventedModel
from ..utils.misc import ensure_n_tuple
class Camera(EventedModel):
"""Camera object modeling position and view of the camera.
Attributes
----------
center : 3-tuple
Center of the camera. In 2D v... | [
"noreply@github.com"
] | noreply@github.com |
6bedba12f4accc756f0ab19d845f490998a07f3c | 21c6a118d3227411dc20ea94f4c8884f26e21f62 | /lab1/dp_autograde.py | c34618a0c41534a9e5728be94cbd6d6d2dea84fa | [] | no_license | lennertjansen/rl | 1c1bf65948e054f14ccd1e582ead960dc9ae4e18 | 33114d326ab37740e62d644a6eed4e99ec2e50b4 | refs/heads/master | 2022-12-20T03:55:48.306760 | 2020-09-26T10:30:55 | 2020-09-26T10:30:55 | 291,977,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,453 | py | import numpy as np
from collections import defaultdict
def policy_eval_v(policy, env, discount_factor=1.0, theta=0.00001):
"""
Evaluate a policy given an environment and a full description of the environment's dynamics.
Args:
policy: [S, A] shaped matrix representing the policy.
env: O... | [
"lennertjansen95@gmail.com"
] | lennertjansen95@gmail.com |
1637d259f45d4f576399785540d3276be1f6a314 | 733b89b5dca6ae04d701eb8d55e2888fd6a0d07f | /pyAH/atlantis/parsers/ordersparser.py | 2b84c72d62cf925b61f2013ddf73c37093acc030 | [] | no_license | sharcashmo/pyAH | 7c2e7b1e52241b063b5ca23a040c961daf4a85df | a0fc744cd53d10bf650044d29b85cf783e5ffb02 | refs/heads/master | 2020-04-06T20:51:37.740566 | 2014-02-03T00:25:26 | 2014-02-03T00:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,408 | py | """This module implements all classes needed to parse order files.
It defines a :class:`OrdersParser` which will parse report lines and
will call a :class:`OrdersConsumer` with parser data. Classes willing
to consume data parser by :class:`OrdersParser` will have to implement
:class:`OrdersConsumer` interface.
"""
i... | [
"david.lozano.ruiz@gmail.com"
] | david.lozano.ruiz@gmail.com |
aef41cc86c10a6c4437c13a494531c5e4a876040 | ddb2e6a2128afc3a3308ce9d57365e8251319d6b | /test/passiveIncome/test_calculator.py | 6d39779d033508f3e38fe4b5a3c04daff4b0cca4 | [
"Apache-2.0"
] | permissive | simrit1/TenBagger | f8a6f2fda076710d32e62fc84c7cdd197490bc84 | 28f858424e2cbedba188420096c78fdd21123ab1 | refs/heads/main | 2023-06-18T08:39:57.849541 | 2021-07-21T19:16:57 | 2021-07-21T19:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import pandas as pd
from tenbagger.src.passiveIncome.calculator import PassiveIncomeCalculator
class TestCalculator:
def setup(self):
pd.set_option('expand_frame_repr', False)
portfolio = {'aapl': 50, 'eth-usd': 10}
self.calc = PassiveIncomeCalculator(port=portfolio)
def test_calcula... | [
"aram.koorn@icloud.com"
] | aram.koorn@icloud.com |
2f1d7b88f6a05e0e83c72df57ddc20e8d9c25a9a | c38791dd3971115ac44663c3c28725149d695b1f | /fingers/l4-p4.py | 0da38b9140ee6e509d3a69cdd8ae9f898871c77d | [
"Giftware"
] | permissive | eshilts/intro-to-cs-6.00x | 3cde1c7a8be0c7b3bc5798a6bd05653201567722 | 67d7faebbbf2cca50911ead04e21f0396eb83f0e | refs/heads/master | 2020-06-01T18:29:27.016031 | 2013-04-30T01:20:09 | 2013-04-30T01:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def clip(lo, x, hi):
'''
Takes in three numbers and returns a value based on the value of x.
Returns:
- lo, when x < lo
- hi, when x > hi
- x, otherwise
'''
return min(max(lo, x), hi)
print clip(0, 1, 2)
print clip(1, 0, 2)
print clip(0, 2, 1)
| [
"erik.shilts@opower.com"
] | erik.shilts@opower.com |
1143dbfc4bbaf943fbea5864450a86c3c495c2dd | 3246396c4b9e237ff39526556116eef9723bc3b2 | /packages/ml_api/tests/test_validation.py | 5439258d6a09821ec3b1b06883807cb36e163673 | [
"BSD-3-Clause"
] | permissive | amreshd04/model-build-deploy-CI-CD-using-CircleCI-to-EC2 | dd92a70b68e1f0bf1c2362f437da7d7b4e0d89b7 | 9ae69b320de79cf6b98445182df5db51b90ef491 | refs/heads/master | 2023-04-01T06:36:17.574673 | 2021-04-09T04:03:35 | 2021-04-09T04:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import sys,os
import json
from classification_model.config import config
from classification_model.processing.data_management import load_dataset
def test_prediction_endpoint(flask_test_client):
# Given
test_data = load_dataset(file_name=config.TESTING_DATA_FILE)
test_data[config.DISCRETE_SET1_FEATURE... | [
"amreshd04@gmail.com"
] | amreshd04@gmail.com |
9e552b90db411629a937b2b769706746ab24af6e | df57fedeb3322418ea4f29155b8904a81a62880a | /Python/Cracking the Coding Interview/Chapter 5_Bit Manipulation/Bit.py | 7d77146b91b65c9bea1264ef229d2c81fc938003 | [
"MIT"
] | permissive | honghaoz/DataStructure-Algorithm | 72c8cf49e8c7a00ee93cc092587c683c4446aeea | b8895b4e05a510e2a5d13d744c084a768f042d0c | refs/heads/master | 2022-11-10T04:54:06.839978 | 2020-06-22T21:02:53 | 2020-06-22T21:02:53 | 27,983,821 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # Bit manipulation
def intToBit(number):
return bin(int(number)).replace("0b", "")
# return "{0:b}".format(int(number))
def intToHex(number):
return hex(int(number)).replace("0x", "")
def bitToInt(bitString):
return int(bitString, 2)
def hexToInt(hexString):
return int(hexString, 16)
def getBit(number, index)... | [
"zhh358@gmail.com"
] | zhh358@gmail.com |
f0e2e470c54f57e7b30b5317f87d5440293d85f0 | d8ed9a10e68f12389fab1481bd977e792a7d86dc | /scan.py | ae4ff45c7b1707e2d3dc4489a5cfc0fb39bc0945 | [
"MIT"
] | permissive | jul1ans1k0ra/portScanner | ba82ee046df882278dc2040403603a29fda7fdf5 | 39a2d89a7a38c77ac60f8539ec116ff73d5c2fce | refs/heads/master | 2020-03-19T02:06:39.790400 | 2018-05-31T20:35:49 | 2018-05-31T20:35:49 | 135,583,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | import socket
import sys
import os
import netifaces as ni
import re
ipList=[]
targetList=[]
vulCheck="n"
filename=str()
def getIp(interface):
ips=[]
fip = ni.ifaddresses(interface)
keys = fip.keys()
for key in keys:
addr = str(fip.get(key))
addr = re.findall("[... | [
"julian.sikora.github@gmail.com"
] | julian.sikora.github@gmail.com |
01ba3a0b28815a34ea06381fb807a80a6af3a14f | 614d870e0e3a1b93574db8446c6d979874b11968 | /mysite/venv/Scripts/django-admin.py | f9a52d33c41b0c8ac29c2af3a1b6a2702e8887a3 | [] | no_license | Khumendra/blog_project | 7dfe0c90ba6b649962067c89c14c1a212bb8d182 | 8cf556c4b0bc6afc67c7c32db32731743ac2cf94 | refs/heads/master | 2020-08-04T20:50:29.301904 | 2019-10-02T07:13:40 | 2019-10-02T07:13:40 | 212,272,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!C:\Users\Makku\Desktop\djangopro\jose portilla udemy\projects\joseportilla_pro[v1.10]\mysite\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"khumendrasinha78@gmail.com"
] | khumendrasinha78@gmail.com |
c80963a806f73a4d882b8bc0e08651b0500c4e82 | 167895386a96eac93d2eb48d15f33ebe20e5af23 | /splitter.py | 96506d28ba9f345276ee242a4bfd383450ccadc9 | [] | no_license | stefanocostantini/music | 23f802d7aeb72bbadc459e45443a4641d247535a | 3c1c7fd0b989511acc77dad1f96258538fbf79de | refs/heads/master | 2020-04-23T16:50:21.726005 | 2019-05-06T17:54:02 | 2019-05-06T17:54:02 | 171,311,683 | 0 | 0 | null | 2019-02-22T15:42:34 | 2019-02-18T15:49:48 | Jupyter Notebook | UTF-8 | Python | false | false | 803 | py | # must install ffmpeg for this to work (e.g. sudo apt-get install ffmpeg)
import os
from pydub import AudioSegment
from pydub.utils import make_chunks
chunk_length_ms = 2000 # pydub calculates in millisecs
load_path = "/data/music/musicnet/data/"
save_path = "/data/music/musicnet/data_chunks/"
files = os.listdir(load_... | [
"sc@stefano-mac.local"
] | sc@stefano-mac.local |
3d6542e012545d4687858a672c4453cebcf3daa9 | 4a0169d915f765decad959f4b24101c8f8780126 | /04 motor/SG90/sg90.py | d97f37d5a15983249b3da5c0d642ebe546ceaf13 | [] | no_license | insightbook/RaspberryPi-For-Makers | ec5fac8a1d7795e0f025b19552af1fe5348edc86 | 09427075110775c3b464bcc50457f7447c688381 | refs/heads/master | 2021-01-22T23:10:25.582648 | 2017-05-09T04:10:45 | 2017-05-09T04:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#If this code works, it was written by Seunghyun Lee(www.bluebaynetworks.co.kr).
#If not, I don't know who wrote it
import RPi.GPIO as GPIO
import sys
import time
# 하드웨어 PWM은 18번 핀을 이용해 제어한다.
pin = 18
delta = -0.4
# my_로 시작하는 함수는 표준 SG90모터가 아닌 필자의 모터에 적용되는 값들임
# SG90 모터를... | [
"noreply@github.com"
] | noreply@github.com |
62f82159f282017fd8e1415c0dee96f51eeff83b | a88c7874bb4197da649fc913937ad54476088fe8 | /repos/system_upgrade/el7toel8/actors/selinux/selinuxcontentscanner/actor.py | 366c34c1d67ee481cac2b8c7cd47f20f4a6d5024 | [
"Apache-2.0"
] | permissive | tiran/leapp-repository | 2ae72173fa6309d7ad53d4765e054d62604c6605 | d6ac29cdc3abec639cbff391605498c6f83af863 | refs/heads/master | 2021-05-20T23:18:58.337231 | 2020-03-10T05:00:49 | 2020-04-01T14:28:49 | 252,450,059 | 0 | 0 | Apache-2.0 | 2020-04-02T12:33:04 | 2020-04-02T12:33:04 | null | UTF-8 | Python | false | false | 1,873 | py | from leapp.actors import Actor
from leapp.models import SELinuxModules, SELinuxCustom, SELinuxFacts, SELinuxRequestRPMs, RpmTransactionTasks
from leapp.tags import FactsPhaseTag, IPUWorkflowTag
from leapp.libraries.actor import library
class SELinuxContentScanner(Actor):
'''
Scan the system for any SELinux cu... | [
"inavasilevskaya@gmail.com"
] | inavasilevskaya@gmail.com |
6f1cf7411ada984eb51f3dd403760795e61f75b1 | bf3f9d4859865af1b0cced7bd2b2d0ddcefaa19e | /data_scripts/MakeDataSet_FineTexture300.py | 6472c8a4b90b659e0a8f18e13493bcbc7706e687 | [] | no_license | laomao0/EDVR_4K_HDR | ea62082fac710333850b80929e508ece84572b18 | e08ce2da1e4507f352bf79b9e61e345a02b1b148 | refs/heads/master | 2020-09-20T08:02:27.241532 | 2019-11-29T13:28:44 | 2019-11-29T13:28:44 | 224,417,496 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,221 | py | ####
# this is to make a dataset, including training, validation and test set for our Deep Learning model for Frame INterpolation
#
# Generally, i decided to manage the dataset using TFRecord due to its full io read/write support for Tensorflow.
#
# And since we have to use the videos as a source for the model, the py... | [
"xyz18@gqxx-01-123.cm.cluster"
] | xyz18@gqxx-01-123.cm.cluster |
7d3b0358b02431cb03dbd79b5b445f66d3ffe27c | 8e6e70f3c6e5aed96960a6de8983e72eafae1862 | /wheelcms_valve/tests/conftest.py | 5591a16354335efcbb43f8c77d1a730b58f56e24 | [] | no_license | wheelcms/wheelcms_valve | c7988c2fe89f85e978272ed319e7057553dd24e9 | 8ea19cb8eb0081857b120c0f9bf55c128ee5d471 | refs/heads/master | 2021-01-19T08:01:43.063297 | 2015-04-04T18:28:20 | 2015-04-04T18:28:20 | 9,416,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from twotest.fixtures import client, django_client
from wheelcms_axle.tests.fixtures import root, localtyperegistry, localtemplateregistry
| [
"github@in.m3r.nl"
] | github@in.m3r.nl |
3d83d809827e773663de094cbba319678dc088f5 | a7db09b7681e8050e832da8198afde3cbff6da0e | /smap/tests.py | df277b08384afdcc2ed27fbb2b29a2d07740b53e | [
"MIT"
] | permissive | HakoCra/smap | 0146b0b2da7c9d06423d3d49dec22b4b4138576f | 88a6265cbb4777e6d1a032c4c792187debcaf41f | refs/heads/master | 2021-01-11T22:03:07.376411 | 2017-08-29T16:48:43 | 2017-08-29T16:48:43 | 78,906,682 | 0 | 1 | null | 2017-02-19T04:56:08 | 2017-01-14T02:54:02 | Python | UTF-8 | Python | false | false | 12,317 | py | import json
from django.test import TestCase, Client
from django.core.urlresolvers import reverse
from .models import Tag, Sumari
class Test(TestCase):
def create_data(self, data):
for sumari in data:
message = sumari["message"]
name = sumari["name"]
lat = sumari["lat... | [
"b1015062@fun.ac.jp"
] | b1015062@fun.ac.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.