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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d85ec597bf50561c780343e1b57a17fe70cdec9 | 581c2beee0cf5656971987a19064524e3de7bc68 | /distributions/lomax.py | 6afe6b8af24109d2284426642b481f36d5ef196f | [
"MIT"
] | permissive | bballamudi/survival | ac6925b30ba3ca9ed574ba056d36830f9129114f | c86186b08e7896096b9d59a5013335f56283a7c4 | refs/heads/master | 2020-03-21T14:16:29.578172 | 2018-06-09T21:09:08 | 2018-06-09T21:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,123 | py | import numpy as np
from scipy.stats import lomax
from distributions.basemodel import *
class Lomax(Base):
'''
We can instantiate a Lomax distribution
(https://en.wikipedia.org/wiki/Lomax_distribution)
with this class.
'''
def __init__(self, k = None, lmb = None, ti = None, xi = None):
... | [
"rohitpandey576@gmail.com"
] | rohitpandey576@gmail.com |
cf44ce6aefffd95765ff8071f01abc34af978a80 | 41a0220bf117124bf281a50396582c0df1e0675f | /Pyrado/tests/environment_wrappers/test_action_delay.py | c04f64bbf23a9b2a2f2bfdc9db1d3b524b130d61 | [
"BSD-3-Clause"
] | permissive | jacarvalho/SimuRLacra | c071dfc22d4f2c54a198405e8974d03333c9961d | a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5 | refs/heads/master | 2022-11-24T20:08:52.376545 | 2020-08-03T09:01:35 | 2020-08-03T09:01:35 | 276,885,755 | 0 | 0 | BSD-3-Clause | 2020-07-03T11:39:21 | 2020-07-03T11:39:21 | null | UTF-8 | Python | false | false | 2,392 | py | import numpy as np
import pytest
from pyrado.spaces.box import BoxSpace
from pyrado.environment_wrappers.action_delay import ActDelayWrapper
from tests.environment_wrappers.mock_env import MockEnv
@pytest.mark.wrappers
def test_no_delay():
mockenv = MockEnv(act_space=BoxSpace(-1, 1, shape=(2,)))
wenv = ActDe... | [
"fabio.muratore@famura.net"
] | fabio.muratore@famura.net |
81e69967751cb96ce288091f2fc4ea2ff7d9ae79 | 837d7fad3a4317fbc45345652cb0b0cee8aa310d | /Autonomous/pwmtester.py | f62fbebb490b9489e870a606e11f66962d5ae6ec | [] | no_license | IliasChekkori/BAUROV-Autonomous | 0f0e17ece2a22e4929334fc2d08c177476c004f9 | 6bfe1e41c7328aad6ab9dffadfdbe193829e8213 | refs/heads/master | 2022-12-09T00:57:01.610265 | 2020-08-31T21:55:23 | 2020-08-31T21:55:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | # Import mavutil
from pymavlink import mavutil
# connection olusturma
master = mavutil.mavlink_connection(
'/dev/ttyACM0',
baud=115200)# Raspberry pi ile pixhawk'ın iletişim kurabilmesi için
# RC pwm değerlerini olusturuyoruz
def set_rc_channel_pwm(id, pwm=1500):
t, optional): Channel pwm ... | [
"noreply@github.com"
] | IliasChekkori.noreply@github.com |
806045494341c3fa1fb96aa5bd0843029bd4e3fc | 14dcb10e4b0e85b7c95c2f186fe2d4093c853ea0 | /pygmt/tests/test_grd2cpt.py | a1afa97312a022480419107814f227db552fb897 | [
"BSD-3-Clause"
] | permissive | xumi1993/pygmt | 1f3f9a065544693bfbbdb688019f2988d12cdce2 | a555ba705857aeb5e09046308b25574721fccf5f | refs/heads/master | 2023-03-04T01:56:20.742803 | 2022-09-09T14:40:37 | 2022-09-09T14:40:37 | 213,913,126 | 1 | 0 | BSD-3-Clause | 2023-02-21T15:57:33 | 2019-10-09T12:30:33 | Python | UTF-8 | Python | false | false | 1,902 | py | """
Tests for grd2cpt.
"""
import os
import pytest
from pygmt import Figure, grd2cpt
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import GMTTempFile
from pygmt.helpers.testing import load_static_earth_relief
@pytest.fixture(scope="module", name="grid")
def fixture_grid():
"""
Load the grid... | [
"noreply@github.com"
] | xumi1993.noreply@github.com |
952fd72ad5a8100025aa2e461084375532616b8e | 677562bf6835be104204f32a6c9998d9a901f9fc | /from_scratch/detect_metadata/times.py | fefebd85201b58cd0821fa91c8c528a5f775d688 | [] | no_license | santokalayil/neural_network | 3cb2f843430e9f35e017edcde83ba13212d0f5cf | f453856214d027f55afc5c861784dc693a9bf2c6 | refs/heads/main | 2023-06-12T01:53:43.588403 | 2021-07-02T08:30:20 | 2021-07-02T08:30:20 | 382,281,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # import platform # to detect the operating system
import os
import time
def get_last_modified_time(path_to_file):
return os.path.getmtime(path_to_file) # time.ctime(os.path.getmtime(path_to_file))
def get_created_time(path_to_file):
return os.path.getctime(path_to_file) # time.ctime(os.path.ge... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
3b937e27177d4b2213f47baa81c00973e7037be0 | bc4910ecec94749697dbce5e7cf5093275411125 | /src/generator/Cheetah/ErrorCatchers.py | 500f2490d613628fe69f683fafa883f5d586e55d | [
"MIT"
] | permissive | se210/tracy | 7e73a6f0d64f355842b9a11035c3720b4d40fde5 | 232a42ce1aefcffa1f8544c89d60a16ebd897033 | refs/heads/master | 2021-01-09T20:55:03.241111 | 2013-12-15T23:34:36 | 2013-12-15T23:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | #!/usr/bin/env python
# $Id: ErrorCatchers.py,v 1.1 2006-09-06 09:50:08 skyostil Exp $
"""ErrorCatcher class for Cheetah Templates
Meta-Data
================================================================================
Author: Tavis Rudd <tavis@damnsimple.com>
Version: $Revision: 1.1 $
Start Date: 2001/08/0... | [
"sami.kyostila@unrealvoodoo.org"
] | sami.kyostila@unrealvoodoo.org |
60ef6466e701d4230442b132a6b9adf2bb35bdfe | 5247bbde8c929821480a8a2ceebc5039b3098ae0 | /jobs/views.py | 6f6ffe95680745faf8f06a3d359ad99ccae16ca4 | [] | no_license | prinzana/Potfolios-django-project | dbb067b8208ba08603836c4d3420cdc1a0ed8548 | 5e532d1efbab5a92391537ce4f74adda022b6be2 | refs/heads/master | 2023-06-08T04:13:28.467640 | 2021-07-03T13:18:39 | 2021-07-03T13:18:39 | 382,620,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from django.shortcuts import render
from .models import Job
def home(request):
jobs = Job.objects
return render(request, 'jobs/home.html', { 'jobs': jobs})
# Create your views here.
| [
"prinzana@gmail.com"
] | prinzana@gmail.com |
6673858896690ec1a546222c0f8b383b73cf8ac8 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_007_20180621235112.py | 41f8ce78220a122f130868148e83683e6dcb7b73 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,084 | py | from random import randint
import copy
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6, 3, 1],
... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
66ec71bb988eb0d3f33c75d5c26df53404e2780b | 6d77cf9932bf600ab89deae26b849221fdf88704 | /Safe Marks/Interface/TeacherCommandLineInterface.py | 0060d6cad337413098e7b4a29ad70bae1d24b7e9 | [
"MIT"
] | permissive | mriduldhall/Safe-Marks | 4cecc89bcc16c83b64602cc686ad3371e0f14580 | 3ea657c842fe30f084e0d70633d4319073bc82f0 | refs/heads/main | 2023-07-05T05:06:38.270423 | 2021-08-16T22:53:43 | 2021-08-16T22:53:43 | 307,712,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,720 | py | from HelperLibrary.Validator import Validator
from HelperLibrary.Student import Student
from HelperLibrary.StorageFunctions import StorageFunctions
from Interface.SettingsCommandLineInterface import CLI as SettingsCLI
from Interface.AccountCommandLineInterface import CLI as AccountCLI
from datetime import datetime
c... | [
"mriduldhall1@gmail.com"
] | mriduldhall1@gmail.com |
5207bdfd9ec7ed6f7459b591d7345960cb085457 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-web/azure/mgmt/web/models/domain_registration_input.py | 864529f0239c7032c4baa763d7558207f03f1109 | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,993 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
7b881b0726eda7408694fbcacc36d669cda76453 | f80c3df0b651e8bf327aac2fd9c6188205e136f5 | /20201111_home/shortest_word.py | b161be4ee1430dd8837e613b7a37af878bafb1e3 | [] | no_license | rudenko86/my_project | b57ec2e9a4987a1a4c66f911c6098247122ac189 | 96823443e34dcb12a11b02537cbb7e3c3ce24fc6 | refs/heads/main | 2023-01-21T04:16:34.697095 | 2020-11-21T19:33:57 | 2020-11-21T19:33:57 | 309,800,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | ''' знайти найкоротше слово і порахувати скільки разів воно зустрічається та вивести його (count) '''
a = """Октябрь уж наступил — уж роща отряхает
Последние листы с нагих своих ветвей;
Дохнул осенний хлад — дорога промерзает.
Журча еще бежит за мельницу ручей,
Но пруд уже застыл; сосед мой поспешает
В отъезжие поля ... | [
"19rudenko86@gmail.com"
] | 19rudenko86@gmail.com |
f2d1f00036574689cfdfe68843c9fadedb487026 | 68f0ce24fa285e6b3f6f931a5a5ff075fbd7f51e | /DeepLearning/TensorFlowMNISTLecture.py | 51bbc94b37276e276e0b1f08d745499ee274cdfe | [] | no_license | Resolt/ML_Bootcamp | d8c26b29a49d8c1fd9767e4974d90db9fa10670d | 2838017eab10a382c8ce655c73907dd394b0ea27 | refs/heads/master | 2020-04-03T10:24:23.428282 | 2018-11-07T22:23:28 | 2018-11-07T22:23:28 | 155,192,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
# PART 1 - READING AND EXPLORING MNIST DATA
# LINK MNIST
mnist = input_data.read_data_sets("MNIST_data/",one_hot=True)
print(mnist.train.im... | [
"pdmmichaelsen@gmail.com"
] | pdmmichaelsen@gmail.com |
15d01b7c211b279668202291cd0412a2003cd5eb | eb8433e762930fdf0bc6519f67e176a4d29bef31 | /okta/models/idp_policy_rule_action.py | 52343d9048858b7dcdd70199d33336521324f95f | [
"Apache-2.0"
] | permissive | Mogost/okta-sdk-python | 7cd7ba3afc3a851a91c764c61aa8cbddd8dee78d | 0e71c4d6e78af872ee95ac2372e1d630858277b0 | refs/heads/master | 2023-03-17T06:27:41.901434 | 2023-03-15T14:31:56 | 2023-03-15T14:31:56 | 194,839,815 | 0 | 0 | Apache-2.0 | 2023-03-16T23:27:18 | 2019-07-02T10:13:09 | Python | UTF-8 | Python | false | false | 1,573 | py | # flake8: noqa
"""
Copyright 2020 - Present Okta, 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 agreed to in ... | [
"bretterer@gmail.com"
] | bretterer@gmail.com |
2f745ad5a119f8562508a06dbe64d04423026c86 | b553d0c3834e7246c9ff3c1fe9a206ce3ab88e90 | /employee.py | d7b3d47a14e4dda6024e48a5f03f756d3b01fd86 | [] | no_license | PapaKofi13/vscodes | c1eab9968251efe1359729e60234df47dfe02d17 | 331944fd6aba4c67f3125e884b33fbe6de1da565 | refs/heads/master | 2021-04-22T16:35:50.466684 | 2020-03-25T02:00:09 | 2020-03-25T02:00:09 | 249,862,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | class Employee:
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
@property
def email(self):
return '{}.{}@email.com'.format(self.first,self.last)
@property
def fullname(self):
return '{} {}'.format(self... | [
"micjay113@gmail.com"
] | micjay113@gmail.com |
8de2961d32d5904a8cf7ca984a7b05b6c90d602e | ba1d95ed0bc04923b5f9816f2f75d45244941291 | /task_2/task_2b/.ipynb_checkpoints/task2_v-checkpoint.py | 340dfb3da50825e87bcb4e3d8c41b38a52ae8cbf | [] | no_license | emmilner/swarm_sim | 67e951d44df0bf73e22d4c4ab4453a81ac7cce3f | 2ed721cda2af98df7dffbe8f2ae876acf7fbedb5 | refs/heads/master | 2023-03-26T13:46:00.097756 | 2021-03-19T18:50:23 | 2021-03-19T18:50:23 | 288,507,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,831 | py | '''
Swarm Warehouse with Boxes Code:
Displays a bird's eye view of a warehouse with robots moving around, avoiding the walls and each other. Boxes are picked up and moved to exit zone by robots. The boxes are requested to be delivered in a given sequence and that sequence is broadcast to the swarm. The robots will only... | [
"emma.milner@bristol.ac.uk"
] | emma.milner@bristol.ac.uk |
7626d2627355af9ccb92ffd060e7918314e2cfc9 | 0eeb5a7e502606fe505efcda7a9b6aaeab76252d | /Versione-3.0.1.0/MainInterface.spec | 72bdf1ff74fa05115d2ead5ca81cf463869bb346 | [] | no_license | Beezusburger/JaSONx | 5b5fe917c6f3aa49140b8d27580ecbf10532b9af | adceb6c3fc62924f4a51886d305e66326a548baa | refs/heads/master | 2020-04-02T21:53:59.720688 | 2018-11-12T10:52:45 | 2018-11-12T10:52:45 | 154,814,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['MainInterface.py'],
pathex=['C:\\Users\\Juri Francia\\Dropbox\\Progetto JaSONx\\Progetto JaSONx\\Sorgenti JaSONx\\Versione 3.0.1.0'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
... | [
"v.zagranovskyy@reply.it"
] | v.zagranovskyy@reply.it |
d316fb99654c7e1da09a7124137e1d0eaca98eb7 | 877f3a0fac213a0f994203365884eaac8fba14f0 | /planning/models.py | 4303678fb918d798a5544afc7c1a559e1be234da | [] | no_license | hlorofilka/Mystash | ff609400994a15667be69caf51d8fc40907238b6 | 810e9a9f6726b80e3611ded23fa99338dd2a5012 | refs/heads/master | 2020-05-19T01:00:31.779798 | 2019-07-08T19:45:12 | 2019-07-08T19:45:12 | 184,747,392 | 0 | 0 | null | 2019-07-08T19:45:13 | 2019-05-03T11:55:38 | Python | UTF-8 | Python | false | false | 3,513 | py | import datetime
from django.conf import settings
from django.db import models
from transactions.models import Transaction, Account
from django.utils import timezone
from django.core.validators import MaxValueValidator, MinValueValidator
# Create your models here.
class Period(models.Model):
owner = models.Foreign... | [
"hlorofilk@mail.ru"
] | hlorofilk@mail.ru |
45cfba7e9e4c299d0619bddc9ddc217fa2dc3b11 | e7fc26a47929b983562dec490db403664d4389c9 | /fun/times_3.py | 53554ef469e8b470777793b8a5113b4a5761ffb8 | [] | no_license | n-trance/practice | 0ca4427c018cc9f4a440e98df425c3d5c63e5eb1 | 9674d385d9e561268fa404c7ee99e00b962c2d41 | refs/heads/master | 2021-01-17T08:25:53.041272 | 2017-11-06T11:16:24 | 2017-11-06T11:16:24 | 63,580,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | '''
given a list, get the largest number by multiplying all numbers.
len(list) >= 3, integers
'''
'''
proposed solution:
1. sort list (nlogn)
2. case: all values >= 0:
- we pick last 3
case: all values <= 0:
- we pick last 3
case: mix of numbers:
- we pick last number
- check if first list[0]*... | [
"nethan.tran@gmail.com"
] | nethan.tran@gmail.com |
53e7285ae5fb7e5cd1f11a10d46bf67cd9910935 | 7aa20b65a28a348273fa37e6347539cf2b28097b | /test/unit/test_configHelpers.py | b04693608209749de7eca428a4d06ce11ae9b1ae | [] | no_license | aburzinski/MSiA-423-Project | b3d3d4c5a75b57e28da809dfe5cef7e897f48bfc | 76f126152407a48b73092e3914fa3a37e3581e36 | refs/heads/master | 2022-07-07T00:36:56.227554 | 2019-06-12T00:02:16 | 2019-06-12T00:02:16 | 180,415,904 | 0 | 2 | null | 2022-06-21T21:58:37 | 2019-04-09T17:19:02 | Jupyter Notebook | UTF-8 | Python | false | false | 1,126 | py | import sys
import os
sys.path.append(os.environ.get('PYTHONPATH'))
import src.helpers.configHelpers as base
def test_createDatabaseURI():
"""Test the createDatabaseURI method"""
# Test for incorrect dbtype
dbtype = 'postgresql'
dbname = 'test'
host = '127.0.0.1'
port = '5432'
username = 'u... | [
"aburzinski2@gmail.com"
] | aburzinski2@gmail.com |
504475257dbc623201bf094a2bc7a6bfbb28627f | 9fd3d9f37c49c0080cf8d22486b2211f708830d8 | /grupo6.py | ee24b9db09e011b1448de1fa799dd1847792fe4f | [] | no_license | tosh2/ia-mundial | 7762288cc638a541ff7c9651fcb072c05adb63af | 57fe100609c6f4836bf7b839e8e10c0e3b9d1e3b | refs/heads/master | 2020-03-22T00:15:22.667885 | 2018-06-30T08:45:04 | 2018-06-30T08:45:04 | 139,233,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | #!/usr/bin/env python3
# Grupo 8 - IA Junio 2018
# ./grupo6.py
import math
def fase_grupos(name):
if name == "FRA": return [["AUS",2,1],["PER",1,0],["DIN",0,0]];
elif name == "ARG": return [["ISL",1,1],["CRO",0,3],["NIG",2,1]];
elif name == "URU": return [["EGY",1,0],["ARA",1,0],["RUS",3,0]];
elif name ... | [
"josuetz21@gmail.com"
] | josuetz21@gmail.com |
2af9f47d4deb43cc4c69c7bc021bb310907e4bcd | 5ce657823418ff9d9c46598154fde03ab2f23d72 | /data_preprocessing_and_visualization/Data_Preprocessing.py | 4851f3e892159d651d742e98afafbd56c704ad17 | [
"MIT"
] | permissive | ZTong1201/Ship-Detection-Project | feb6a5e57c893479eca4ea7b328f695f7b709f4f | abd49c99294f62d4530807f8ca48c0e3ae79dbb4 | refs/heads/master | 2020-05-16T00:12:55.638525 | 2019-05-27T23:59:15 | 2019-05-27T23:59:15 | 182,574,151 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,757 | py |
# coding: utf-8
# # Data Preprocessing
# I refer to U-net model with submission on the website: https://www.kaggle.com/hmendonca/u-net-model-with-submission. On Augment Data part, we can tweak the parameters to process images. For some detail, I am still trying to understand them.
# In[6]:
# Lets import some usefu... | [
"buaatzy@163.com"
] | buaatzy@163.com |
f879c67c6bdc8c15835aa868bd0ccc952ad1aae4 | 5194f6fc9f0081464c4ed813aeba842324cf79a2 | /services/experiments.py | 6ebded81a4f7851d2d4cd67f4434be2ef2a36ec9 | [] | no_license | ervindobri/MyoExercises | 157d84932493b8d2c8c84e57294dd66d98f80274 | f791cc919f88e7d4a974fb4d768d3cb3862cae60 | refs/heads/master | 2023-06-09T09:11:48.355232 | 2021-07-01T09:07:17 | 2021-07-01T09:07:17 | 333,781,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import seaborn as sn
import pandas as pd
import matplotlib.pyplot as plt
def accuracy():
labels = ["Tip Toe", "Toe Clenches", "Toe lift", "Rest"]
# array = [[49,1,0,0],
# [0, 45, 2, 3],
# [0, 0, 49, 1],
# [0, 0, 0, 50]]
array = [[19, 1, 0, 0],
[0, 19... | [
"dobriervin@yahoo.com"
] | dobriervin@yahoo.com |
d3618680d0af7959816004d091cc9d1af9580b7a | e204ac41a9f8d91902f4392850b97e322d4b67c4 | /assignment1/aipython/pythonDemo.py | eeb346ccdd81ebf98b17accd5d52c9f7b7566195 | [] | no_license | smartworlding/COMP9414 | 39446a6035323d0215059247b70014ac5c8a024e | 5de75804404a6fafdb280305b62ac729e278a60f | refs/heads/master | 2023-03-15T19:46:50.550730 | 2021-01-05T05:32:20 | 2021-01-05T05:32:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | # pythonDemo.py - Some tricky examples
# AIFCA Python3 code Version 0.8.1 Documentation at http://aipython.org
# Artificial Intelligence: Foundations of Computational Agents
# http://artint.info
# Copyright David L Poole and Alan K Mackworth 2017.
# This work is licensed under a Creative Commons
# Attribution-NonComme... | [
"yuki@yukideMacBook-Pro.local"
] | yuki@yukideMacBook-Pro.local |
8f4065d632706b252e9aaa5aef0f380f65fed859 | 57c38487a6a689318c960fa7d6b0185f372241bc | /presalytics_ooxml_automation/models/theme_effect_map.py | d5e94240d7206cc938862efbf1be434f6ab396ab | [
"MIT"
] | permissive | presalytics/ooxml-automation-python-client | 2c88bae455b7e567ebdb6a4ea106bbdcd192ac47 | fa6100eef1743e43b4d25b3faac79d39fe32c9d7 | refs/heads/master | 2020-06-05T23:42:32.964361 | 2019-12-27T22:51:40 | 2019-12-27T22:51:40 | 192,575,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,626 | py | # coding: utf-8
"""
OOXML Automation
This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501
The version of the OpenAPI document: 0.1.0-no-tags
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | [
"kevin@chart-a-lot.com"
] | kevin@chart-a-lot.com |
8e36a3c996cee7f73681b2a989b6f9f54858868b | d233c1e5852158c21ee98477616f097d4d64b527 | /apg4b/1_22.py | 2f8f53d803fe493c3fd4b4bac6e3be96a68121fd | [] | no_license | SILKYMAJOR/atcoder_repo | 606ab1bfb04de8e750997da907b4a90e1be626fb | fa83edefce1ba9300932b13f99c69c0fee3a4db7 | refs/heads/master | 2020-07-23T11:06:56.737234 | 2020-01-01T14:57:30 | 2020-01-01T14:57:30 | 207,538,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from operator import itemgetter
N = int(input())
num_list = [list(map(int, input().split())) for _ in range(N)]
for line in sorted(num_list, key=itemgetter(1)):
print(line[0], line[1])
| [
"silky.major@gmail.com"
] | silky.major@gmail.com |
a331b31ff9a44abb3e4d221a798044ccedbaaab3 | 976aef4484b41665f5e463da48c2bc83a4d192f6 | /demo.py | c7494b0bca42d48a9c277b0416777d5dc309e86e | [] | no_license | selysse/MTS_Teta_hackathon | 0b51da510db012e4353609a444691a4e4693c908 | b5bcd2b735e6de66eb9a2e5482c22fe7adcdb8dd | refs/heads/master | 2023-08-13T19:54:25.166246 | 2021-09-18T10:22:03 | 2021-09-18T10:22:03 | 407,819,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | import streamlit as st
import pandas as pd
from random import randint
import base64
import joblib
def get_table_download_link(df):
"""Generates a link allowing the data in a given panda dataframe to be downloaded
in: dataframe
out: href string
"""
csv = df.to_csv(index=False)
b64 = base64.b64... | [
"xtrox@rambler.ru"
] | xtrox@rambler.ru |
48b8766fe33d5f9dc24df0f1e39a1bbc72a63a1e | 5c5770eef858cb2f13d1f128620db860fd590663 | /main.py | 1159929222c34fe736af6b7c6ffd266cb87b383a | [] | no_license | changjiang1017/1a | 702b4513d70db8d86db2c20d1f5f56c54db4bb7b | bd7b413b8904973562845fa86f43284a52020c98 | refs/heads/master | 2023-09-03T09:41:41.008791 | 2021-10-17T09:15:09 | 2021-10-17T09:15:09 | 418,075,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | def human_detect():
global hdc, hmd
huskylens.init_mode(protocolAlgorithm.ALGORITHM_FACE_RECOGNITION)
hdc = 0
hmd = False
while True:
if huskylens.is_appear(1, HUSKYLENSResultType_t.HUSKYLENS_RESULT_BLOCK):
pass
else:
while hmd == False and hdc < 200:
... | [
"92668724+changjiang1017@users.noreply.github.com"
] | 92668724+changjiang1017@users.noreply.github.com |
8508d3ef621fd000d8fada20c67cbf511edfbb89 | c62da4d4764de080a45decb14dde339075b61b8a | /python-features/statistics/normal-distribution-II.py | 0b105a729e48b2a8ca833b229be08be5783bd192 | [] | no_license | Aragor70/Algorithm-Examples | 402faf92dcce6158743aec15641de8dfa2de2cfd | ec20d6b09e9ad328137a8c8921464a9945c7f386 | refs/heads/master | 2023-03-28T13:55:37.739302 | 2021-03-07T18:29:51 | 2021-03-07T18:29:51 | 321,797,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py |
# Part of 10 Days of Statistics at https://www.hackerrank.com/
# Objective
# In this challenge, we practice calculating the normal distributions of Cumulative Probability.
# The final grades for a Physics exam taken by a large group of students have a mean of 70
# and a standard deviation of 10.
# If we can approx... | [
"mikis3@o2.pl"
] | mikis3@o2.pl |
3faaee0a13a0f4cb3921d81806d5c867e0523a9f | caba36cdcd46d8d268f58d32ee6ebaecdd3ca66e | /Ferme/app/forms.py | b5e0848bebfeb867ae23dbb9a210a1f75401ca89 | [] | no_license | kvzon1984/FermeV3.0_Portafolio | 794d536fa3e0f10082d8a3790dda1f10476d5a35 | 3df5d75c95ebd1a3aa96bf18013ce27052fbe14c | refs/heads/master | 2023-07-11T03:40:06.534668 | 2021-08-16T02:52:38 | 2021-08-16T02:52:38 | 364,424,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,576 | py |
from django import forms
from django.db.models import fields
from django.forms import widgets
from .models import Cliente, Empleado, FamiliaProducto, Producto,OrdenesCompra,Proveedor, TipoCliente, TipoProducto,Comuna
from django.contrib.auth.forms import UserCreationForm
class DateInput(forms.DateInput):
input_ty... | [
"ivega.josue@gmail.com"
] | ivega.josue@gmail.com |
b3a9c46f690b95732f118b30580ab5f528859ea7 | fcca9d5118d87d815208dd881c7d87943ee4a932 | /rclpy/test/test_callback_group.py | 8538407f6c6ac63e6100fed7cf9a1c86c86f5dc5 | [
"Apache-2.0"
] | permissive | Parallel-Hao/rclpy | fe1b4913f804ff4e5c3d5bb629cadf3bfb75352c | 20dd7abd5bba11641d39056cc481bc89f9f961f7 | refs/heads/Brand | 2020-05-03T01:18:01.326845 | 2019-04-02T09:15:55 | 2019-04-02T09:15:55 | 178,333,300 | 0 | 1 | Apache-2.0 | 2020-02-26T07:17:34 | 2019-03-29T04:39:14 | Python | UTF-8 | Python | false | false | 3,938 | py | # Copyright 2017 Open Source Robotics Foundation, 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... | [
"noreply@github.com"
] | Parallel-Hao.noreply@github.com |
f7de7c2ef755e5893d687912c0b74ed7148a8d02 | 6b453d913b1ae6697da738ddae9df013e8128d91 | /app/members/urls.py | 1a117fa9f25eacf78656a78f5d5d3ef9928e11ec | [] | no_license | moorekwon/instagram | 9703ecb1aed460ddec685c0bd06fe0fac3807548 | aaeca79f0d2765a24dd780bb12848c2c7b76a009 | refs/heads/master | 2022-12-12T18:13:37.536048 | 2020-02-03T08:33:16 | 2020-02-03T08:33:16 | 229,711,643 | 0 | 0 | null | 2022-12-08T03:32:50 | 2019-12-23T08:39:38 | Jupyter Notebook | UTF-8 | Python | false | false | 267 | py | from django.urls import path
from . import views
app_name = 'members'
urlpatterns = [
path('login/', views.login_view, name='login'),
path('logout/', views.logout_view, name='logout-view'),
path('naver-login/', views.naver_login, name='naver-login')
]
| [
"raccoonhj33@gmail.com"
] | raccoonhj33@gmail.com |
2dd0198f6e8c5fa6b71b472694204fc3ec02e9dd | acee409d0a45506c49d78d5e26f3e992b6eea856 | /python/layer.py | 5ec5c28d8f936826733430c6fce92ebe779d2d80 | [
"Apache-2.0"
] | permissive | m-thirumal/aws-lambda-layer | d74a3cf8edf527d00da48c328dbf1a9ba5283bbe | 032d875219c729f94c8a9b32f0240cdd18c36bf2 | refs/heads/main | 2023-06-18T00:53:44.245617 | 2021-07-18T07:04:05 | 2021-07-18T07:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def layer_fun():
return "Hi, I am from layer_fun(), if you see me then your code is working!!!" | [
"m.thirumal@hotmail.com"
] | m.thirumal@hotmail.com |
3ad8858aa59890f2add9d983a44c9c960eddbfa3 | 278b98798ab151565e728d34f598ff376fb0a332 | /Amazon/code/BackEnd/delete_database.py | c0ff3986b0992c4299422c79a9fa04551e27523a | [] | no_license | xwgnick/MiniAmzon | aa453e6d134f5f8acfdca712da82d1fb9388879b | 31139a47b6b96e9f949bc8e64c474df126d1c618 | refs/heads/master | 2022-07-24T23:32:44.264585 | 2020-05-22T20:56:29 | 2020-05-22T20:56:29 | 260,796,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import psycopg2
conn = psycopg2.connect(database = 'wx50db', user = 'wx50', password = 'wx50', host = 'localhost', port = '5432')
cur = conn.cursor()
cur.execute("DELETE FROM amazonapp_warehouse")
cur.execute("DELETE FROM amazonapp_cart")
conn.commit() | [
"492251476xwg@gmail.com"
] | 492251476xwg@gmail.com |
977fd006132a5a85bddc68ea4d248132df0082ce | 39827f381f095704902080c4291871020d7dfb24 | /python-impl/bls_sig_g1.py | 19bad1b29d98ce274a55faf1d96849e50270aab0 | [
"Apache-2.0"
] | permissive | valerini/bls_sigs_ref | eee0ff6469e93adac36d084feffb83b011f3d78a | 14faaa54a79583396f35475b7b1a27ec6d92c4cf | refs/heads/master | 2020-07-04T22:18:59.124024 | 2019-08-04T21:58:22 | 2019-08-04T22:29:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | #!/usr/bin/python
#
# (C) Riad S. Wahby <rsw@cs.stanford.edu>
from consts import g1suite
from curve_ops import g2gen, point_mul, point_neg
from hash_to_field import Hr
from opt_swu_g1 import map2curve_osswu
from pairing import multi_pairing
from util import get_cmdline_options, print_g1_hex, print_g2_hex, print_tv_sig... | [
"kwantam@gmail.com"
] | kwantam@gmail.com |
53b6ae3c7727f0d5ac9dd683355813314ab047fb | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /FWCore/Integration/test/testConcurrentIOVsESConcurrentSource_cfg.py | 461e011539e736d1c861cfd0d22a1e3cbb9ecf66 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,527 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.source = cms.Source("EmptySource",
firstRun = cms.untracked.uint32(1),
firstLuminosityBlock = cms.untracked.uint32(1),
firstEvent = cms.untracked.uint32(1),
numberEventsInLuminosityBlock = cms.untracked.uint32(1),
numbe... | [
"chrisdjones15@gmail.com"
] | chrisdjones15@gmail.com |
1b0d06848054f92113d19ae82b5dd5c65a1d6a0f | 1b026d5a0450ccee784e8fb0fc1216354716135c | /tarea_3/generar_respuestas.py | 548084bbbaee3b47dd1507d108921834f4219436 | [] | no_license | lross2k/tareas-electriciad-1 | 1752560b5a40b4ea5bf0ee70666b830841ca2d38 | 7914f7a2db9281d6f343fec7af193982b06c8561 | refs/heads/master | 2023-06-22T14:15:21.286328 | 2021-07-20T14:40:46 | 2021-07-20T14:40:46 | 294,838,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | import csv
import matplotlib.pyplot as plt
import numpy as np
# función usada para redondear valores reales a 3 decimales
def redondear(func):
func = "%.3f" % func
return func
# función encargada de calcular A, B, ..., H, I y retornar un array para el CSV
def valores(t_x):
# constantes
A = -20
B =... | [
"luisross2000@outlook.com"
] | luisross2000@outlook.com |
4b26d2288fe6cceaed839816ed06bdce9f6e52d8 | f0ae65bddedea44b1e66f3d235a901e62afae3f2 | /macgyyver_stuff/parse_input.py | 9de1a35ebd5d51857f29e74f682675a2370a7704 | [] | no_license | Brandon-Valley/my_movie_tools | d0a2ba91cda054c1b68709f1a9082028842e83a1 | 371742bfeaa0cfa2985ce06a6865f6ae09445029 | refs/heads/master | 2023-01-10T00:06:48.696103 | 2022-12-28T14:09:20 | 2022-12-28T14:09:20 | 221,057,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py |
import pyperclip
INPUT_PATH = 'input.txt'
def read_text_file(file_path):
with open(file_path, 'r', encoding='utf-8') as text_file: # can throw FileNotFoundError
result = tuple(l.rstrip() for l in text_file.readlines())
return result
raw_in = read_text_file(INPUT_PATH)
print(raw_in)... | [
"bavvh8@mst.edu"
] | bavvh8@mst.edu |
cd397df91774060d5ea6fd8a7135eecaae70687f | b785c5d007367903fda90a708264be5ac8f65d02 | /task.py | b520806f366eb4d3440afd500cbd10be748e27e4 | [] | no_license | Sakshichouhan2/Dice-roll | c23747fa34d3d4b256c65f14d7c1a5957b3debe2 | 0cf9b9662bd7951288d16dfa7c1011488c73c2bf | refs/heads/main | 2023-03-03T11:20:58.676586 | 2021-02-16T07:26:48 | 2021-02-16T07:26:48 | 339,145,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | '''“Dice-roll" that generates the random value between 1 and 6 every minute . and sends
to Redis“Sender" that reads the value from Redis and pushes to SQS“Reader" that reads
the value from SQS and prints it to the stdout. Ideally,A reader could be deployed in
AWS.'''
import random
try:
min_dice = 1
max_di... | [
"chouhansakshi88@gmail.com"
] | chouhansakshi88@gmail.com |
e8c9a9436af9cb169a4756a1d72c4bf0258943d8 | dc6c429e3fb5c85f5742d50c8d7e07ab24f138df | /supportgroup.py | a479f9d61a27eeae6b847dd3807a5b10920514ce | [] | no_license | sasqwatch/utils | 47a57cc70f3819ef5525b1c3e687c8d16f6edb5b | c708440efb85ab720877d1fbb82447df9e55e8c6 | refs/heads/master | 2020-04-17T19:35:26.916041 | 2018-08-14T20:37:39 | 2018-08-14T20:37:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | #!/usr/bin/env python3
"""
Updated this to allow changing processes other than self:
https://gist.github.com/epinna/8ce25ac36a7710cdd1806764c647cf99
"""
import argparse
import os
import re
def update_argv(pid, newargs=None):
with open('/proc/{}/cmdline'.format(pid), 'rb') as f:
cmdline = f.read()
... | [
"noreply@github.com"
] | sasqwatch.noreply@github.com |
43d3b7fcd74fe33c44b8d93e53d04867f5334898 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network4244_1.py | 5145107f893228a8e18edf49ec3b8ccbfc48d9cc | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 84,283 | py | species(
label = 'C=C([CH]C)C[CH]C(24171)',
structure = SMILES('[CH2]C(=CC)C[CH]C'),
E0 = (230.563,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3025,407.5,1350,352.5,3010,987.5,1337.5,450,1655,2750,2770,2790,2810,2830,2850,1350,1400,1450,1500,700,800,1000,1100,1350,1400,900,1100,350,440... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
f1853f12e58fde7c1eea2bc8c29c8d03481fe955 | 4e50d2345a2cfeb3c9ecb02187f88e753d1ed83c | /bin/00.raw_reads/test_rmAdaptor.py | a089a074dd4a77d7a66772f59516a1df8ad64515 | [] | no_license | ms201420201029/real_metagenome_pipeline | 7c7b54e5e8a798933387f960256ebb849e9c2200 | e8f0b188f21975305565d06e4fefe4f4c9adc1f7 | refs/heads/master | 2020-04-05T06:41:34.349662 | 2018-12-04T05:48:52 | 2018-12-04T05:48:52 | 156,646,750 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,642 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# Description: Remove adapter
# Copyright (C) 20170721 Ruiyi Corporation
# Email: lixr@realbio.cn
import os, sys, argparse, gzip, math
from Bio import SeqIO
from multiprocessing import Pool
from multiprocessing import cpu_count
from time import time
def read_params(args):... | [
"1037080472@qq.com"
] | 1037080472@qq.com |
a1bbbf01277d38b11003413cc62221047eceb338 | 032edbd5eccee1896a207f6e0b0ba1d026d4e984 | /codility/missing_integer.py | 2096104854d56029219e6bedcc29d3932c6934e6 | [
"MIT"
] | permissive | grzesk075/PythonSandbox | 95812a69e1b53e1faea574c10ec8db6fc79a58d2 | 9fa879b4a15a971258c458bbfe55c7a899c95ce5 | refs/heads/master | 2021-06-10T11:35:06.781026 | 2019-11-20T14:10:18 | 2019-11-20T14:10:18 | 156,559,088 | 0 | 0 | MIT | 2021-04-20T17:46:55 | 2018-11-07T14:31:11 | Python | UTF-8 | Python | false | false | 364 | py | def solution(A):
N = len(A)
existent = [False] * (N + 1)
anyExistent = False
for i in A:
if i < 1 or i > N:
continue
existent[i] = True
anyExistent = True
if not anyExistent:
return 1
for i in range(1, N + 1):
if existent[i] == Fals... | [
"grzegorz.kuprianowicz@tomtom.com"
] | grzegorz.kuprianowicz@tomtom.com |
61468b496b4ca341fc7f4f03f63f4d96fa02445f | de7071a20fccd71617ddb94edb979869d23d3c51 | /hour.py | af88b1432b01a270eb30bb385700f61f99f3db6c | [] | no_license | nancygaooo/weChatWeDone | 825628d734ec7b1050727c39e9ef712ff237bbc6 | 5322c9a35c4e1f7a1c62cff03420a1e80275e834 | refs/heads/master | 2023-05-25T17:58:09.309748 | 2019-11-14T03:09:25 | 2019-11-14T03:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | #!/usr/bin/python3
import json
import matplotlib.pyplot as plt
import time
import collections
# Python 字典类型转换为 JSON 对象
hi = 'data/a-hou.json'
f = open(hi, encoding='utf-8')
data = f.read() # 读文件
lists = json.loads(data)
hoursDict = [
"00",
"01",
"01",
"02",
"03",
"04",
"05",
"06"... | [
"zqbinary@foxmail.com"
] | zqbinary@foxmail.com |
b3ca053e73670d9c89ef872531a9f1acbf7de96e | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/ethan_nguyen/Lesson09/charges_calc.py | 4a7033c84e96e8d9333119ece0d76514c91d20b4 | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 4,893 | py | '''
Returns total price paid for individual rentals
'''
# pylint: disable=line-too-long, c0301
import argparse
import json
import datetime
import math
import logging
def parse_cmd_arguments():
"""
function to parse input and check for input requirements
"""
parser = argparse.ArgumentParser(description... | [
"ethanenguyen@hotmail.com"
] | ethanenguyen@hotmail.com |
d7ff36848628a39077cf531d9bb5f4e27680db7f | e7508722c01cd5a3a88dcec1efae18d6c501c72f | /TestCase/test_practice_fixture.py | 4affb7adab4669f439fb2d2f8f0efa9210921454 | [] | no_license | heqiang1992/DT | e8bd2bace9458a0f13888e27c823befc19c9a4c7 | 00ad9369c02d21821c4d079babdbc16766c9bbfe | refs/heads/master | 2021-10-29T14:52:21.540535 | 2021-10-23T09:24:24 | 2021-10-23T09:24:24 | 188,933,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
@pytest.fixture(scope="function", params=None, autouse=False, ids=None, name=None)
def beforetest():
print("fixture: beforetest setup#$%^&*()")
@pytest.mark.usefixtures("beforetest")
def test_hello():
print("hello") | [
"wenjing@edmodo.com"
] | wenjing@edmodo.com |
5840a5608c466d0d4c2e178f14721ec7b50f2df9 | f0e0bf9fe818cde5c76b5428723a6bd05679cd3c | /cronDeliveryAPI/orders/migrations/0013_auto_20200810_1042.py | 4acb25f73c814b6790f0f25fa9a72a600427fd70 | [] | no_license | murkhan13/DeliveryAPP | e4339d32b29f8f617ad7bf520cb28d34eaaaa58c | 44e72be1fe32543acaef24de616ec34f69f04878 | refs/heads/master | 2023-02-20T04:54:15.968788 | 2021-01-18T09:28:33 | 2021-01-18T09:28:33 | 292,862,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Generated by Django 3.0.8 on 2020-08-10 07:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0012_order_restaurant'),
]
operations = [
migrations.AlterField(
model_name='order',
name='restaurant',
... | [
"merch.fade13@gmail.com"
] | merch.fade13@gmail.com |
4524f3c6f3dc84c87fc21c014c6ff6b23468839b | 552c0a423264ca47c48f24737d62c93b6cc5dd11 | /cars/migrations/0016_auto_20160915_1632.py | eff29b8135828c0b5b4bfcf628f34bc5f6b05832 | [] | no_license | YELLOWINC/car-maze | 6dfa72e45dd493731547e964636818effccab14a | 31b82ed01bcb2004fbe1d850c33f2f636b305457 | refs/heads/master | 2021-01-15T12:41:49.984750 | 2016-09-16T16:00:15 | 2016-09-16T16:00:15 | 68,349,329 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-15 11:02
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.sw... | [
"sreeshsmallya@gmail.com"
] | sreeshsmallya@gmail.com |
575e43af3805628268f12c1376a7f55e5d8b3a55 | 1f3b9e7f0009460d86d6cd2e6664d927cb271fa8 | /RRT_holonomic.py | f233feba5fe58265834cf4c65a52ec02d1327ab2 | [] | no_license | gowrijsuria/RRT-PathPlanning | 5cd8b9ebdaa8945db54c33553ad966704019c676 | 797ef75ebfc5badcb620fed9db3ee51c5b5825e7 | refs/heads/main | 2023-04-20T08:16:57.224236 | 2021-05-09T19:44:34 | 2021-05-09T19:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,683 | py | import pygame
from random import randint as ri
pygame.init()
import time
import numpy as np
screen = pygame.display.set_mode([500, 550])
SIDE_x = 20
SIDE_y = 40
WINDOW_width = 440
WINDOW_height = 400
GAME_border = 3
WHITE=(255,255,255)
BLUE=(0,0,255)
BLACK=(0,0,0)
RED=(255,0,0)
GREEN=(0,255,0)
RAND=... | [
"gowri.jsuria@gmail.com"
] | gowri.jsuria@gmail.com |
7f4bc71f56886683d4b882f80e796b530ca7e98f | 07561714394c112c846f8544e507db1e5c202344 | /src/utils/utils.py | 10099722e23b640e3be0ce7f2f74d878a041cb3d | [] | no_license | manojsukhavasi/kaggle-rsna-pneumonia-detection-challenge | ebd1438693f5c8beaa152b2928f94db5940445fd | 42ee044d1b0132fc35d44751c00e9edf7cd04436 | refs/heads/master | 2020-03-28T22:21:06.353598 | 2018-09-19T17:57:39 | 2018-09-19T17:57:39 | 149,226,025 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from src.imports import *
def read_dicom(path):
"""
Reads dicom and gives out RGB PIL Image
"""
pd = pydicom.read_file(path)
img_arr = pd.pixel_array
img_arr = img_arr/img_arr.max()
img_arr = (255*img_arr).clip(0,255).astype(np.uint8)
img = Image.fromarray(img_arr).convert('RGB')
... | [
"manoj.sukhavasi1@gmail.com"
] | manoj.sukhavasi1@gmail.com |
77eee7cb521aa55ec25cc3b3b823f11e5014a79e | f404a58e558e813d7afaec9282e65127fa223d42 | /tweet_updater/tweety.py | 2532bd39cb88b4d76297f9a40a44288f1fc76eca | [] | no_license | zInnovationLab/sentiment-anaylsis-bluemix | 153a33e72f8fe4d0179194c7236d9a9790e8fd91 | 252fc164bf66ac25d0354aa39c351086eb0c0456 | refs/heads/master | 2021-01-17T12:59:00.248428 | 2016-06-20T19:01:50 | 2016-06-20T19:01:50 | 58,948,854 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,669 | py | from datetime import date, timedelta
import os
import json
import sys
import tweepy
import pymongo
COLLECTION_NAME = 'tweets'
# Gets the Mongo DB URL and DB from VCAP_SERVICES if present, else
# assumes the Mongo instance is running locally
url = 'mongodb://mongo_server:27017/tweets'
if os.environ.has_key('VCAP_SERVI... | [
"ivandov@us.ibm.com"
] | ivandov@us.ibm.com |
cfcfe9e9a35e6480dc98c66e8627b6ea00972a94 | cab67e7629c8193b80f525245371065c8183d4d1 | /venv/lib/python3.8/site-packages/arcade/examples/perf_test/stress_test_draw_moving_arcade.py | 9552cc446755e9bac11c04e7fbd0aaf393f58d2a | [] | no_license | pablo2811/CVD-simulator | 31bd9fbc9d4795d1332712fe0f8da6729d8918e7 | 17c6125d1efdca5abcb9b5957c435f55e28b0ae3 | refs/heads/master | 2022-12-28T16:58:16.531530 | 2020-10-12T18:25:54 | 2020-10-12T18:25:54 | 303,478,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,019 | py | """
Moving Sprite Stress Test
Simple program to test how fast we can draw sprites that are moving
Artwork from http://kenney.nl
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.stress_test_draw_moving
"""
import random
import arcade
impor... | [
"fijalkowskipablo@gmail.com"
] | fijalkowskipablo@gmail.com |
51b4c0c2bea9491a67c860e630caba768c5da03f | f87587a22c7cf4714f3130636a85fe81f8a0d448 | /Python/Exercicios Coursera/Semana 3/Exercicio2_1.py | 7209e23499b0bef93e5b00edc191af2a23021e1a | [] | no_license | fernandosergio/Documentacoes | 6065dec7d9fbd67dc86280322247e53e8c95f29e | 13d605cae58317bb1666294c1e8f3927755f4ce8 | refs/heads/master | 2023-04-01T10:47:13.076027 | 2021-04-05T19:43:54 | 2021-04-05T19:43:54 | 290,798,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | x1 = int(input("Digite o valor do x1 no plano cartesiano: "))
y1 = int(input("Digite o valor do y1 no plano cartesiano: "))
x2 = int(input("Digite o valor do x2 no plano cartesiano: "))
y2 = int(input("Digite o valor do y2 no plano cartesiano: "))
import math
valorx = (x1 - x2) ** 2
valory = (y1 - y2) ** 2
distancia ... | [
"46656725+fyzn@users.noreply.github.com"
] | 46656725+fyzn@users.noreply.github.com |
04a136eac2da6f980a9fdf007fe19353aec45133 | b55b9b54c66522b214c9e2016c60dfb9dbcc0015 | /tests/python/gaiatest/tests/test_browser_cell_data.py | 0ea2e24dbd90fe830d3b35e72fed768b6823d239 | [
"Apache-2.0"
] | permissive | enterstudio/gaia | 92f5b6fb597eef52bcbd3db9e78066befa24bd1a | 36bcd46a56e2d066d629e5e82681b1af063db0f7 | refs/heads/master | 2022-10-21T10:04:13.419441 | 2013-01-02T22:57:12 | 2013-01-02T22:58:44 | 109,246,945 | 0 | 0 | NOASSERTION | 2022-10-17T02:19:24 | 2017-11-02T09:56:57 | JavaScript | UTF-8 | Python | false | false | 1,905 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
class TestBrowserCellData(GaiaTestCase):
# Firefox/chrome locators
_awesome... | [
"jgriffin@mozilla.com"
] | jgriffin@mozilla.com |
45887ae16823fc001b1f21088f29542dcaf7bd15 | 7a9900b0591d8e87b58c4d5104d37f61898af681 | /curses.py | fda8868696dbf4652c0bc2a1f51c209027ead248 | [
"MIT"
] | permissive | greylurk/mr-v1 | 5ef9b70e59bf27f760a97074286a5b2d36966984 | baad86be342e3d460ed746de99c421e3f0245f71 | refs/heads/master | 2021-01-20T12:09:58.266385 | 2014-03-19T14:06:13 | 2014-03-19T14:06:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import curses
import locale
class ControlPanel:
def __init__(self):
self.sensors = []
self.actuators = []
self.screen = curses.initscr()
curses.noecho()
curses.cbreak()
self.screen.keypad(1)
locale.setLocale(locale.LC_ALL,'')
def close(self):
... | [
"adamn@sparkpi.(none)"
] | adamn@sparkpi.(none) |
2d38cbbe7e6389f185c8e82dd8a4f4b9c64aeadd | 12abdc9a83b03902b75429e73d17bbbb8a431110 | /images/openstack/fs/openstack/environments/image_importer/bigip_image_import.py | 5fec512f6b16cfbcef636369e58b9b70d7e8abee | [
"MIT"
] | permissive | jgruber/f5-super-netops-container | e52ff7a1c841d94498e944f35d91613d861d9e71 | 500b3f81c609d24b0901e557e8a9c1317df9526f | refs/heads/master | 2021-01-21T20:59:33.645912 | 2017-11-21T22:50:36 | 2017-11-21T22:50:36 | 92,293,549 | 0 | 0 | null | 2017-05-24T13:10:13 | 2017-05-24T13:10:12 | null | UTF-8 | Python | false | false | 26,712 | py | # coding=utf-8
# Copyright 2016 F5 Networks 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 agr... | [
"john.t.gruber@gmail.com"
] | john.t.gruber@gmail.com |
d50964d905b178c47097b874498131eb270eef94 | 83513a7452a401e83cfcf77af6996317ad88396b | /Assignments/A7/Q1 & Q2 code & pictures/test_opera.py | 01b8ae5f5132bdd3dcdd6165ebb9b7a4a8928038 | [] | no_license | sunying2018/persp-analysis_A18 | 3d332b9baf067474fd0f5c080e1cf0a3ead4aada | 92fd765f3e2a27f82375e5ae3e73983e674d1fc7 | refs/heads/master | 2020-03-30T17:46:07.394879 | 2018-12-14T21:33:10 | 2018-12-14T21:33:10 | 151,469,049 | 0 | 0 | null | 2018-10-03T19:32:23 | 2018-10-03T19:32:23 | null | UTF-8 | Python | false | false | 722 | py | import opera
import pytest
def test_operate():
assert opera.operate(6, 8, '+')== 14, "failed on '+'"
assert opera.operate(6, 8, '-')== -2, "failed on'-'"
assert opera.operate(6, 8, '*')== 48, "failed on '*'"
assert opera.operate(6, 8, '/')== 3/4, "failed on '/'"
with pytest.raises(ZeroDivision... | [
"sunying2018@uchicago.edu"
] | sunying2018@uchicago.edu |
0e9d3792679e9cf7dee7540715ef45bb4f3fb891 | 8173234f279a012d0cb813473f2e7ce15573ab5e | /code/python/rummySkeleton.py | dff16cf7459555ab543c9959be0badf194baa23f | [] | no_license | Rvansolkem/ESU-SoftwareEngineering | 31bb3a4950082d62462927f43c485cc698141540 | cbb2b913fc73914c0989b093e210c01be2a277bc | refs/heads/master | 2023-01-19T23:34:04.010267 | 2020-11-24T00:48:35 | 2020-11-24T00:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | from Card import Card
from Deck import Deck
from tkinter import *
from tkinter.ttk import *
from PIL import ImageTk,Image
def makeCanvas(root, w=0, h=0, x=0, y=0, place=False, grid=False):
#if place is true then use .place not .grid or .pack (.pack is the default)
#if place then use x and y for placement... | [
"smcrowley8@gmail.com"
] | smcrowley8@gmail.com |
d1f476ff0ad10c262739f805be8f65639d917508 | d1991c1b97cf0913ffab05d9821e3778f2616b36 | /models/modelws.py | 153c9068dd79ec4d195fc51bf0ba4c7b13c03b7b | [
"MIT"
] | permissive | zhaozunjin/DMPHN-v2-Deblur | d70fd443ef2b1bc5787e1d9fe09807a759365c0b | 0e84aab9c07a880b16dec8ee182868db93cd1d12 | refs/heads/master | 2020-11-25T08:34:27.026364 | 2020-09-17T09:09:05 | 2020-09-17T09:09:05 | 228,576,078 | 16 | 1 | MIT | 2020-06-21T05:59:54 | 2019-12-17T09:04:57 | Python | UTF-8 | Python | false | false | 10,143 | py | from __future__ import print_function
import torch
import torch.nn as nn
from torch.nn import init
import torch.nn.functional as F
import os
class ConvBlock(nn.Sequential):
def __init__(self, in_channel, out_channel, ker_size, padd, stride):
super(ConvBlock,self).__init__()
self.add_module('conv',n... | [
"1763020129@qq.com"
] | 1763020129@qq.com |
dfd28d04bd20cdbae0bd324f5eaf1c036da10434 | 480e33f95eec2e471c563d4c0661784c92396368 | /RecoMuon/MuonIdentification/python/me0MuonConverter_cfi.py | 83b6632c7cca09219c2dcc76760b07daa2dbaeab | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 98 | py | import FWCore.ParameterSet.Config as cms
me0MuonConverting = cms.EDProducer("ME0MuonConverter")
| [
"dnash@cern.ch"
] | dnash@cern.ch |
eef2fd51f950be206cbc573c1a40bacd5f6323e1 | b1088a69760332dff5c27479c7c46f0dfda11e2c | /venv/Scripts/pip-script.py | 45cb9845d8d236ebbbfa6754518f669d650412db | [] | no_license | JUSADAM1/FightingGame | 66e5117b5ff84f71c1db4983bc9a7754207f4261 | 0e8691d72eec95433994b9e7a92b2b9dae7dd6fd | refs/heads/master | 2020-05-03T20:28:45.001845 | 2019-04-08T20:43:19 | 2019-04-08T20:43:19 | 178,803,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\justy\PycharmProjects\FightingGame\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"justy@DESKTOP-NAT2PHA"
] | justy@DESKTOP-NAT2PHA |
20aa6256635712125cec7cde82d9edd48783816b | 58a686c0a752db0f9084659a7f93d5b4f35a065c | /web_idea/apps.py | 3ad06d0a73b08e922fed17edcaef47f32b83f3ed | [
"MIT"
] | permissive | Dimas4/Web-IDEA-Python-Django | 5322ae013eb9b6803c175886f152654ed9469402 | 9cf17150d422979470e3d865a381309a83d8e875 | refs/heads/master | 2020-04-10T04:45:33.843338 | 2018-12-07T11:58:34 | 2018-12-07T11:58:34 | 160,808,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class WebIdeaConfig(AppConfig):
name = 'web_idea'
| [
"ivanshatukho@yandex.ru"
] | ivanshatukho@yandex.ru |
724778ba9809a4764fe8fb9db59911050b386395 | 8329282a8fda056d705c1af6dbcd0de1ed7ca25e | /.history/textutiles/textutiles/views_20210522223732.py | 629f8ff15d006894a027b5cc2f0bacbc0ca08e6f | [] | no_license | ritikalohia/Django-beginners- | c069b16867407ef883bb00c6faf4f601921c118a | 829e28ab25201853de5c71a10ceff30496afea52 | refs/heads/main | 2023-05-04T03:34:29.082656 | 2021-05-22T17:38:21 | 2021-05-22T17:38:21 | 369,869,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | #created
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
#params = {'name' : 'Ritika', 'place' : 'Mars'}
return render(request, 'index.html')
#return HttpResponse("Home")
def contact(request):
return render(request, 'contact.html')
def about(request):
... | [
"rtklohia@gmail.com"
] | rtklohia@gmail.com |
c6a0f515e4061baa17af3a79b41c463f25758ff0 | 92429015d9a1f1cea9b9bf2c9f1a8a7a07586af5 | /option.py | 6e7b7892e37aa810a008bdf082451b08034a0125 | [] | no_license | arthur-qiu/adv_vis | 46a953ce6c3d562137c8e566bc9b523e25bc5bbd | ba46c00cf38ca5186d7db84844892036ed714eaf | refs/heads/master | 2021-01-03T23:00:45.065108 | 2020-04-05T03:47:01 | 2020-04-05T03:47:01 | 240,272,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,099 | py | import argparse
import os
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(description='Trains a CIFAR Classifier',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.initialized = False
def initialize(self):
... | [
"Arthur"
] | Arthur |
955308df4fc4b863683301eafeeab3ece4016421 | c25dad937d53dba30119b3c841ba27ab7542d90b | /adjust_data/adjust_data_functions.py | 1b0c3a6347738c8fcfdf0b51a67ff6365148af29 | [] | no_license | webclinic017/Financial_Machine_Learning | 546ad883cefc0f9e2400ddda121db3147b7274d9 | 33489128315c87e7378ff0da6ab52712177afcd9 | refs/heads/master | 2023-07-31T17:24:11.433057 | 2021-09-14T13:28:30 | 2021-09-14T13:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | """
Name : adjust_data_functions.py in Project: Financial_ML
Author : Simon Leiner
Date : 18.05.2021
Description: Pca transformation of the given variables
"""
from sklearn.preprocessing import RobustScaler
from sklearn.decomposition import PCA
import pandas as pd
import seaborn as sns
from scipy.stats import norm
... | [
"simon.leiner1@gmail.com"
] | simon.leiner1@gmail.com |
313ca3e1c98c38562546e6407aa1547744c5cc05 | d83b3d9898973ec8f9dbcc5a2299eede9b6c435f | /x10project/exchange/exchangebl/bittrexbl.py | 45b1f12f4f348d3e946902ea7fc48be9d4b1a1ae | [] | no_license | fintechclub/x10python | 333e914c440cc8f995a2b97619a62735298d9fc8 | dc3a52a7531e5e8114a9c708accbdc2e7bff2d60 | refs/heads/master | 2022-12-08T06:09:17.924359 | 2018-09-06T13:00:28 | 2018-09-06T13:00:28 | 138,585,164 | 0 | 4 | null | 2022-12-08T02:18:55 | 2018-06-25T11:22:35 | Python | UTF-8 | Python | false | false | 3,614 | py | from x10project import BaseExchangeBL
from bittrex.bittrex import *
import pprint
#https://github.com/ericsomdahl/python-bittrex
class BittrexLogic(BaseExchangeBL):
def __init__(self, account_name=None, api_key=None, api_secret=''):
super().__init__("bittrex", account_name, api_key, api_secret)
s... | [
"kda.biz83@gmail.com"
] | kda.biz83@gmail.com |
8f6d2d076198fade4cd55609075354f9fec895db | a633fe67ddf4fc2097fbf5cdbc91d1ec73ac02b3 | /volume-sizer.py | 54998da4a36756471e6fe65a6cff6ba614b78f3b | [] | no_license | mchad1/azure-volume-sizing | 07b4b85794f6d28ef06beeb8e439701845f4bbba | f17909b506cda40ed8be5faec36b09cea1fb036a | refs/heads/master | 2022-11-25T05:57:25.853339 | 2020-08-03T17:19:17 | 2020-08-03T17:19:17 | 284,761,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,845 | py | import sys
sys.path.append(sys.path[0] + "/lib")
import argparse
import json
import math
import os
import requests
from datetime import datetime
def quota_and_servicelevel_parser():
if os.path.exists('servicelevel_and_quotas.json'):
with open('servicelevel_and_quotas.json','r') as config_file:
... | [
"mchad@netapp.com"
] | mchad@netapp.com |
e0ada9a3ea0f7e8137969f157413b9f0dad2b729 | 7dc45e620fda52abb073eb3499ebf772293c993a | /RunInkaRun_Ejecutable/exe.win-amd64-3.6/Entities/Entities.py | 27a126bdd077ce2bbda4ccf0d6718887a31e9f28 | [] | no_license | EduLara97/Proyecto_Juego_SW2 | 3e0f82a07e47acc1fab8be179f766d8b6045ba14 | f2f0e37cedffb4e2de428ba29393d57899d3b619 | refs/heads/master | 2021-08-22T07:24:41.951831 | 2017-11-29T16:07:09 | 2017-11-29T16:07:09 | 105,581,768 | 2 | 3 | null | 2017-11-27T14:16:40 | 2017-10-02T20:30:21 | Python | UTF-8 | Python | false | false | 16,534 | py | from random import randrange
import pygame as pg
from pygame import *
from GeneralInformation import *
vec = pg.math.Vector2
class Spritesheet:
# utility class for loading and parsing spritesheets
def __init__(self, filename):
self.sspritesheet = pg.image.load(filename).convert()
... | [
"edu.lara.lev@gmail.com"
] | edu.lara.lev@gmail.com |
e254aa45d97a2f3ff329c8b06be41ad5a4e0aec5 | 3acb90a1e97a0e851c6e4b1b57dda78ec5e3e3b4 | /problems/deep_copy_graph.py | 0b0caab3f09a04fb8519c76e677dd80b5c5b183b | [] | no_license | jhyang12345/algorithm-problems | fea3c6498cff790fc4932404b5bbab08a6d4a627 | 704355013de9965ec596d2e0115fd2ca9828d0cb | refs/heads/master | 2023-05-15T10:26:52.685471 | 2021-06-01T14:57:38 | 2021-06-01T14:57:38 | 269,333,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | # Given a node in a connected directional graph, create a copy of it.
#
# Here's an example and some starter code.
class Node:
def __init__(self, value, adj=None):
self.value = value
self.adj = adj
# Variable to help print graph
self._print_visited = set()
if self.adj is No... | [
"jhyang12345@naver.com"
] | jhyang12345@naver.com |
efa07d57ac7d1b5f748e8b5e108f68d9ecc11029 | 444c42503bf34df6dbd1e74d8c66e78c9d6b2564 | /ansible/models.py | d129b1053aedc7d86022363058e6f25489ed9b37 | [] | no_license | liyanwei4408866/DjangoDemo | 0ee8b189093c5ba351cb22c8cfbe7ec118d0a5c6 | 5e3ed793191a88e1c2a83b045e6d6eadc5cf66c3 | refs/heads/master | 2020-05-15T11:12:59.494731 | 2019-04-19T07:00:10 | 2019-04-19T07:00:10 | 182,217,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | from django.db import models
# Create your models here.
class Grade(models.Model):
gname = models.CharField(max_length=20)
gdate = models.DateTimeField()
ggirlnum = models.IntegerField()
gboynum = models.IntegerField()
isDelete = models.BooleanField(default=False)
def __str__(sel... | [
"Administrator@XL-20170505IAOA"
] | Administrator@XL-20170505IAOA |
53e8ea169d0cfd5c2042f9ade08153f4669354fc | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/inversion10/iter2/run5/analysis/pred_disp/create_predicted_disp_database.py | 608cb3ba2bafea964917232a2b235b12007f7f0a | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import sqlite3
import numpy as np
import viscojapan as vj
pred = vj.inv.DispPred(
file_G0 = '../../../green_function/G0_He50km_VisM6.3E18_Rake83.h5',
result_file = '../../outs/nrough_05_naslip_11.h5',
fault_file = '../../../fault_model/fault_bott80km.h5',
files_Gs = ['../../../green_function/G1_He50k... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
5e6eab96a36af8362b1089b13514cebebf213f95 | 11812a0cc7b818292e601ecdd4aa4c4e03d131c5 | /100days_of_python/day32/main.py | 2d1a1c5e6332bb4dae8a588642e9e2d964c7be13 | [] | no_license | SunshineFaxixi/Python_Learning | f1e55adcfa898489cc9146ccfb220f0b48a31a22 | ab3ca44d013311b6de02124091acc4c36a83c4d9 | refs/heads/master | 2021-08-16T05:47:29.963118 | 2021-01-04T13:48:30 | 2021-01-04T13:48:30 | 238,857,341 | 1 | 0 | null | 2020-03-03T13:53:08 | 2020-02-07T06:21:46 | HTML | UTF-8 | Python | false | false | 1,364 | py | ##################### Extra Hard Starting Project ######################
import pandas
from datetime import datetime
import os
import random
import smtplib
MY_EMAIL = "xxhan2018@163.com"
MY_PASSWORD = "TXHTVGKIOLEHXVCI"
today = datetime.now()
today_tuple = (today.month, today.day)
all_birth_info = pandas.read_csv("b... | [
"xxhan2018@163.com"
] | xxhan2018@163.com |
c16b7296ae527faae7b03ce58aac6dd19ea48438 | 45ea73115f79affcd5d3770fc49b8f94dee7e903 | /python/windchill.py | 91bb82ca9982816d268e03589451e4fbfc787ede | [] | no_license | Gamertoc/University-precourse | 85033037a4536c7ee9974db2d26c78cd13f08d5e | feeaec10c45f2bfb4c72d8c5f3f1a77887f37641 | refs/heads/master | 2020-08-15T08:30:42.124899 | 2019-10-15T14:11:03 | 2019-10-15T14:11:03 | 215,309,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import math
T = float(input('Temperature in °C (integer): '))
v = float(input('Speed in km/h (integer): '))
while T != int(T):
T = input('Try again! Temperature in °C: ')
while v != int(v):
v = input('Try again! Speed in km/h: ')
Wold = 33 + (.478 + .237*math.sqrt(v) - .0124*v) * (T-33)
Wnew = 13.12... | [
"noreply@github.com"
] | Gamertoc.noreply@github.com |
0487d2a65c915d43cdd636edbad2f5aaa02af497 | e556419a56549f8d42e60bda98df519335e70246 | /main_affectation.py | 30b3f69360e9d324d4ede62c5913773774a4ae4b | [] | no_license | Brandone123/Projet_RO | cf7f1964de7c9fe41d2bee0f92ae4a35ab30353f | 3523b3e067631132128971cb9bf4276965edd4fd | refs/heads/master | 2022-11-06T13:13:50.499059 | 2020-06-22T10:27:53 | 2020-06-22T10:27:53 | 272,175,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | from PyQt5.QtWidgets import QMainWindow, QMessageBox, QSpacerItem, QPushButton, QSpinBox, QHBoxLayout, QApplication
# from PyQt5.QtGui import Q
from PyQt5 import QtGui
from PyQt5.QtCore import pyqtSlot
from munkres import Munkres, print_matrix
from AffectionWindow import Ui_MainWindow
import sys
class MainAffectati... | [
"noreply@github.com"
] | Brandone123.noreply@github.com |
a1cd97ecced854a2187a5ae65068a685c323438c | c7e09ffb1bc9b95e266ef89984b39abfbd6976cd | /mcts/mcts_model.py | ed593186bcc4b1dd7e81c5a1a5b73991289776ed | [] | no_license | liyunlon008/RuleBasedModelV2 | c5bac60e10c6ab80b1f738c05850401fc5f72073 | bf5c7e042d15090053086523c4e2f112bc799b06 | refs/heads/master | 2022-05-09T03:01:26.756576 | 2019-08-14T03:25:20 | 2019-08-14T03:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,787 | py | from __future__ import absolute_import
import sys
import os
sys.path.insert(0, os.path.join('..'))
from game.engine import Agent, Game, Card
from mcts.tree_policy import tree_policy
from mcts.default_policy import default_policy
from mcts.backup import backup
from mcts.tree import Node, State
from mcts.get_m... | [
"625283021@qq.com"
] | 625283021@qq.com |
9c12a9dc49718c2d3211144a328a690531b52177 | 122c0ce4b8709872f8ffa962708b26806a0b41ee | /PackEXEC/Eten.py | 684f34b545e3d9687c3fe22ee5534ef9cffaa50c | [] | no_license | Sniper099/WorkTest | de1d6729a01890706053e7c8434aac34421c59c9 | 5377f5cc7d3ed89f597be9ea0e39b8a148656737 | refs/heads/master | 2022-05-30T12:04:15.027020 | 2020-04-22T23:15:50 | 2020-04-22T23:15:50 | 256,840,217 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | import numpy as np
import sys
def Itener(zon):
Nu=int(input('Veuillez entrez le nombre de sites visités ou que vous voulez visiter :\t' )) #nombre de site parcorrue
SI=['Tour Hassan','Oudaya','Chellah','Le Musee Mohammed VI','Musee Belghazi','Musee Maroc Telecom','Village de poterie Oulja','Ancienne Medina Rab... | [
"nj.nava.99@gmail.com"
] | nj.nava.99@gmail.com |
6037784afde9a814b4a03625736d447476252e24 | 1e164c6d208e7c82870f37d1f2cc2206373e3ce1 | /venv/Scripts/django-admin.py | 107d5b5a4b6df634137dc021f7bb8fdb85634e7c | [] | no_license | SAGAR0071/Realestate | d152a35452b438fbb801458189a07133bec50611 | 32030d933d114ecd6580d039c901866ea3fbd08e | refs/heads/master | 2021-04-04T06:47:23.864348 | 2020-03-19T07:28:45 | 2020-03-19T07:28:45 | 248,433,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!C:\Users\You know that\PycharmProjects\Django\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"sagarscimox@gmail.com"
] | sagarscimox@gmail.com |
23c0b017aab6fb2fba920cde4cd27a7b1878240f | a8b71966826f9119b264bdd32b60b218c795bd92 | /test_AirportWeatherAPI.py | 548f21fa4114ce7436a9a3114961749a31c1cc8c | [] | no_license | BUEC500C1/api-design-lijunwei19 | f19d929fb9fb8c1598929303a24ca41b478f9fa7 | 209f8a2be61ded47844f65d1f2b4ce7373ed691d | refs/heads/master | 2020-12-27T22:42:52.976680 | 2020-02-05T19:21:33 | 2020-02-05T19:21:33 | 238,090,706 | 0 | 2 | null | 2020-02-05T18:58:38 | 2020-02-04T00:28:47 | Python | UTF-8 | Python | false | false | 301 | py | from AirportWeatherAPI import airport_Weather
import pytest
def test_airport_weather():
assert "message" not in airport_Weather("Total Rf Heliport")
assert "message" not in airport_Weather("Aero B Ranch Airport")
assert "message" not in airport_Weather("Newport Hospital & Clinic Heliport") | [
"jlyc8@bu.edu"
] | jlyc8@bu.edu |
02e52b31e058e832bbd4fe48a9863e3d6f212388 | 275b36012933d9471db4abcfa4631d1da3e69361 | /tests/test_dice_interface/test_dice_tensorflow.py | cd8e36609a2c35052944a818c342bcba0d518de4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | gaugup/DiCE | bad277c17ba62daf2ba41e6c2fc26844c986f33e | 41dfde376ec3e5471d8e04899e639d2621b987f3 | refs/heads/master | 2023-03-02T11:05:00.561852 | 2021-02-11T23:45:24 | 2021-02-11T23:45:24 | 337,927,184 | 0 | 0 | MIT | 2021-02-11T23:45:25 | 2021-02-11T04:17:20 | null | UTF-8 | Python | false | false | 4,858 | py | import numpy as np
import pytest
import dice_ml
from dice_ml.utils import helpers
tf = pytest.importorskip("tensorflow")
@pytest.fixture
def tf_exp_object():
backend = 'TF'+tf.__version__[0]
dataset = helpers.load_adult_income_dataset()
d = dice_ml.Data(dataframe=dataset, continuous_features=['age', 'hou... | [
"noreply@github.com"
] | gaugup.noreply@github.com |
6000dedcf91921ea9a5a6cba05ff8fe17f2ae918 | 221d1ad342677d2fac8aa3f8d5c60e059a6316c9 | /pm4py/objects/log/util/dataframe_utils.py | e8318a1daaeaa367f7ae496fe27ab3a705aca2da | [] | no_license | niklasadams/explainable_concept_drift_pm | 06ff651fbdebece4adf96f94bfb4d1026da14c48 | 6bf84d727ab0bae76716a04ad28c7de73250c89d | refs/heads/main | 2023-08-26T18:21:49.955080 | 2021-10-29T18:53:48 | 2021-10-29T18:53:48 | 314,514,571 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | from pm4py.util import constants
from pm4py.objects.log.log import EventStream
from pm4py.objects.conversion.log import converter as log_converter
import pandas as pd
from pm4py.util.vers_checker import check_pandas_ge_024
from enum import Enum
from pm4py.util import exec_utils
from pm4py.util import points_subset
from... | [
"niklas.adams@pads.rwth-aachen.de"
] | niklas.adams@pads.rwth-aachen.de |
7ca5e6cecede89720beb07c78961edf828316a33 | 2f59f4b22c2012ad6965b1dc694d48dc056362b4 | /prepare_data.py | e0bedff263a0aa6fb9ddd0cd93a71f857ecb9bf3 | [] | no_license | vudaoanhtuan/neural-machine-translation | 8538a7ff733d1bad90045dced9945ec286230fe6 | 1cea5e1a4b03017c3a1f3f0fffb750991e61fd2e | refs/heads/master | 2020-05-18T19:24:13.444063 | 2019-05-02T15:48:24 | 2019-05-02T15:48:24 | 184,608,068 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import torch
from torchtext.data import Field, Dataset, Iterator, BucketIterator, ReversibleField
from torchtext.datasets import TranslationDataset
from preprocess import preprocess, tokenize
def tokenize_word(text):
text = preprocess(text)
return tokenize(text)
SRC = Field(
tokenize=tokenize_word,
lo... | [
"vudaoanhtuan@gmail.com"
] | vudaoanhtuan@gmail.com |
517b7bcb9f4f6b5045ecd44c559702ab5df05680 | 9a82885b4617b666e1ac1c976377790b759cd64e | /myfit/migrations/0010_device_owner_log_files_location.py | 582fb68a7b1b841c1b99bd71de6e70de24e1400e | [] | no_license | lukbor2/myfitapp | 94ba4b7b0acc796a15fab11471e120b21218d9d5 | 0020bfd3d37de637121773d21464ac92f77da9e8 | refs/heads/master | 2021-04-26T21:54:23.585351 | 2018-05-15T03:43:23 | 2018-05-15T03:43:23 | 122,386,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 2.0.2 on 2018-04-14 21:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myfit', '0009_auto_20180313_0233'),
]
operations = [
migrations.AddField(
model_name='device_owner',
name='log_files... | [
"lukbor2@gmail.com"
] | lukbor2@gmail.com |
7b9023674047f9c5e60aa18006c5f6c23a0bf7f2 | 15d4c666e1fa5133cd9fdf0e373410fcc0f14d1c | /Mini_Projects/hw1/testing/matrix.py | eb4d1dc6971f9e64e7a1342e51f00cfd786689c3 | [
"MIT"
] | permissive | twyunting/CSC-676_Computer-Vision | 86df53cfb63b7acb213cec9e831d1d5e345a443c | 7786477f805c37d38afaef1f7438ce3c6e2c1f3c | refs/heads/master | 2023-08-12T07:31:46.138909 | 2021-10-10T20:23:12 | 2021-10-10T20:23:12 | 332,000,716 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,700 | py | # adding the packages
"""
import cv2
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import convolve2d as conv2d
import scipy.sparse as sps
from PIL import Image
# Package for fast equation solving
from sys import platform
import sparseqr
"""
# World parameters
alpha = 35*math.pi/180... | [
"yc6705a@american.edu"
] | yc6705a@american.edu |
1c1cf34d45653ee87041cd214a18294d6564ba82 | 786de007822aca1e092b81928543b3dae230d99e | /problem_011.py | 0659fedbfb47b0c53d26a286236c6ec83309ea3d | [] | no_license | ycao-cit/leetcode | 4109bcd2c50403f1000136ef10dee4e32b90b0a2 | a1e5dc64979fa601662c1057b396e72f38cfd70e | refs/heads/master | 2021-01-11T04:24:18.765305 | 2017-01-30T01:15:23 | 2017-01-30T01:15:23 | 71,197,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 Yi Cao <ycao16@uw.edu>
#
# Distributed under terms of the GNU General Public License 3.0 license.
"""
Container With Most Water
URL: https://leetcode.com/problems/container-with-most-water/
"""
class Solution(object):
def maxAr... | [
"ycao16@uw.edu"
] | ycao16@uw.edu |
53d165f828a7c30f169e4ad05cb402581160f7ca | 7079e1759dd5213fe072017a0fd8bca8620badff | /common/com.py | 0fda1b30951b94027eb7b80958ea441e4a88d5d6 | [] | no_license | wanhui1994/skx | 82e23c310f18d2a4d704d8dba81068135da6286e | a7cb0772af8bf0bc20b3cd7c7729908533481683 | refs/heads/master | 2020-06-07T14:23:35.377435 | 2019-06-21T06:14:16 | 2019-06-21T06:14:16 | 193,040,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,742 | py | #coding=utf-8
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
from pyvirtualdisplay import Display
from selenium.webdriver.support.select import Select
i... | [
"2353231116@qq.com"
] | 2353231116@qq.com |
bd4e433309484011267564b7b1b2a7e81669bcd0 | 734ba54960c6150164bfccc91063512066cc2fbf | /CodeSamples-Python/LPTHW-PythonCourse-ex18-NamesVariablesCodeFunctions-Functions.py | 85606394d2aac8ecf110289480b8dfcb43fd0283 | [] | no_license | cikent/Portfolio | 8cff76e7249ac83bcbe11034357b6b07e3007c9d | e5c4261c2c452f01656c7af612498fd1fe099289 | refs/heads/master | 2021-06-22T13:18:21.320010 | 2020-03-29T23:54:21 | 2020-03-29T23:54:21 | 224,490,142 | 1 | 0 | null | 2021-06-02T01:25:44 | 2019-11-27T18:09:41 | Python | UTF-8 | Python | false | false | 740 | py | # this one is like your scripts with argv
# define the function print_two
def print_two(*args):
arg1, arg2 = args
print(f"arg1: {arg1}, arg2: {arg2}")
# ok, that *args is actually pointless, we can just do this
# define the function print_two_again
def print_two_again(arg1, arg2):
print(f"arg1: {arg1}, arg... | [
"noreply@github.com"
] | cikent.noreply@github.com |
55bb3d82b80185533da7d4c85f2c8e6589933ab4 | cd4eb25911d3e3b092aa97aaa7b8fbba6c3a0704 | /lang/python/asyncio/chain.py | aa8d41fb55cb2b5319e1e90b9a6e8a96e55ad630 | [
"MIT"
] | permissive | liuyang1/test | 29bb142982d2ef0d79b71e8fe5f5e0d51ec5258e | 9a154e0161a1a33baad53f7223ee72e702532001 | refs/heads/master | 2023-08-05T08:56:50.526414 | 2023-07-21T05:49:53 | 2023-07-21T11:16:09 | 26,949,326 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | import asyncio
@asyncio.coroutine
def compute(x, y):
print("Compute %s + %s ..." % (x, y))
# yield from asyncio.sleep(1.0)
return x + y
@asyncio.coroutine
def print_sum(x, y):
result = yield from compute(x, y)
print("%s + %s = %s" % (x, y, result))
loop = asyncio.get_event_loop()
loop.run_until_c... | [
"liuyang1@mail.ustc.edu.cn"
] | liuyang1@mail.ustc.edu.cn |
8ea5c0269ada1927409543ec2f0976260b434299 | d11843388d4002e246c2281956570ce1acfe2774 | /alembic/versions/a283be5badc2_revision_of_nullable_fields_spotify_id_.py | 1707de564c1a0f3ec47ebb3d7e2a33b9d76ee704 | [] | no_license | Gorillaz322/SpotifyHistory | a067128a0f843773b02605cd1e43b664e79853a0 | 933ce1bd9ec4117fff7b1d8b5ee60fe26fc6e482 | refs/heads/master | 2021-05-13T17:53:40.654581 | 2018-02-21T18:04:23 | 2018-02-21T18:04:23 | 116,839,474 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | """Revision of nullable fields/Spotify_id for song
Revision ID: a283be5badc2
Revises: e9f3b4345181
Create Date: 2018-02-21 19:46:35.323702
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a283be5badc2'
down_revision = 'e9f3b4345181'
branch_labels = None
depends... | [
"jyvylo5@gmail.com"
] | jyvylo5@gmail.com |
8dc513728068e9e929518340bb44a7718efc33eb | 3122ac39f1ce0a882b48293a77195476299c2a3b | /clients/python/generated/swaggyjenkins/models/extension_class_container_impl1links.py | 71b82d350f0fa80dde4f8cb80c78f8b7b2e3c3c7 | [
"MIT"
] | permissive | miao1007/swaggy-jenkins | 4e6fe28470eda2428cbc584dcd365a21caa606ef | af79438c120dd47702b50d51c42548b4db7fd109 | refs/heads/master | 2020-08-30T16:50:27.474383 | 2019-04-10T13:47:17 | 2019-04-10T13:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,766 | py | # coding: utf-8
"""
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification # noqa: E501
OpenAPI spec version: 1.1.1
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class ExtensionClassCo... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
dca160553e252568b51df4a76fc3e773fdcfa0e5 | 4caf210180227f535f476ae372afd1d3a2f01313 | /artsycharts/urls.py | 823089ca34f6c3100540c43a6335ffc744fd3bd4 | [] | no_license | BWStearns/ArtsyCharts | d7afddd9dfaaa0cecac69893d2ca8176387f653d | c32efae6ca22f0478d747b47a9c04d5b8e105769 | refs/heads/master | 2021-01-21T00:17:52.706917 | 2014-12-22T21:13:18 | 2014-12-22T21:13:18 | 28,325,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Django
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.models import User
# External
# Internal
from charts.api import router
from charts import views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'artsycharts.views.home', name='home'),
... | [
"brianw.stearns@gmail.com"
] | brianw.stearns@gmail.com |
9c1157855677e70e2dbb83ed160ef13773bf4c30 | f917c2a60653e01e330dcad6d98d23eb38fc79d2 | /Lab6/Q1&2/Lab06_Q1functions.py | 593c8645f8f061a57b99cd6819e074796061870e | [] | no_license | rundong-zhou/PHY407-Projects | 652f60907c631935775b0708bfa44a852d63f91d | 9509c74cd2cad732888fb4424765766ab60aeb5f | refs/heads/master | 2023-02-16T15:14:44.578399 | 2021-01-13T23:27:16 | 2021-01-13T23:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 21 05:51:45 2020
@author: Zirui Wan
"""
import numpy as np
# define constants
G = 1
M = 10
L = 2
def f(r, t):
""" Function calculate first-order derivatives for the RK4 algorithm.
INPUT:
r[floats]: array of the state of the system: 4 variables (x, y, vx... | [
"71141331+nazeda-cc@users.noreply.github.com"
] | 71141331+nazeda-cc@users.noreply.github.com |
40c34bd9c99fb2039166995b23dec6a86c82f436 | b02c88bcad352811d22cadacd2aa573c426a2ca3 | /scrapers/settings.py | 06a6ae3c2620e357e3388b52d97f309471c0bf4b | [
"Apache-2.0"
] | permissive | frankier/ties445 | 9e24c3e415b4a07584c41e0e4a3f241b133463b8 | 4ceee5390d81aedc0fb3904803797584dd5084b8 | refs/heads/master | 2020-12-31T07:18:42.938988 | 2016-05-17T18:45:14 | 2016-05-17T18:45:14 | 56,767,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | # -*- coding: utf-8 -*-
# Scrapy settings for scrapers project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lates... | [
"frankie@robertson.name"
] | frankie@robertson.name |
d42c2fb57540b52754abd4678d2b2e19c8cd9368 | 4e5c57cd961ccfd0e5ea4a488fe5ba21525f34c1 | /manage.py | 3ece816a1d26f68f9c14f1a4ed52da8fc25b2158 | [] | no_license | kk5678/NewsInterface | 56cb2c91d898725841ad226f71d27cebcead91c6 | d3abce01c148b98a5ecd00e3ba958253fe5be7eb | refs/heads/master | 2023-07-06T20:57:06.674636 | 2021-08-18T15:40:02 | 2021-08-18T15:40:02 | 397,651,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | 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', 'NewsInterface.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"827799307@qq.com"
] | 827799307@qq.com |
5e6bc2d33224e5db9d7abdcf3df63cae6323d06d | 71d3f67eabe240d9f1f5010e8cd8cd0e693eef76 | /cfg/pose_prediction.cfg | 0ef450999df50fab4254c5d434c9234d15e81cc7 | [
"BSD-3-Clause"
] | permissive | asr-ros/asr_recognizer_prediction_ism | 0eb656969519b6edd626c31c95b1c5b643d02e4b | bebed25c3b28d52b8360137cab2b52905018cda2 | refs/heads/master | 2021-03-16T10:10:26.277799 | 2020-01-06T11:18:30 | 2020-01-06T11:18:30 | 73,502,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | cfg | #!/usr/bin/env python2
from dynamic_reconfigure.parameter_generator_catkin import *
PACKAGE = "asr_recognizer_prediction_ism"
gen = ParameterGenerator()
size_enum = gen.enum([ gen.const("best_path", int_t, 0, "Best Path"),
gen.const("old_prediction_non_normalized", int_t, 1, "old_predicti... | [
"ujdhi@student.kit.edu"
] | ujdhi@student.kit.edu |
f3c255111173fd934609d2f484fe11d84a6389c5 | 9ea9eafd07b918e893de6362517b8043806b1e18 | /arktours/wsgi.py | 8b514d7f20025d309a523537a0ae390a8c2fbb33 | [] | no_license | Muhanguzi/ArkTours | b508a19fa2148695d17f9b1728356a3e0d642b9b | f8ced1e89d757c26ab09cda2d1346d703ed77984 | refs/heads/master | 2020-12-24T15:22:56.563425 | 2014-08-10T05:22:14 | 2014-08-10T05:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | """
WSGI config for arktours 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/1.6/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"daniel@daniel-M.(none)"
] | daniel@daniel-M.(none) |
592216a6120e78bdd900efa5d1643a5167d856e3 | f87ba5b342e3ec212a9dd5d661acefb3aa7cff6c | /ComPDF.py | ea7038fcf6c8b9c2bd13287a68098c71defe884d | [] | no_license | JackLuguibin/CompoundPdf | e7d496abf234709b0ed6b4398e9ceeb44051c2a0 | f1e57313ec0a5efaf5572826ff920b4254e1e86d | refs/heads/master | 2020-11-28T14:49:09.943578 | 2019-12-24T03:03:04 | 2019-12-24T03:03:04 | 229,850,240 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 18 17:20:44 2019
@author: Administrator
"""
import os, sys, codecs
from argparse import ArgumentParser, RawTextHelpFormatter
from PyPDF2 import PdfFileReader, PdfFileWriter, PdfFileMerger
def getfilenames(filepath='',filelist_out=[],file_ext='all'):
# 遍历filepath下的所有... | [
"782056183@qq.com"
] | 782056183@qq.com |
7d460e74d46fd859249367c10120406c2cf0c1df | de33f9dfbfd365b821a4e9a2abc4f74360ec9458 | /pythonModuleException/exception_divide2.py | c5d5e6e65e5f5a68e070a8de4d0ce92ab1f92a3d | [] | no_license | youjin9209/2016_embeded_raspberry-pi | 8dea655915ed2bf2fcbe570b9c23f2c18803c10f | 20de2d6e88a9cd8e2eece1c092cb6c633b0334d5 | refs/heads/master | 2021-01-12T12:09:49.963918 | 2016-12-06T05:14:01 | 2016-12-06T05:14:01 | 72,323,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | def devide(m, n):
try:
result = m/n
except ZeroDivisionError:
print("not devided by zero")
except:
print("raise error not by zerodivision")
else:
return result
finally:
print("division")
if __name__ == "__main__":
res = devide(3,2)
print(res)
print ()
res = devide(3,0)
print(res)
print()
res = de... | [
"youjin9200@naver.com"
] | youjin9200@naver.com |
8502202133de46f0b14432650b3f149cdc966efe | 687efc817c868a20109c634a9556640fca4deda6 | /challenges/strings/string_formatting.py | 729a62ca3311baad5db74f534b123a76de5fc0e1 | [] | no_license | Sai-Ram-Adidela/hackerrank | 56625bf813e6d7b4b863b76979ac5c2048360c80 | 2dff2dbb1e02b0c3e182556e79d2140ff960b232 | refs/heads/master | 2020-03-11T12:56:24.961576 | 2019-09-30T07:19:07 | 2019-09-30T07:19:07 | 130,011,087 | 1 | 0 | null | 2018-05-01T17:06:40 | 2018-04-18T05:56:37 | Python | UTF-8 | Python | false | false | 127 | py | def dec_to_oct(n):
n = int(input())
for i in range(1, n):
print(i+' '+dec_to_oct(i)+' '+dec_to_hex(i)+' '+dec_to_bin(i)) | [
"noreply@github.com"
] | Sai-Ram-Adidela.noreply@github.com |
b91e68161a2024087f0f3b6f4fad6853f99e03bf | ad1bf558a6337fa51a745c15e9810bc1c2aa5aa2 | /Source/manage.py | 993e54bd76ae2f07d265dae8f01060e8ae31f126 | [] | no_license | Slemaire-PNI/taketwo_logparser | 1c8f9e343b5c91f6487b298d644401b90b554217 | b4e78d021a78458bfaf12a1c532b3aba48d7420b | refs/heads/main | 2023-06-17T17:14:09.796794 | 2021-07-09T06:45:33 | 2021-07-09T06:45:33 | 384,341,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | 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', 'logparser.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"simon.lemaire@visiercorp.com"
] | simon.lemaire@visiercorp.com |
747f6e3bbe97d7d158aac09fcaafe66708f7f141 | ba1df9c61dc827dc865f8a8bb06653e85d80d1e7 | /venv/Scripts/futurize-script.py | 124e769fbb87ef3f752618b93d9da78a6b79f3d5 | [] | no_license | Netdea/Tool-D | fb55a952d88c75e0e8ea8cf3a1eb2dd781b9119f | 8af0b8af0e864df907901ef345a52fd2ec9aa556 | refs/heads/master | 2023-06-11T12:03:55.881628 | 2021-07-04T11:42:07 | 2021-07-04T11:42:07 | 382,797,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | #!"c:\users\khant thu\pycharmprojects\pythonproject5\venv\scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata import distribution
except Imp... | [
"deadnet8@gmail.com"
] | deadnet8@gmail.com |
38782df3260494c0dda9dbe844b891579898536b | 3a63f1dc94044df0d5e3f8f2e89445e14af34691 | /lapidary/checkpoint/CheckpointConvert.py | 794f1be2463ac77c0098026c549ef75e125925ea | [
"MIT"
] | permissive | eltsai/lapidary | aeb191612dbce087a0adadad52e80dfe2048a58a | 05c8c1aaa0e865bb6406cc44e0b72c59444fafba | refs/heads/master | 2022-02-16T18:36:46.428166 | 2019-08-28T15:53:56 | 2019-08-28T15:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,159 | py | #! /usr/bin/env python3
import gzip, json, mimetypes, os, progressbar, resource, shutil
import subprocess
from argparse import ArgumentParser
from elftools.elf.elffile import ELFFile
from multiprocessing import cpu_count, Pool, Lock, Process
from pathlib import Path
from pprint import pprint
from progressbar import P... | [
"ian.gl.neal@gmail.com"
] | ian.gl.neal@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.