blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c6f8e2d69abda1d81242ce8afaa0e6977564abe | 32c062ee5c40182cfd1e9e8e72ff656646c1f07c | /relationships/models.py | 12ff96e1ee902e64da0b36cfbd46f140dd3bcdc3 | [
"MIT"
] | permissive | walison17/pulso-api | c2c312621822eab2decbc3e503f1105cf877c035 | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | refs/heads/master | 2021-09-15T13:43:21.059131 | 2018-06-03T01:45:33 | 2018-06-03T01:45:33 | 122,399,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from django.db import models
from django.conf import settings
from django.utils import timezone
from django.dispatch import Signal
from django.core.exceptions import ValidationError
class Follow(models.Model):
from_user = models.ForeignKey(
to=settings.AUTH_USER_MODEL,
on_delete=models.CASCADE,
... | [
"walisonfilipe@hotmail.com"
] | walisonfilipe@hotmail.com |
227366a6f8bf3422f20ad0997d757866923e26e8 | 1e999187c24790c15b4ff1b79c4ebe5a58318e97 | /CompStrDefns/Pymol/strands_3FYX.py | d540ca50285a7eb55c52844fce57fa3e55f1ac76 | [] | no_license | mwfranklin/OMBBNetwork | 34b542dbc3dc8a08073993053afb63156fde8a87 | ac4b5f175cbd9b37adf90761cc2754657a523cec | refs/heads/master | 2021-07-06T12:12:15.537319 | 2018-12-12T21:48:31 | 2018-12-12T21:48:31 | 132,608,629 | 0 | 1 | null | 2018-05-17T21:31:16 | 2018-05-08T12:52:52 | Makefile | UTF-8 | Python | false | false | 1,612 | py | from pymol import cmd, stored
cmd.load("/Users/meghan/Documents/PhD/GitProjects/v6_2018_Network/CompStrDefns/CompPDBs/3FYX.pdb")
cmd.hide("everything", "all")
cmd.color("wheat","all")
cmd.select("Astrand0", "resi 10-22 & chain A ")
cmd.color ("white", "Astrand0")
cmd.select("Astrand1", "resi 36-51 & chain A ")
cmd.co... | [
"mwfranklin@ku.edu"
] | mwfranklin@ku.edu |
92bf31f8af37bbdde36487465fdf2b7a6d04d5da | 55a4e29bffbe2534f0f56eb0a3b36e03417b1081 | /dlx/callbacks.py | 4fa7571f29f3d42e71f394c16abf8c2989273d0b | [] | no_license | lchmo444/dlx | 0c6285e6f84ba7fca96a2cabb7558838fc7a053a | d481be879d879f131a90fed6337a2f22608bcbef | refs/heads/master | 2020-03-19T06:29:18.978876 | 2016-04-03T16:49:42 | 2016-04-03T16:49:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,802 | py | '''
Almost same as keras.callbacks
'''
from __future__ import absolute_import
from __future__ import print_function
import numpy as np
import time
import json
import warnings
from collections import deque
from dlx.util.generic_utils import Progbar
from dlx.util import keras_utils as K
class CallbackList(object):
... | [
"lxastro0@163.com"
] | lxastro0@163.com |
d4d26bed4686fa46e885b091bb925475e2c91f1a | 4050c190f4495a81d5b93a16c45804986fc90b98 | /plugins/sdm/test/atest-sdm-euler-shocktube-2d.py | ac3101b598b3bf317d9f6639a12b01f139de643c | [] | no_license | vivianbolsee/coolfluid3 | 5490ce042c9441691b36c5e358cd6a0b557e8672 | 6ce39dee83861f0508622b003394324205dc51f4 | refs/heads/master | 2020-12-24T17:35:55.337089 | 2012-05-24T07:35:51 | 2012-05-24T07:35:51 | 3,425,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | import sys
import coolfluid
# The cf root component
root = coolfluid.Core.root()
env = coolfluid.Core.environment()
### Logging configuration
env.options().configure_option('assertion_backtrace', True)
env.options().configure_option('exception_backtrace', True)
env.options().configure_option('regist_signal_handlers'... | [
"wdeconinck@me.com"
] | wdeconinck@me.com |
fc6eb7af5e22855c1fe1d3122f3587bfa6402bdf | 30c9a7247c3633c4b025c7370bbc30cf2a55ee5c | /API/parsers/publications.py | 9e745f01519d950484888b7baee9ddcec0ed39e3 | [] | no_license | DaryaRu/Publication_flask | 765b2089de8bbf04b22ff8bffc1940849108558e | 7dc24a8a16d68c0e0724d31ca62e063be6e9633c | refs/heads/main | 2023-08-10T17:12:58.987750 | 2021-09-12T09:14:38 | 2021-09-12T09:14:38 | 400,288,858 | 2 | 0 | null | 2021-09-12T09:14:39 | 2021-08-26T19:51:13 | Python | UTF-8 | Python | false | false | 852 | py | from flask_restful import reqparse
publication_create_parser = reqparse.RequestParser()
publication_create_parser.add_argument("title", type=str, required=True,
help="This field cannot be left blank")
publication_create_parser.add_argument("content", type=str, required=True,
... | [
"89119484+DaryaRu@users.noreply.github.com"
] | 89119484+DaryaRu@users.noreply.github.com |
c9515e9fd438a2014aabbf49a0b6da9b8cecba33 | 66bdb73805475a522d09c5c19bb437e7064bee00 | /gambling/test.py | 7b42b2680e811fcbb056c74b3fa5bbdb1ef58d6b | [] | no_license | redrockhorse/python | 199799d6e0d2ebcf285e19338668ad57fc238641 | 202e9a0234808d099824f6fbb3689e1bf09d467f | refs/heads/master | 2021-06-02T21:33:30.852520 | 2021-04-22T02:06:35 | 2021-04-22T02:06:35 | 112,588,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | __author__ = 'mahone'
import numpy as np
def getNameByOneHotCode(oneHot,dictArray):
oneHotArray = np.array(oneHot)
_positon =np.argmax(oneHotArray)
name = dictArray[_positon]
return name
if __name__ == '__main__':
oneHot = [0,0,1,0,0,0,0,0,0]
dict ={}
dict['a']=0
dict['b... | [
"noreply@github.com"
] | redrockhorse.noreply@github.com |
923357819defeee2cd4a820e2e5270c48bfef22f | 73b5701ff20719a70f62be81ff73df4c03ca86a7 | /src/models/inception_resnet_v1_expression.py | 2b90cff1ce8e059207576d2457531601e0be55f8 | [
"Apache-2.0",
"MIT"
] | permissive | hengxyz/FaceLiveNet | 32ef05419c68f98b7413afbfbc2146c00929eb4f | 74e249cd2217155b1c5524fd0e55573ae4327f4c | refs/heads/master | 2020-09-15T07:39:02.659209 | 2020-03-18T10:35:26 | 2020-03-18T10:35:26 | 240,273,629 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,090 | py | # Copyright 2016 The TensorFlow 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 ... | [
"mingzuheng@hotmail.com"
] | mingzuheng@hotmail.com |
2836f7639ad2855cedc48cac08000e57bbc2334d | 633eda99e8a4dd00a5549b6a63f5880dabaa0957 | /math/372_OO_Super_Pow.py | 431cdc3fb52d39f05b8bf2fe9764c2e73bd6bcea | [] | no_license | jamiezeminzhang/Leetcode_Python | 1256e9097a482ab4a80363ddef8828986bbf9bde | 56383c2b07448a9017a7a707afb66e08b403ee76 | refs/heads/master | 2020-04-05T14:08:30.336545 | 2016-09-06T01:07:34 | 2016-09-06T01:07:34 | 53,762,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
"""
Created on Thursday July 14 07:07:11 2016
372. Super Pow
Total Accepted: 2171
Total Submissions: 7216
Difficulty: Medium
Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array.
Example1:
a = 2
b = ... | [
"zeminzhang@Zemins-MacBook-Pro.local"
] | zeminzhang@Zemins-MacBook-Pro.local |
2d6e891ed412613ebeb598d8acfe68f6ad0f5eb8 | 15bac409f66ff1800140aa11eafee7c3686a67b4 | /core/migrations/0004_auto_20151011_0300.py | 8fac34dc903ac54d80ffac25be2919e62868a112 | [] | no_license | oasisvali/hwcentral | 4a0297d6e623523dd7a651413556ca44a24ed7ea | b09a3f7a587d072d0f1b06e852f3d8f3929ddc66 | refs/heads/master | 2021-01-18T01:48:06.073429 | 2017-01-26T06:10:43 | 2017-01-26T06:10:43 | 36,690,510 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0003_auto_20150922_0003'),
]
... | [
"oasis.vali@gmail.com"
] | oasis.vali@gmail.com |
dc94995061a88c795f93deb5719820a9c7d233f6 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901020002/1001S02E05_string.py | 2ef785d1bf8d2423628b42ff569e92038180dac4 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 1,395 | py | sample_text = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rule... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
eb2c25dd135444e820ad0a35b754ba6743b5fe49 | 4fab1eb1f623785efd492805f7e12b60bc3cec5e | /venv/bin/lsm2bin | 5496b0787574dfbc77875cdfd9aaf86334091e40 | [] | no_license | royrajchamp/AttendanceProject | c1bb0840326b60ff922eb58be0ef5cfa469f21db | ea0458072fc87e355b42b966534c61d1974a419e | refs/heads/master | 2023-02-11T14:28:34.132463 | 2021-01-04T06:00:09 | 2021-01-04T06:00:09 | 326,584,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/Users/royrajchamp/Desktop/Python/FaceRecognition/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tifffile.lsm2bin import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"royrajchamp@gmail.com"
] | royrajchamp@gmail.com | |
945755e73c4c8fe1438bc352cd5a0861918ad25a | c14d9512c62fc479ba05ea5ed256828e8e1038c5 | /stripe/models/account.py | eaecab1ba97d6ff6408961f48b09a5193aa3c01d | [
"MIT"
] | permissive | jayvdb/saaskit-stripe | c44e6e387d4dd27f564f6959c134ec6aaff8f3c5 | bd292182b0bed47dff86a627231bdabafb99bf71 | refs/heads/master | 2021-09-07T17:25:14.710472 | 2018-01-24T15:17:41 | 2018-02-26T21:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.fields import json
from ..utils import UnixDateTimeField
from .charge import CURRENCY_CHOICES
ACCOUNT_TYPES = (
('custom', _('Custom')),
('standard', _('Standard')),
)
clas... | [
"tony@git-pull.com"
] | tony@git-pull.com |
4421c4879fc4ff83bf45f2fad89ca621e1a7a27e | 117dfcb837a6627f9d92a5cdb710ff4157091d3e | /clouds/utils.py | a0ee843d9b060a61e613bdcf279181dc4af00228 | [] | no_license | martinperezmaneiro/clouds | 945d360c17b09b2952b1951a47d88d93b585a21a | 740cafc903eda66149bc730df28b4d8fb4412bac | refs/heads/main | 2023-06-29T05:08:50.801204 | 2021-07-30T15:33:03 | 2021-07-30T15:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 17 11:24:54 2021
@author: hernando
"""
import numpy as np
#
#--- Utilities
#
def ut_fscale(values, a = 0, b = 1):
values = values.astype(int) if values.dtype == bool else values
xmin, xmax = np.min(values), np.max(values)
def _f... | [
"hernando.joseangel@gmail.com"
] | hernando.joseangel@gmail.com |
58a513a543317eae70adb8d81445905b24667182 | feccf7588777becba68921c0bfade3e21f5210ce | /tests/www/views/test_views_base.py | 10eb3d5ea4b1ed3d2c841e64340bc37eb739d51a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 14,809 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
6b0d3aaa5d1324146b6e7560b6d9b74264c597cb | b41f2312465eaeb8a1cc408236ff39e7e653e674 | /Python/ParaPro/ParaInt.py | 164c5e78a6d67478ae189dbc395da5d7e6c18e1a | [] | no_license | tlfhmy/Homework | 6ae06c2b5ae9deba5172b6080724dc515b04b42a | 3a4edd0fcc2d57e9c14da1a1f6931a32547073c2 | refs/heads/master | 2020-03-31T14:52:27.515375 | 2019-06-06T16:36:33 | 2019-06-06T16:36:33 | 152,313,042 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | from threading import Thread
from time import sleep
from math import sin,cos,pi,exp,sqrt,log
xmin = -5
xmax = 5
def function(x):
return exp(-x**2/2+4*x)
def find_range():
ymin = function(xmin)
ymax = function(xmin)
step = (xmax - xmin) / 5000
for i in range(0,5000):
fva = function(xmin + ... | [
"41378536+tlfhmy@users.noreply.github.com"
] | 41378536+tlfhmy@users.noreply.github.com |
bb6c101d284be09a0ff2ae31f695ab7b0d58c063 | eb45e482180bcfd56a4288f5d8c2d087a2c799ee | /Prueba Menu/Nave3.py | d9a43ad29bc30cf47f6f5bdc5f59bde2fa92dfc6 | [] | no_license | rodriepsilon/ProyectoIE0117 | 40ed0383b8dafa5b69f0e7163171d47a7cff298f | 0a211057cc8137dac1061660ae1fb74afecf28a8 | refs/heads/master | 2023-01-23T06:46:29.203313 | 2020-12-12T16:24:38 | 2020-12-12T16:24:38 | 320,868,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | import pygame
import Proyectil
class naveEspacial(pygame.sprite.Sprite):
def __init__(self, ancho, alto):
pygame.sprite.Sprite.__init__(self)
self.ImagenNave = pygame.image.load("Imagenes/nave3.png")
self.ImagenExplosion = pygame.image.load("Imagenes/explosion.jpg")
self.rect = sel... | [
"rodriepsilon@gmail.com"
] | rodriepsilon@gmail.com |
af4c1960bda9e1828b335560c1264d8c34a317b7 | e09cf4c8b8e52b4bdd9cd502b4ae4851b7834425 | /VayaSiteTool/SJPControl.py | a00990bed650a120b5159e9c47c7276028f38b69 | [] | no_license | simonhdl/PythonProject | 4bf999adee9f9c0c913d34a3449df8658f10e2cc | 64017dbc1f050a46e58d0800fae458fe3e4802c9 | refs/heads/master | 2016-09-06T06:55:47.526588 | 2015-06-02T02:09:10 | 2015-06-02T02:09:10 | 27,421,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,154 | py | import os
import serial
import time
import PyQt4, PyQt4.QtGui, PyQt4.QtCore, sys
from serial.tools import list_ports
from PyQt4 import QtCore, QtGui
# Define Global Variable
SJP_SerialNumber = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00] # Store the connected Smart Jack Pro Serial number
FixtureDiscovered = [] # Store the Fi... | [
"simon.dl.he@philips.com"
] | simon.dl.he@philips.com |
acbe30a76358b81d1b34fb6b8c750f09a386d5f3 | 725ab3b4bf58de327c1a77ad5a56a646e6757161 | /Training/vmodel.py | 405606426b39921ca6ea1ee3f0e71b15e6a4c7dd | [] | no_license | AhmedWael205/MI-Go-Game | e12b1959363b49b1c43dc5a3b54b60e03c79f2a8 | d18a191da8e131ce8f5de5c3365b5b0d01e6e3b4 | refs/heads/master | 2022-06-30T21:25:15.103786 | 2020-05-10T21:56:13 | 2020-05-10T21:56:13 | 252,157,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,564 | py | from keras.models import Sequential
from keras.layers import Dense, Conv2D, Flatten # create model
from keras.layers import Input
from keras.models import Sequential, load_model, Model
import numpy as np
import pickle as pk
from keras import regularizers
def conv_layer(x, filters, kernel_size, act):
x = Conv2D(
... | [
"ahmed.saeed98@eng-st.cu.edu.eg"
] | ahmed.saeed98@eng-st.cu.edu.eg |
17bc4a4da4d2080745b884d4594038a40cbaccad | 878eb2075afe9b33d5a4f647db0010f7491acf55 | /accounts/urls.py | a6e1811a7aca1c72331a26e6eac22c7f143cd189 | [] | no_license | ringomag/crm1Project | 4bae1c35ef77f297f79524dc2dc2bb9e2e72771f | 8a28d1008f576b20e0cfb758e38cd78e152bd540 | refs/heads/master | 2023-03-25T05:53:49.754333 | 2021-03-09T16:57:22 | 2021-03-09T16:57:22 | 346,078,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py |
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('products/', views.products, name='products'),
path('customer/<str:pk>', views.customer, name='customer'),
path('order_form/', views.createOrder, name="create_order" ),
path('update_order/<str... | [
"optimuskrajm@gmail.com"
] | optimuskrajm@gmail.com |
94da97e60f624aff0471d53b253d4836561aeacf | 00f56dd38a0fc7d63b5fcea50963db07ab412e1b | /api/test_models.py | cae75a3c6a220ccee74cd8a8cadc4ac40c928edb | [] | no_license | james604s/pokedex_api | ec225225af49b081b511eec54ca15e537f02e67a | 1a11d4d6ea84667dcf7b1155fa25fdb7a1cbd8ed | refs/heads/main | 2023-04-01T06:48:01.149531 | 2021-04-12T09:09:30 | 2021-04-12T09:09:30 | 356,895,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | from django.test import TestCase
from api.models import *
# Create your tests here.
class PokemonModelTest(TestCase):
def setUp(self):
poke_info = PokeInfo.objects.create(
poke_number="001",
poke_name = "Bulbasaur"
)
... | [
"47516926+james604s@users.noreply.github.com"
] | 47516926+james604s@users.noreply.github.com |
2abc3a0f1c6f650f67886a302f7a8a47167f2736 | 93a5508c28a4b25c949ac3b15fed592a4cb1e60a | /cwiczenia10/udp-echo-client.py | ad2ad604882b9a3cbc8c6f9d311f34d3561d2551 | [] | no_license | jakubpodolski/sk-2019 | 9f1c2ab819f4f5a4cb100ac0766f09a1050b9935 | 303c3a6f7795710a62d40aaf7ed7e77f863a5dbd | refs/heads/master | 2020-04-23T15:04:34.961232 | 2019-06-18T19:45:47 | 2019-06-18T19:45:47 | 171,252,764 | 0 | 3 | null | 2019-05-14T03:17:43 | 2019-02-18T09:21:50 | Python | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python3
import socket
import sys
HOST = '127.0.0.1'
PORT = 65433
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s:
s.sendto(str.encode(sys.argv[1]), (HOST, PORT))
data = s.recv(1024)
print('Received', repr(data)) | [
"noreply@github.com"
] | jakubpodolski.noreply@github.com |
034d42940af343c1638afe358b2506823e840bf4 | 1be4f95b722397f255e58b21a182171eb24b6fe5 | /datalad_neuroimaging/extractors/tests/test_dicom.py | 338f2fa4c994f2dd11ced3bf44f4f0f768516770 | [
"MIT"
] | permissive | yarikoptic/datalad-neuroimaging | 5f9a7b0993ac56bbeaba95427541b2c75ed711ea | 7ee146d6c7c864aafc8b540d0ccd9b3a1b5b7210 | refs/heads/master | 2022-11-11T02:57:46.228562 | 2018-04-10T14:05:21 | 2018-04-10T14:05:21 | 128,942,708 | 0 | 0 | null | 2018-04-10T14:04:46 | 2018-04-10T14:04:46 | null | UTF-8 | Python | false | false | 3,032 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil; coding: utf-8 -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license ... | [
"michael.hanke@gmail.com"
] | michael.hanke@gmail.com |
a2eb7128900a56f43e0ece19dedc06e35f192da8 | c2d3b7855b055cb8b0563a3812fb0dbfc670bc09 | /lessons_src/03_CFL_Condition.py | 7ecf7fe0fd959b7819bcdc7829ed929d41253a87 | [
"CC-BY-3.0",
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | tnakaicode/python-cfd | 85fab343c4c99f32777e45163b89f4d952d83e96 | 174176bdcb1c31e021fefd8fd54e2b3dd898dc62 | refs/heads/master | 2023-08-08T16:53:34.455088 | 2020-05-07T17:14:54 | 2020-05-07T17:14:54 | 261,902,096 | 0 | 0 | NOASSERTION | 2023-07-06T21:27:39 | 2020-05-06T23:30:09 | Jupyter Notebook | UTF-8 | Python | false | false | 5,978 | py | #!/usr/bin/env python
# coding: utf-8
# Text provided under a Creative Commons Attribution license, CC-BY. All code is made available under the FSF-approved BSD-3 license. (c) Lorena A. Barba, Gilbert F. Forsyth 2017. Thanks to NSF for support via CAREER award #1149784.
# [@LorenaABarba](https://twitter.com/LorenaABa... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
55d827d485fafcf2175493438fddf702bd07fca4 | b503b00b34d4581959ed7534aea4ea196f99d7f7 | /coresize_vs_t.py | 3dd5e6a6665220b198f7184379214073bd44ce86 | [] | no_license | afitts/analysis_scripts | 1f76feff7213a26a010e136dea9c5375f447f513 | e02678a2ecbb9628937cceb0a958e19b5b540597 | refs/heads/master | 2021-01-22T20:07:43.033514 | 2017-08-03T13:54:06 | 2017-08-03T13:54:06 | 49,749,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,118 | py | import numpy as np
import sys
import glob
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.colors as co
import pylab
import pygadgetreader as pg
import scipy.integrate
import time as dtime
import scipy.stats as stats
import pandas as pd
import scipy.o... | [
"fitts.alex@gmail.com"
] | fitts.alex@gmail.com |
bfac8c377efa67c14110dbc257e8e53e609f0744 | 381f9865a134f74385d6daaebe49af18534a06ac | /sdapis/views/post_views.py | bab89f1ab23537c17ea1358e57451869a4f279c7 | [
"MIT"
] | permissive | mmtahir-dev/cmput404-socialdistribution | fc2d8fc350751639da78453a83fa0b6d01a617ca | a5a4749c8d9c27ccd062e33be5a4fb2f76697394 | refs/heads/main | 2023-08-26T02:45:13.949291 | 2021-10-29T19:49:42 | 2021-10-29T19:49:42 | 421,166,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,960 | py | from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
from django.shortcuts import get_object_or_404
from django.conf import settings
from sdapis.pagination import PostPagination
from sdapis.serializers import PostSerializer
from sdapis.models impo... | [
"jxiang2@ualberta.ca"
] | jxiang2@ualberta.ca |
16d01ee4642643a3fa9a06a6f2fb3e7d14bc6433 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jupyter_client/jsonutil.py | 9903f70ecee4d8e753d94367e32ed64f5e0d57aa | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 5,944 | py | """Utilities to manipulate JSON objects."""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import math
import numbers
import re
import types
import warnings
from binascii import b2a_base64
from collections.abc import Iterable
from datetime import datetime
from typin... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
93248952101638dd63e2d980f3ce2641a5a9dad7 | ebb1e564c8a11e5af453f3749dcba1b66e2f3931 | /test/quantization/fx/test_model_report_fx.py | d123a8752ca72a05c6e3064859c2dee6efe72fd5 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | jjsjann123/pytorch | 06c3aee8dd3565664ac2e2fda0306432cf62dd7c | de9b3fb3e5eb54660190cbd20b6592fc5cbda547 | refs/heads/master | 2023-08-25T00:22:02.568347 | 2022-07-27T18:50:20 | 2022-07-27T22:38:28 | 152,169,545 | 0 | 1 | NOASSERTION | 2022-08-11T07:55:44 | 2018-10-09T01:33:17 | C++ | UTF-8 | Python | false | false | 79,542 | py | # -*- coding: utf-8 -*-
# Owner(s): ["oncall: quantization"]
import torch
import torch.nn as nn
import torch.ao.quantization.quantize_fx as quantize_fx
import torch.nn.functional as F
from torch.ao.quantization import QConfig, QConfigMapping
from torch.ao.quantization.fx._model_report.detector import (
DynamicStat... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
828a703ebae1eccef6e6dc8304b2d5396451533a | 8ac7946c16fcea34bc8680b78cba4a796834b533 | /serializers.py | 95bc8dbe1ee056a6c05bc334ee4ec64d3404c5a0 | [
"MIT"
] | permissive | anyric/Yummy_Recipe_Api | bc4937505fa11e397cfb1dd10f3336c391f1c317 | 1d0639a1244988892d398cbee4ba479bdcb370f0 | refs/heads/master | 2021-05-14T08:01:19.035452 | 2017-12-20T09:02:10 | 2017-12-20T09:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # coding=utf-8
import datetime
from marshmallow import Schema, fields, pre_load
from marshmallow import validate
from flask_marshmallow import Marshmallow
ma = Marshmallow()
class UserSchema(ma.Schema):
"""
User model schema
"""
id = fields.Integer(dump_only=True)
username = fields.String(requir... | [
"samoeikev@gmail.com"
] | samoeikev@gmail.com |
24c1026d70712dc58f96d6e0a9023fab0f1cdfd6 | 5c531de5e4759c904e608b4fc653b2b041f79a0e | /Snap_monte_carlo_simulation.py | 7cb310205cf32290a10076f203756fb68c14d270 | [] | no_license | jianhui-ben/leetcode_python | 133c7e6e5c7316d00607ba2e327239e002de28b2 | fcc16124cc24a5993e27f5d97e78d8f290e68230 | refs/heads/master | 2022-06-05T22:32:18.034581 | 2022-05-17T02:27:11 | 2022-05-17T02:27:11 | 250,683,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #N个 Turkers标数据,数据很模糊基本靠瞎猜,有M个选项可选。
#问这些人达到了majority共识的概率有多大?也就是有超过半数的人都选了某一选项的概率。
#要求先给出数学解析解,然后给出coding实现方法来求近似解。
#代码其实很简单,Monte Carlo simulation,跑个足够多的次数,用统计结果来近似概率
## p= (1/M)**(N//2)
print(12//2)
import random
random.randint(1, 2)
import collections
collections.Counter([1,1,1,2, 3,3,3,3]).most_common(1)[0][... | [
"jianhui.ben@gmail.com"
] | jianhui.ben@gmail.com |
3b14b0eb38ceefa834a3a25a79f46f208f9026cc | ddeee1af632e7366c1ee069076fb157c9264e53e | /membership/test_utils.py | 9e77f13a83fb5984a41eae6bc53d8350ba96f439 | [] | no_license | Wraithh/sikteeri | b4a6a86f9ca1f451d3fdb867eb684ca1bd7c7d6b | 97ab5de5bb64355bf802925b72c0ac869cc96434 | refs/heads/master | 2021-01-17T14:41:50.968825 | 2011-10-04T17:01:29 | 2011-10-04T17:01:29 | 1,303,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,219 | py | # -*- coding: utf-8 -*-
from random import choice
from models import *
# Finnish population register center's most popular first names for year 2009
first_names = [
u"Maria", u"Juhani", u"Aino", u"Veeti", u"Emilia", u"Johannes", u"Venla",
u"Eetu", u"Sofia", u"Mikael", u"Emma", u"Onni", u"Olivia", u"Matias",
... | [
"atte.hinkka@iki.fi"
] | atte.hinkka@iki.fi |
a11fe76b80dd8631a4026939bf97fec859db6074 | 6f5abc51e09a7913d1895f48dfe23738d8378d89 | /neural networks - Copy/visualiser.py | d37d50309a4665783e83e8389747d2f9f7e008ef | [] | no_license | SiamakMarandi/water_project | ea27326bdab0485cacc9ce2c042cc727463a5c72 | 43bae48e9c49d386ea28f2ff278ff251066f09bc | refs/heads/main | 2023-02-11T07:32:51.296607 | 2021-01-13T14:08:32 | 2021-01-13T14:08:32 | 320,759,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,150 | py | import pandas as pd
import numpy as np
from sklearn.semi_supervised import LabelPropagation
from sklearn.preprocessing import OneHotEncoder
import sklearn
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder, StandardScaler
from sklearn import preprocessing, metrics
from s... | [
"Siamak"
] | Siamak |
647779096fab20072f20915b024115a8adda90e7 | c53412d10a4c14e5a5dc1ca2081fc973ba32ee35 | /week2/Какое число больше.py | a9b0d430e649a0c1c7662c8a6cf2a468b5ca9193 | [] | no_license | mxmaria/coursera_python_course | 81f85d93b6a2d8379b87bc9c7c6e7113dc246f87 | 18c6c7c4eb21d1103dada64fbb7e4add3bbc72b6 | refs/heads/master | 2021-01-05T09:17:21.609173 | 2020-02-16T21:38:22 | 2020-02-16T21:38:22 | 240,967,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Даны два целых числа.
# Программа должна вывести число "1", если первое число больше второго, число "2", если второе больше первого или число "0", если они равны.
x = int(input())
y = int(input())
if x > y:
print(1)
elif x < y:
print(2)
elif x == y:
print(0)
| [
"masha.pecherizyna@yandex.ru"
] | masha.pecherizyna@yandex.ru |
6c7033ce7711e3008a5e3037ae5fccdfc7943568 | c66b39c8974081872f6fe38e1199eaa9235f06e6 | /code/standardmnist.py | 244f56f0b55599a0cf05bc6b319d21226d116a5d | [
"MIT"
] | permissive | travers-rhodes/ricnn | e01e041498ad79c7ba5202c169cbe48612cf26ef | c5a7a15bff78b8f1495223b2bd70c4a1326e469e | refs/heads/master | 2021-05-06T22:47:54.679822 | 2017-12-07T04:21:40 | 2017-12-07T04:21:40 | 112,868,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,360 | py | # Copyright 2015 The TensorFlow 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 applica... | [
"traversr@andrew.cmu.edu"
] | traversr@andrew.cmu.edu |
3f163594b3b9b11894e0d6ab61bdba16ad9b3b76 | 22f7c253deabd23e36a854be17f0996ae7949507 | /categories/serializers.py | e44f026ff5ada458e81b34ed284aa0273fcbd123 | [] | no_license | den503/categories-api | e739c7bc73ea4bde77ae5a83c1fba8364f57ca5a | dd6c1a7a0dcba79c020525ae89ff83b60a3e36da | refs/heads/master | 2021-09-25T18:22:03.278965 | 2020-06-08T06:31:38 | 2020-06-08T06:31:38 | 251,291,176 | 0 | 0 | null | 2021-09-22T18:48:51 | 2020-03-30T11:58:32 | Python | UTF-8 | Python | false | false | 2,043 | py | from rest_framework import serializers
from .models import Category
class CategorySerializerGet(serializers.Serializer):
id = serializers.PrimaryKeyRelatedField(read_only=True)
name = serializers.CharField(max_length=255)
parents = serializers.SerializerMethodField('get_parents')
children = serializer... | [
"zaychuk.dd@gmail.com"
] | zaychuk.dd@gmail.com |
588cb0f08c24dabc182e357f3b5efba012b7b98e | bcf42041a64fdefcaec54843900c3d8f833f2215 | /emc/kb/browser/dataout.py | cf3d77f951b9bb4e11b4e53d61cd34ea9ffe24d5 | [] | no_license | adam139/emc.kb | 487650837207e0f773c077310f001a524965ee4f | ff21383762dad96ac09d414e7d1e8104c51b91f9 | refs/heads/master | 2022-01-14T09:42:49.790659 | 2020-09-22T13:16:27 | 2020-09-22T13:16:27 | 49,318,509 | 0 | 3 | null | 2016-12-26T17:37:20 | 2016-01-09T09:34:12 | Python | UTF-8 | Python | false | false | 7,602 | py | #-*- coding: UTF-8 -*-
import csv
from cStringIO import StringIO
from zope import event
from zope.component import getMultiAdapter
from five import grok
from zope.interface import implements
from zope.interface import Interface
from Products.Five.browser import BrowserView
from Products.CMFCore.utils import getToolByNa... | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
984b0b09cf6085cacdc48e34443a94b00d6542f2 | 6c4e274f9c10ca2579329b236ff1cca27c87d673 | /cpsc4770/02-palmetto/.ipynb_checkpoints/gethostname-checkpoint.py | 113a918dfc205486691abc04d782c5b426a2395f | [] | no_license | xueyun-ys/gpgpu | ebcfbb80645a58391607d38532ac518f26b8ae7c | 32672e791cecb253e53a336eae6ce82aecc9a1e7 | refs/heads/master | 2023-06-11T12:14:36.774123 | 2021-07-01T16:46:17 | 2021-07-01T16:46:17 | 382,035,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | #gethostname.py
import socket
print ("hello world from host %s" % (socket.gethostname()))
| [
"xueyun.ys@gmail.com"
] | xueyun.ys@gmail.com |
7d8d2a7d613ecbd9087ac3588eca08034858f9f9 | 1ee90596d52554cb4ef51883c79093897f5279a0 | /Sisteme/[C++]System Pet OFFICIAL/uipetsystem.py | 4772d43117166548d16ed66d4b2f02322ab6c6fd | [] | no_license | Reizonr1/metin2-adv | bf7ecb26352b13641cd69b982a48a6b20061979a | 5c2c096015ef3971a2f1121b54e33358d973c694 | refs/heads/master | 2022-04-05T20:50:38.176241 | 2020-03-03T18:20:58 | 2020-03-03T18:20:58 | 233,462,795 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,267 | py | import os
import ui
import player
import mouseModule
import net
import app
import snd
import item
import player
import chat
import grp
import uiScriptLocale
import localeInfo
import constInfo
import ime
import wndMgr
import petskill
import uipetfeed
import uiToolTip
import uipetsystem
import interfaceModule
AFFECT_DIC... | [
"59807064+Reizonr1@users.noreply.github.com"
] | 59807064+Reizonr1@users.noreply.github.com |
a78b7c2ff7997da72cd3f9e2e6838ea42da7d1ec | bb16dba71461c17d520725022ffff6b578040a5e | /tools/releasetools/test_merge_target_files.py | bb9ce8e276333dbdd42a26bde30ed3ffe9385b3f | [
"Apache-2.0"
] | permissive | omnirom/android_build | c060115c1fc3adcaaceea40b43ed460387899a48 | 6111dcfb1048d972458aca792aed3dca043b34f6 | refs/heads/android-10 | 2023-08-26T01:40:43.568277 | 2020-08-13T18:36:05 | 2020-08-13T18:36:05 | 13,535,804 | 38 | 295 | null | 2020-07-31T01:49:04 | 2013-10-13T07:53:39 | Makefile | UTF-8 | Python | false | false | 3,045 | py | #
# Copyright (C) 2017 The Android Open Source Project
#
# 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 la... | [
"danielnorman@google.com"
] | danielnorman@google.com |
952ee192cb9e0908a088003c0d9ba094564081bc | 62312aac9650a1cb3f346020f6603644bdd742e8 | /test/handlers_test.py | c8d7d1f916a4068f2100ac0fb8be06a6d4fbe169 | [] | no_license | saymonp/backend-estagio | 427204758d7c60a75ce79a9a1d42ba12b15768a5 | 00b5148776d81a88c8e1f8bb5b2ca71fdec18e8b | refs/heads/main | 2023-04-29T06:21:03.729296 | 2021-05-18T17:21:30 | 2021-05-18T17:21:30 | 321,748,227 | 0 | 0 | null | 2021-05-18T03:04:51 | 2020-12-15T18:01:05 | Python | UTF-8 | Python | false | false | 8,262 | py | import json
import pytest
import random
import string
import json
import requests
from backend.handlers.contact_email import send_contact_email
from backend.handlers.users import login, delete, register, request_password_reset, password_reset, email_confirmation, list_users, update_permissions
from backend.handlers.s... | [
"saymon.t@outlook.com"
] | saymon.t@outlook.com |
75b2778bff31d7bc5c84c4abcbaab82ed40bcef0 | 1cfcf45bbbd7320575d4316744c09826dac407af | /src/tp1_9.py | f84d9137e9a0887a53544da12bfa872c8576234f | [] | no_license | KasuraS/TP1-IoT | 95676d836c007701de17880c6c428d3562e5df6b | 28a7dae47dcd5743eba065417f10b4f16cf10772 | refs/heads/main | 2023-01-18T23:47:54.037618 | 2020-12-04T14:19:04 | 2020-12-04T14:19:04 | 318,537,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import RPi.GPIO as GPIO
import time
BUZZ = 17
BTN = 18
GPIO.setmode(GPIO.BCM)
GPIO.setup(BUZZ, GPIO.OUT)
GPIO.output(BUZZ, GPIO.LOW)
GPIO.setup(BTN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
try:
while True:
btn_state = GPIO.input(BTN)
if (btn_state == True):
print("btn pressed...")
GPIO.output(BUZZ, GPIO.H... | [
"guo.yefan@hotmail.fr"
] | guo.yefan@hotmail.fr |
2112bbc0bb40eb05b9d150ae386c7817e5840775 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /unprocessing/estimator.py | def1f4464ffc7f3d2afab9ff75d80d3992b58c68 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 5,225 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b8b98ecbf8792e2155bd25ee50e31531bb90a722 | 36f0e7ea8aa8171795dce26e1f81ba865e2041c0 | /resite/views.py | c42fb9abfaf39940e9148fb412d1d20e56f597a7 | [] | no_license | pletain/week4 | 13e0f619cb86af4d26ec4f3d0d60f4ca5d1cebff | 5b36ae823c7af7446b387b384aadcd0b99a63cff | refs/heads/master | 2022-11-27T00:01:24.278574 | 2020-08-03T11:30:10 | 2020-08-03T11:30:10 | 283,144,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.shortcuts import render
# Create your views here.
def resite(request):
return render(request, 'resite/resite.html')
| [
"pletain@gimtaehyeong-ui-MacBookPro.local"
] | pletain@gimtaehyeong-ui-MacBookPro.local |
99fe63386a8be48d378cb82477fb48e3093c659b | 1cdff6768a529d91e8588a12333f906f5ddcf8c0 | /main.py | 995abd425a6a4227a0e402d0e3cfd22ec9c66b91 | [
"MIT"
] | permissive | tachytelicdetonation/Plagiarism_Checker | 2481c9b8ac3f18d277ae4d0dd7d76589cd368cfb | 72f3f8a16f5f51e4385de1a4b35a5432d22c7d11 | refs/heads/main | 2023-05-14T15:11:50.164651 | 2021-06-10T16:21:57 | 2021-06-10T16:21:57 | 375,756,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | # Importing Libraries
import os
from offline_utilities import preprocessLines, plagarismCheck, checkPlagarismOffline, showPlagarismOffline
from online_utilities import searchGoogle, getSearchLines, showPlagarismOnline
# Offline Plagarism
# Path to data folder
path_to_data = os.path.join(os.getcwd(),'data/')
path_to... | [
"deshmukhtanmay017@gmail.com"
] | deshmukhtanmay017@gmail.com |
0fb5e7964be470bc671a7d6c2fc74cb80dd76bf7 | 07c6d3055eda7b1ddb16ce9444166ed311ce3219 | /modules/topics.py | 0821e4b960e83e661ea7519105c0d6cf7682fd6f | [] | no_license | IISH/dpe | 4df9b0576b5419e543c61ce9ef14380ddc4b5c03 | 6509b06aa03242f450766d4cb5d8984f14146b11 | refs/heads/master | 2021-01-10T17:52:54.775316 | 2016-05-04T09:50:46 | 2016-05-04T09:50:46 | 42,994,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | import urllib2
import simplejson
import json
import sys
import pandas as pd
import random
import vincent
from vincent import Axis, AxisProperties, PropertySet, ValueRef
from pandas.io.json import json_normalize
from config import configuration, dataverse2indicators, load_dataverse, findpid, load_metadata
import re
de... | [
"4tikhonov@gmail.com"
] | 4tikhonov@gmail.com |
15d9b29ddeef1b379e388b0cbb36ebe97afa4cdd | 30a2a924eb32e7297b5a99785950467f25ea785d | /tfgen.py | 074dd41e2fc6687d9c11c44a8d2d2c8c9a1784f5 | [] | no_license | zshwuhan/Reinforcement-Learning-of-Spatio-Temporal-Point-Processes | 1a794e83491b52dea5db3926de91779a9e661a17 | a3f98e77b56c03839dcdb545b17b3675e7c43878 | refs/heads/master | 2020-07-22T16:18:10.020860 | 2019-07-02T18:49:02 | 2019-07-02T18:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,218 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Imitation Learning for Point Process
A LSTM based model for generating marked spatial-temporal points.
References:
- https://arxiv.org/abs/1811.05016
Dependencies:
- Python 3.6.7
- tensorflow==1.5.0
"""
import sys
import arrow
import utils
import numpy as np
import... | [
"woodielove@163.com"
] | woodielove@163.com |
a2e37e0d4b119607f5714d60955c059bfeb459ae | 96c1f13473cf224113185902edd4c9c01091e106 | /theseus/optimizer/nonlinear/dcem.py | e8187726c0cc032faab0f714e60c34a80840bb1b | [
"MIT"
] | permissive | facebookresearch/theseus | f1e488eb5a25f5ba74a6995911bee958b5da4cf3 | 240e1206329d42fedd40399684d6e17e455c6645 | refs/heads/main | 2023-08-11T07:33:12.328520 | 2023-08-02T12:58:01 | 2023-08-02T12:58:01 | 429,570,359 | 1,410 | 105 | MIT | 2023-08-01T14:30:01 | 2021-11-18T20:28:27 | Python | UTF-8 | Python | false | false | 8,421 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Dict, List, Optional, Union
import numpy as np
import torch
from torch.distributions import Normal
from theseus.core.ob... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
55d63f63586b52b2902dd7b6d821282be331846b | 82f296a1531ffef601d86a36794dbcb0289995e5 | /django_paystack/django_paystack/settings.py | 878fbde0a787c1a41deccaa399087cce01a4582e | [
"MIT"
] | permissive | 204070/django-paystack | c9d3b67cbd28789d30ed84c3118e413dbab9f7a0 | 164163b70a07f38c50c26ba46b47a105322b357b | refs/heads/master | 2021-04-18T18:53:28.502251 | 2018-03-23T13:46:45 | 2018-03-23T13:46:45 | 126,270,266 | 1 | 0 | MIT | 2018-03-22T02:48:19 | 2018-03-22T02:48:19 | null | UTF-8 | Python | false | false | 3,393 | py | """
Django settings for django_paystack project.
Generated by 'django-admin startproject' using Django 1.11.6.
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/
"""
i... | [
"noreply@github.com"
] | 204070.noreply@github.com |
5d4a4e15c598cf1d72b46ffeaf5cc44a01bc8e22 | e6ba92a23cbf92d8727e8a7a057e664d4873db40 | /extdirect/django/crud.py | a7d4d110fc08998339a19d7f2fbc65961cea46bd | [
"BSD-3-Clause"
] | permissive | bitkeeper/extdirect.cherrypy | 0e4cd4c9b5abf538bad407fded5cf265b020392f | e725ad8fe7b8f3fc144d0e78778a054fc6b293c6 | refs/heads/master | 2020-04-01T21:47:26.146205 | 2010-09-22T14:06:41 | 2010-09-22T14:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,413 | py | from extdirect.django.store import ExtDirectStore
from django.db import transaction
from django.core.serializers import serialize
from django.utils.encoding import force_unicode
from django.views.generic.create_update import get_model_and_form_class
def format_form_errors(errors):
"""
Convert the ErrorDict an... | [
"santiago.videla@gmail.com"
] | santiago.videla@gmail.com |
2b5b65b94f2d7333456398ae7ef653016aedb184 | 26eb5f897974f2f4b7af5c6931b4974257e98917 | /model.py | 79cc5ec6e21ef4a4db28f95c3d12ebb149f67ff6 | [] | no_license | gaurav-singh1998/Cycle_GAN | 340168e5507fd9f415afaa79a068f3b8fd99383d | be373f229062faeb56ce840513ef991830093066 | refs/heads/master | 2022-06-14T22:06:50.806107 | 2020-05-07T07:52:05 | 2020-05-07T07:52:05 | 261,984,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | from __future__ import print_function, unicode_literals, absolute_import, division
import tensorflow as tf
import tensorflow_addons as tfa
import tensorflow.keras as keras
def _get_norm_layer(norm):
if norm == 'none':
return lambda: lambda x: x
elif norm == 'batch_norm':
return keras.layers.Bat... | [
"noreply@github.com"
] | gaurav-singh1998.noreply@github.com |
cce4258214c9c76a0aa0de00685e225913846b9b | a7dc8f76293a2c60478c95c4720cf39b8556c9e8 | /tests/test_classify.py | 3dc694dcb8ce4841090ee4d127deb0f3d62de74f | [
"MIT"
] | permissive | FarDON/cherry | 8b67f6587a5c13603dfe5047edece218a382e904 | 28da9a05a0bf09f209829e81b8642e3fd76034e8 | refs/heads/master | 2022-11-02T13:13:12.366289 | 2020-06-22T13:56:45 | 2020-06-22T13:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | import os
import unittest
import cherry
from unittest import mock
from cherry import classify
from sklearn.exceptions import NotFittedError
class ClassifyTest(unittest.TestCase):
def setUp(self):
pass
# __init__()
@mock.patch('cherry.classifyer.Classify._classify')
@mock.patch('cherry.class... | [
"wiwindson@outlook.com"
] | wiwindson@outlook.com |
526b96f125d5bacda89a5d3e7492eb6a3bbbd07f | 5f106fc7ca105f6494ccec3f2da4570979c4f4cd | /Algorithms/Implementation/ACMICPCTeam.py | e7d30159cbe3164e5a0089d7c1e0b7a8b3350d36 | [] | no_license | reichunter1656/HackerRank | 1251017ce894a67f2920f1cfdfc35ca341d66d34 | ca1232645f410c41d68352b0b18d8948e729064f | refs/heads/master | 2023-01-07T10:13:12.314419 | 2017-08-08T05:37:54 | 2017-08-08T05:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | #!/bin/python3
import sys
def findones(maxi):
count = 0
maxs = str(bin(maxi))
for s in maxs:
if s == '1':
count = count + 1
return count
n,m = input().strip().split(' ')
n,m = [int(n),int(m)]
topics_perperson = []
for person in range(n):
topics_known = str(input())
topics_... | [
"jagdeeshxlnc@gmail.com"
] | jagdeeshxlnc@gmail.com |
0a27993a6e8351ecb41b9f6181bea19c78bf6000 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/store/StoreTableDataProvider.py | 047518eda41afe48b100901c3b0b9c35381c591b | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 969 | py | # 2017.02.03 21:50:30 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/store/StoreTableDataProvider.py
from gui.Scaleform.framework.entities.DAAPIDataProvider import DAAPIDataProvider
class StoreTableDataProvider(DAAPIDataProvider):
def __init__(self):
super(S... | [
"info@webium.sk"
] | info@webium.sk |
52bf11f8be269922508207b1a1e3c7cdd7224b51 | ab6cfc2aedad3de7a04efae4a6105dc893958b9e | /hivwholeseq/patients/get_allele_cocounts.py | 733f7a025ee4e21175e08d194a24584b733f1f04 | [
"MIT"
] | permissive | neherlab/hivwholeseq | 158c0ce590bc67d1d36042c71b8b0afa3e8d8abf | 978ce4060362e4973f92b122ed5340a5314d7844 | refs/heads/master | 2021-01-15T16:48:15.769316 | 2015-09-04T08:33:52 | 2015-09-04T08:33:52 | 49,801,765 | 4 | 3 | null | 2016-01-17T03:43:46 | 2016-01-17T03:43:44 | null | UTF-8 | Python | false | false | 1,994 | py | #!/usr/bin/env python
# vim: fdm=marker
'''
author: Fabio Zanini
date: 20/03/14
content: Get the joint counts at two sites for patient samples, after mapping.
'''
# Modules
import argparse
import numpy as np
import matplotlib.pyplot as plt
from hivwholeseq.patients.samples import load_samples_sequenced as... | [
"fabio.zanini@tuebingen.mpg.de"
] | fabio.zanini@tuebingen.mpg.de |
4a88e8e64c8ec9ae2261ff38f90741b89754d523 | 4352fc601b01e6fc30bee3d227778ce53b51cd59 | /models/BHT_ARIMA/util/all_cfg.py | 90415c4b3fb12f544e38bb9f64a55bb36889d581 | [] | no_license | Master-PLC/Few-Shot-Time-Series-Prediction | 9c1f6c812e7bff7ca08818cb4d9339415f156dd9 | c8682d75e2898172110ce48fd787c61149661519 | refs/heads/master | 2023-08-27T13:32:32.108613 | 2021-11-11T02:17:20 | 2021-11-11T02:17:20 | 425,485,973 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"18358716036@163.com"
] | 18358716036@163.com |
ec461e4efcf3da5428bd688d03a049eaf481b553 | 60b8c5e048be54f49c28b2c224e86cf4d4629164 | /gluon/setup.py | ec8a8656318e076b7715cb3373652d0ac7778656 | [
"MIT"
] | permissive | kcieslik/imgclsmob | b333d2b0f8a04d15cc1c0b0d38845d1d2923ae26 | d15bc7d4ebc50a31b4ad01cb3ad0e73b8cddbc9a | refs/heads/master | 2020-06-13T06:21:01.744329 | 2019-06-28T16:05:11 | 2019-06-28T16:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='gluoncv2',
version='0.0.47',
description='Image classification and se... | [
"osemery@gmail.com"
] | osemery@gmail.com |
305a5a7277c7e434c04cf95617392b42795b7d06 | 03debe97691578baa8ff1f0cfe1672d55177cab8 | /aanet/nets/resnet.py | 7441801396305145fd82c3c9b16a122a054a7f9c | [] | no_license | Luis-Domenech/stereo-matching-framework | 5567b3bc75264a9fee9ec6d6bee613dedb2e0bbf | 37dd139ec55ee5632db978c7f710eb99fe54a545 | refs/heads/main | 2023-04-26T02:53:56.962893 | 2021-05-09T02:32:56 | 2021-05-09T02:32:56 | 355,167,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,482 | py | import torch.nn as nn
from aanet.nets.deform import DeformBottleneck
def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
padding=dilation, groups=groups, bias=False, d... | [
"luisfabiandomenech@gmail.com"
] | luisfabiandomenech@gmail.com |
01e8d841776ae8c2ad5bab76dccfa18b88ddf5cd | da266e92895f4cc41a8531120c19a04268ee829f | /Stats_GUI.py | 6adb6fa770efd2c323546c8a643a48b0e979d3ae | [] | no_license | sportsanalytics-world/BueStats | 5b39cc580241e91a5cbe2732a7f0f2ca27112f44 | 82026c43915c79c001b9f96457432f7330ddea9a | refs/heads/master | 2022-04-12T09:36:19.415143 | 2020-03-22T20:39:49 | 2020-03-22T20:39:49 | 272,090,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,797 | py | # encoding: utf-8
from tkinter import *
from tkinter import ttk
import GetAllGamesCommon
import GetAllLeagueCommon
import GetAllLeagueBothPlata
import unicodedata
from importlib import reload
import os
import platform
system = platform.system()
class Application(Frame):
def __init__(self, master):
Frame._... | [
"noreply@github.com"
] | sportsanalytics-world.noreply@github.com |
f39bd365db767a8011a2eb4aa13b47ed5c0ac42e | 923d035a4762a19b30d5900db91143a83837ae70 | /ichnaea/data/station.py | 8546d75f06412bf83af0c62c790ab8f2638f4774 | [
"Apache-2.0"
] | permissive | voolitels/ichnaea | d5d5da34cb30b3e0c85675e32dab3972cc31d7b0 | bd0350fcba9efb0bad3957309ed3a471ae07e41b | refs/heads/master | 2021-01-17T14:21:16.056481 | 2015-11-10T16:38:22 | 2015-11-10T16:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,009 | py | from collections import defaultdict
import numpy
from ichnaea.constants import (
PERMANENT_BLOCKLIST_THRESHOLD,
TEMPORARY_BLOCKLIST_DURATION,
)
from ichnaea.data.base import DataTask
from ichnaea.geocalc import (
centroid,
circle_radius,
distance,
)
from ichnaea.geocode import GEOCODER
from ichnae... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
ce043bf80c658866371ed8409b88d5e6d18b4d21 | 9d4ff6b56b399b5c486944e195e6a1a0ebd489d1 | /SDA_python_basics/tasks/task_9.py | 9cea88c7d140099d4ef06ec0cebfba9f8824ef3f | [] | no_license | damianpud/sda_tasks | 92014faa1058920c9890d59e9e94fe6883667890 | 30f78b8b2faec306e6de5c817a4f2c8ef73cda84 | refs/heads/master | 2022-12-21T09:56:14.608238 | 2020-09-23T14:48:45 | 2020-09-23T14:48:45 | 289,966,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def sum_up(number):
wyn = 0
for x in range(number + 1):
wyn += x
return wyn
if __name__ == '__main__':
number = int(input('Podaj liczbe: '))
result = sum_up(number)
print(result) | [
"damianpud@gmail.com"
] | damianpud@gmail.com |
9649c62f55bb141c3e815d7ae15718dd19ade3dc | f8be761637814550276932dd3170ab5deec3b129 | /views/basic.py | 2c34d10741507f58b418cdd83be06bc742b30a82 | [] | no_license | jixiaolong/django-cms-note | db83d965c7389d9652f0f5e98453f08d0d5ea1de | 7268dbe95fd8597816eae78ab868a82f4b08cd4c | refs/heads/master | 2021-01-11T18:19:38.576666 | 2013-10-17T10:14:42 | 2013-10-17T10:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.conf import settings
from django.shortcuts import render_to_response
from django.template import RequestContext
def home(request):
return render_to_response("home.html",context_instance=RequestContext(request)) | [
"jixiaolongcom@sina.cn"
] | jixiaolongcom@sina.cn |
92e8eeda1d3934e17697a68fe86657b5a410da66 | 20d59cfb6290809431ca919b1ce4afe15630aa0a | /BookProblems/Chapter3/Eulerian Path(BA3G)/BA3G.py | 838b37eee7bb8072626cfa72cba422d2005ad8ab | [] | no_license | NimaFathi/Bioinformatics-Rosalind-Textbook | ab5d0a62ac74d17a01d9c4d4aeebd0e4ccc96b60 | c6722f51739b54204b02ab2cbc214928369e1b57 | refs/heads/main | 2023-02-12T00:04:28.436607 | 2021-01-11T05:53:57 | 2021-01-11T05:53:57 | 325,874,914 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | class Node:
def __init__(self, value):
self.inDegree = 0
self.outDegree = 0
self.val = value
class Graph:
def __init__(self, vertices):
self.v = vertices
self.graph = {}
def add_node(self, value):
node = Node(value)
self.graph[node] = []
ret... | [
"nimafathinimafathi@gmail.com"
] | nimafathinimafathi@gmail.com |
3185ab9b1cda0366a299487c74cbd02fbe6495de | c873aed518de878b9953ebd6fe0a455a789d221d | /examples/amalgamation/transformer_ka/light_detr/models/seq_dropout/__init__.py | c118da0d0eb0ec960dfe0790dfcd507f5fb42dc3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zju-vipa/KamalEngine | 6a9aa461054b9194b204ec41de5d35b211796a76 | 7b77676d22dc88ca262941788cb8bb1d973690c0 | refs/heads/master | 2023-08-17T05:56:52.210411 | 2023-08-03T07:41:55 | 2023-08-03T07:41:55 | 195,203,179 | 99 | 26 | Apache-2.0 | 2023-08-03T07:41:56 | 2019-07-04T08:41:43 | Python | UTF-8 | Python | false | false | 6,506 | py | import copy
from typing import Optional, Dict, Any
import torch
import torch.nn as nn
from . import seq_dropout_functional as F
class SeqDropoutBase(nn.Module):
def __init__(self, **kwargs):
super().__init__()
self.permute = None
def _record_permute(self, permute: torch.Tensor):
sel... | [
"865490109@qq.com"
] | 865490109@qq.com |
571fa838209f48b5067bd64c92e95fc0f681e718 | 45fa095fd1e7b1fe4d53717d9890ff9dfdaebfec | /PayPalSandBox/app.py | 8659c206797328e10be2dbada6146d84777431af | [] | no_license | Lowens1996/PersonalProject | 859c1d290cf7509e28e350fedd92033d5660981e | 4d606f5af423b30c5f2cb6063ede8c4b1d2b96b1 | refs/heads/master | 2021-09-24T08:34:50.167625 | 2018-10-06T00:19:17 | 2018-10-06T00:19:17 | 117,971,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | from flask import Flask, render_template, jsonify, request
import os
import paypalrestsdk
paypalrestsdk.configure({
"mode": "sandbox", # sandbox or live
"client_id": "ASNdXIYOglgkncwMqPFadYDjhKmlET-iFnb8JY_EuBol59DIZGcX0vYrRl3lRhw2nHKAXE5ACBMIGlP9", # merchant account
"client_secret": "EJ6ZHrvWB5mU_Te6R... | [
"noreply@github.com"
] | Lowens1996.noreply@github.com |
490e7173f262ccd60dae3f62d13c8f4762f461ee | 80ba45bad62c77615d416bf6f6231ed41d7e010a | /onto.py | 660e736295324e10849b44d32231ec9ac900354b | [] | no_license | saitarunreddy/Ontology-based-Learning | b2237bed55632d4ec792415572fbdc056d708a21 | 4eff8422bdb67a40a9171843496e5bd1fe69e7b9 | refs/heads/master | 2020-12-02T18:11:56.690976 | 2017-07-28T04:37:40 | 2017-07-28T04:37:40 | 96,492,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | import pronto
#import json
import MySQLdb
import re
ont = pronto.Ontology('pizza.owl')
# print(ont.obo)
# print(ont['Attribute'].children.children)
db = MySQLdb.connect(host="localhost", # your host, usually localhost
user="root", # your username
passwd="tarun", ... | [
"noreply@github.com"
] | saitarunreddy.noreply@github.com |
a1514ff0aae5fff6ba6124c662459a1592b7a132 | 55c8fd9ce0c5bb147cbdb69274873b93b35356fc | /pathGeneration-v2/code-v2/full_eval.py | ca61e1c985c92a33e67e67192299fb8498954df2 | [] | no_license | WOW5678/pathGeneration | b4143bbbc2be686ee011d24af46d57d2cee88f06 | 88f31b4f30750307fa7f5072e7faa2f959a6d0c0 | refs/heads/master | 2020-08-06T17:46:22.075128 | 2019-11-15T12:38:07 | 2019-11-15T12:38:07 | 213,097,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,528 | py | import numpy as np
from sklearn.metrics import precision_recall_fscore_support, average_precision_score, \
roc_auc_score, precision_score, recall_score
thres = 0.5
def f1_score(preds, labels, thres, average='micro'):
'''Returns (precision, recall, F1 score) from a batch of predictions (thresholded probabilit... | [
"noreply@github.com"
] | WOW5678.noreply@github.com |
d656a1ac663178e18029435ffcf12e75e28bc44f | f40edc47f2bf93514bfd7cfe3c06174d4c22ae4a | /4_4_FFT_analysis/FFT.py | d75fc4240a5a5afe8a33d1556008724ab230bce2 | [] | no_license | Hexzel/mbed04 | c8c6b2567bd4b31b600b2f22b69b5edf6da055bf | 27ada40eb1cb603ef31e1777cf2e5fb5434c7326 | refs/heads/master | 2023-03-21T17:53:19.482916 | 2021-03-17T06:38:44 | 2021-03-17T06:38:44 | 346,040,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import matplotlib.pyplot as plt
import numpy as np
import serial
import time
Fs = 128.0; # sampling rate
Ts = 1.0/Fs; # sampling interval
t = np.arange(0,1,Ts) # time vector; create Fs samples between 0 and 1.0 sec.
y = np.arange(0,1,Ts) # signal vector; create Fs samples
n = len(y) # length of the signal
k = np.ara... | [
"a0972180845@gmail.com"
] | a0972180845@gmail.com |
1858a114a9d82906af66ed0196d28e122827ea7c | 6d09adf8d47e36fe985a07ebe5fe5c77df9b8d45 | /flask-sla/demo/modules/admin/views.py | 2d7f4ed73ed0e44dd03e1df50734efb79a004988 | [] | no_license | kingAlexanders/python_practice | 7abc4fe13eb5ede77cced4b59d55bd1116e89ff7 | 92fe7cb60f9e31b74a5ce89997e477ea761d5410 | refs/heads/master | 2021-09-14T18:17:49.604723 | 2018-05-17T03:36:58 | 2018-05-17T03:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from flask_admin import BaseView, expose
from flask import Blueprint
adminRoute = Blueprint(
'admin',
__name__,
url_prefix='/admin',
template_folder='templates',
static_folder='static'
)
class SlaView(BaseView):
"""View function of Flask-Admin for Custom page."""
@expose('/')
def inde... | [
"itimor@techdog.com"
] | itimor@techdog.com |
c89619a5118a3b9d949bc62c1c2cf72ec70512f3 | 218a0c6b4af878af47862822d3b5744ae0268d6e | /Day1/program1.py | 45c0cd79123893efb1855f8f6f2a67333ae61a06 | [] | no_license | gauravgupta99/tathastu_week_of_code | 20a7810aed6ea1f8ab62e9c250d8d1b7826c4a12 | 4146103420e3badd1b50bdc0daf2e8c6fee838eb | refs/heads/master | 2022-07-19T08:30:15.869438 | 2020-05-26T17:44:54 | 2020-05-26T17:44:54 | 266,273,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | name=input("Enter the name")
branch=input("Enter the branch")
gender=input("Enter the gender")
college=input("Enter the college")
age=int(input("Enter the age"))
print(name)
print(branch)
print(gender)
print(college)
print(age)
| [
"noreply@github.com"
] | gauravgupta99.noreply@github.com |
ceda8961e32720094a1947a9f7881b8781ad8f22 | 28bee4bae40460d08c84f903f1fff3f057d59805 | /todo/views.py | 895283def2ca7a7b8cb46f74e9feabbae1d79583 | [] | no_license | GaganShergill/todo | a8f1e4d49977abfd3ead9fd81811ef42968091e2 | 22ea8854d49c46f367faddc1f6285be28fae0461 | refs/heads/master | 2022-12-05T12:38:54.467044 | 2020-08-21T14:35:53 | 2020-08-21T14:35:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.views import generic
from . import models, forms
from django.utils import timezone
from django.urls import reverse_lazy
# Create your views here.
class TaskListView(generic.ListView):
model = models.ToDo
def get_context_data(self, **... | [
"shergill352@gmail.com"
] | shergill352@gmail.com |
691d85c56366185ed37ff4b0d26830bd496179bc | 0b1d991dbb803d73b60bf7337d629048457a4f03 | /Week_2/homework2.py | 3493fd4d0f8b69de00bf41c3b2fc22bc074fad57 | [] | no_license | BuiNgocHai/DataScience | 7dd59f06bfa2f877cb48d96419a4928c9b23d161 | 232f18dbda6fc450bbd5866b50e6200e96ee6b11 | refs/heads/master | 2020-03-27T00:09:00.741780 | 2018-09-08T01:21:53 | 2018-09-08T01:21:53 | 145,598,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | a = [[1, 4], [9, 16], [25, 36]]
print ([i[j] for i in a for j in range(2)])
| [
"haibuai3@gmail.com"
] | haibuai3@gmail.com |
153fbf7d83996dbe4b03cef164b1f86b688de49f | f63bb3418a4bcfca847afd65349f5d2e7c4a6863 | /tests/test_exceptions.py | 1989073263ffb73d901d830f061a3bc6e2f06958 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ndanielsen/py-votesmart | 8e5ee50a25d436b8926296d2f9fb33011f19b14e | bd69479ab06bf422cb965fcb6de4c38f227ea99c | refs/heads/master | 2023-05-27T05:50:21.533984 | 2019-11-17T19:22:12 | 2019-11-17T19:22:12 | 121,299,285 | 7 | 4 | NOASSERTION | 2023-05-22T21:34:24 | 2018-02-12T20:41:52 | Python | UTF-8 | Python | false | false | 215 | py | import pytest
from votesmart.exceptions import VotesmartApiError
def test_sanity():
assert 1 + 1 == 2
def test_VotesmartApiError():
with pytest.raises(VotesmartApiError):
raise VotesmartApiError()
| [
"noreply@github.com"
] | ndanielsen.noreply@github.com |
0ac07e96dc5cadeae1a88aa2810f899855728c95 | 3ab1b81f407e9a7af434b9ac3687ea52ff271292 | /Trees/binaryTree.py | 73ed41dd763b8815d8291e7e0f3c58967b3efea6 | [] | no_license | sravanthi-kethireddy/LeetCode | 418db700f3d95f12b3098cbc4e798bb7eb5e7914 | a0c34c7736ef0763fdbb52e2bde990e0b33e8ca6 | refs/heads/master | 2023-01-29T07:51:40.495479 | 2020-12-02T21:20:32 | 2020-12-02T21:20:32 | 317,992,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | py | class Node:
def __init__(self, data):
self.left = None
self.right = None
self.data = data
# Function to insert nodes in level order
def insertLevelOrder(arr, root, i, n):
# Base case for recursion
if i < n:
temp = Node(arr[i])
root = temp
# inser... | [
"Sravanthi.Kethireddy@ey.com"
] | Sravanthi.Kethireddy@ey.com |
f9b7225639bb8e7345c3ae82acb0ee54276ceedb | fd67592b2338105e0cd0b3503552d188b814ad95 | /egoi_api/paths/campaign_groups/post.pyi | e20c009a7deaa011725e0a74459217db59959c7d | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 15,827 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from egoi_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F4... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
f2ad114df4ada5223c1c638da1322b6179e67576 | f60415469d5d28b2c9b7160d34d1aac979fddedc | /main.py | 88399ef33de463fb39326c630e3822ea11ce5457 | [] | no_license | michael-kwan/llanalysis | ffb30b469caef348d86e44e743e8d7dac6598a52 | b307f974f7255db8b7795644182c3312c2b5f726 | refs/heads/master | 2022-07-02T22:25:38.965433 | 2022-06-12T10:38:32 | 2022-06-12T10:38:32 | 176,899,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import sys
sys.path.insert(0, './src')
import util
import player
from bs4 import BeautifulSoup
import requests
if __name__ == "__main__":
sesh = util.login()
#players = util.get_player_ids()
#print(player.get_player_info('kwanm', sesh))
#print(player.get_player_charts('kwanm', sesh, [5]))
print(player.g... | [
"18michaelkwan@gmail.com"
] | 18michaelkwan@gmail.com |
4cc9a4def847a0054c5afcf86c3fd3aab5fecd98 | ee8f7957897df84744a36ef57dc000a81c5fa02b | /imageParse.py | ab0b180b745d40686b758ef9c6daf5ec5ddf13b7 | [] | no_license | mts2/Scribbler2 | 2611ba9273e98b406f5f053ccc5b69d122cbfe27 | fe41c12faf74d6303db1929432e8d0827c4f8375 | refs/heads/master | 2021-01-19T00:29:38.820668 | 2014-11-18T04:13:55 | 2014-11-18T04:13:55 | 25,258,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | from myro import *
import fileParse
def compare(pixel, colour, tolerance):
comparedR = colour[0]
comparedG = colour[1]
comparedB = colour[2]
realColours = getRGB(pixel)
realR = realColours[0]
realG = realColours[1]
realB = realColours[2]
return (abs(realR - int(compa... | [
"michael.socha.99@hotmail.ca"
] | michael.socha.99@hotmail.ca |
3103020bb638bf038a828e22a9c2e1ad20c9edcb | 268d048cbfda3d7c12989e7f27fe1cdf390be5d9 | /ship.py | 635d339d63ea9d25522cfe73c1299175c0059dfd | [] | no_license | blahwhale/game | 98df73c35ce16dbe3c065de5ba4274169ff0650a | ce063055be3fa7a35804c2e1d28d18035a7c141c | refs/heads/master | 2020-05-02T13:22:11.023011 | 2019-03-28T06:46:41 | 2019-03-28T06:46:41 | 177,982,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | import pygame
class Ship():
def __init__(self,ai_settings,screen):
"""Initialize the ship and set its starting position."""
self.screen = screen
self.ai_settings=ai_settings
#Load the ship image and its rect.
self.image=pygame.image.load('images/ship.bmp')
self.rect=... | [
"dgu@Dians-MacBook-Pro.local"
] | dgu@Dians-MacBook-Pro.local |
d99b94a8224ccb5c9aac7a269535457cfdfb8e9f | 2d71a4824e6a99f137c9e1ae7d0af9b661e38291 | /Random_Substitution_Cipher.py | 2e476b29dfff8d8abb1695e7ff3bef6ff72b5505 | [] | no_license | parinshah187/Python-Progrrams | 61d0dfee498639096a7260ec6628a529d8d474f4 | 3386b6bb2af50b8b5a2f167106d7ce129267446e | refs/heads/master | 2020-05-19T09:27:35.377042 | 2014-03-25T10:46:51 | 2014-03-25T10:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | # URL -> http://www.codeskulptor.org/#user16_UjY3TZ9q0YH6c2e.py
import simplegui
import random
CIPHER = {}
LETTERS = "abcdefghijklmnopqrstuvwxyz"
msg = ""
emsg=""
en = True
def init():
letter_list = list(LETTERS)
random.shuffle(letter_list)
for ch in LETTERS :
CIPHER[ch] = letter_list.pop()
p... | [
"parin.shah1807@gmail.com"
] | parin.shah1807@gmail.com |
b6888f2a0b0cebdf279fd788903a70b9e292e2f3 | eb1de99009c03e55ab02240d4a4f471e261300e3 | /WhosWatching.py | dbac1b261bdf33a7e4c49de4f2bd2328d9d24dec | [] | no_license | dmegahan/WhosWatchingTheStream | 987446e0a3412a748886763658127993ca7d041f | 6833eb53b1e6e9af57d59b3cd1b3230e50704afe | refs/heads/master | 2020-06-14T16:52:01.391226 | 2015-02-24T02:32:01 | 2015-02-24T02:32:01 | 31,239,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | import requests
#trackedUsers are the people you're looking for
trackedUsers = ['Totalbiscuit', 'LIRIK', 'summit1g', 'kinetick42', 'AmazHS', 'Voket']
#stream is the stream chat to search in
stream = 'summit1g'
#will read the twitch users followed streamers and track them instead
def trackFollowed(twitchUsername):
... | [
"dpm68@drexel.edu"
] | dpm68@drexel.edu |
a58740e2a6ef0f1c5c1c2d3373a3d57e3b7311d6 | e6904315fef720d562727c259fe55edcaaf2f84b | /src/orion/core/io/evc_builder.py | 01094146ed00e9b0623a8a0adf56c0ef4a18b01b | [
"BSD-3-Clause"
] | permissive | mnoukhov/orion | c93c4655f6b1b6358f8ead78a3adbe9d871785c7 | 7849d77344e84ec805207cf4148aecf6f7d6b3d7 | refs/heads/master | 2020-03-25T05:37:54.251082 | 2019-08-19T17:33:15 | 2019-08-19T17:33:15 | 143,457,714 | 0 | 0 | NOASSERTION | 2018-10-31T02:37:32 | 2018-08-03T17:55:57 | Python | UTF-8 | Python | false | false | 2,275 | py | # -*- coding: utf-8 -*-
# pylint:disable=protected-access
"""
:mod:`orion.core.io.evc_builder` -- Builder of experiment version control tree
==============================================================================
.. module:: experiment
:platform: Unix
:synopsis: Builder of the experiment version control t... | [
"xavier.bouthillier@umontreal.ca"
] | xavier.bouthillier@umontreal.ca |
080eab695ae14e05fd3c8832d91b6e36843643b1 | fa3f5368cbba48de3b9c57c79785e51086afb04d | /Python/daheng-camera-hello/Galaxy_Linux_Python_2.0.2106.9041/api/gxipy/dxwrapper.py | c8164896a7110e9041a141dc8586018aa345d7e7 | [] | no_license | langenhagen/experiments-and-tutorials | 8f853675e0d8718581c33ff099fcb35c8958f315 | 9598af1b8be7ebe8462a0bbfc87a6edfa5063741 | refs/heads/master | 2023-08-03T15:07:38.757388 | 2023-07-31T16:15:34 | 2023-07-31T16:15:34 | 211,196,519 | 4 | 1 | null | 2022-03-27T10:02:49 | 2019-09-26T23:15:40 | HTML | UTF-8 | Python | false | false | 39,187 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# -*-mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*-
#
from ctypes import *
import sys
import os
if sys.platform == 'linux2' or sys.platform == 'linux':
if os.path.exists('/usr/lib/libdximageproc.so') :
filepath = '/usr/lib/li... | [
"andreas.langenhagen@micropsi-industries.com"
] | andreas.langenhagen@micropsi-industries.com |
32c495d86179c4401c8bf75df944c92c9b360c0c | c924556a5929b3fa7447bf6fe9b2559a2ea7a5d7 | /question/migrations/0006_auto_20170814_2126.py | 4d6e70ec9e9e31b9ced8cfd1e331d07e04d60282 | [] | no_license | mx11Code/zhihu | d29be1cb1a5bc455443d0c5010efefbca36bec65 | 09979b3391f95ec0528f8fda3fce4d3a1a694914 | refs/heads/master | 2021-01-01T06:06:31.224160 | 2017-08-18T06:38:57 | 2017-08-18T06:38:57 | 97,356,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-14 21:26
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
... | [
"18672553257@163.com"
] | 18672553257@163.com |
a06e77569bb9fc552a12e6e6f5ee56d5c33ebea1 | 602bdbd1d8ef4d36ccfdcae5756bc8e448d30584 | /share/basiccms/web/checkout.py | 86bb792ceeb5be2a1dd97fafe87b116f9d8f365f | [] | no_license | timparkin/timparkingallery | 1136027bf9cfbad31319958f20771a6fdc9f5fc4 | 6e6c02684a701817a2efae27e21b77765daa2c33 | refs/heads/master | 2016-09-06T00:28:16.965416 | 2008-11-25T21:15:45 | 2008-11-25T21:15:45 | 12,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,952 | py | from pollen.mail import mailutil
from twisted.internet import defer
from twisted.python import log
from nevow import url, accessors, inevow, tags as T, rend
import formal
from crux import skin, icrux
from tub.public.web.common import getStoreSession
from ecommerce.salesorder.manager import SalesOrder, SalesOrderItem
... | [
"info@timparkin.co.uk"
] | info@timparkin.co.uk |
d3dca8c7caa3d4cce19d81a2ae21e26977fd5021 | f6b95eb2e5c988b2f6d12a185996601898c06e4f | /E87A_E87G_count_water.py | b1044d83f49ef847a85a7bdfead308d375a2f1af | [] | no_license | A-Yarrow/PDB_tools | f4ca2de900f1c5da9b2a543dd23e4c5aa13e05dc | 89a66c0fbfd53e58d7b5463625d452148f91a3e6 | refs/heads/master | 2021-01-02T09:18:10.468628 | 2019-10-13T22:38:17 | 2019-10-13T22:38:17 | 99,187,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,570 | py | import os
import matplotlib.pyplot as plt
import seaborn as sns
def count_E87A_single_water():
os.chdir("/Users/yarrowmadrona/Laboratory/MD/NAMD/dosE87A/analysis/water_bridge/pdb")
filehandle = open('E87A_single_water.txt', 'wb')
E87A_water_list_single = []
E87A_single_frame_list = []
current_dir =... | [
"yarrowmadrona@gmail.com"
] | yarrowmadrona@gmail.com |
871ee0aa11d9c9a5a5fd113b5d7702362217c2e3 | 8ec820513f17e34c64f8d66c57da40e02f1f1959 | /app/settings.py | b0a3617963e7083efa67871aa4d9f42ed02e381a | [] | no_license | fbiopereira/python-flask-api | 69174deb6f2211d1366fd4e767cb93c9d91d021d | c0ebf8623eee1eca844b69b26ae0d3d959abe71d | refs/heads/main | 2023-04-05T08:37:00.409107 | 2021-04-07T19:27:13 | 2021-04-07T19:27:13 | 348,356,103 | 3 | 0 | null | 2021-04-07T19:27:14 | 2021-03-16T13:22:38 | null | UTF-8 | Python | false | false | 2,760 | py | import os
from app.helpers.git_helpers import GitHelpers
from app.custom_log import CustomLog
from flask import Flask
from flask_restplus import Api
from flask_pymongo import PyMongo
from prometheus_flask_exporter import PrometheusMetrics
flask_app = Flask(__name__)
# Setting environment variables
environment = "dev... | [
"noreply@github.com"
] | fbiopereira.noreply@github.com |
890a0e4832d87c843d5509306210f0da7f740075 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLMM/YW_TSZLMM_SZXJ_085.py | aee9b54b61b3b19aec3adc52e31a8f6ab6a2da24 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
9c10b4ab8f6eefaa201f87e20b7c7240a8586b1d | 74988580506873d7047c2283690b0335ee1c595b | /backend/env/lib/python2.7/site-packages/django_cron/models.py | bd2db7041d640e08eb4897a9e053d7743b0012d1 | [] | no_license | morganpdx/CompostAnalyzer | 9be7f9b6379ca9b0aaed3ff5df7f1c047789b1d1 | 68d46127d9992499dc3fae36228f797254bab0bb | refs/heads/master | 2020-06-12T22:20:12.044913 | 2016-12-04T20:11:36 | 2016-12-04T20:11:36 | 75,499,675 | 1 | 0 | null | 2016-12-04T01:42:10 | 2016-12-03T20:51:41 | Python | UTF-8 | Python | false | false | 1,079 | py | from django.db import models
class CronJobLog(models.Model):
"""
Keeps track of the cron jobs that ran etc. and any error messages if they failed.
"""
code = models.CharField(max_length=64, db_index=True)
start_time = models.DateTimeField(db_index=True)
end_time = models.DateTimeField(db_index... | [
"morgan.senkal@metaltoad.com"
] | morgan.senkal@metaltoad.com |
77510b8aa173a5acc8b0b2369d6a2850ff5fb175 | 2a57cee9055825ce4f6f1477495c17acc0c2de80 | /classification/utils/plots.py | 5f9caddc7d2f6c5374a8ee79b73952f9940fc8b6 | [] | no_license | bayer-science-for-a-better-life/beehive | 60c72ad1d3098f0ea6daa582ee0a660dd6e4fa48 | 1b9a42833bd0dc1b95fe1c1c573d018659967308 | refs/heads/main | 2023-04-01T14:20:35.931453 | 2021-04-09T17:59:16 | 2021-04-09T17:59:16 | 356,354,493 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,782 | py | import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
def hist(vals, title=None, save=None, xlim=None):
"""vals: num list"""
ax = sns.distplot(vals, kde=False)
if xlim is not None:
ax.set(xlim=(0, 230))
if title is not None:
ax.set_title(title)
if save is not No... | [
"schweringmarc01@gmail.com"
] | schweringmarc01@gmail.com |
ec05c908b2293a6b5a56297de2b08df851baacec | b33930a7d8e382985d7e8a8bc94fb5ccecbceefd | /leaf/dataSpec_P5B.py | 720a399e24574be44313d5a062302508a10372bf | [] | no_license | UCL-EO/leaf | d766f106917ee4200bfe9ed72e5a559a1a28b687 | b6751acee636ded88bbbaa2cd5cc39ae7a46e258 | refs/heads/master | 2022-05-17T14:38:12.890667 | 2022-04-11T16:13:47 | 2022-04-11T16:13:47 | 49,721,330 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181,733 | py | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
dataspec_P5B='''! ***********************************************************************
! dataSpec_P5B.f90 - (october, 20th 2009)
! ***********************************************************************
! ***************************************************************... | [
"dr.p.e.lewis@gmail.com"
] | dr.p.e.lewis@gmail.com |
55756175ac08d7f85e1b57a91c4aeda567fb4e13 | e0fa727439ea733e88d30bfeab790064643a5003 | /freeze.py | c2777ce4191245e881f5fe18c4541f7589413c3f | [] | no_license | MichelleGlauser/michelleglauser.com | 6c0bcc79665afb251dfb6e2692adfca29b4d7a6f | fd705da75fe2cb9afc15f6714d5b1c2ddd2e7f8a | refs/heads/main | 2022-11-12T01:21:33.380982 | 2022-10-30T22:07:18 | 2022-10-30T22:07:18 | 26,449,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from flask_frozen import Freezer
from views import app
freezer = Freezer(app)
if __name__ == '__main__':
freezer.freeze() | [
"michelleglauser@gmail.com"
] | michelleglauser@gmail.com |
a3c134bcd54bd3305d135906d28c079de037afde | 63dd54e480af7e5f2a13cc89947287e1f0f715bc | /library/docker/htmDocker/htmHome/__init__.py | c8dda2a9ee659cbab7a87d6ba37159020ea19eb4 | [
"Apache-2.0"
] | permissive | wsgan001/unSAD | 7422b3164bcfede4c30627bd349522b483322bf4 | 9f1d0e680a0086d140bc8d1c55fe21dd7de87df5 | refs/heads/master | 2021-05-17T04:58:52.047427 | 2019-12-16T18:03:02 | 2019-12-16T18:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | # Created by Xinyu Zhu on 10/3/2019, 11:14 AM
| [
"xzhuah@connect.ust.hk"
] | xzhuah@connect.ust.hk |
669f9172e8d0d06c0d067148ceb6bf2b411402ab | dc898ce913709ad282a2148729ad5733f44c5aa9 | /code/pcode/tools/plot_graph.py | ff887f082497950fdb3e211a8979140411502425 | [] | no_license | ZexiLee/quasi-global-momentum | 609c0e8ccadd70c0f5f22eeca965cfd2e649cc23 | 6bad90a65a183dc698e1087dc2c01bb7f901f607 | refs/heads/master | 2023-06-09T07:19:19.955961 | 2021-06-16T15:05:47 | 2021-06-16T15:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 15 11:45:07 2020
@author: aransil
"""
import math
import plotly.graph_objects as go
import networkx as nx
# Start and end are lists defining start and end points
# Edge x and y are lists used to construct the graph
# arrowAngle and arrowLength def... | [
"itamtao@gmail.com"
] | itamtao@gmail.com |
a03c09b8f1b77a4eccf94d0566153de13f80cfca | c5afac77666f68b19da78d133e8f9f3b54dcd12d | /snippets/python/generator/countdown.py | 0c054aa7dff3ee0976df58c8116e265675b78fa1 | [] | no_license | ko/random | f783bbd9a59ee38961a1a7f018e53cfef0d18511 | e16f41ffbdab9b44554f797c5fa5dcab6cefb859 | refs/heads/master | 2020-06-05T14:58:55.204318 | 2013-09-19T00:38:26 | 2013-09-19T00:38:26 | 2,125,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | #!/usr/bin/python2.7
def countdown(n):
while n > 0:
yield n
n -= 1
for i in countdown(10):
print i
| [
"ko@yaksok.net"
] | ko@yaksok.net |
d45d1a59c53baf62ba1ea99db08a5a63d8dfe1b9 | afb35f66fd3a6caffa33048959cc26cf916833bc | /facedataset.py | b597ff65837a2ae9ed5f5636588d5b613c0a45d7 | [] | no_license | ali-hamzaa/face-recognizationa | 63c6effb28b6bac45510018b788ac2d8a86da443 | f6ddd1878028b223ab6b4644f8ae43c8ac46c649 | refs/heads/master | 2020-07-16T05:11:41.553393 | 2019-09-01T20:08:24 | 2019-09-01T20:08:24 | 205,726,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | import cv2
import os
cam = cv2.VideoCapture(0)
#cam.set(3, 640) # set video width
#cam.set(4, 480) # set video height
face_detector = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
# For each person, enter one numeric face id
face_id = input('\n enter user id end press <return> ==> ')
pri... | [
"noreply@github.com"
] | ali-hamzaa.noreply@github.com |
b1c33417df30b02f42b8769064907be79d4d1b31 | 517873cab25009ae61e09feb44c5581dc5ee7a16 | /Lesson_1/part01_lesson01_task04.py | 02f7d7827b4ceb5a34628b7c7fda635bbd163017 | [] | no_license | I-bluebeard-I/Python-Study | a34ee02b6c6e5ad9336dfd1084824ef7794c612b | a40084b97d3df2c2c7d3c4ce0b2062d42f6c16b8 | refs/heads/main | 2023-04-11T08:46:22.856138 | 2021-03-19T21:24:22 | 2021-03-19T21:24:22 | 340,944,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """
ЗАДАНИЕ 4
Склонение слова
Реализовать склонение слова «процент» во фразе «N процентов». Вывести эту фразу на экран
отдельной строкой для каждого из чисел в интервале от 1 до 100:
1 процент
2 процента
3 процента
4 процента
5 процентов
6 процентов
...
100 процентов
"""
number = 0
percent = {
'0': 'процентов',
... | [
"_boroda_@mail.ru"
] | _boroda_@mail.ru |
15d4e730d6ba685398af844771351ed5063c928c | ab566f65adfc165b6e1dcc04a4524af5307fd473 | /HackerRank-python/build/lib/HackerRank/models/Languages.py | 8fb1ef81bc4a2561131b58bfc056186aff6b2792 | [] | no_license | Christopher312/Coding-Game | 7382edb32f3a89054c792d2fa90908d863997949 | 91d908c0ffa36e050fecd50ac3a70895a6bbb64b | refs/heads/master | 2022-10-05T16:19:48.914874 | 2016-02-15T15:57:04 | 2016-02-15T15:57:04 | 51,224,505 | 0 | 0 | null | 2022-09-16T17:44:49 | 2016-02-06T22:09:35 | HTML | UTF-8 | Python | false | false | 992 | py | #!/usr/bin/env python
"""
Copyright 2014 Wordnik, 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 applica... | [
"proundahspam@gmail.com"
] | proundahspam@gmail.com |
a8e6de48cb4be2ef706bcc392a9a5138ca978413 | 306957f27846db6412374004931b2636ebdbf577 | /oldTests/openingTest.py | 10beea89294e4cc60dd13566a93bbf614409434e | [
"MIT"
] | permissive | madisonflaherty/Food | dc8de9382f68e6a29449de532b75592d9115fb4c | 2251b76ce084c2be1ebafe2916d391bd2d383dd6 | refs/heads/master | 2020-06-05T20:04:18.338830 | 2014-03-14T20:50:02 | 2014-03-14T20:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | """
Test to determine easiness of pulling HTML from a website with python
Author: Madison Flaherty
Date: January 14, 2014
"""
import urllib.request
from html.parser import HTMLParser
class MyHTMLParser(HTMLParser):
"""
creates second parser
"""
def handle_data(self, data):
print("\n", data)
class MyHTMLPar... | [
"mef4824@rit.edu"
] | mef4824@rit.edu |
31eaaced2612fb97f044dfd29a315b2cd8f47557 | 47551d14f566096841b298015da4ff12d405ca09 | /mendelsp-2.5-beta/scipaas/plots.py | d789b930345228bd17ba6eae7a89cd35ac2edb37 | [
"MIT"
] | permissive | BibleEtScienceDiffusion/Mendel-Windows | 9f3c202f0ee97b6d74756ef225cef594d6a624a8 | 8ce1f2dab04e5b05e04cf626457120cf3fca8360 | refs/heads/master | 2022-04-20T07:02:09.910640 | 2020-04-21T13:29:04 | 2020-04-21T13:29:04 | 257,597,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | #import json
import re, string
import config
class plot(object):
def get_data(self,fn,col1,col2,line1=1,line2=1e6):
"""return data as string in format [ [x1,y1], [x2,y2], ... ]"""
y = ''
lineno = 0
try:
data = open(fn, 'rU').readlines()
nlines = len(data)
... | [
"eden@mifamofi.net"
] | eden@mifamofi.net |
6f47784a83d48d70c505c5245f66d76f5f608060 | 7de00051210b6b509e51159c32358871fea56c3c | /dataset/data_som_iris.py | 9935c8d17076597e5bf821e0360b6dfae4d2efd9 | [] | no_license | ziapple/fd-forecast | 36a465385dc189c541d79962b493c3e4bc00b396 | 93f0a0c03c0fb529407110cbed37349828e88adb | refs/heads/main | 2023-06-29T00:34:13.913478 | 2021-08-01T06:06:07 | 2021-08-01T06:06:07 | 382,564,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,576 | py | from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Patch
from minisom import MiniSom
from sklearn import datasets
import math
"""
附录:miniSomAPI参考
创建网络:创建时就会随机初始化网络权重
som = minisom.Mini... | [
"ziapple@126.com"
] | ziapple@126.com |
48c38008dc8f830780911cc0ffbe98050fe9f2b8 | 337815ff32ebbf6e8dd2606f69d66e8efda4cd03 | /epi_judge_python_solutions/is_string_palindromic_punctuation.py | 8a74011a9f894f17696adcf9b67b7a1ac42109d9 | [] | no_license | federicociner/epi | b85eefbf5f5bad77e2e780ffbf4ac4f9ca0809a8 | 32f2a1056353bca55d0d5839be5e0b73809cb45d | refs/heads/master | 2020-12-19T09:22:43.430370 | 2020-02-04T02:34:53 | 2020-02-04T02:34:53 | 235,693,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from test_framework import generic_test
def is_palindrome(s: str) -> bool:
# i moves forward, and j moves backward.
i, j = 0, len(s) - 1
while i < j:
# i and j both skip non-alphanumeric characters.
while not s[i].isalnum() and i < j:
i += 1
while not s[j].isalnum() an... | [
"federico.ciner@gmail.com"
] | federico.ciner@gmail.com |
77ffa800cee616cbc92dbb8224e7af3e41aaee4c | 7f114a1fb511b816c116d5b9e67cb998e3e23956 | /PyplayS163.py | 8fb12da406b708d8118f33d4a51858ee26d8c0b8 | [] | no_license | Bharanij27/bharanirep | 90ac34eb28deaa7ec96d042de456de71b96866d7 | 982133a7939c889d433c178a601441fa087293d9 | refs/heads/master | 2021-08-07T20:22:36.244395 | 2020-06-05T04:58:10 | 2020-06-05T04:58:10 | 186,580,768 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | n,k=map(int,input().split())
l=list(map(int,input().split()))
if k in l: print("yes")
else: print("no")
| [
"noreply@github.com"
] | Bharanij27.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.