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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95de5df7a22b6a56135887f66ed343865118bf9f | ea2b40a2b2209db1c363833e33d77086e1a4b023 | /tests/robust/test_min_param_perturbation.py | aeed86f73b1fcb5e15fcf33cf1dd469ca4ea4944 | [
"BSD-3-Clause"
] | permissive | kopalgarg/captum | 3ecb8de09c2a0e0efa487c67638abb0bb7870d1f | 67a3ddcb627f008cf0c23df7b10bc50d75324efe | refs/heads/master | 2023-06-15T18:00:54.449011 | 2021-07-04T21:45:58 | 2021-07-04T21:46:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,092 | py | #!/usr/bin/env python3
from typing import List
import torch
from torch import Tensor
from captum.robust import MinParamPerturbation
from tests.helpers.basic import BaseTest, assertTensorAlmostEqual
from tests.helpers.basic_models import BasicModel, BasicModel_MultiLayer
def inp_subtract(inp: Tensor, ind: int = 0, a... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2a98d0c0f56610225ef63b5e6d52e8c33a7a9ff0 | 9ccde1fd86b776c2cd2fb3eb7137469a1fa9612b | /classifiers.py | e52669df011f6c386f6168204a337f34dee2a605 | [] | no_license | saumil2525/YelpReview-SentimentAnalysis | 92170cc2b0bded7647a316d46a630dc7f8fd2750 | ae0a9a60b9bb85ebcb1453b1a31a9e5648655f04 | refs/heads/master | 2023-01-23T18:51:47.005744 | 2020-12-03T09:07:14 | 2020-12-03T09:07:14 | 310,023,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,261 | py | from sklearn.tree import ExtraTreeClassifier
from lightgbm import LGBMClassifier
from xgboost import XGBClassifier
from sklearn.neural_network import MLPClassifier
from sklearn.gaussian_process import GaussianProcessClassifier
from sklearn.preprocessing import StandardScaler, MaxAbsScaler, MinMaxScaler, RobustScaler
fr... | [
"saumil2525@gmail.com"
] | saumil2525@gmail.com |
046a5daacc1ebb555c681cadeea783f0a6718797 | e9fd251edc0ecfb4ab93fc77d5e9dabb0f875e92 | /foodproject/food/ecommerceproject/cart/models.py | 3502ed1d41c71e9df5535990e25d3857af55b2ea | [] | no_license | sadheeda/avodhafoodhub | f329f5baf74692982b1ae830068c2c43bc3ed6d6 | c8d7b44647b77ce750d9f03914ac8790b34ed12c | refs/heads/master | 2023-06-25T22:04:34.736851 | 2021-07-25T14:32:21 | 2021-07-25T14:32:21 | 389,365,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from django.db import models
from flipcart.models import Product
# Create your models here.
class Cart(models.Model):
cart_id=models.CharField(max_length=250,blank=True)
date_added=models.DateField(auto_now_add=True)
class Meta:
db_table='Cart'
ordering=['date_added']
def __str__(self):
... | [
"sadheedha5656@gmail.com"
] | sadheedha5656@gmail.com |
277d57620d6cfdbe8c300d6504c4813820d3a9d5 | 220d1afe1b0c4a54003cb22fe27b96adcbd2b84e | /manage.py | 7807b91202e69042ca509cb4a9ce9eebc53ef894 | [] | no_license | kingkaki/Flask-blog | a46e36bcc921f0b882baabd2ac26e40ae3b22e19 | eddd8046c217caea9755796aa16e822af6342eb8 | refs/heads/master | 2020-03-20T21:10:55.334205 | 2018-06-21T08:09:58 | 2018-06-21T08:09:58 | 137,727,486 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
# @Author: King kaki
# @Date: 2018-06-15 09:52:52
# @Last Modified by: King kaki
# @Last Modified time: 2018-06-15 15:34:43
from app import app
if __name__ == '__main__':
app.run() | [
"917536172@qq.com"
] | 917536172@qq.com |
4dbf33b66dd5c093f9d4fa6303a6ca3c82d06327 | 79e3e9a26fdf02b42f5c5b4fb5bbd15d5bf789ef | /meals/planner/migrations/0007_auto_20200426_1026.py | ad7c3d0d53d1f5653c9ef9089878b1ef2e0680c1 | [] | no_license | njdelwiche/meal_planner | 2d1676644ead0ab6188d1b286daf4d2dc9899c80 | a60fba5a16c9e574350aa39a93bf31b0ee0f46d5 | refs/heads/master | 2022-12-07T04:24:24.865625 | 2020-09-09T23:25:29 | 2020-09-09T23:25:29 | 255,720,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # Generated by Django 3.0.3 on 2020-04-26 14:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('planner', '0006_report'),
]
operations = [
migrations.CreateModel(
name='Recipe',
fields=[
('id', mo... | [
"nodelwiche@gmail.com"
] | nodelwiche@gmail.com |
8853940a473c8552086a38fd3b582f4af37095c7 | 7604c6e585983f50864abf41b4895dbc7f581814 | /338-counting-bits.py | 99c3bfe7f7a88efae99eb3b8196fb14b51babf2d | [] | no_license | Khranovskiy/leetcode-sln | defd0f24ade9978e42023763ede84b9853e0b424 | f5d0a0b6198e4550ba264f487fb16fdebc4758c5 | refs/heads/master | 2021-09-25T04:42:54.383451 | 2021-09-19T00:44:36 | 2021-09-19T00:44:36 | 252,555,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | def countBits(self, n: int) -> List[int]:
ans = [0] * (n+1)
ans[0] = 0
for i in range(1, n + 1):
ans[i] = ans[i >> 1] + i % 2
return ans
| [
"xronosd@gmail.com"
] | xronosd@gmail.com |
9f4cc58d30a1197d42107f84dd900010d39902a4 | 7dea8668ea3bbe6afd37f54ee2e53bde2a13e08f | /.PyCharmCE2017.2/system/python_stubs/-1247972723/_hashlib.py | 13a1d4fc98853cd3b00d9c14eb2a1440eeb89fcc | [] | no_license | andrei1887/ubuntu | ccc149a64ad305944ba2741d87487e67c6c1ad80 | 6941309f6a782bd38989f6c13387a271b63ebb1a | refs/heads/master | 2021-07-24T09:38:53.242877 | 2017-11-05T13:38:05 | 2017-11-05T13:38:05 | 109,580,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | # encoding: utf-8
# module _hashlib
# from /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
# by generator 1.145
# no doc
# no imports
# functions
def new(*args, **kwargs): # real signature unknown
"""
Return a new hash object using the named algorithm.
An optional string argument may be provid... | [
"andrei@naverisk.com"
] | andrei@naverisk.com |
c305757938c86864f34ea4f70d6278821b22f60d | 2049758e02fa5d238f48a8a01720362f5afc0f1a | /docs/code/pyspark-rdd-broadcast.py | 4b85538ad0f46612c1731242869171a5aec5b2e3 | [] | no_license | arita37/spark | aaa1f7faf08d54582610cf7cd78e2c9063325952 | 30f81283d312e31a94cc79b0f4ce514597d0ed69 | refs/heads/main | 2023-01-04T18:11:39.741293 | 2020-11-03T02:14:18 | 2020-11-03T02:14:18 | 309,542,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # -*- coding: utf-8 -*-
'''
Created on Sat Jan 11 19:38:27 2020
@author: sparkbyexamples.com
'''
import pyspark
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('SparkByExamples.com').getOrCreate()
states = {"NY":"New York", "CA":"California", "FL":"Florida"}
broadcastStates = ... | [
"noreply@github.com"
] | noreply@github.com |
93b3f58fa9d8f121e2b58236a53a8e500cb522fa | 280c756726e13abeca4ee378ce5945c2239b596a | /algorithms/warmup/9-birthday-cake-candles.py | bf20a5c0dc5fe79360c84e6a45ad433068f7a776 | [] | no_license | dgamidov/hackerrank | 32a6ad6ead6695f0c72a38b6e0796994de4f9301 | c805c45b3573216bf5608c27a8eeddedde5bed2c | refs/heads/master | 2020-06-24T15:04:52.979312 | 2019-08-30T13:14:56 | 2019-08-30T13:14:56 | 198,995,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/env python3
def birthdayCakeCandles(ar):
age = max(ar)
count = 0
for item in ar:
if item == age:
count += 1
return count
arr = [3, 2, 1, 3]
birthdayCakeCandles(arr)
| [
"dgamidov@gmail.com"
] | dgamidov@gmail.com |
a4cb35c944d195798b49faf28d70517f24032b39 | 257dca672ec6f57d63ab2f603c82b9e34c623ace | /experiment/fields.py | 039d2d084534e3645ddd7d73004435e7510855c4 | [] | no_license | keryil/leaparticulatorjs | df59f64789d382641a229f6a8d2556bfe5d61603 | 5d0630b272ce4ca489731256c61eecd4af7863ff | refs/heads/master | 2021-01-01T05:14:27.547376 | 2016-05-20T22:29:30 | 2016-05-20T22:29:30 | 59,297,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from django.db import models
from .widgets import FilePathFieldBrowser
class UploadedMeaningField(models.ImageField):
pass
class FileWithPreviewField(models.FilePathField):
def formfield(self, **kwargs):
kwargs['widget'] = FilePathFieldBrowser
return super(FileWithPreviewField, self).formfield... | [
"keryilmaz@gmail.com"
] | keryilmaz@gmail.com |
17ab9fad59ece529f0f67bb4d297210e473db480 | c2f92d75d235ff5ed7b213c02c4a0657545ba02f | /newchama_web/2/newchama/repository/migrations/0020_auto__add_field_keyword_is_delete.py | 14c0317f746a4890034163cc993cdb2a38deb7d8 | [] | no_license | cash2one/tstpthon | fab6112691eb15a8a26bd168af3f179913e0c4e0 | fc5c42c024065c7b42bea2b9de1e3874a794a30d | refs/heads/master | 2021-01-20T01:52:06.519021 | 2017-04-14T09:50:55 | 2017-04-14T09:50:55 | 89,338,193 | 0 | 1 | null | 2017-04-25T08:46:06 | 2017-04-25T08:46:06 | null | UTF-8 | Python | false | false | 10,751 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Keyword.is_delete'
db.add_column('repository_keyword', 'i... | [
"yxlz_0910@163.com"
] | yxlz_0910@163.com |
96b0c1ba4f0c656125bb5c5f358ef21a415366b3 | 4a18a4ebf8c21c10b42b443d5ff52428a710ac7c | /Documents/Design/Python/Online_0.0.1/0.0.1/Config/server.py | 6f8f51e9f7e176bebbf122b293f2dcb8abc03414 | [] | no_license | lewis-jg-lan/my_tools | 28305c290d9d726501e4bac88a97c0018109bd30 | c1dff00eb0b51923281afe2a1b2de7a5f4997819 | refs/heads/master | 2021-09-10T20:05:08.852372 | 2018-04-01T08:58:40 | 2018-04-01T08:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Time : 2018/3/29下午1:57
# @Author : Saseny Zhou
# @Site :
# @File : server.py
# @Software : PyCharm
serviceDict = {
'DRUID': {
'service': 'analysis/service/v1/metrics',
'method': 'POST',
'samplePayload': """{"toDate": "2017-12-... | [
"sasenyzhou@zhouzuozhengdeMacBook-Pro.local"
] | sasenyzhou@zhouzuozhengdeMacBook-Pro.local |
6e76423c155ccab25bed5f4ffa05b8a19b6e7837 | 2951edcfb42fdb55ed24c43b646996be9b402405 | /linear.py | 2fad4ff072119e0bcdd4e53e279e62436678dbb2 | [] | no_license | jknific123/Linear-regression | 9ddcdf6c5a79b0dea0b0bbe009acf6882244aa7c | 813ccf1a7770ac079860fd53bde14460e4e8cfbf | refs/heads/master | 2023-08-12T16:12:20.500019 | 2021-09-30T02:07:15 | 2021-09-30T02:07:15 | 411,883,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,119 | py | from collections import defaultdict
import numpy
from scipy.optimize import fmin_l_bfgs_b
import scipy
import scipy.sparse
import scipy.sparse as sp
import numpy as np
def append_ones(X):
if sp.issparse(X):
return sp.hstack((np.ones((X.shape[0], 1)), X)).tocsr()
else:
return np.hstack((np.one... | [
"jk2922@student.uni-lj.si"
] | jk2922@student.uni-lj.si |
f3c2cb662ed638d0c09895b30866e0288f8678a7 | 8dc1911b368a002c4ae208934f034fc223bf4eee | /TP_POLOTIC/urls.py | 761e47990920ea9407f659cb86865d55b184cb6f | [] | no_license | Hernan-Monsalvo/POLOTIC-DJANGO-TPFINAL | 484885ce23d1636bf840ad99acd3b65cbafb86c5 | 4fc2ed65d974ea9bb6e8281eebb3359ce941ca4b | refs/heads/master | 2023-06-06T22:29:11.790471 | 2021-06-27T22:02:48 | 2021-06-27T22:02:48 | 379,059,253 | 0 | 1 | null | 2021-06-25T20:06:41 | 2021-06-21T20:49:04 | HTML | UTF-8 | Python | false | false | 869 | py | """TP_POLOTIC URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"monsalvo.h@hotmail.com"
] | monsalvo.h@hotmail.com |
f85638ba486b3870c34ad06f582151b51107b7b2 | 56470dbd199578f73f9c5b676d19b4774960a68d | /src/CNVRepeat/main.py | af7442c4e6be8f0a2d80549918df51ca5b995614 | [
"MIT"
] | permissive | bioCKO/CNVRepeat | a646fa729db6f2b8cca718b0a1dc78b5b848b149 | e6b9b90599bf973f523a879ad66f836f82a45bf2 | refs/heads/master | 2021-03-12T01:26:51.315608 | 2017-09-15T22:56:20 | 2017-09-15T22:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,856 | py | #the package use modules from grocsvs (https://github.com/grocsvs/grocsvs) as basis for designing the pipeline.
from __future__ import print_function
import argparse
import collections
import json
import logging
import sys
import os
from CNVRepeat import log
from CNVRepeat import options as opts
from CNVRepeat import... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
5bb9b2610922b496f4a7db330206c0b9e5f9449c | 3551a038d8d6fdb7ba3ec24b33ee86b709cac564 | /QtProperty/qttreepropertybrowser.py | 7c108173713aaebf39d58914aa7ba63299260a5a | [
"BSD-2-Clause"
] | permissive | theall/QtPropertyBrowserV2.6-for-pyqt5 | 814f231f05afea05763fe45e6eeac90f968ed775 | 99b80ff1106c6818529cff3677f12fc48f5eed88 | refs/heads/master | 2021-01-21T04:48:06.737673 | 2020-06-25T04:55:30 | 2020-06-25T04:55:30 | 53,728,283 | 22 | 11 | null | null | null | null | UTF-8 | Python | false | false | 32,741 | py | # -*- coding: utf-8 -*-
#############################################################################
##
## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
## Contact: http:##www.qt-project.org/legal
##
## This file is part of the Qt Solutions component.
##
## $QT_BEGIN_LICENSE:BSD$
## You may use this file... | [
"wazcd@163.com"
] | wazcd@163.com |
151f7484ec7c130b4403dd08c90830b52368805d | 4202a7c678e0ec25ab2065c4c2804b0296f94480 | /MOMI_FCS2/momi_priorset_8_stoch_asym.py | 9d14d73e818b29893f66b4c9d5195a512cecadac | [] | no_license | kaiyaprovost/whole_genome_pipeline | f1c479536560c5b8c68fe3a5ba0917140fbb0793 | 8e605d855c9f0cd6e11e1b73a97260e0d4aa3fae | refs/heads/master | 2023-04-22T20:51:01.344297 | 2023-04-06T19:12:11 | 2023-04-06T19:12:11 | 237,044,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,387 | py | import momi ## momi2 analysis
import logging ## create log file
import numpy as np
import datetime
print("-----\n-----\n-----")
now = datetime.datetime.now()
print("start logging\n")
logging.basicConfig(level=logging.INFO,
filename="momi_log_priorset_8_stoch_asym.txt")
print("load s... | [
"17089935+kaiyaprovost@users.noreply.github.com"
] | 17089935+kaiyaprovost@users.noreply.github.com |
647b8b2a50f725c62fa6d1cca379220a635668c3 | fd6bae2e3e9ac35d82abc2e6ce07e241b4e8be0e | /$/2.0/Brixx/Brixx.py | d6c813623ace09266a32a844a37e2189f05d0ca0 | [] | no_license | rushir/Games | fba705301094fc7b0066dd9e2bf858d88e0cfdef | e6f80c5b7949d7a52ff4d8733121a2f44d6902a7 | refs/heads/master | 2020-05-19T16:20:23.248224 | 2014-01-19T23:54:19 | 2014-01-19T23:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,847 | py | ##Brixx
from livewires import games, color
import math
games.init(screen_width=1000, screen_height=500, fps=50)
back=games.load_image("back.png", transparent=False)
games.screen.background=back
class brixA(games.Sprite):
"""Block that dissapears if hit once"""
pic=games.load_image("brixA.png", transpare... | [
"rushikh@gmail.com"
] | rushikh@gmail.com |
73fbc56487a7764993b6d6c30477c3fb8ebe27ab | e92e5f34eb3ca8fdec4823623aee54a411198331 | /_examples/treemodelfilter.py | 5d6fce9e5a4312749e8625681acc1b6951c34a27 | [
"CC0-1.0"
] | permissive | own3mall/python-gtk3-tutorial | f68e6e8e8807c927b34c062587494e4d7667840e | 55aeacc3d447095f4f6d1e6713294849e8d3d427 | refs/heads/master | 2021-01-20T15:49:20.023843 | 2017-05-09T21:49:23 | 2017-05-09T21:49:23 | 90,794,515 | 1 | 0 | null | 2017-05-09T21:43:18 | 2017-05-09T21:43:18 | null | UTF-8 | Python | false | false | 2,365 | py | #!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
products = (("Apple", "Fruit", "£0.20"),
("Bleach", "Cleaning", "£1.20"),
("Bird Seed", "Pets", "£2.50"),
("Banana", "Fruit", "£0.35"),
("Beer", "Alcohol", "£2.75"),
... | [
"andrew@andrewsteele.me.uk"
] | andrew@andrewsteele.me.uk |
40b3e16e17c6ef5cae7ff9e8de412ed7a49088dc | 6b070106e806cf5f5525e1276d5006762e90593f | /v2_linear_regression.py | 07e452f1205828d1078b7f227634e4e96403773c | [] | no_license | Ayushi113/coursera-code | 2dea6baca45df7ca115558c9fc22d45934d92d74 | f5970c11436655574f21e3d4912a61dff4b7ba7f | refs/heads/master | 2020-07-21T14:59:04.505043 | 2016-08-20T20:54:14 | 2016-08-20T20:54:14 | 66,167,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | #usr/bin/env/python
import matplotlib.pyplot as plt
import pylab
import numpy
import sympy
from sympy import *
regression_data=numpy.genfromtxt('data.txt', dtype=float)
print regression_data
col1=regression_data[:, 0]
col2=regression_data[:, 1]
pylab.xlim([10,20])
pylab.ylim([10,20])
#data_frame = [profits, population... | [
"noreply@github.com"
] | noreply@github.com |
a9b0e3658505132d46defe957430de64e14ab144 | 1af7e6d9ec623a6fe99d1066f107b5194e4ec7d5 | /translate_tokens/snippets.py | fdd30c4481d013783d8aa1da77d681879e4cc4fd | [] | no_license | Niarfe/hack-recommender | 128da6eb1f7861635587fa66d1931d8df0cd66b7 | 7e5cf226698f8f24e5dff78b330a00575dbe661d | refs/heads/master | 2021-08-08T07:06:20.206108 | 2017-10-13T22:21:39 | 2017-10-13T22:21:39 | 74,412,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | #!/usr/bin/env python
# Copyright 2016 Google, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"grace.zhou@hgdata.com"
] | grace.zhou@hgdata.com |
ce79b24f16bed5b2c129bbf283a5796524f5a9c1 | 030c1ff78383076422727ef3e5d2a7bb9c82e652 | /class_example01.py | 6c23651d6b374c39026dfe53ab741ab115edd62a | [] | no_license | smallcrocodile/python_sample_code | 25997c8437c7cf0ef671db874a0027fdced64f42 | 5472b11fd463657381949a9cf01aba4d77bf7ef0 | refs/heads/master | 2021-01-21T10:08:29.899881 | 2015-02-02T07:33:59 | 2015-02-02T07:33:59 | 29,851,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# FileName: []
# Purpose: multiple_replace
# Author: [ZhouKe]
# Created: 2014 - -
# Copyright: (c) ZhouKe 2014
# Licence: <GPL>
#--------------------------------------... | [
"small-crocodile@sohu.com"
] | small-crocodile@sohu.com |
e410a0f7094eb1667c2df44907c806a6ffff55d8 | 37f1c6774cc94f18eee36afe9327a271ce241437 | /tests/test.py | a120247e760d29dc0b9b87d496fe25e2812bfbaf | [
"MIT"
] | permissive | Holim0711/pytorch-trainers | 93306fab78bd5dca5dae0cc5e6e370b1bfc96600 | 1943676c3598c60526dea6174c234dd362181619 | refs/heads/master | 2023-01-04T11:27:42.797705 | 2020-11-06T02:18:10 | 2020-11-06T02:18:10 | 199,627,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | import trainərs
print(dir(trainərs))
| [
"holim0711@outlook.com"
] | holim0711@outlook.com |
4517a2973ced5a7f7821ef8b9c39134321bf76b9 | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/pandas/tests/frame/methods/test_replace.py | 83dfd42ae2a6ee2db8dd44070761be1616e746d0 | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 58,773 | py | from datetime import datetime
from io import StringIO
import re
from typing import Dict, List, Union
import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Index, Series, Timestamp, date_range
import pandas._testing as tm
@pytest.fixture
def mix_ab() -> Dict[str, List[Union[int, str]]]:
... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
baab9b279dd832e7b08c117e04977fc07ef18923 | 9d7b29f3898f74c9d28a182e190ededbc510f327 | /build_lisa_records.py | c77cc26dfe1141ef2b64a1820c70fb580aece40c | [] | no_license | kapil-varshney/yolo | e95bdf83bf7a8a8632272778c0b08aa9d73b09e4 | 36697622fd6041e0b0b73b70778dce8930a1581b | refs/heads/master | 2020-03-26T08:22:43.376797 | 2018-08-28T10:19:32 | 2018-08-28T10:19:32 | 144,698,932 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | #import
from config import lisa_config as config
from sklearn.model_selection import train_test_split
from PIL import Image
import tensorflow as tf
import os
import cv2
def main(_):
# initialize a data dictionary used to map each image filename to all
# bounding boxes associated with the image, then load the ... | [
"kvarshney.14@gmail.com"
] | kvarshney.14@gmail.com |
f16f5035356d1ce85a7038be04e25800a6524e58 | 12d05a7f65e6ca8ffa701670ed1bec209af77a51 | /capsule_biblosa/models/biblosa/nn_utils/integration_func.py | aa4c5160c77aa2c81ae964a4097d76df63f6a1d5 | [] | no_license | Bobby-Han/text-classification | ec8015e6bb438fceb8d7b61117519e2d6469c57d | 2fa6d3ed4f3b9288ff7fb385c9cced44daf522ca | refs/heads/master | 2023-02-24T13:27:36.761439 | 2021-02-01T06:27:53 | 2021-02-01T06:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,921 | py | # coding: utf-8
from models.biblosa.nn_utils.general import exp_mask_for_high_rank, mask_for_high_rank
from models.biblosa.nn_utils.nn import linear, get_logits, softsel, dropout, bn_dense_layer
from models.biblosa.nn_utils.rnn_cell import SwitchableDropoutWrapper
from models.biblosa.nn_utils.rnn import bidirectional_d... | [
"2501967525@qq.com"
] | 2501967525@qq.com |
7eee6af617335a2d6c8c407680e67b2cc2e81dea | 55f6a9b8f90ae308a90739fd8f77f4e7cd10ff19 | /spacy/tests/lang/sk/test_tokenizer.py | 247847284ad16613d04423f16cb12d3f7d98d573 | [
"MIT"
] | permissive | explosion/spaCy | cce07ee403aa398de7ba8941a2c11d22aea68021 | 3e4264899c3b12f8eabc5cd700146177a34824d0 | refs/heads/master | 2023-08-31T07:18:13.598768 | 2023-08-30T09:58:14 | 2023-08-30T09:58:14 | 21,467,110 | 26,348 | 4,983 | MIT | 2023-09-13T17:56:22 | 2014-07-03T15:15:40 | Python | UTF-8 | Python | false | false | 453 | py | import pytest
SK_BASIC_TOKENIZATION_TESTS = [
(
"Kedy sa narodil Andrej Kiska?",
["Kedy", "sa", "narodil", "Andrej", "Kiska", "?"],
),
]
@pytest.mark.parametrize("text,expected_tokens", SK_BASIC_TOKENIZATION_TESTS)
def test_sk_tokenizer_basic(sk_tokenizer, text, expected_tokens):
tokens =... | [
"noreply@github.com"
] | noreply@github.com |
de9d9c413b2b19958ca76f7a04bb638399db40c7 | 06927b2c6ab0ac9fbf2746ea38a32eb974a57690 | /legacy/AutoInstall/STM_PTZ.sikuli/STM_PTZ.py | c13de648be6bc096238422d74a9cac301ff3fe15 | [] | no_license | OldFeelLee/sikuliProject | ad104a1b0d70ce177150052aed663e8d0c842e02 | 8941cab54131638894c8852eb43129b6bfa84f54 | refs/heads/master | 2020-03-15T06:12:53.409283 | 2018-10-30T00:45:05 | 2018-10-30T00:45:05 | 132,002,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | import datetime
import random
import string
#Pattern("direction_0.png").exact()Pattern("direction_1.png").exact()Pattern("direction_2.png").exact()Pattern("direction_3.png").exact()
def RanTime(): #random 시간
ran = "".join([random.choice(string.digits)])
s=int(ran)
wait(s)
def Time(): #get c... | [
"leehunpill@idis.co.kr"
] | leehunpill@idis.co.kr |
912edd7bcf42efa3c07ae6a9b5140e63bc913683 | a6b9db4b8fb9cd4764036d3a4351c0c937437c78 | /myApp/admin.py | 605b121ec5d768fcea6361003a8ecdca77bbe717 | [] | no_license | gmurr20/DjangoWebsite | fbb16ccb6e17ac1f8a9dd3243d977fd5bfbea039 | 7d8e5c2196d379fa62e3e4736675e8ad3adf338a | refs/heads/master | 2021-01-01T17:44:09.646781 | 2017-07-24T02:26:35 | 2017-07-24T02:26:35 | 98,140,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from django.contrib import admin
from models import Company
from models import Project
from models import Photo
from models import Blog
# Register your models here.
admin.site.register(Company)
admin.site.register(Project)
admin.site.register(Photo)
admin.site.register(Blog) | [
"Gmurr@Gregs-MacBook-Pro.local"
] | Gmurr@Gregs-MacBook-Pro.local |
4b50e4e06c837e7881d5a740d09022e43e2254d7 | 2138a9925579b1090357da5323c1c48329e710bc | /venv/Lib/site-packages/weasyprint/css/properties.py | 15f25b92889998d2da8181f23c444f1a32739685 | [] | no_license | SravaniKV/MDC-OMK-Sprin1 | ff4cc5d275207dd27e7d9018834818bb08aec2dc | 6bdda424cdc8708fbf53f36bad459293aada95db | refs/heads/master | 2022-12-13T00:37:02.936349 | 2018-04-30T20:54:42 | 2018-04-30T20:54:42 | 128,151,668 | 0 | 1 | null | 2022-12-07T23:42:20 | 2018-04-05T02:50:59 | Python | UTF-8 | Python | false | false | 8,302 | py | # coding: utf8
"""
weasyprint.css.properties
-------------------------
Various data about known properties.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import division, unicode_literals
import collections
... | [
"gouthamuno@gmail.com"
] | gouthamuno@gmail.com |
b211125322d6715053229f8d15913695a875acc6 | 5b47b271438f27da7821acda1b87729d0cfb9a66 | /ModelingTeamMaterials/singleTree-day4.py | ca159fae18ef9af9e4d1192bb5adae7628203742 | [] | no_license | booz-allen-hamilton/SG4SG | a3e6fca4711de32b1173f03bd343b94b00f7993a | 0c2a7094b57abc653a9669de03fffcf726697bf2 | refs/heads/master | 2016-09-06T05:53:39.059429 | 2015-07-08T12:21:27 | 2015-07-08T12:21:27 | 38,002,290 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | import numpy as np
from sklearn import tree
from sklearn.externals.six import StringIO
import os
import pydot
import csv
print "\nDecision Tree using Human Trafficking Case File Data"
print "\tpowered by Booz Allen Hamiltion and Girls Inc.\n"
image_name = "HumanTraffickingTree"
maxdepth = int(input('Max Depth: '))
whi... | [
"rickett_stephanie@bah.com"
] | rickett_stephanie@bah.com |
6ed1f3c730d635fc7c541950627d7956afb8abfd | 0b543112c893ec250b68d30f935901a802da37f2 | /task2/src/baseline3/main.py | 57710bcafcd958aa52f85025b55fe58081dd1ba9 | [] | no_license | KUAN-HSUN-LI/Missing-Feature-Learning | 3badbef77581270169f4353e4deb21713cdcd2f9 | e17d89ba61adc866f13c36cbc27bd71148de7ec4 | refs/heads/master | 2023-02-21T11:34:57.608183 | 2021-01-23T11:47:24 | 2021-01-23T11:47:24 | 223,157,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | import argparse
import pandas as pd
import torch
from torch.utils.data import DataLoader
from tqdm import tqdm
from sklearn.model_selection import train_test_split
from preprocessor import preprocess_samples
from dataset import FeatureDataset
from model import simpleNet
from trainer import Trainer
from utils import Su... | [
"c37102001@gmail.com"
] | c37102001@gmail.com |
1257e9de4ad992d04c2be1ede976fe5f247731d3 | dbdf5bb08e5835ba836f3710e515e22e428f2862 | /main.py | a8affb885a085ea352f93828ee45a09a65c38c07 | [] | no_license | Introduction-to-Programming-OSOWSKI/1-5-add-two-numbers-BostonSlettum22 | cdfe32a37bd1aa6b2166653bcd65938707c12e55 | f2c44d4ba62f9741168c748680e6802f9596312f | refs/heads/master | 2023-02-07T21:19:42.721702 | 2020-12-18T16:52:55 | 2020-12-18T16:52:55 | 322,645,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | def add(x, y):
return x + y
print (add(8, 5))
| [
"816661@mystma.org"
] | 816661@mystma.org |
b1b510c608476e3cba0e5a2cd942598a8002a85c | 8f27c4a4c428d3ad4687a1a3b8a905c904ec93cd | /product/migrations/0016_auto_20181204_1142.py | f281f037afdc13b72e3ed87ea2b62028eed214f0 | [] | no_license | absalam48/sifdeal | c6d85533041b34462711f8adf39d0cfb4a993749 | 9542d0afd7a0bc64b2f6e03707aae81906d98fb5 | refs/heads/master | 2020-04-09T11:39:39.881595 | 2018-12-04T08:22:56 | 2018-12-04T08:22:56 | 160,318,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.3 on 2018-12-04 06:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0015_auto_20181204_1129'),
]
operations = [
migrations.RenameField(
model_name='categories',
old_na... | [
"noreply@github.com"
] | noreply@github.com |
25a66089f805038eee267a2ad15f97dabe903290 | ccdbe6e17022aae05e6bee60b37fd92a0b44a6d8 | /python/kivyapp/clock.py | b938a8ed87cc8a63c2595f40e017430675c55b3f | [
"Apache-2.0"
] | permissive | bdastur/notes | e580c45ef38abd2b104dce3ec6898031e9c79f27 | 74341d8de88c8817c557af02c6e8bd470e56151f | refs/heads/master | 2023-08-15T19:59:54.631621 | 2023-07-24T15:27:08 | 2023-07-24T15:27:08 | 92,065,482 | 4 | 1 | Apache-2.0 | 2023-08-27T19:00:14 | 2017-05-22T14:52:34 | JavaScript | UTF-8 | Python | false | false | 958 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
from kivy.app import App
from kivy.uix.label import Label
from kivy.clock import Clock
from kivy.uix.gridlayout import GridLayout
class MyClock(GridLayout):
def __init__(self, **kwargs):
super(MyClock, self).__init__(**kwargs)
self.col... | [
"bdastur@gmail.com"
] | bdastur@gmail.com |
35bb6d6d2e895f589418806656945397116628e2 | 13478b382d65b245c2264e0d62479b0fec01d631 | /crash_course/ch_11_testing_code/survey/survey.py | dd756a8d1428f2bcc845240bd5717918263c3986 | [] | no_license | haseebali1/python | 2086d3ee431e3efc13bab98b5b0ef69a39611f6e | 36d25329c1208abbd0e9db983b1a6a26559b4bca | refs/heads/master | 2021-09-24T08:52:02.559125 | 2020-02-27T06:30:12 | 2020-02-27T06:30:12 | 231,698,639 | 0 | 0 | null | 2021-09-22T18:23:46 | 2020-01-04T02:42:46 | HTML | UTF-8 | Python | false | false | 521 | py | class AnonymousSurvey:
"""Collect anonymous answers to a survey question"""
def __init__(self, question):
"""Store a question, and prepare to store respones"""
self.question = question
self.responses = []
def show_question(self):
print(self.question)
def store_responses... | [
"haseebali1@gmail.com"
] | haseebali1@gmail.com |
1a94eaab21acaf6627d078e8fc5fbbe84d6e3c8a | 52ddeb18c363ddc02bd1697104ebc6429dd7750a | /snapYzero.py | 7404dc912638e8ebbad52a0bddac7f4dce3fe73e | [] | no_license | duihuaq/MayaDev | 7ade36e14aad63d00286b50d9ac5a3dee8488b6b | c0f374b3c02980450b85e75c77b3bdc633e39556 | refs/heads/master | 2021-10-11T13:13:51.576387 | 2019-01-26T08:40:17 | 2019-01-26T08:40:17 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 508 | py |
# -*- coding: utf-8 -*-
# 将所选物体贴在坐标网格上
# designed by Jiaguobao
# QQ:779188083 && Tel:15615026078
# Date:2018年10月14日
# version 1.0
#
# 1.选择物体
# 2.执行脚本
# 3.将所选物体全部最低点归于坐标y轴零点
from maya.OpenMaya import MGlobal
#所有物体贴地
def doit():
tr = cmds.ls(sl=1,dag=1,tr=1)
for i in tr:
bb = cmds.xform(i,q=1,bb=1)
cmds.xform(... | [
"779188083@qq.com"
] | 779188083@qq.com |
2bd137d8a5666cafeaafecbb2b68c89ab238edab | 4ad9ce9ec5736080fb5f508ad366e1761b223c29 | /read_excel.py | a78a36b5d4ec850a5fa88dad31c46f60166e36d9 | [] | no_license | ctt2050/Hello-World | ab075f4551a212e79fad00bed94ea5465419db4d | 171045004525d1918db78729aa41c69d8aafc189 | refs/heads/master | 2022-12-13T19:32:06.270036 | 2020-09-05T03:27:39 | 2020-09-05T03:27:39 | 292,992,182 | 0 | 0 | null | 2020-09-05T03:30:20 | 2020-09-05T03:09:52 | Python | UTF-8 | Python | false | false | 1,740 | py | import xlrd
#步骤:1、先获取表对象
# 2、再获取值
#变量名:数据类型 = 值 强调变量中所保存的值是str类型
file_name:str='MTT.xls'
#打开一个xls文件(注意后缀名必须是xls)得到指向这个文件的工作簿(workbook)对象
work_book = xlrd.open_workbook(file_name)
#获取工作簿下工作表名称的列表
names = work_book.sheet_names()
print(names)
#根据下标来获取指定的工作表,,下标从0开始
sheet = work_book.sheet_by_index(0) ... | [
"noreply@github.com"
] | noreply@github.com |
1a746c87f4a43e3e08b35db1c0a09bbd069037d6 | 3a9c0b2c6039a63e34f49f8005dc7170fc0274c3 | /blog/wsgi.py | 3e83ec39fd5ee2e90b7008d7a0c12bb63ebfb3fd | [
"MIT"
] | permissive | DorcasToto/blogs-api-assingment | fa13fccd746a5b8631405b94152d517b5e125a28 | 066f67af0c82b1d3226f0b910941162a91ad8b12 | refs/heads/master | 2023-06-11T06:04:26.564689 | 2021-06-27T22:03:09 | 2021-06-27T22:03:09 | 380,814,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | """
WSGI config for blog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhi... | [
"dorcas@sendyit.com"
] | dorcas@sendyit.com |
5ef18ebe9bb906dcc28b54e3de7ef85b3ab5d824 | f1d09250c42091987e87013b9e80bd27592a2d15 | /mysite/settings.py | 33e8dfa780a4d44de247b330dfd3a13663427416 | [] | no_license | jlacerte/django-mysite | 54beff2b7cb981dc9e882320b61128d74446c582 | 60faa8f0dfc28c8695cc90b62281bb44c02c0515 | refs/heads/master | 2021-01-23T12:32:38.825519 | 2017-06-05T11:21:58 | 2017-06-05T11:21:58 | 93,167,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.1.
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
... | [
"justinlacerte@yahoo.ca"
] | justinlacerte@yahoo.ca |
11b80ae13e1397f13f260c3b3e462e7ebf5070e6 | c6dc08e0f28f958d3c3d91f2c863199af616422f | /Store.py | 58f5136599ffea27b0463b48f23765d02de11af6 | [] | no_license | Nozimakhon/storeManagement | b757b22c530c7ebf67bd6af4ea04262522359ec0 | 884371153b99527df5644952c2a0dcd824156a32 | refs/heads/master | 2020-04-23T14:51:17.587714 | 2019-02-19T16:44:27 | 2019-02-19T16:44:27 | 171,246,249 | 2 | 0 | null | 2019-02-19T12:46:02 | 2019-02-18T08:43:12 | Python | UTF-8 | Python | false | false | 1,155 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 13 21:32:50 2019
@author: Nozima
"""
class Store:
def __init__(self, Id, storeName, address, tel):
self.__id = Id
self.__storeName = storeName
self.__address = address
self.__tel = tel
@property
def Id(self):
return s... | [
"nozima.sb@gmail.com"
] | nozima.sb@gmail.com |
f724bf834b95fb45e371faa4e506417ef0925a27 | 68a48fb2b2167d3dcbacea0b57c0b6021d539d9d | /tree/98. Validate Binary Search Tree.py | 0099bb17c23e4f3f8c366265d74d79b223f0f150 | [] | no_license | libowhu/leetcode | a911957ccae4f43c8c3acf733a9acc2befd15d1e | 34d9f054e4697946a58a03e94c54509f575dcc73 | refs/heads/master | 2023-03-02T21:03:14.714616 | 2021-02-16T15:58:14 | 2021-02-16T15:58:14 | 293,777,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # https://leetcode.com/problems/validate-binary-search-tree/
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
... | [
"libo.whu@gmail.com"
] | libo.whu@gmail.com |
c2c9ff0cc2b3c2226bee65e6d5fb7284b2b4d646 | 8778c12b5ed1a9b109f97ad92d9a21ddf5f7ed2c | /scrap.py | b1a1e46872f66639ed4f4e781234b3270e6e1dc7 | [
"Apache-2.0"
] | permissive | jainmanal/Superdrug | eef8b5de628ef7e3d47f1afebcbff8d779076b25 | 03a762bfff16b9b94b210f54ae904f448a8bc352 | refs/heads/main | 2023-01-28T12:35:13.507662 | 2020-11-28T17:18:15 | 2020-11-28T17:18:15 | 316,132,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | import json
import re
import time
import traceback
import requests
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0'}
def scrap_data(url):
try:
page = requests.get(url, headers=headers)
time.sleep(5)
soup... | [
"noreply@github.com"
] | noreply@github.com |
92b74d7f6090a1d0b0e6e8984b12d6284c13a25c | 2063a057c3ff7b78d93e7bcc041e65eaa05bd86d | /pyglet_utils/platformer/player.py | efcec024a90d637cc3827c79f01b82d2cf7ee8d0 | [] | no_license | cm107/pyglet_utils | c45025237bc21bec6f8e0f0d6007428ed6cde559 | c20dc6a7658a1f7de4784c3b6ab69bffe9f33a79 | refs/heads/master | 2022-11-19T20:07:21.326211 | 2020-07-24T15:09:14 | 2020-07-24T15:09:14 | 262,519,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,291 | py | from typing import List, cast
from .resources import PlayerImages
from .game_obj import GameObject
from .frame import Frame
from .render import RenderBox
from .grid import Grid, GridObject
from ..lib.exception_handler import Error
from pyglet.graphics import Batch
from pyglet.shapes import Circle, Rectangle
from comm... | [
"mork.clayton3@gmail.com"
] | mork.clayton3@gmail.com |
194e78d8b7090dfda88fa567f0a8aa9f4c8bf2c8 | f827b53d987982351f98cac44d853f6968044184 | /main.py | ca62ac6487cec6fa770259bb69cff7a04fbe3740 | [
"MIT"
] | permissive | CybeSecurityOficial/IpFinder | 8f8e0e3ae7d2cc039594083f6337492e5c0a5834 | 6a7978caefcb01ff59c40a8429ab58b263c4ec68 | refs/heads/main | 2023-04-06T05:34:52.946621 | 2021-04-15T00:30:55 | 2021-04-15T00:30:55 | 358,078,150 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,943 | py | import os
import requests
import socket
from time import sleep
def main():
os.system("clear")
print("""\033[1;95m
██╗██████╗ ███████╗██╗███╗ ██╗██████╗ ███████╗██████╗
██║██╔══██╗██╔════╝██║████╗ ██║██╔══██╗██╔════╝██╔══██╗
██║██████╔╝█████╗ ██║██╔██╗ ██║██║ ██║█████╗ ██████╔╝
██║██╔═══╝ ██╔══╝ ██║██║╚█... | [
"noreply@github.com"
] | noreply@github.com |
73c9d197db561bf4c62d8617c024510162d28be0 | 439cc45865e7198d79bcd8848e7a9fad2dc9de9e | /ROISelect/ROISelect.py | 5ec1329869055557908564a687a66de7247040b2 | [] | no_license | Ryan05799/Ipython | 4c09b28bdc798bf7457f546cd4e4ea08e745747b | 92b65c5bb99828609a60737050ca75eed95c1031 | refs/heads/master | 2016-08-12T13:47:22.319268 | 2015-10-13T08:37:02 | 2015-10-13T08:37:02 | 43,829,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,461 | py |
# coding: utf-8
# In[18]:
import os
import os.path
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename
from PIL import Image, ImageTk,ImageDraw
from skimage import data, io
import matplotlib.pyplot as plt
import rmReflect as rmrf
# In[19]:
class RoiMaker:
f... | [
"ryan05799@gmail.com"
] | ryan05799@gmail.com |
595c1139951416758261577012073647161cabbe | 9cc11643353e2f28351623e734892c1370024901 | /backend/honameuro/migrations/0005_auto_20210814_1810.py | 8e25527dff268deddfc0be85ecafae60c41914b7 | [] | no_license | bonomoon/Honameuro | b4cf8bbde3d7e3aeffa462498996992ea9231e39 | 661fc4f7ebbf95b5350dcfe5a9614dc60e1bac3b | refs/heads/main | 2023-07-12T21:50:03.199055 | 2021-08-19T03:07:21 | 2021-08-19T03:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | # Generated by Django 3.1.3 on 2021-08-14 09:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('honameuro', '0004_indivinfo_topic'),
]
operations = [
migrations.AlterField(
model_name='indivinfo',
name='max',
... | [
"k5k5s5s5j5j5@naver.com"
] | k5k5s5s5j5j5@naver.com |
769b2e9a0ac02ec0c0fc798c978cb21b9a02e71a | fd4721a4b4943ca9ebb0a2064e2d810ec4bea0bb | /central_service/utils/data_transf.py | 22e6789559752a74555a5ad9441744e1985126a5 | [
"MIT"
] | permissive | vunetsys/mpquic-rl | 45782ff3544c8e39374c6a098cc259495d941273 | f9f9ce7a199c359baf0d5cdee063fbd5186f82c5 | refs/heads/master | 2022-12-22T23:50:52.564552 | 2020-09-26T15:38:25 | 2020-09-26T15:38:25 | 238,733,655 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # Some useful operations on data we need for our training
def allUnique(x, debug=False):
'''
Simplest way to check if all items in a list are unique
with early exit
'''
# return len(x) == len(set(x))
if debug:
seen = set()
for i in x:
if i in seen:
... | [
"marioskanakis@gmail.com"
] | marioskanakis@gmail.com |
eaa79fde9c30d40f438b522677b11ca3c92e0a1e | 2fd46aeb5c9f7acae9c056f513ce1992304c730b | /geekshop/authapp/forms.py | c8441e5c19c0c00c26655d51d06b2ab98fad6c16 | [] | no_license | iidyachenko/my_django_shop | 8a9daa00fd3c2373a20e3a9ce5f7b8b25593a6df | 2311cdcb2578eec52f6f04c7a27019b6a7c8a30f | refs/heads/main | 2023-04-08T09:04:04.739097 | 2021-04-08T13:48:42 | 2021-04-08T13:48:42 | 314,550,183 | 0 | 0 | null | 2021-03-22T13:47:39 | 2020-11-20T12:39:26 | Python | UTF-8 | Python | false | false | 2,462 | py | import hashlib
import random
import django.forms as forms
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, UserChangeForm
from authapp.models import ShopUser, ShopUserProfile
class ShopUserLoginForm(AuthenticationForm):
class Meta:
model = ShopUser
fields = ('username... | [
"rick_id@mail.com"
] | rick_id@mail.com |
3a66a7b8968be042dd64d5edcc7294b23c8a54c4 | 5c510a5e9c1e413d4e373b7c755b118d487b7dbf | /bin/analysis/exposure_classes_us_average.py | b73762a1c68e83b37333b2b72330f89418a87a68 | [
"BSD-3-Clause"
] | permissive | maryemguizani/patterns-of-segregation | 5958f37563f5b5f8a73f29d4d7ff77d5c919e964 | 0b6229248882253548efed2442fd04d69cb617e4 | refs/heads/master | 2023-03-16T09:59:09.008082 | 2016-03-26T08:03:01 | 2016-03-26T08:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | """exposure_classes_us_average.py
Script to compute the average exposure matrix for all cities in the US.
"""
from __future__ import division
import csv
import math
#
# Import data
#
## List of MSAs and their name
msa = {}
with open('data/names/msa.csv', 'r') as source:
reader = csv.reader(source, delimiter='\... | [
"remilouf@gmail.com"
] | remilouf@gmail.com |
cfc92bb4edcf97f0bace378fad5d9d5fcd023867 | 74b03072dea8bb112cf084ae8b7b4de9216edcf9 | /Airplane/chap8/mavsim_chap8.py | 038f1fa7a67beab5c332041aca02487eb6bb4dae | [
"MIT"
] | permissive | eyler94/ee674AirplaneSim | 04af0a9c4f3c207ce78a718c56e140309eb35297 | 3ba2c6e685c2688a7f372475a7cd1f55f583d10e | refs/heads/master | 2021-10-10T15:45:20.971699 | 2021-09-30T04:01:41 | 2021-09-30T04:01:41 | 174,186,876 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | """
mavsim_python
- Chapter 8 assignment for Beard & McLain, PUP, 2012
- Last Update:
2/21/2019 - RWB
"""
import sys
sys.path.append('..')
import numpy as np
import parameters.simulation_parameters as SIM
from chap2.mav_viewer import mav_viewer
from chap3.data_viewer import data_viewer
from chap4.wind_... | [
"eyler94@gmail.com"
] | eyler94@gmail.com |
0051f0b263c771d0d796d609592be3b693a8b0bf | 446571f13b3c1604cdfbcee8fdc2f956568d7c8d | /geeksforgeeks/arrays/zero_flip.py | dfa147be96fa075eaaa1e5a24d01659937c19f41 | [] | no_license | ssarangi/algorithms | 2e8f0a4be6bf0f4a3d75b224ed993e1fb0ca0229 | e151307f2706214cf8cefa6231290aeb2e5cfd82 | refs/heads/master | 2021-01-17T02:28:23.291588 | 2018-01-06T18:35:13 | 2018-01-06T18:35:13 | 51,458,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | def flip_zeros(arr, m):
current_not_flipped = m
start = 0
max_till_now = 0
positions = []
best_positions = None
cons_zero = 0
end_of_zeros = -1
while 0 <= start < len(arr):
i = start
while (i < len(arr)) and (current_not_flipped != 0 or arr[i] != 0):
if arr[i... | [
"satyajit.sarangi@gmail.com"
] | satyajit.sarangi@gmail.com |
c94a84eb5765442913936d5c63e068545b7011c3 | 5c1095e7d30547736ffd00a6c152ab59e91bb1a8 | /ex6.py | 23ccc63f9c1b95479290e67117ec341f77d6d0f1 | [] | no_license | joykim137/LPTHW | e3148202094cdc661cc26ed2a3e60c6279f70564 | 688027dbb6483755a4c8edab88c124860198b973 | refs/heads/master | 2020-05-20T12:25:19.762167 | 2017-03-29T02:13:44 | 2017-03-29T02:13:44 | 80,483,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | x = "There are %d types of people." % 10
binary = "binary"
do_not = "don't"
y = "Those who know %s and those who %s." % (binary, do_not)
print x
print y
print "I said: %r." % x
print "I also said: '%s'." % y
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
print joke_evaluation % hilarious
w = ... | [
"joykim@seoulchristian.org"
] | joykim@seoulchristian.org |
ee174c2dfc028eaa1f9b890d11a71738ce7fbed3 | 642fc5cc0ec6e8021fbf7be31a5524737089f6aa | /api/migrations/0001_initial.py | e39399a04415474ef5b13ffb441b34aec6100140 | [] | no_license | safarorg/music-rooms | 62dbc5f79427227fa06441d50583d607075795fe | acd8d6e0d542797319c442255412abe389dbba9d | refs/heads/main | 2023-02-26T03:42:33.651398 | 2021-02-04T18:52:22 | 2021-02-04T18:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 3.1.6 on 2021-02-03 23:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Room',
fields=[
('id', models.AutoField(aut... | [
"safariko93@gmail.com"
] | safariko93@gmail.com |
16bd10b11e4d259ea0624fbef79cfa7bedb25b02 | 78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c | /AlgorithmStudy/백준/무지성 랜덤풀이/9월/9.19/1057 토너먼트.py | 3ebf3c81fb50fc00a0a769e5763627af7126e159 | [] | no_license | cladren123/study | ef2c45bc489fa658dbc9360fb0b0de53250500e5 | 241326e618f1f3bb1568d588bf6f53b78920587a | refs/heads/master | 2023-09-02T02:21:24.560967 | 2021-11-05T12:20:06 | 2021-11-05T12:20:06 | 368,753,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | """
문제유형 :
수학
브루트포스
1
1 3
1 2 3 4
두 수를 2로 나눈 몫을 서로 같아질때까지 빼다보면 라운드 수가 나온다.
"""
import sys
input = sys.stdin.readline
n, p1, p2 = map(int, input().split())
count = 0
while p1 != p2 :
p1 -= p1//2
p2 -= p2//2
count += 1
print(count)
| [
"48821942+cladren123@users.noreply.github.com"
] | 48821942+cladren123@users.noreply.github.com |
3b057cae7fab18b473f1f9d4098f453000b5f7ee | 72f861b4e50d80c31bbbed5127bcce67d19f5875 | /ex07.py | e531ced7df2fde841bd2b0346f048f7de86efab3 | [] | no_license | 106368404ZhouHouCheng/hello-world | b2ad012b3f7e4c4bdc83a6f6ce2dc67ae029e5d8 | bbb448b2d51e5a37f871ceb532219540daa78d23 | refs/heads/master | 2021-05-05T17:44:24.504825 | 2018-04-19T05:42:56 | 2018-04-19T05:42:56 | 117,503,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # -*- coding: utf-8 -*-
#print the string
print "Mary had a little lamb."
#print the string which followed the other string
print "Its fleece was white as %s." % 'snow'
# print
print "And everywhere that Mary went."
print "." * 20
end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
... | [
"noreply@github.com"
] | noreply@github.com |
70d705569f2c0ecf5f69bbe862bd31667eb7fbd8 | 130b217cfed2d151b20bb52d366e0e0d242a8c7a | /components/breakpoint.py | c1fba482362e4deca308b5d2cb385c8d3fa903c0 | [] | no_license | RandomNB/EDB | 2de9bc06a87bf3153d94d79b3e9ffe83fa146ff9 | 4d80856b19b041c721a3485aa7e16a64f2cbeb3a | refs/heads/master | 2023-06-16T20:06:54.753262 | 2021-07-20T00:52:10 | 2021-07-20T00:52:10 | 387,631,503 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from components.utils import *
class Breakpoint():
def __init__(self, conditions: str) -> None:
self.condition_str = conditions
conditions = conditions.split(';')
self.conditions = []
for c in conditions:
c = c.strip().replace(' ', '')
c = c.replace('=', '==... | [
"oldmac@OldMBP.local"
] | oldmac@OldMBP.local |
3b7b0e8ce61a0e42ac55fab0aae621e16c9a3d2e | 70e32c5e1410c824f7debc726ac552ea2dc14f11 | /sdn/programming-assignment-6/submit.py | 399bbaa44c069496dca3ff8573a9e3d4d8c7f6cf | [] | no_license | junousia/coursera | 32dfa3818ee005cea593de82faa2048c55a82917 | ce32ae1e432d6a1b82314d032cae569ffecc1f26 | refs/heads/master | 2020-05-20T10:41:15.477987 | 2014-06-15T12:09:01 | 2014-06-15T12:10:12 | 7,891,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,165 | py | '''
Coursera:
- Software Defined Networking (SDN) course
-- Module 6 Programming Assignment
Professor: Nick Feamster
Teaching Assistant: Muhammad Shahbaz
'''
### The only things you'll have to edit (unless you're porting this script over to a different language)
### are at the bottom of this file.
import urllib
imp... | [
"jukka.nousiainen@gmail.com"
] | jukka.nousiainen@gmail.com |
ca19fd2102ecc1315b451f1d014c2fdc738aa9fa | dd1a4ca7020ba5cac93d90829798a3a6f80d33a1 | /python/a+b.py | 8543f330778f6b5120ca9b0ef38984a376f1d2fd | [] | no_license | Exbilar/Source | a0f85b8b47840a4212fd4a9f713f978cab13e9a3 | b8bc0dc52e51f6c4986bd0f37de61b13d98e6e8c | refs/heads/master | 2022-05-03T22:35:57.300520 | 2022-03-14T09:03:03 | 2022-03-14T09:03:03 | 97,890,246 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | a=(int)(input())
b=(int)(input())
print(a+b)
| [
"exbilar@gmail.com"
] | exbilar@gmail.com |
2adcff104db81c7a2defe60c9f677882631fe561 | 88ae8695987ada722184307301e221e1ba3cc2fa | /chrome/browser/ash/arc/PRESUBMIT.py | 9b7c9a6ae4bf8c95ebee88233e1d5518e78f4fe7 | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 535 | py | # Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
USE_PYTHON3 = True
def CheckChangeOnUpload(input_api, output_api):
# Apply the same PRESUBMIT for components/arc.
presubmit_path = (
input_api.change.RepositoryRoot() +... | [
"jengelh@inai.de"
] | jengelh@inai.de |
6ca7f5d24c91b078fc989d351c41a011332afca9 | 099deeb2c308bdc00a2c423743e4b2aacdac866c | /week7/tuple/youngyun.py | 890eaa5146674579d96aa1f65f6d9eff1b6cb958 | [] | no_license | Joonsun-Hwang/coding-test-study-lamda | 76fed2f18a3220f6731775984425dff49b4379eb | 0632ec9dd60024203ed10ebeab07aa7da4782806 | refs/heads/main | 2023-05-01T21:31:48.174944 | 2021-05-05T09:48:23 | 2021-05-05T09:48:23 | 329,205,708 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import re
def solution(s):
s = eval(s[1:-1])
s = list(s)
if len(s) > 1:
s.sort(key=lambda x: len(x))
else:
return list(s)
answer = []
for sg in s:
for ssg in sg:
if ssg not in answer:
answer.append(ssg)
return answer
| [
"fightnyy@naver.com"
] | fightnyy@naver.com |
26052b52f18fddc3ed41610596598958ff6c5590 | 84a7d371e58d56f23dd44811ef8fbab605b90858 | /homework/_1/case_7.py | 195f810b70d1ab467823655bc24fcd64c05cc827 | [] | no_license | Pypy233/python | eb5b3ac047720ec5f4c824551c5417f2df40bcc1 | 08493b9c8019e7f83c9760bd6cdd4a8f0249b7bc | refs/heads/master | 2021-01-01T15:53:22.681473 | 2018-08-27T02:32:24 | 2018-08-27T02:32:24 | 97,724,842 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #-*- coding:utf-8 -*-
class Solution():
def solve(self, A):
#call function prime
lst = []
for i in A:
if self.prime(i):
lst.append(i)
return lst
#judge whether x is prime or not
def prime(self, x):
if x <= 0 or x == 1:
re... | [
"161250096@smail.nju.edu.cn"
] | 161250096@smail.nju.edu.cn |
c92082561955960009d752e4ffe94a930beeedb3 | eeaf323a92254190195ecbb61c03171aae8f28ee | /accounts/migrations/0002_usercompanies_company_name.py | decf6fe96a53b78ea09b7794c2145c537e0264d5 | [] | no_license | abdullakn/job-portal1 | 44295db5c1169494454fa407ad5716f119e6017b | c5d299acae4262eb9d02317f3358aaa6d4314b13 | refs/heads/master | 2023-07-18T07:45:54.610627 | 2021-09-04T11:37:36 | 2021-09-04T11:37:36 | 403,040,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.2.5 on 2021-07-21 18:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='usercompanies',
name='company_name',
... | [
"abdudebanjazz@gmail.com"
] | abdudebanjazz@gmail.com |
821d5e38bb6bc7cd626ca8d67a825d1a4dc3d9fd | eb8b5cde971573668800146b3632e43ed6e493d2 | /python/oneflow/nn/modules/random_ops.py | fb7503bc898688f8a370e6cae07c381d2f619987 | [
"Apache-2.0"
] | permissive | big-data-ai/oneflow | 16f167f7fb7fca2ce527d6e3383c577a90829e8a | b1c67df42fb9c5ab1335008441b0273272d7128d | refs/heads/master | 2023-07-08T21:21:41.136387 | 2021-08-21T11:31:14 | 2021-08-21T11:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,176 | py | """
Copyright 2020 The OneFlow Authors. 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 agr... | [
"noreply@github.com"
] | noreply@github.com |
c63dc0c63677b94301787c77206480188a191679 | 230af69e46485f4a2092db92238fe211f4ea0d07 | /service_end/packages/kafka/consumer/group.py | 1e9d4fe9e44bf297063cef03c209e1495f5e9edb | [] | no_license | kaichenkai/ai_recheck | 20be3fdb89f1d9900ce9c47e4608ce9d75284d88 | 78d653be42903e54a22b15714769041b264366fc | refs/heads/master | 2021-05-20T15:11:36.150191 | 2020-06-01T07:57:19 | 2020-06-01T07:57:19 | 252,344,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,973 | py | from __future__ import absolute_import
import copy
import logging
import socket
import time
from kafka.errors import KafkaConfigurationError, UnsupportedVersionError
from kafka.vendor import six
from kafka.client_async import KafkaClient, selectors
from kafka.consumer.fetcher import Fetcher
from kafka.consumer.subs... | [
"chenkai@seemmo.com"
] | chenkai@seemmo.com |
6eed735bb4f984a6731d98739568a18f0544a9c9 | da2c159f1971cf71cf2b733dc0dbdd3684761180 | /Hackerrank/Sets/strict superset.py | 71829054a8a7a3e81286b9504a01295ad2a29480 | [] | no_license | shravan0409/LTI-preparation | a11bacb485893e294bde89b65ae30912b1cb466f | 72c692d147c0da74b9cca9efd7acd6988dc47c87 | refs/heads/main | 2023-03-24T13:16:33.728761 | 2021-03-21T17:55:14 | 2021-03-21T17:55:14 | 348,372,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | A = set(map(int, input().split()))
for _ in range(int(input())):
X = set(map(int, input().split()))
if A.issuperset(X) != True or len(A) == len(X): #returns true if the set is a perfect super set
print(False)
break
else: print(True)
| [
"noreply@github.com"
] | noreply@github.com |
59e67acd4022cf765753f09292a57723239ca990 | 3963cc5b29c894a8c6891be272b9598810ca99c5 | /article.py | 7fd126f8b28a7220a74a33fb1b6090aee5203048 | [] | no_license | suhcrates-web/sihwang | f7abcf627ec645b3d90d7da762bf8a4364ddbd3e | c8183af49df75d0764780a7def48ab4a542d06e4 | refs/heads/master | 2023-05-09T02:38:58.651915 | 2021-05-31T03:42:05 | 2021-05-31T03:42:05 | 350,247,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,851 | py | from bs4 import BeautifulSoup
import requests, re
import socket, codecs, time, re
from toolbox import dict_sort, banolim
from datetime import date, timedelta, datetime
#영웅문 시작페이지에서 코스피, 코스닥 기본값 멘트와 plma 가져옴
def background(be_0 = 'None'):
if be_0 =='None':
url = 'https://www.kiwoom.com/nkw.HeroFrontJisu3.do... | [
"suhcrates@hanmail.net"
] | suhcrates@hanmail.net |
11b31f35dc668112d0124a59dd723b8cb872acea | 535a4d3c3f57f5f67d36be3d7d54fdbf9fc30a92 | /やってみよう_必修編/chapter09/9_10_imported_restaurant.py | 5ef1486dd7e1b597ed37100f39228f9f6ac49553 | [] | no_license | kyuugi/saitan-python | 4d28c6ecacb4d0b846292ab94f54814dde1cbab0 | 8196a91a9aac5011bc29782381b93f143b0ae25a | refs/heads/master | 2022-12-06T05:49:13.363864 | 2020-09-01T23:19:32 | 2020-09-01T23:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from restaurant import Restaurant
restaurant = Restaurant('malaychan', '東南アジア料理')
restaurant.describe_restaurant()
restaurant.open_restaurant()
| [
"takanori@takanory.net"
] | takanori@takanory.net |
c4a0e48883cf88ed73309bb1ee16b6d9a330be6d | 0762a41811b52bdc401f25fc1f045854565da899 | /leetcode/easy/sqrt_x.py | 4bae996a48cd6658c33e072cb497f753733bb825 | [] | no_license | rashad101/Online_Problem_Solving | 5d6732a3373ffdd7e6aed64ef43987fbfd8af94f | 15298a14b2464228b6a02114450d5a11b70f9b70 | refs/heads/master | 2020-06-17T01:54:22.872191 | 2019-08-04T10:56:42 | 2019-08-04T10:56:42 | 195,760,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #https://leetcode.com/problems/sqrtx/
#Runtime: 24 ms, faster than 63.90% of Python online submissions for Sqrt(x).
#Memory Usage: 11.8 MB, less than 56.36% of Python online submissions for Sqrt(x).
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
... | [
"rah.rony@gmail.com"
] | rah.rony@gmail.com |
5800db987d7960724d698ed9b84e24feed6cbbb3 | b689a7708f7c2d6880c8556c32bfec0d79895be0 | /robin/statistics/migrations/0001_initial.py | b69774b36bd1e4add7e2bc3a1a9405eace0b4cff | [] | no_license | hereischen/robin | 7e874fb6642dd68a48a42c6f1caf01cf1fb984e2 | 97d95ec10caf408b2b3f4c55d73dc2f0b93ade8b | refs/heads/master | 2021-01-24T15:06:02.506217 | 2018-10-30T08:51:04 | 2018-10-30T08:51:04 | 68,569,761 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,450 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-27 09:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"hachen@redhat.com"
] | hachen@redhat.com |
7b7d347149ddda0cbc9c618459c6c1fa0741bc89 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_load_balancer_frontend_ip_configurations_operations.py | 006f819fc5baa437f0da30dd80a00996d1cbf621 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 8,921 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
915c97efaf9ef352a967f2d1bed523eda5004a13 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02994/s580686016.py | a70a698f4cc8e26a206d2c2f0cdf4a1574d17b2c | [] | 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 | 206 | py | n,k=map(int,input().split());a=[k+i for i in range(n)]
sumA=sum(a);min_num=float('inf');result=0
for i in a:
if min_num > abs(sumA-(sumA-i)):
min_num=abs(sumA-(sumA-i))
result=sumA-i
print(result) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f07ef193d42eda2ed26c4f9895185294a91dc3cb | e75277ad805d4622b66ce47e64d6d222a5b51e72 | /modules/database.py | 45dbc160af6dd8f16e5ce80e481617064f4ffffe | [] | no_license | kvikshaug/grouphugs-py | 23f506809f1ae9512f0cd02781dd08f2b4f87399 | 99954d176387d8ebceda805ddf9b3c2e3d7e0114 | refs/heads/master | 2020-12-24T14:44:50.285841 | 2013-05-27T21:02:57 | 2013-05-27T21:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import sqlalchemy as sa
import sqlalchemy.dialects.postgresql as pg
from sqlalchemy.ext.mutable import MutableDict
from sqlalchemy.ext.declarative import declarative_base
import config
class Database():
Base = declarative_base()
def __init__(self):
self.engine = sa.create_engine(config.DATABASE_URI)
... | [
"oyvind.overgaard@gmail.com"
] | oyvind.overgaard@gmail.com |
c93239bfc6f0779964aa37f2069496fdaa72e5f6 | 13423e31f3f624e33d442315e64962f08e093144 | /Jasoseol/JssProject/main/views.py | ed3206b5594c7c7c81ce04a8dc871e844c2b24a5 | [] | no_license | c-min-ji/LikeLion_8th | 14b1a766ef3b2d36389f6f8bcea3c7078168fefd | db86bd2eabb2c7a9dcdea9e6534d6a1def41f93f | refs/heads/master | 2023-08-13T16:42:26.546081 | 2021-09-20T03:25:36 | 2021-09-20T03:25:36 | 407,765,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | from django.shortcuts import render, redirect, get_object_or_404
from .forms import JssForm
from .models import Jasoseol
from django.http import Http404
# Create your views here.
def index(request):
all_jss = Jasoseol.objects.all()
return render(request, 'index.html',{'all_jss':all_jss})
def create(request):
... | [
"mjeewh@gmail.com"
] | mjeewh@gmail.com |
b917e342d9f0fb28e60e7a702cc55bca5797e748 | 37ec702ca986c6c6ac5d2c5a7b73ff80a80201de | /flasher/env/bin/espefuse.py | af2fe028aadd71e2981a4e0ac07a274209803f51 | [] | no_license | EchoLynx/traffic-light | 47e7a42154ecc43f726cedfcc4e23fc83393aa1b | a380a4cfe3534078fc4c1dd0328d860e637213f7 | refs/heads/master | 2022-06-07T23:58:48.786049 | 2020-05-02T18:32:57 | 2020-05-02T18:32:57 | 260,747,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,602 | py | #!/home/iegland/code/trafficLight/flasher/env/bin/python3
# ESP32 efuse get/set utility
# https://github.com/themadinventor/esptool
#
# Copyright (C) 2016 Espressif Systems (Shanghai) PTE LTD
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License ... | [
"mail@ianegland.com"
] | mail@ianegland.com |
2f88d13c21d075b2b3f4136758dfc35918670460 | f884d7593d3de3c67f9b595fa6a1b616463372f4 | /src/accounts/models.py | 3309b13ece8b1c7a1ebb121045a47f7aa7570726 | [] | no_license | Pierre12412/CRM | 71a1c8cc229319e996a20cb93963b4ca8b0dcf37 | 38f2f184b51b693dc222cccba7beca290b6b4f54 | refs/heads/main | 2023-08-21T21:48:18.135317 | 2021-10-26T08:41:02 | 2021-10-26T08:41:02 | 411,595,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | from datetime import datetime
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.db import models
class UserManager(BaseUserManager):
def create_user(self, email, password=None):
"""
Creates and saves a User with the given email and password.
"""
... | [
"pierre.bellegueule@gmx.fr"
] | pierre.bellegueule@gmx.fr |
bbe6f4854ad20f15289a16cc4b88c34e20f5323c | 7bf80c5520a135152dd24137c04295c06b7ef64a | /keras_frcnn/thundernetv1-Copy1.py | 47d1faae6cdd20fddfa03fc5861f7cadd9fa87c5 | [
"Apache-2.0"
] | permissive | patrickeala/thundernet-frcnn-with-keras | d569c07150fa7a84e51ed1a58ee72dd0a5600a25 | 917c312936a26c643a3f9efde78ff7751af1bdb4 | refs/heads/master | 2020-12-18T23:45:31.590313 | 2020-01-22T11:56:22 | 2020-01-22T11:56:22 | 235,558,563 | 0 | 0 | Apache-2.0 | 2020-01-22T11:23:58 | 2020-01-22T11:23:57 | null | UTF-8 | Python | false | false | 11,354 | py | # -*- coding: utf-8 -*-
"""MobileNetv1 model for Keras.
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import warnings
from keras.models import Model
from keras import layers
from keras.layers import Flatten, Dense, Input, Conv2D, MaxPooling2D, Dropo... | [
"henri.tomas@eee.upd.edu.ph"
] | henri.tomas@eee.upd.edu.ph |
d10d1d970e83764a29323dd3b7908e9668e4959a | 83d1e68f4c9cde40b83f00a56f3c9b57f91aea82 | /UI/bombora/utils/logdb.py | 0098b4a406fb6cd07e2d0869abe0107e9acab757 | [] | no_license | dxcv/ai-bot | 34dd1e8f86e20899bb43765295d58e6f558cdaec | d6dfe9b7a7363e414f6adbc33329f70f6c525b45 | refs/heads/master | 2021-01-07T06:54:24.479197 | 2020-02-19T07:58:54 | 2020-02-19T07:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | # Very simple log keeper in sqlite database, where serialized data is stored
# snippet modified from github.com/scrapy/queuelib
import os
import sqlite3
class LogDB(object):
'''
keeps byte queue in an iterator style, next returns tuple of (id, bytes)
'''
_sql_tbl_create = '''
CREATE TABLE lo... | [
"jm16.cho@gmail.com"
] | jm16.cho@gmail.com |
be9c7f1407518d5042bb9f9141452c9827f5bc14 | 693c76bf548ad67232dba7951be51274a1d6e7d0 | /CodeChef/forgotten language.py | eb4eaa2796a22da44e9b55467ed31e12f3533067 | [] | no_license | Kartavya-verma/Competitive-Pratice | 7958e3034e5e766d6e1186fee2f23562fac70a9b | 8c684996410b376263082a7421d4a14a85cf624b | refs/heads/master | 2022-12-22T10:38:37.981529 | 2020-09-14T12:22:50 | 2020-09-14T12:22:50 | 295,405,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | for i in range(int(input())):
n, k = map(int, input().split())
a = input().split()
res = ['NO']*(n)
for j in range(k):
s = input().split()
s = s[1:]
for j in s:
if j in a:
res[a.index(j)] = 'YES'
print(' '.join(res)) | [
"vermakartavya2000@gmail.com"
] | vermakartavya2000@gmail.com |
9bd2a84eacf0678981818dcd3b80ac4b648948d5 | f599db2f4a12148277d52372b965f7def311dd43 | /jobs/tests/unit_tests/test_job_offer_forms.py | 8bd56bd0a311f561b49a587b1233185aacbb204d | [] | no_license | cmigazzi/P13_Final | d6fbd61b213ed3655afd87514baa3b13b2793cd4 | ae4f06e05b21bb208b5c5f7c59583110ad55b600 | refs/heads/master | 2022-05-09T20:16:42.608818 | 2019-07-29T13:08:59 | 2019-07-29T13:08:59 | 192,683,883 | 0 | 0 | null | 2022-04-22T21:56:01 | 2019-06-19T07:42:54 | Python | UTF-8 | Python | false | false | 3,222 | py | """Contains tests for JobOffer form."""
from datetime import date
from django import forms
from jobs.forms import JobOfferForm
from jobs.models import JobOffer
def test_form_is_model_form():
assert issubclass(JobOfferForm, forms.ModelForm)
def test_meta_model_is_joboffer():
assert JobOfferForm.Meta.model ... | [
"cedric.migazzi@hotmail.fr"
] | cedric.migazzi@hotmail.fr |
3c3776cc2ce8e0c4c449efe51306bfeebe107f67 | 0978f45ca921dd7791d669d9d5a22c2588d941ec | /cgi-bin/play_message | 528c2e62236558c5eb19f6ba332852ad6d508f89 | [] | no_license | joecrop/SDMO | a61274fb3a79c1ca62d23339576bcf01867024bb | c9b5a2bcdd861f87e1470e012e9e882b51587dc6 | refs/heads/master | 2020-05-27T06:11:04.016524 | 2015-09-07T18:20:10 | 2015-09-07T18:20:10 | 42,062,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | #!/usr/bin/python
import cgi, cgitb
import subprocess
print "Content-type: text/plain; charset=iso-8859-1\n";
# Create instance of FieldStorage
form = cgi.FieldStorage()
#recieves:
# message: text to say
#returns:
# success: 1/0
# Get data from fields
message = form.getvalue('message')
p1 = subprocess.Popen([... | [
"joe@Joes-MacBook.local"
] | joe@Joes-MacBook.local | |
48943f3f567ebfe249a08dc5ebe90c5e9841dd43 | d68ca034018d66f73024223d4b2266b3c3c901d7 | /prev/myworks/onelifefitness/chainxy/spiders/onelifefitness.py | 446dae58b98362a5967083b62453bedc1b6f9e84 | [] | no_license | GoodyIT/scrapy | caff30d26660f778008ad50532e364ab36aba4c2 | 5ae80cf83dc62c4e1bd2bfa11049ca39a3ca3488 | refs/heads/master | 2021-01-20T10:10:18.365194 | 2017-07-22T13:09:07 | 2017-07-22T13:09:07 | 90,330,210 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,546 | py | import scrapy
import json
import re
import csv
import requests
from scrapy.spiders import Spider
from scrapy.http import FormRequest
from scrapy.http import Request
from scrapy.selector import HtmlXPathSelector
from chainxy.items import ChainItem
import pdb
import usaddress
class Onelifefitness(scrapy.Spider):
na... | [
"johnsondavid489@yahoo.com"
] | johnsondavid489@yahoo.com |
92edc2c70a68c62678d5b73f93db11e9e1775ba4 | 8c2feb46053624e4f6581c0c816c9626ad61ce89 | /tests/test_ms.py | c7320f32403c537718f643604d8bfd5e7e3946c5 | [
"ISC"
] | permissive | noscode/demes | 9134a4e696b9bab5fdc8bfaaa0358e1d884b68b2 | 5d300a8f5b5e260b828ae2cc7a78ab9ebf3bebba | refs/heads/main | 2023-05-09T05:20:05.567597 | 2021-06-01T12:11:50 | 2021-06-02T11:25:44 | 315,983,595 | 0 | 0 | ISC | 2020-11-25T15:42:56 | 2020-11-25T15:42:56 | null | UTF-8 | Python | false | false | 44,685 | py | import collections
import math
import pathlib
import pytest
import tempfile
import demes
cwd = pathlib.Path(__file__).parent.resolve()
example_dir = cwd / ".." / "examples"
class TestFromMs:
def N0(self, *, theta, mu, length):
return theta / (4 * mu * length)
def test_ignored_options_have_no_effect... | [
"graham.gower@gmail.com"
] | graham.gower@gmail.com |
205c766a5f054f111989899ee86d374e69ac0558 | 2725bd7f0ce8d08b7a3eee686776ad3341915975 | /jsonpatch/tests.py | 88012dee7cf95b111b441e2ecc2437a4075ef602 | [
"BSD-3-Clause"
] | permissive | xie137z/pyDDP | 1658e46348b8c5eae15618073aecbde1f1f90cba | ccee678d77e1c2a7d29d114cbd2f92f92f245eeb | refs/heads/master | 2021-01-02T03:55:55.044051 | 2015-05-16T08:12:16 | 2015-05-16T08:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,435 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import doctest
import unittest
import jsonpatch
import jsonpointer
import sys
class ApplyPatchTestCase(unittest.TestCase):
def test_apply_patch_from_string(self):
obj = {'foo': 'bar'}
patch = '[{"o... | [
"groovy354@gmail.com"
] | groovy354@gmail.com |
cfb7c23f86c945b9622561709765fa5f7ca22cdf | 8d600f870c0372abd324200f669cb6e546f7f7b0 | /movie_web_app/cs235init.py | 35b57a28435ab6f1975d6c3d6131b881cf8cb058 | [] | no_license | Hanqing-Ouyang/FlixSkeletonWebApp | b837e4baaec00f1f3d7516bf7da5ccd7b32d60ac | 18f708ac19a56f490c7f98207394c474b3c52422 | refs/heads/main | 2023-01-04T21:38:56.876064 | 2020-10-25T08:22:12 | 2020-10-25T08:22:12 | 302,567,145 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | from movie_web_app.datafilereaders.movie_file_csv_reader import MovieFileCSVReader
from movie_web_app.domainmodel.read_title import read_title
def main():
filename = 'datafiles/Data1000Movies.csv'
movie_file_reader = MovieFileCSVReader(filename)
movie_file_reader.read_csv_file()
movie_file_reader2 = r... | [
"noreply@github.com"
] | noreply@github.com |
d8c04f7c9ff808dd41092866e430bdfa4cf31358 | 738b7f4af51ee7d3cb650a919c63e91e814282df | /plot.py | 7c6709080cd1affce7ea9b1f8e8aac14c58e12ea | [] | no_license | Sherwin-xjtu/MILBoost | 8d75c3e0ece0e054d40ee7f3a130c4f2cc2bb2a3 | 659668dd30fb805633c768373e3be050a70a995a | refs/heads/master | 2023-03-16T23:28:17.662886 | 2018-04-21T19:33:04 | 2018-04-21T19:33:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | import matplotlib.pyplot as plt
m = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40,
42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82,
84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120,
122, 124, 126, 128, 130, 13... | [
"yueshu@yuematoMacBook-Pro.local"
] | yueshu@yuematoMacBook-Pro.local |
d4a4a324a8417d7588ea31306156207b9e9040fd | 43284a757e4f76cf548a79a495c16ec5ed087f7b | /Alex_Hu_Commnets_Final_Project_2/sender.py | 7b018046b571f86fca826d4ada768a2416c4c189 | [] | no_license | Enigmamemory/SchoolWork | a6e05c1aa1a6403f3bed9ebdf860cf32d822a831 | 4922429c16974dea1da86f36989912695eaeaad8 | refs/heads/master | 2020-03-28T19:14:05.502063 | 2019-09-25T02:17:56 | 2019-09-25T02:17:56 | 148,957,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,958 | py | # Written by S. Mevawala, modified by D. Gitzel
import logging
import socket
import channelsimulator
import utils
import sys
import hashlib
def slice_frames(data_bytes):
"""
Slice input into BUFFER_SIZE frames
:param data_bytes: input bytes
:return: list of frames of size BUFFER_SIZE
"""
fra... | [
"enigmamemory@gmail.com"
] | enigmamemory@gmail.com |
752f1a66505a34350b55dc4d5663bdaf05f83b29 | ba97edb7de4c16b100cd6a743b46d0dc23f0f75e | /manage.py | 3fb0edebaa6107bac22c725732e1bd5cd5d007c6 | [] | no_license | hi-im-yan/random-congratz | dd0fb8390db60aab11e9f9bfdd5b240ed0bbf4e6 | fd7f71181a295495508c4955e5e77151ec81e41b | refs/heads/master | 2023-04-28T03:52:55.535187 | 2021-05-11T00:45:19 | 2021-05-11T00:45:19 | 366,202,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'random_congratz.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"yanajiki2010@hotmail.com"
] | yanajiki2010@hotmail.com |
52350c3dc79c73533c9bd6881d3ddfa3f901ac0d | c2bb37dd27f8d3c442af776cef1ac046de011b87 | /blogsite/urls.py | ca94038bdbd1a758ee5fcdbf6ace15ba9fb8d9ac | [] | no_license | zylhub/blogsite | 28b32c0bf9b52ad9604a926c02ca1e7a1c59e767 | 55186dc761d4663582af8c852b02f2a63c206e17 | refs/heads/master | 2023-07-17T01:53:41.193347 | 2021-08-27T15:02:52 | 2021-08-27T15:02:52 | 400,534,439 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """blogsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"zylhub@qq.com"
] | zylhub@qq.com |
38dac0620ed6d0e47d6ada8ebbfb8b806d99f34c | 72b04c51022b8b799c17828853b831b233e5d631 | /ASR/data_utils/data_loader.py | 42b9433146594b3f33e0294c9429fcb2e07d252d | [] | no_license | Grit1024/wav2vec-project | daf06219b9e10b0f8221e60995392c6e1759aac6 | f5656c6a83cd9c7c6f6c70e218bccf8d523c4c4a | refs/heads/main | 2023-02-22T17:03:10.722127 | 2021-01-29T08:33:54 | 2021-01-29T08:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,866 | py | # coding:utf-8
#
#
import os
import sox
import math
import json
import torch
import numpy as np
import soundfile as sf
from tempfile import NamedTemporaryFile
from .adding_reverb import ReverbAugmentor
from torch.utils.data import Dataset, Sampler, DistributedSampler, DataLoader
def load_audio(path):
sound, samp... | [
"viaxu910515@163.com"
] | viaxu910515@163.com |
30f5a86dcb07bca0a5fbf3aeee018daf3685a4ed | 32b5228f454713e88ebf6963a2268b9859610274 | /pool_ladder/migrations/0009_userprofile_slack_name.py | a0717def31deb2397fbf6e7a531727b82bd6dfff | [] | no_license | mj2p/pool_ladder | d1e09abbbbdfbeca0bb5384aed9ab88543646115 | 054b8a36cd67868ac2f04c3c1b85b23b5550124f | refs/heads/master | 2020-04-17T05:54:14.417270 | 2019-09-26T09:20:34 | 2019-09-26T09:20:34 | 166,303,003 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 2.1.5 on 2019-01-18 15:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pool_ladder', '0008_auto_20190115_2236'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='slac... | [
"sam.griffiths@ripjar.com"
] | sam.griffiths@ripjar.com |
c194fbf7d416ceff9fd41fd0ca591c32334fc62f | b7989be541601205ee32ef62d5a7e086a55d91fb | /test/experimental/test_with_asset.py | a9be86d81b0c99eb9d65c98dfb7572076a3af5ed | [
"BSD-3-Clause"
] | permissive | zhangguanheng66/text | 3a9f8253817dc2e013c819ca309ecae6887c382a | 735d5e7127083314409bb57dfc58a387a5bafc9d | refs/heads/master | 2021-06-18T12:10:50.977261 | 2021-03-11T18:27:08 | 2021-03-11T18:27:08 | 189,424,677 | 1 | 0 | BSD-3-Clause | 2020-10-13T17:51:08 | 2019-05-30T14:05:35 | Python | UTF-8 | Python | false | false | 13,349 | py | import torch
import torchtext
from test.common.torchtext_test_case import TorchtextTestCase
from ..common.assets import get_asset_path, conditional_remove
from torchtext.experimental.transforms import (
sentencepiece_tokenizer,
basic_english_normalize,
VocabTransform,
PRETRAINED_SP_MODEL,
sentencepi... | [
"noreply@github.com"
] | noreply@github.com |
21413a7317dbc690680aeee29e7fa62f3f4f4d74 | 4e1ecdc74b3b1354c18d811bc9016078e74ada81 | /InterconnectedLayerModeling.py | f093ad3032e4f3f878b93a8771e1e5c9c5dda443 | [] | no_license | leighsix/FindingKeyNode | 07033ee8e77435db89de0786e964146a97ff9d67 | 5384342885a133092ec89a380efe4e452398d011 | refs/heads/master | 2020-05-16T09:32:29.370021 | 2019-04-24T14:52:04 | 2019-04-24T14:52:04 | 182,952,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | import networkx as nx
import numpy as np
import Setting_Simulation_Value
class InterconnectedLayerModeling:
def __init__(self, setting):
A_edges_array = self.A_layer_config(setting)
self.A_edges = A_edges_array[0]
self.AB_edges = A_edges_array[1]
self.AB_neighbor = A_edge... | [
"noreply@github.com"
] | noreply@github.com |
3fdec5666063da600095a857cc17273667df8660 | 2128863a36eadabd39b5b8e5be1d8330c99a8884 | /src/ni_engine/controllers/faulhaber/__init__.py | 92757419f3173a89f457c1b3a7618241bd4a7425 | [] | no_license | taalexander/ni-engine | 1f394c6d399c25be0f1d7373d3cebd8b95cb5b20 | 1532c8dbf7a6ea55ce782cd9ef036faf68e78fe2 | refs/heads/master | 2021-09-04T15:21:53.552774 | 2015-08-13T18:11:14 | 2015-08-13T18:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from LM1247 import LM1247 | [
"thomasalexander2718@gmail.com"
] | thomasalexander2718@gmail.com |
f484c4a539060908cd15609efcc1929cbddac6c3 | 07b0328e7e13293c89fda14f368e3fa479a871a1 | /Machine-Learning/chapter5/logReg.py | b48ee8af9978186dea6b0233ca559211951d4219 | [] | no_license | realsunny/Machine-Learning-Study | 75eff7e9a76ab6c348850a3442d11a9a9616e47e | 9a659b3a151b93b5ba7e43e9e01ff9f73df6635d | refs/heads/master | 2020-12-29T15:48:18.591784 | 2020-03-03T05:34:06 | 2020-03-03T05:34:06 | 238,658,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,856 | py | import numpy as np
from math import *
def load_train_data():
train_data_matrix = []
label_matrix = []
with open("testSet.txt")as f:
for line in f.readlines():
temp = line.strip().split()
train_data_matrix.append([1, float(temp[0]), float(temp[1])])
label_matrix.... | [
"1936284501@qq.com"
] | 1936284501@qq.com |
022be9e5e8031067fe0e36e0334b549dc84261e8 | 146eb2f624622309682362ba6ad3658b22a4337c | /gameExample/04_animation_tutorials/04_10_flexibility.py | 7d3170b019700d0f38ce2f51b75b286b96104c1a | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | ilosea/WFRL | 511869e6f4cc8373a22ea85866ef9aeb60d6fdc5 | 4b6e00b732a994141142e3ef5ee00e79d7b5fe27 | refs/heads/master | 2020-09-06T12:44:08.414567 | 2018-08-01T14:39:38 | 2018-08-01T14:39:38 | 220,427,484 | 3 | 0 | Apache-2.0 | 2019-11-08T09:01:34 | 2019-11-08T09:01:31 | null | UTF-8 | Python | false | false | 7,925 | py | #!/usr/bin/env python
#
#
#
#
#
# documentation string of this module
"""
Animation tutorials.
"""
# some informational variables
__author__ = "$Author: DR0ID $"
__version__ = "$Revision: 184 $"
__date__ = "$Date: 2007-08-24 19:22:06 +0200 (Fr, 24 Aug 2007) $"
__license__ = 'GPL2, see: gpl-2.0.txt'
__copyr... | [
"qinglanpeng@zju.edu.cn"
] | qinglanpeng@zju.edu.cn |
cde2edf4a10c79aa2209df50159f375a1a6b8a53 | 3d37f595a8aaaa7c5723ddbd6758ecac5147dce2 | /factorial-trailing-zeroes/factorial-trailing-zeroes.py | 7087830bf6b61d0261c4e9cb1b2af12cdc58875f | [] | no_license | baggy2797/Leetcode | ec218b155ebb972cd793253f25c3e18117216703 | 469c1541579401768f7a1da55d504a9e8656b21e | refs/heads/main | 2023-06-24T17:03:42.708935 | 2021-07-16T22:31:24 | 2021-07-16T22:31:24 | 342,979,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution:
def trailingZeroes(self, n: int) -> int:
count = 0
for i in range(5,n+1,5):
temp = 5
while i% temp == 0:
count = count + 1
temp = temp * 5
return count
| [
"bhagwataditya226@gmail.com"
] | bhagwataditya226@gmail.com |
9a97a9e3b2f94a838ba95e342fbd9c9bfbfd4ae2 | 7ab4ccfa4535634538e97119d2a0185641287f27 | /train.py | a456d905d90d2b28b54463e9a6eb5c8d6afd3ad3 | [] | no_license | ycpan1597/MRI-AI | a67d0f99d58909a2334d578a689585669b52d67f | d9e707b1fcb1e1bf5958705c0652186020525472 | refs/heads/master | 2020-06-18T12:49:43.763272 | 2019-08-09T23:00:38 | 2019-08-09T23:00:38 | 196,307,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,527 | py | """
Adapted from https://github.com/meetshah1995/pytorch-semseg
"""
import os
import time
import visdom
import argparse
import numpy as np
import torch.nn as nn
import sklearn.metrics as M
import matplotlib.pyplot as plt
from datasets import MRI
from unet_model import *
from shutil import copyfile
from torch.autograd ... | [
"ycpan@uw.edu"
] | ycpan@uw.edu |
68fbb29c364a4f6b17cf269f611afac8fb2b7027 | 956f13e160b8381d3f8bbbb4b97bf66981ce0490 | /index/migrations/0012_auto_20181119_1617.py | b89c05a472c13c4b6b1a52e677e55b53234dfbd9 | [] | no_license | yzp0111/zyogo | e910d0ad029fb1a3f95beb8422336fee474c635a | b4807f4418d8cb1d195097f87e4e74637346cb6d | refs/heads/master | 2020-04-07T23:46:44.946618 | 2018-11-23T11:43:50 | 2018-11-23T11:43:50 | 158,824,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-11-19 08:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('index', '0011_auto_20181119_0852'),
]
operations =... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
a0191c9a25f1b35321e543f98aaf6c0c6171933c | 709529e7f02daa1ee72424bc239c6f2f65f8b36b | /Contactos/gestionContactos/migrations/0004_auto_20210613_1351.py | 342d80acc2e07801f4402981316a2955f954eb33 | [] | no_license | Dayan-Orozco/Contactos-repo-Prueva-Bascosta | 9175e64af7842785a258520a04b6e8b353785759 | 40ece6029d4cae29d9b99f69c2dc91ad380d80dc | refs/heads/main | 2023-05-29T01:42:41.629228 | 2021-06-14T01:42:18 | 2021-06-14T01:42:18 | 376,675,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # Generated by Django 3.2.4 on 2021-06-13 18:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gestionContactos', '0003_contactos_foto'),
]
operations = [
migrations.AlterField(
model_name='contactos',
... | [
"dayancitodor39@gmail.com"
] | dayancitodor39@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.