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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8f1083d0034cf0ea0ac5869d94510ae7f8a3773 | 337d17b845f5fdd7f32f6a0607e494eed488a601 | /leetcode/047-permutations-2.py | 3f0e2b6bd2fe0d3f2338eb7e108827b6fcdfe67f | [] | no_license | karsibali/solutions | e6130abe026a26558434239cde39c6a14a9712ba | 4ba5d7ac41fecc87491cae2c88293bd798db31fd | refs/heads/master | 2020-04-29T00:13:34.168323 | 2018-12-27T15:43:26 | 2018-12-27T15:43:26 | 175,686,183 | 1 | 0 | null | 2019-03-14T19:27:00 | 2019-03-14T19:27:00 | null | UTF-8 | Python | false | false | 445 | py | class Solution(object):
def permuteUnique(self, nums):
results, seen = [], set()
for i, n in enumerate(nums):
if n not in seen:
results.extend([n] + sub for sub in self.permuteUnique(nums[:i] + nums[i+1:]) or [[]])
seen.add(n)
return results
if _... | [
"ozan.onay@gmail.com"
] | ozan.onay@gmail.com |
940ddedb1a7b5c356b8dfafbda260579a472ce85 | ffacb9d209701729e95304b421d0d4944350ca17 | /ppline/utils/__init__.py | 9b6c2b714c095afb7dc82119a2295f08643fc690 | [
"MIT"
] | permissive | 5x12/ppline | fc13d26bee90c8bfedfbd085c6fb9b3300b7b4b0 | a4f7bd9aae0752a8abe7c4580c808792bb044ff6 | refs/heads/main | 2023-07-17T23:19:48.418388 | 2021-09-03T12:01:07 | 2021-09-03T12:01:07 | 347,499,398 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from collections import Mapping
def deep_update(source, overrides):
"""Update a nested dictionary or similar mapping. Modify `source` in place."""
for key, value in overrides.items():
if isinstance(value, Mapping) and value:
# if key not in source:
# source[key] = {}
... | [
"andrew.wolf@ru.ey.com"
] | andrew.wolf@ru.ey.com |
6dbd2b65e546059c8b29a553876c2040d6df0aff | c7c348ea93c5172d53508ace6fe5d0f18e874e1c | /plot.py | abb4324f8fa4a8f5ecdf0f1fd67934c3a4bb90e5 | [] | no_license | Droggelbecher/mtg-analysis | dec203d7f6df20c2d3af1e84b2c1aae1908ba134 | b076317016d0e0d40b8973a418957289cdc4e55a | refs/heads/master | 2022-10-26T23:29:06.746146 | 2019-10-03T10:16:04 | 2019-10-03T10:16:04 | 89,160,835 | 0 | 0 | null | 2022-09-23T22:33:29 | 2017-04-23T17:47:34 | Python | UTF-8 | Python | false | false | 4,134 | py |
from matplotlib import pyplot as plt
from matplotlib import cm
from matplotlib.patches import FancyArrowPatch
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d import proj3d
from numpy import linalg as LA
import numpy as np
from plot_annotator import PlotAnnotator
def plot_pca_multi_2d(Xtrans, pca_c... | [
"henning@hasemail.de"
] | henning@hasemail.de |
6ba613d9fccfb8ff74b47aaeacc8495eba851cb8 | 1c3eb97aefdb9b9a4c0786469fa771f5b9c715f0 | /exchange/providers/__init__.py | 5be50455c8c88c835c7434a019fcd01715380265 | [] | no_license | badprogrammist/exchange | 34acd5e8bd98e1ed701e2efc9367e34f31063883 | 74eabeaa99f0b5f420f32bdb173de3c386563c72 | refs/heads/master | 2021-09-23T10:36:32.792276 | 2020-03-10T17:23:22 | 2020-03-10T17:23:22 | 245,658,475 | 0 | 0 | null | 2021-09-22T18:43:03 | 2020-03-07T15:35:25 | Python | UTF-8 | Python | false | false | 104 | py | from .factory import create_provider
from .provider import ExchangeRatesProvider, ExchangeRateLoadError
| [
"badprogrammist@gmail.com"
] | badprogrammist@gmail.com |
c2e55d5b74527b2b8bbc2239cc6363069aae721a | ceb494c7473fcee8b3268e594348be941169492d | /mysite/users/forms.py | 9bbe8c87282ee8a1415e2e922450780179bd4dd5 | [] | no_license | smurf123444/DjangoPersonal | b212d3221ecfe129c9cbdfc41ed950db0913b017 | 2425369c7662aa7204040db0484b5bb7937018bc | refs/heads/master | 2020-04-04T09:24:40.727714 | 2018-11-14T00:09:47 | 2018-11-14T00:09:47 | 155,816,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta(UserCreationForm):
model = CustomUser
fields = ('username', 'email')
class CustomUserChangeForm(UserChangeForm):
class Meta:... | [
"chris@Chriss-iMac.fios-router.home"
] | chris@Chriss-iMac.fios-router.home |
27ce06a0c72c7720eb38dc815b3e31a8feda6ac9 | 79f96860a68df26d54e51b9b1deb885f9fc45ce2 | /week11/Blog/Blog/urls.py | f8d2f8606cb180e76a33636f0bb39c322c487a58 | [] | no_license | sbashkeyeva/BFDjango | fc3cd867cc79e20b866240f4a29544e161f3a0f9 | 08d1ea5a7a858d7397f575a4116d233ddf349610 | refs/heads/master | 2020-03-28T13:54:20.816607 | 2018-11-10T08:41:56 | 2018-11-10T08:41:56 | 148,440,026 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | """Blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"sbashkeyeva@gmail.com"
] | sbashkeyeva@gmail.com |
41aa7c8dfeb54afec88d4ea43f8a41b9b2d91fff | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/LinkedListinBinaryTree.py | bd1d5c8f035ba5eb54509a9bbf3fabf861bb754c | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | """
Given a binary tree root and a linked list with head as the first node.
Return True if all the elements in the linked list starting from the head correspond to some downward path connected in the binary tree otherwise return False.
In this context downward path means a path that starts at some node and goes down... | [
"here0009@163.com"
] | here0009@163.com |
275303fa77363fee01b4e91b1fe16e3bb510088f | 79e827b9159344b92716990083fa552f3ce466fa | /Others/python-raw-input.py | 58849c329cf560b712bbc0562c29b0109d23dcc1 | [
"MIT"
] | permissive | PratikSaha198/Hackerrank | 55faf6a13cc21cf4cb7a5eebc6b57c1fda9ca9e2 | 5ba7fb2a881e925a7a02d5c588923eb188dfc998 | refs/heads/master | 2020-08-04T21:45:24.658703 | 2019-05-11T08:40:10 | 2019-05-11T08:40:10 | 212,288,694 | 2 | 0 | MIT | 2019-10-02T08:21:22 | 2019-10-02T08:21:21 | null | UTF-8 | Python | false | false | 41 | py | def read():
s = input()
return s
| [
"rajatsri94@gmail.com"
] | rajatsri94@gmail.com |
1280ea5538b7606979adb304851d00d11e5cbaad | 34aa999d3699eb8bfb45ca507367952270455d81 | /script.py | 60f936d1bcd68acf0019c1f8cc2c53814932ea46 | [] | no_license | sametormanli/numeric-matrix-processor | 1878fb38d2a1fc6b36f9445a35c80a3eef82a452 | 2568669165a9cce1cb126d487e4d2e51b6e85eb0 | refs/heads/master | 2023-04-17T20:06:24.720874 | 2021-05-01T15:24:38 | 2021-05-01T15:24:38 | 357,673,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,163 | py | def add_matrices():
row_A, col_A = input('Enter size of the first matrix: ').split()
print('Enter the first matrix:')
A = [input().split() for _ in range(int(row_A))]
row_B, col_B = input('Enter size of the second matrix: ').split()
print('Enter the second matrix:')
B = [input().split() for _ in... | [
"65285753+sametormanli@users.noreply.github.com"
] | 65285753+sametormanli@users.noreply.github.com |
f7d484587c443c062e7843d6f4d6d3e0a3f868da | 1e381f2b974bc82cd2f0bd0cc5029cbda1baedb2 | /Hackerearth/shopsense-hiring-challenge/Oz and his game-board.py | bfb0fb972d3a6921d3a3fc32ffd0d540ec73ac57 | [] | no_license | rajat189/Competetive_programming | 7655678935d40cada5a3d39ed400ee430f0311db | 709065b3527eceb3923c13091608c174ae3a5d64 | refs/heads/master | 2021-01-19T05:53:35.790236 | 2016-04-12T19:12:34 | 2016-04-12T19:12:34 | 38,609,439 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | t=input()
while t>0:
t-=1
n,m,a,b,c=map(int,raw_input().split())
if 2*c>=a+b:
if n<=m:
ans = 2*n*c+(m-n)*b
else :
ans = 2*m*c+(n-m)*a
else:
ans = n*a+m*b
print ans
| [
"coolrajatsharma18@gmail.com"
] | coolrajatsharma18@gmail.com |
b7dab92c03a23d7788cd6b1dd58126f32a322ebc | 339bebc67f573f52db5fbdb19175dfefe797fcd8 | /Server/cps_sec/cau/migrations/0010_auto_20200609_2135.py | 894cf3494939f357e8a2fef1e4017cd257987248 | [] | no_license | BornDosirak/CPS | 5888f07c52117365befcc9b1f89ae07e3ae669ea | a0b0795c390cffe4c6da796226cb921fc0b490ac | refs/heads/master | 2022-10-30T12:22:09.216977 | 2020-06-14T15:54:25 | 2020-06-14T15:54:25 | 267,052,019 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # Generated by Django 3.0.7 on 2020-06-09 12:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cau', '0009_auto_20200609_2003'),
]
operations = [
migrations.AlterField(
model_name='room',
name='door',
... | [
"wlq7410@naver.com"
] | wlq7410@naver.com |
407adba72a22608b5d5662a40b3d6144e1c42712 | 2955c7c6982c58959c41e93e84353c90345b7f26 | /partify/modules/instagram/filters.py | 8227ba6f9eccc5c4b3dbcb9baf051cb3b7dbe3c2 | [
"MIT"
] | permissive | Shokesu/Partify | 44f2c57d8121bf39b42e030ccb24adf2f33681b4 | 579718e0a9294365ee82860155eb1d373e9938ff | refs/heads/master | 2021-03-30T21:14:58.766298 | 2014-08-08T10:15:33 | 2014-08-08T10:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | def filter_instagram_medias(medias):
"""
Takes a list of Media objects (Instagram-python) and filters out stuff that you want to see.
:param medias: List of Media objects.
:return: list of dictionaries
"""
filtered_media = []
for media in medias:
filtered_media.append(filter_instag... | [
"haukur@hauxi.is"
] | haukur@hauxi.is |
08332de2ae029001a90674cc93c98c084235c7ce | 000b23276e74534db1587473b3e360c5952f664d | /code/FrameCapture.py | 0447dc43f3a0c077897961ead768f5e7657ec7c2 | [] | no_license | yzy1421/ppp | 55f946867aaf37b6085c345f71de0c194553ae67 | 176b8baf4af6342b94588fdd73115ed335287705 | refs/heads/master | 2020-06-28T14:59:31.291769 | 2019-08-14T12:13:47 | 2019-08-14T12:13:47 | 200,261,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py | import os
import cv2
def videoname(path):
name=path.split('.')[0].split('/')[-1]
#print('videoname:%s'%name)
return name
# Function to extract frames
def FrameCapture01(path):
# Path to video file`
vidObj = cv2.VideoCapture(path)
#c=1
# Used as counter variable
count = 0
# checks ... | [
"zy3@csg25-05.ucc.ie"
] | zy3@csg25-05.ucc.ie |
16422538aa8332d0ab7d587c9c27c5731f45a232 | 5c97df625cce644e066a96e4c4688b6ee0e38c6a | /TMDetecter/TMDetectTest.py | 3bab377908668d835fe00b466aadec2fdd78520a | [] | no_license | ResearchingDexter/TinyMind-RMB-Recognition | f8139f28de0cf5cf4e225b90ec35237d3f5ef13b | d27a6a639762cfac7c67a48bc70552aca167851c | refs/heads/master | 2020-06-07T03:20:02.457003 | 2020-01-11T15:19:35 | 2020-01-11T15:19:35 | 192,909,196 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | import torch
from torch.utils.data import DataLoader
import torch.nn as nn
import pdb
from typing import List
from torch.autograd import Variable
from IPython.display import clear_output
from datetime import datetime
from torchvision.transforms import transforms
from TMDetecter.TMDetectDataSet import FBDataSet,img_tran... | [
"yingsunwangjian@gmail.com"
] | yingsunwangjian@gmail.com |
ff5018bf66bd87cd7a7db9b1e21fcc3c7b630983 | c6c40e6f11cb7dc57ec6bd51fe677a868f0197ae | /cw1/zad1.py | 888f5624d36e7c9524742cfaea6eb347705d3f70 | [] | no_license | Lukkai/Embedded-Systems | 4b6ed7dc4108f44e4b49150dfb49e102a21fae30 | 1fa0feeac287477d60d9c7ad1e5a6d9b9584521a | refs/heads/master | 2023-05-31T12:37:52.021898 | 2021-06-18T10:26:48 | 2021-06-18T10:26:48 | 367,486,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | ''' Program wyznaczający pierwiastki
trójmianu dla przypadków rzeczywistych
'''
import math
while True:
a = input('a=').upper() # Wczytaj a
if a == "KONIEC":
break
a = float(a)
b = float(input('b='))
c = float(input('c='))
delta = b**2 - 4*a*c
if delta > 0:
... | [
"lukaszchh@gmail.com"
] | lukaszchh@gmail.com |
c43314e6b1a3c8bc088a5afdd5d4e7885bec44d0 | c5767b5277035eed91305b2dd74f1c8916cd0ee8 | /code/chapter5/5.5-address_matching.py | 604f34c8d06f6eb3e7f31b61dea6c188fc09b158 | [] | no_license | pkxpp/tensorflow_cookbook_for_tf_1.12 | 8eae4f6a0989df27218249669fad34c8bc5e80ce | e22ab4232b9ce118144991558588b4607e2c207f | refs/heads/master | 2020-06-04T06:01:40.757274 | 2019-06-22T03:14:17 | 2019-06-22T03:14:17 | 191,897,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | # Address Matching with k-Nearest Neighbors
#----------------------------------
#
# This function illustrates a way to perform
# address matching between two data sets.
#
# For each test address, we will return the
# closest reference address to it.
#
# We will consider two distance functions:
# 1) Edit distance for st... | [
"pkxpp@126.com"
] | pkxpp@126.com |
bf0181e1651f9909702210b03cb90cf2db570f52 | a7e11a29e23bc1674afbe98ebeb110f499ee8586 | /venv/Scripts/django-admin.py | e2386b4c9ccdfe91f489178d783d9d0a0900439d | [] | no_license | Keicee32/Kotlin | 1c9d7a5fba4551b9849841dceb199f52a8e8afd8 | 98e20e6e8a3fccedf1ade98b9174e6824249d911 | refs/heads/master | 2022-11-06T15:18:59.667822 | 2020-06-11T01:58:55 | 2020-06-11T01:58:55 | 256,632,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #!C:\Users\Keicee32\PycharmProjects\Django\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"kelss451@gmail.com"
] | kelss451@gmail.com |
070c3610c2ae6875098dcec622589c78087d23ea | 0cb01a55d18a20e20e913a99b9976c300313d60f | /venv/Scripts/pip-script.py | eba510cd7c9dfec2959afaad77f30da4d6c67a60 | [] | no_license | jcosta191/borabora | 5bb3d3ffe28bd4e26e3dc694ce43365b7b1105f1 | 485927c12d3c2e34185b1fff77a4a114194760fa | refs/heads/master | 2020-05-14T09:07:59.284946 | 2019-04-16T17:21:01 | 2019-04-16T17:21:01 | 181,734,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!C:\Users\Utilizador\PycharmProjects\untitled\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"48892223+jcosta191@users.noreply.github.com"
] | 48892223+jcosta191@users.noreply.github.com |
e759a79b83f0502d1390ed516f8e5cfb6aa62ed9 | 9a6e38e72be5b76ad136cd0ecf354019ab1f11ca | /ssig_site/metrics/models.py | 0397536c5ae01f8a001c91e65279b322446ec15f | [
"MIT"
] | permissive | LeoMcA/103P_2018_team51 | dd5474fdb9bd63f74081426c4cfad7ebea43ac16 | cca9e022456b1e2653f0b69420ea914661c39b27 | refs/heads/master | 2021-05-01T18:48:40.689418 | 2018-04-28T00:17:59 | 2018-04-28T00:17:59 | 121,009,540 | 0 | 0 | null | 2018-02-10T11:26:52 | 2018-02-10T11:26:52 | null | UTF-8 | Python | false | false | 330 | py | from django.db import models
from django.utils.timezone import now
from django.contrib.postgres.fields import JSONField
class Metric(models.Model):
name = models.CharField(max_length=200)
datetime = models.DateTimeField(default=now)
increment = models.SmallIntegerField(default=1)
data = JSONField(defa... | [
"leo.mcardle.17@ucl.ac.uk"
] | leo.mcardle.17@ucl.ac.uk |
bc77030b6316760f8c2337921c655be3d16e06b6 | 864580fb04b763b154c79ecded78439478f0e3f8 | /Push.py | 94ec39f2b7b0ad9da33149541caba1f855a6898c | [] | no_license | technofications/ableton_push | 4dd976024b93c4d3aa3a69f6e9b9924fb06fb4b2 | 89ae7b59461fdc1070af96c59f7d7473bb4a9589 | refs/heads/master | 2020-12-03T05:20:42.762587 | 2013-07-17T00:01:03 | 2013-07-17T00:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,323 | py | #Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Push/Push.py
from __future__ import with_statement
import Live
from contextlib import contextmanager
from functools import partial
from _Framework.Dependency import inject
from _Framework.ControlSurface import ControlSurf... | [
"parabuzzle@gmail.com"
] | parabuzzle@gmail.com |
0531d5b55f094c2aaf796d394fa1daa6d38cb3fd | 694df92026911544a83df9a1f3c2c6b321e86916 | /Python/Dictionary/Test.py | d502859587f6d4e0928749399878d0e29f1905a0 | [
"MIT"
] | permissive | taku-xhift/labo | f485ae87f01c2f45e4ef1a2a919cda7e571e3f13 | 89dc28fdb602c7992c6f31920714225f83a11218 | refs/heads/main | 2021-12-10T21:19:29.152175 | 2021-08-14T21:08:51 | 2021-08-14T21:08:51 | 81,219,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py |
dic = {
"subdic" : {
"value" : 4
}
}
| [
"shishido_takuya@xhift.com"
] | shishido_takuya@xhift.com |
6f9e5befc43928b8bcf75d75f1cf8eb17da8c5a0 | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/lib/python3.9/site-packages/docutils/languages/__init__.py | 54e16bee96880c82e32f65c0fbd2b3bbfa6a61fa | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 2,902 | py | # $Id: __init__.py 8467 2020-01-26 21:23:42Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
# Internationalization details are documented in
# <http://docutils.sf.net/docs/howto/i18n.html>.
"""
This package contains modules for language-dependent fe... | [
"marcelo.becerra@ug.uchile.cl"
] | marcelo.becerra@ug.uchile.cl |
dd2e47e0904e7628fedcb1c767a0adf44403dbf4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Hdthzjmr5fRqEX93E_10.py | a97dfd845d7c14b80201bf511f538ba573ba5d9a | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py |
def get_sequence(low, high):
return list(range(low,high + 1))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
818da250390ddfa46fdc100c049e6d5ee24570dd | a8459cf79465f3587708721ac4185268af39b3db | /Score_Analysis/rnn_cell_backward.py | afef0b8ff43064b4c112590d7974f329b92c87c6 | [] | no_license | mousecpn/MMYZ_score_analysis | a5131cc8c8bf1764aff00ea2225a3b35b3c54c35 | 0aa9e20537ae24becb200688470e8a0dee32783a | refs/heads/master | 2023-08-26T11:13:39.918372 | 2021-10-11T06:56:45 | 2021-10-11T06:56:45 | 415,800,058 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import numpy as np
def rnn_cell_backward(da_next,cache):
(a_next,a_prev,xt,parameters) = cache
Wax = parameters["Wax"]
Waa = parameters["Waa"]
ba = parameters["ba"]
dtanh = (1-a_next**2)*da_next
dxt = np.dot(Wax.T,dtanh)
dWax = np.dot(dtanh,xt.T)
da_prev = np.dot(Waa.T,dtanh)
d... | [
"609731730@qq.com"
] | 609731730@qq.com |
322fa68de103b1e30184dc10a00a1943c82407e4 | eb9110e91fdc78acbe4e34fb2966523de65536b4 | /carts/views.py | aed3f5b2b53e803a63fa6b1cc21cdfbb48b89482 | [] | no_license | NaveenMulaga/HealthyHarvest-sdp-2 | 050b7694f9345449c0a10a993560936504ff49b1 | a785e29b979c6abda4fb2b30843134f765b53129 | refs/heads/main | 2023-04-24T07:15:40.781190 | 2021-05-18T12:46:52 | 2021-05-18T12:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | from django.shortcuts import render,redirect, get_object_or_404
from store.models import Product, Variation
from .models import Cart, CartItem
from django.core.exceptions import ObjectDoesNotExist
# Create your views here
from django.http import HttpResponse
def _cart_id(request):
cart = request.session.session_k... | [
"mnaveeb1105@gmail.com"
] | mnaveeb1105@gmail.com |
7cbdc883ce8ca7ea66a6d0e9657f3bd72a968692 | ac6e4102dfb49a4e49de0e2766feb6e80ab0b5c2 | /test/test_iam_project_sa_credential_patch.py | 87ad3f69653ff0ad4b56860156c9eb0f861a0e95 | [
"MIT"
] | permissive | hyperonecom/h1-client-python | df01f05ad295121e3dd391a3274c41e2f5b88e53 | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | refs/heads/master | 2023-04-05T01:51:31.637002 | 2021-03-29T00:05:41 | 2021-03-29T00:05:41 | 319,309,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import h1
from h1.model.iam_project_sa_credential_patch import IamProjectSaCredentialPatch
class TestIamProjectSaCredentialPatch(unittest.... | [
"action@github.com"
] | action@github.com |
c95fc8ac09ec08d225a4f6bf53d3d08e2d14b97f | a8a4e919584a5c9448c3b8314003d61604c89cc6 | /src/pages/migrations/0003_remove_movie_info.py | 61ff51f859e2a037956719c387c5aaecca2f5619 | [
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL",
"LicenseRef-scancode-python-... | permissive | brandongallagher1999/CrypTorrents | ed898ca8687bf6837f22237306e9d5bb132e66ad | b0f354d0a4bd4dc5f7c0290ddacb67359f2dbcc5 | refs/heads/master | 2023-05-29T17:12:06.316885 | 2022-12-08T20:29:13 | 2022-12-08T20:29:13 | 196,754,204 | 1 | 1 | MIT | 2023-05-22T22:29:07 | 2019-07-13T18:33:04 | Python | UTF-8 | Python | false | false | 323 | py | # Generated by Django 2.2.2 on 2019-07-13 17:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pages', '0002_auto_20190713_1317'),
]
operations = [
migrations.RemoveField(
model_name='movie',
name='info',
),
... | [
"brandonegallagher@gmail.com"
] | brandonegallagher@gmail.com |
1c062643ff13824d8a11e31aa01542b690aa9df9 | dd139c577d0acb4accc690e880a359bd4f463f71 | /PyFunceble/__init__.py | f585494b6dfb32497c42d3b37a321ca928b532a6 | [
"MIT"
] | permissive | ActorExpose/PyFunceble | 8a9edbe337f7afb11eb7514a2e023d288e9fc55c | e3cc494319e08df3ddfb11b5a4a0e6cb2ad3727f | refs/heads/master | 2020-09-15T08:47:08.481147 | 2019-06-24T20:00:59 | 2019-06-24T20:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,143 | py | # pylint:disable=line-too-long, too-many-lines, invalid-name, cyclic-import
"""
The tool to check the availability or syntax of domains, IPv4 or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║... | [
"contact@funilrys.com"
] | contact@funilrys.com |
c670140169e945574a3535bbeef8af42ca7b75f3 | 523a3857a2f31f442d6550d00ef8d534cfa37457 | /liteeth/phy/s6rgmii.py | 5f4c70a9e40cfc532f306ecf09f36369a140abe2 | [
"BSD-2-Clause"
] | permissive | zsipos/liteeth | ed7d31b16028b76a52162adb87cbbf4e3ab1c89b | fb478537e7d45512567b9b35b5a69c536cb588b2 | refs/heads/master | 2021-06-18T11:02:11.104258 | 2020-03-25T11:40:02 | 2020-03-25T11:40:02 | 215,765,402 | 0 | 0 | NOASSERTION | 2019-10-17T10:25:59 | 2019-10-17T10:25:59 | null | UTF-8 | Python | false | false | 8,880 | py | # This file is Copyright (c) 2019-2020 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
# RGMII PHY for Spartan6 Xilinx FPGA
from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer
from liteeth.common import *
from liteeth.phy.common import *
class LiteEthPHYRGMIITX(Module):
de... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
878153f223e114a2296af881155377a48ad010bf | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_x86/source/scipy/sparse/linalg/isolve/tests/test_gcrotmk.py | 5c6fe30aff5e23067d4e3111d12b909f53e4774c | [
"MIT",
"Python-2.0",
"Qhull",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later",
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"GCC-exception-3.1"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 5,405 | py | #!/usr/bin/env python
"""Tests for the linalg.isolve.gcrotmk module
"""
from numpy.testing import (assert_, assert_allclose, assert_equal,
suppress_warnings)
import numpy as np
from numpy import zeros, array, allclose
from scipy.linalg import norm
from scipy.sparse import csr_matrix, eye, r... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
4c9b0d1ebfbd32b61c22ada01520bfa080ebb0a4 | 80e9a64396414636d4d5984b873696baccdf0d31 | /app/__init__.py | 559f15b5799b6e0372bddf3ce62aad9e39ecdfe3 | [
"MIT"
] | permissive | syemoore/info3180-Project2 | a14f1c890b2f650e744bc847cc73fdf248bf1aba | bae0163693264d25aed39ef95025e5dbb8b03828 | refs/heads/master | 2020-03-14T09:05:46.456979 | 2018-04-29T23:34:51 | 2018-04-29T23:34:51 | 131,538,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import os , psycopg2
from flask_login import LoginManager
from flask_wtf.csrf import CSRFProtect
app = Flask(__name__)
app.config.from_object(__name__)# Flask-Login login manager
csrf = CSRFProtect(app)
login_manager = LoginManager()
login_manager.init_a... | [
"sy.moore@mymona.uwi.edu"
] | sy.moore@mymona.uwi.edu |
d1c6dd7b2d80edb1db31b1ae2ed6619e5a39e30a | 240ab4629d469c20450d9298ec1996a96d093692 | /python_inf/tabliczka.py | 7901f602d2a451df4dd013d628663471abc8b51f | [] | no_license | pnoga190401/projekt | badeec7a4f3d28de908e9b3817c6fab3242bb933 | ec5797372296923a5571a11f6a60f73214cd4aa6 | refs/heads/master | 2021-06-01T22:43:52.544544 | 2020-02-25T07:43:54 | 2020-02-25T07:43:54 | 105,510,454 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# tabliczka.py
#
def tabliczka():
for k in range(1, 11):
for w in range(1, 11):
print("{:>3} ".format(k * w), end='')
print()
def main(args):
tabliczka()
return 0
if __name__ == '__main__':
import sys
... | [
"paulinanoga55@gmail.com"
] | paulinanoga55@gmail.com |
ceef3c88fb67390e973d5302e78c10df5de03030 | ff53bf82b492ed815d95a3b069e3a16d027eac7a | /Snake.py | a1668c754e9db24e077c9242d85c50e8ab5fd18f | [] | no_license | yogivaleja/Snakes | a5874f2c78238338aac3446030acebebdbfc56e4 | a1bfabf7cb92067209e7e1b399ed9d9f4c3e5e97 | refs/heads/master | 2023-01-08T05:09:25.106625 | 2020-11-02T19:22:08 | 2020-11-02T19:22:08 | 309,473,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,690 | py | import pygame
import random
import os
pygame.init()
pygame.mixer.init()
#Screen Window
screen_width = 1000
screen_height = 600
game_window = pygame.display.set_mode((screen_width,screen_height))
#Title
pygame.display.set_caption('Snake Game')
#Colors
white = (255,255,255)
black = (0,0,0)
red = (255,0,0)
green = (... | [
"valejayogesh@gmail.com"
] | valejayogesh@gmail.com |
316995c8714b536120e04ed78d65a9596ad88d95 | 51da71a26628a3c6d1814e6da38f5c48f3101d9b | /uri/2349.py | 991c2a0e576be7e61c94c10e7d12560498528cb4 | [] | no_license | da-ferreira/uri-online-judge | 279156249a1b0be49a7b29e6dbce85a293a47df1 | 6ec97122df3cb453ea26e0c9f9206a2e470ba37d | refs/heads/main | 2023-03-30T11:47:05.120388 | 2021-04-02T19:45:25 | 2021-04-02T19:45:25 | 309,744,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py |
qtd_estacoes, commands, devastada = map(int, input().split())
comandos = list(map(int, input().split()))
vezes = 0
robo = 1
for i in range(commands):
if robo == devastada:
vezes += 1
if comandos[i] == 1:
if robo < qtd_estacoes:
robo += 1
else:
r... | [
"noreply@github.com"
] | da-ferreira.noreply@github.com |
d73f3959f8899709e54de43cea48267c483b46ae | 74717c23d061ae4d2df887e27a7fcf9cba013324 | /Python/PropagatedBodies.py | 6d31dd2fa2e7a57790dfc72c375e9022b87bce39 | [] | no_license | RensZ/thesis2 | e338c400b6cd5ca47551f699b3ce77566a9d6798 | 2ae43a6c65ec07ce0d2693a62de0b2ec80f9aa1f | refs/heads/master | 2023-01-10T11:44:24.209292 | 2020-11-10T16:39:50 | 2020-11-10T16:39:50 | 257,527,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | """
Created by Rens van der Zwaard on 2020-3-2
Purpose: to plot the propagation of the bodies to check whether it went alright
"""
def f(dir_output, dir_plots, body, no_arcs):
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
AU = 149597870700.0 #m
fil... | [
"rensvanderzwaard@gmail.com"
] | rensvanderzwaard@gmail.com |
70c65f15fa044a4fd22f5b1cd1aa72a6ad1f2aff | 23d096a2c207eff63f0c604825d4b2ea1a5474d9 | /TTAnalysis/EgammaClusterProducers/python/ecalDeadTTowerKillerSequence_cff.py | 1766a7fc8f95b8b26e0782edd077c8741dc29698 | [] | no_license | martinamalberti/BicoccaUserCode | 40d8272c31dfb4ecd5a5d7ba1b1d4baf90cc8939 | 35a89ba88412fb05f31996bd269d44b1c6dd42d3 | refs/heads/master | 2021-01-18T09:15:13.790891 | 2013-08-07T17:08:48 | 2013-08-07T17:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import FWCore.ParameterSet.Config as cms
from TTAnalysis.EgammaClusterProducers.ecalDeadTTowerKiller_cfi import *
ecalDeadTTowerKillerSequence = cms.Sequence(EcalTTowerKiller)
| [
""
] | |
8bf0486700ea28d4e93393b81c5e4501d8ea59a3 | b007d88e6726452ffa8fe80300614f311ae5b318 | /LeetCode/facebook/top_facebook_questions/convert_bst_to_sorted_doubly_linked_list.py | 9a63bd3236d43558c430769e6f6a823f41afb113 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py | """
Convert Binary Search Tree to Sorted Doubly Linked List
Convert a Binary Search Tree to a sorted Circular Doubly-Linked List in place.
You can think of the left and right pointers as synonymous to the predecessor and successor pointers in a doubly-linked list. For a circular doubly linked list, the predecessor of... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
18cfae7413bf79f8f691805d57a11e88b052688a | 48cca5ec318fe173cbc8b8c3cd56be524938000d | /Schedule/proxyRefreshSchedule.py | b3d0c4166dad1264a41e48d700af9457209b7753 | [] | no_license | GrootPank/ProxyPool | 87029d582433d0cd40d55ca2006d769d85c1ad02 | 2f91783fd4f3631b8600ad76627c96d4e9ce30b9 | refs/heads/master | 2021-01-01T04:03:16.343482 | 2017-07-14T08:37:20 | 2017-07-14T08:37:20 | 97,111,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | import threading
from apscheduler.schedulers.blocking import BlockingScheduler
from Manager.proxyManager import ProxyManager
from Util.logHandler import LogHandler
from Util.utilFunction import validProxy
class ProxyRefreshSchedule(ProxyManager):
def __init__(self):
ProxyManager.__init__(self)
s... | [
"843310964@qq.com"
] | 843310964@qq.com |
3e205cbf4d16776c34e99cabceabc616d2f77b52 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB1_1487_9.py | 6f0bee31aa8412e5546a3d450eca4d7c1593e249 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,174 | py | DRB1_1487_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.98558, 'I': -0.014418, 'H': -999.0, 'K': -999.0, 'M': -0.014418, 'L': -0.014418, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.98558, 'V': -0.014418, 'Y': -0.98558}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
57f811805d7d8ef926a10b1e2ba283d1c071b9ad | e36b63987149a043f79a2f6a85ea5a90546ebacd | /python/Lib/site-packages/GitHubCommitsDownloader/wait.py | a62892f110ccf09940864fd604fa4ccbd845c5a0 | [] | no_license | truongsang0801/Test | 9bdc5fe54e63e18b98b066f4addca88e59a9d6b9 | 0394758e1dea0b4cb80bf2f8bb2b0a21fb60dd97 | refs/heads/main | 2023-05-12T13:45:51.349020 | 2021-06-05T16:17:48 | 2021-06-05T16:17:48 | 374,144,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | def wait():
import termios, fcntl, sys, os
fd = sys.stdin.fileno()
flags_save = fcntl.fcntl(fd, fcntl.F_GETFL)
attrs_save = termios.tcgetattr(fd)
attrs = list(attrs_save)
attrs[0] &= ~(termios.IGNBRK | termios.BRKINT | termios.PARMRK
| termios.ISTRIP | termios.INLCR | termios. IGNCR
| ter... | [
"kimseohunhq@gmail.com"
] | kimseohunhq@gmail.com |
16cea2bd4e9dc58fbc3704311c14050073dffe3e | afb9991cbc58d6966de44bd19d31307032a6230e | /1. This is Ludo (dice simulator).py | 754e759afe7fb9835e8bc1016addd86fadf631a3 | [] | no_license | sam-kumar-sah/python-project | d87803c673c3058085cb2798221253ba6743786f | 93068b6fa43e99352137b32212d324212593a1e7 | refs/heads/master | 2022-09-08T19:05:51.111510 | 2020-05-28T09:32:13 | 2020-05-28T09:32:13 | 267,398,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | //This is Ludo (dice simulator)
import random
print("This is Ludo (dice simulator)")
t='p'
while t=='p':
x=random.randint(1,6)
if x==1:
print("-------------")
print("| |")
print("| 0 |")
print("| |")
print("-------------")
elif x==2:
... | [
"samsahp9@gmail.com"
] | samsahp9@gmail.com |
48c15a6f09dce9b9f099128d9bd66bba77f4d97c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uag.py | edc7726348da9432c2bf8662fcd1eab53646893c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
bccca9ceafcf18310a6864bfdcfe1637211fbfc3 | 6ececdfaf893837c02c9450551e8313676c01fc0 | /spencer_tracking_msgs/msg/_TrackedPersons2d.py | 8dc47e350b126a329fff34be2906c0f0ba2fa2ab | [] | no_license | noskill/spencer_messages | d5bfe0fd8578cf134f3197d2c76f5cb614a888d2 | a301b3d7e2dd9847ef2ff777357b6091ff723898 | refs/heads/master | 2023-02-04T08:12:27.324206 | 2020-12-25T10:40:36 | 2020-12-25T10:40:36 | 324,342,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,390 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from spencer_tracking_msgs/TrackedPersons2d.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import spencer_tracking_msgs.msg
import std_msgs.msg
class Track... | [
"abelikov@singularitynet.io"
] | abelikov@singularitynet.io |
5ce5acddc90424bf3e98b10c3156ad868247ae7a | 0307becacfb38247892d8615512d7b330ec72cff | /mwt_detection.py | 39a1eaf6cf171a0dd478212dc993b6547a7eead3 | [] | no_license | MarvinMartin24/multiplewavetracking_py | fcbde842323c8c5fa192daa22c37501c413375b8 | 486704c8683598bd30e51b53c7d8d7bd41ebf508 | refs/heads/master | 2021-06-23T04:47:10.695323 | 2017-08-31T22:50:12 | 2017-08-31T22:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,702 | py | ##
## Near-shore Wave Tracking
## mwt_detection.py
##
## Created by Justin Fung on 9/1/17.
## Copyright 2017 justin fung. All rights reserved.
##
## ========================================================
"""Routine for detecting potential waves.
Method for detecting is:
-1. detect contours
-2. filter contours
-... | [
"citrusvanilla@gmail.com"
] | citrusvanilla@gmail.com |
736edcbb3ecab2c689398ce64245242a76f51cc6 | b024bcd4c8363a45fb0cb884e03701dcaf3c3a89 | /Music Program Only/P4.py | 70f072792fb6dc4d4f43b5e0d922e5dc6020b730 | [] | no_license | KylerM-23/LED-Music-Commission | f42768bf7d70e5494672e962c532aef7f67022c4 | 841459a962e3836940b728e75c6c69977ae6dbfe | refs/heads/main | 2023-03-28T01:31:59.712748 | 2021-03-18T04:56:32 | 2021-03-18T04:56:32 | 348,921,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,173 | py | import pygame
import time
import datetime as d
import random as R
from tkinter import *
from timeit import default_timer as timer
global NoMusic, NoLight, Retro, Background_Color
Background_Color = '#ffe603'
class Song:
def __init__(self,Song,AlbumArt = "1"):
self.Song = Song
self.AlbumArt = AlbumA... | [
"noreply@github.com"
] | KylerM-23.noreply@github.com |
3a571a7922f6154a27732321583724b7d99e2e7c | d2c00f4aa714a8dcc516a5adb3818ce3762e4d7b | /docs/conf.py | 38847adf1240bf30490160a43724ac78124f17be | [] | permissive | SeppPenner/job-runner | 3889547111d9896c698f84d2497dfa7b817efd60 | 427a29b21be98e8dfadc400c03d4bb3422922a46 | refs/heads/master | 2021-01-13T05:28:48.589912 | 2020-03-08T16:52:28 | 2020-03-08T16:52:28 | 86,578,978 | 0 | 0 | BSD-3-Clause | 2020-03-08T16:52:29 | 2017-03-29T12:23:42 | Python | UTF-8 | Python | false | false | 8,072 | py | # -*- coding: utf-8 -*-
#
# Job-Runner documentation build configuration file, created by
# sphinx-quickstart on Mon Nov 5 10:14:03 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"info@brocaar.com"
] | info@brocaar.com |
22439d9bd7b7bcc61cc6fd3bb4fa157fc2df4732 | 35e515305b4a16e86a486b55fc0ba4cece7a51b8 | /site/application.py | 90cc16c1e55ffe05a0448077c0a584149efd2415 | [] | no_license | SamKChang/ML_server | f07df229516e3b4b49c31a979c0c891f2a576208 | 7a4a92cdbe06ec16660190fb05797b53908293b9 | refs/heads/master | 2021-01-10T15:34:19.149530 | 2016-10-24T22:18:27 | 2016-10-24T22:18:27 | 46,265,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | #!/usr/bin/python
from flask import Flask
from flask import request
from flask import render_template
app = Flask(__name__)
import ml_engine.converter as converter
import ml_engine.interface as interface
import ml_engine.dynamic_plot as pt
from ml_engine.ml_core.List2Energies import loadMachine
m = loadMachine(True)... | [
"samio54321@gmail.com"
] | samio54321@gmail.com |
b8c9b84a7ae7edcf1671719803b809fb5ae1e4b2 | a4534cf894b050f546cfd7b303ed8a41778162f5 | /devel/.private/ur_driver/lib/python2.7/dist-packages/ur_driver/__init__.py | a4ae47df663867a10d95227448ff4ea6fae5accb | [] | no_license | AdamRest/ur5_motion_test | 5acccf961c22d0702ae20c9be86af51491d63d3b | 7a63af0a00473cdcb4188f747fb26a122a27f712 | refs/heads/master | 2020-05-31T13:59:47.044352 | 2019-06-05T03:22:46 | 2019-06-05T03:22:46 | 190,317,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/amr/ur_ws/src/universal_robot/ur_driver/s... | [
"adam.rest@gmail.com"
] | adam.rest@gmail.com |
398d3fd1f82fef844c5ae4315dd6a37ac56bc1e9 | cef8d6a42c4baa4344ce805636249a2038257659 | /Game/extended_groups.py | 18675a36f5ed5974381de017a771ed251869f0be | [] | no_license | Denis9619/2D-Game | 47453f7ca5fc7c0b50b462e749806733ddda45f5 | d289e79be50386c356e3e3b8f3dff7c555a394f9 | refs/heads/master | 2022-11-27T12:45:03.889880 | 2020-08-06T09:26:15 | 2020-08-06T09:26:15 | 285,528,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py |
from pygame.sprite import LayeredUpdates as _LayeredUpdates
from pygame.sprite import Sprite as _Sprite
class LayeredUpdates(_LayeredUpdates):
def update(self, *args, **kwargs):
for s in self.sprites():
s.update(*args, **kwargs)
class Sprite(_Sprite):
def update(self, *args, **k... | [
"noreply@github.com"
] | Denis9619.noreply@github.com |
169e861874f7a1c08928383d276e5fc99f0d2da3 | 8f41891ad2923ba794403e7a43fbe8ca117f8e88 | /2018/trouble_sort.py | 89167ecf0dc5b0dd56b5027fdae321faf7360d66 | [] | no_license | ASHIJANKEN/Google-Code-Jam | eda883d172aba3dd586e640950a39428402835bb | b25045c651e0699c0ee1f10c935498655d5feb4b | refs/heads/master | 2020-03-09T02:28:18.299563 | 2018-04-07T15:28:43 | 2018-04-07T15:28:43 | 128,540,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | def detect_error(list):
error = 'OK';
for i in range(len(list) - 1):
if list[i] > list[i + 1]:
error = i
break;
return error
t = int(input('')) # read a line with a single integer
cases = []
for case in range(t):
cases.append([int(input('')), input('')])
cases[case][1] = [int(s)... | [
"24617794+ASHIJANKEN@users.noreply.github.com"
] | 24617794+ASHIJANKEN@users.noreply.github.com |
f4609cd0ac288396c4feccbdcaedb629f9f7282f | 768cc956563df5020d52860b2ebff368cef9cc9e | /exercicio_05.py | 79ad1d10554c44d5d38217e708af028a72644818 | [] | no_license | diegolisboadev/Curso_Selenium_Python | 9ef365d779afad0117c1d777a34c8b7848a89db4 | f485dc32548ea9d21c9d63efd39b260f06ccfb16 | refs/heads/master | 2023-02-09T19:16:54.425059 | 2021-01-11T03:00:09 | 2021-01-11T03:00:09 | 296,327,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py |
from selenium.webdriver import Firefox
from time import sleep
browser = Firefox(executable_path='./geckodriver')
url = "https://selenium.dunossauro.live/exercicio_05.html"
browser.get(url)
def preenche_forms(form, nome, senha):
"""Preenche os forms 4 dinamicamente
Args:
form ([type]):... | [
"diego.lisboa.pires@hotmail.com"
] | diego.lisboa.pires@hotmail.com |
a85a3b68631c00ceb1ac07854805960de3e1cb94 | 23ba3fb157c70e5f0a139ce6378e979272f01fc3 | /Extracurricular.py | 67322ea1e5ddcb226e8b3dfc4576c481559ccd0b | [] | no_license | NguyenHuuHieuThien/ERP-Nhom5 | a90caa30294296fbc6bb2c8a9d50a84cb79da0ff | 99cf060553482cd36df31b29572aee383a24193c | refs/heads/main | 2023-09-04T10:07:34.609415 | 2021-11-05T07:16:04 | 2021-11-05T07:16:04 | 419,258,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from odoo import fields, models,api,_
class educate(models.Model):
_name = 'mylib.extracurricular'
_description = 'Extracurricular'
# id = fields.Char(string='Mã Dao Tao', required=True, copy=False, readonly=True,
# default=lambda seft: _('New'))
name = fields.Text("Tê... | [
"noreply@github.com"
] | NguyenHuuHieuThien.noreply@github.com |
612abedc5a77af6f29bb30fa353f5514070a1da6 | 14c585862b15968f68d7e5563e3c25335e232b9b | /item_functions.py | bcde0763a78344b85ec9451bfde3204ec8b0c516 | [] | no_license | LeoJMaro/Joellike | 210cfaaaccfeaab82fe72294486c44dcf5c3e540 | 337c18b2fddef5e899b3421bae07ceab7ed97b14 | refs/heads/master | 2020-04-10T02:42:13.889889 | 2018-12-21T00:04:28 | 2019-01-04T00:25:11 | 160,750,451 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,561 | py | import libtcodpy as libtcod
from components.ai import ConfusedMonster
from game_messages import Message
def heal(*args, **kwargs):
entity = args[0]
amount = kwargs.get('amount')
results = []
if entity.fighter.hp == entity.fighter.max_hp:
results.append({'consumed': False, 'message': Messag... | [
"leojmaro@gmail.com"
] | leojmaro@gmail.com |
5c37acd6d27ded34dbc88264ec5fab86c6dc457e | 86226fd15a55a9ceded9ec641eddd0f20bc61017 | /env/bin/wheel | 559d11371af46dcce33bab7f17224bd1f8d65966 | [] | no_license | zeetec20/DjangoChannels-Chat | c0deb3bff8d9a8cbd28e5a576679c3cbea479634 | 7c781b3f74b1bffe5aef04658090ad1a754a087b | refs/heads/master | 2020-09-21T05:37:31.211455 | 2019-11-28T17:17:46 | 2019-11-28T17:17:46 | 224,695,498 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/home/zeetec/django/djangoChat/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jusles363@gmail.com"
] | jusles363@gmail.com | |
a71b7414eea9b212150062d871507aaf69ad3949 | f725139a611f58a34e8838a5c3a26f443c9f4725 | /python_lxml/lxml_xpath.py | ba4628a71ab73b634b4a2680ab795ff7a48118b7 | [] | no_license | zuiwoshachangjunmoxiao/pythonStudy_spider | 46045ad2d62af0310c2fa35b911465abf9316f09 | 215adc0c3bda7c0f9fa39b2a78896c39f31d612d | refs/heads/master | 2020-03-26T16:29:14.335156 | 2018-10-23T01:59:13 | 2018-10-23T01:59:13 | 145,104,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # -*- coding: utf-8 -*-
# @Time : 2018/10/22 14:57
# @Author : 银河以北
# @Email : smilegks@163.com
# @Introduction :
'''
python + lxml 爬虫,以豆瓣图书为例,爬取豆瓣图书的信息。
Python 3.6.5
安装 lxml 库,安装有点复杂(可能出错)。我使用的Anaconda3,自带lxml 4.3.1,不需要自己安装,推荐使用。
'''
import requests
from lxml import etree
# 要爬取的URL
url = "https://book.douban... | [
"smilegks@163.com"
] | smilegks@163.com |
e685a14784fe36cb845908888c5f98bf5088f329 | 7b3b09bf28350ec4afa8c4dbbd2ed6adac12370b | /learnPythonExample/pythonGrammar/08-通用装饰器.py | 12959935611489967ad5d6cfb9ce5985a826d4cc | [] | no_license | Armyz/learnPython | 068046e38ce7b9887e01acea3c47156f75e06487 | 88a529c5117219af57e8af491d1702676c218191 | refs/heads/master | 2021-05-23T05:09:14.301237 | 2017-12-11T15:10:31 | 2017-12-11T15:10:31 | 95,230,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # -*- coding:utf-8 -*-
"""
装饰器相当于执行@xxx时将下面的函数名作为参数传送给了装饰器函数
如下面的例子:
@DecoratorFunc
def func2():
xxx
相当于func2 = DecoratorFunc(func2)
"""
from time import (ctime,sleep)
def DecoratorFunc(funcName):
print("执行装饰器")
#为了保证装饰的函函数有参数的情况,应该使用*args和**kwargs保存参数
#下面为通用的函数装饰,包括参数和返回值
def inner_func(*args,... | [
"armyz@foxmail.com"
] | armyz@foxmail.com |
ff0cadfe61595fb01066cd48cbc555c020961a96 | 935195fdf6cc1ef7252d096994a32bd449cb0635 | /ask_parse.py | 0e50b1c3131b12bae447a04120ddf596d77c0bb6 | [] | no_license | ZZWENG/WikiQA | d8bc8b1063b8ffaf0ef64552dc66ed8989af31fa | c8c238cd3d77336791b2eb4fabcbaf882628e2e7 | refs/heads/master | 2021-05-31T04:29:49.573041 | 2016-04-19T04:46:26 | 2016-04-19T04:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,605 | py | __author__ = 'laceyliu'
import re
import stanford_utils
from nltk.stem.wordnet import WordNetLemmatizer
from nltk.corpus import wordnet as wn
import tree_parser
bes = ["am", "are", "was", "were", "have", "has", "is"]
# get basic form for verb (set pos = 'v' for verb)
def basicForm(word, pos):
exceptions = wn._exce... | [
"xiliuhk@gmail.com"
] | xiliuhk@gmail.com |
c64d2d3e90b12fa6f541b0e91472aae542fb7c2a | 920d6c6f23a6aa004c3a353c2dd1fffaff757c3d | /visualization.py | d8ac98e836f3ac9b3fc4ffe43d30796c80fd942f | [] | no_license | bhakti-10/cognifront-capstone-project | 13974dd21b8cfffab9dd52a46607b4d764008766 | ebf9efcc1abd2772e1e45856522f44e23cd83732 | refs/heads/master | 2022-12-05T17:29:41.873192 | 2020-08-30T11:12:53 | 2020-08-30T11:12:53 | 291,452,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
def Plot(df):
# Creating the bar plot
df['online_order'].value_counts().plot(kind='bar')
plt.title('Does restaurant take online order?')
plt.show()
df['book_table'].value_counts().plot(kind='bar')
plt.... | [
"noreply@github.com"
] | bhakti-10.noreply@github.com |
dbf2529558a71d575f0da2b41d8365f734bfea8f | c5b9f0fabffb6b2d13c6e350c8187a922709ac60 | /build/pmb2_rgbd_sensors/catkin_generated/generate_cached_setup.py | 374ff6169f89261aed91836157f562dc2d36ca5d | [] | no_license | MohamedEhabHafez/Sorting_Aruco_Markers | cae079fdce4a14561f5e092051771d299b06e789 | 0f820921c9f42b39867565441ed6ea108663ef6c | refs/heads/master | 2020-12-09T02:43:00.731223 | 2020-01-15T17:31:29 | 2020-01-15T17:31:29 | 233,154,293 | 0 | 0 | null | 2020-10-13T18:46:44 | 2020-01-11T00:41:38 | Makefile | UTF-8 | Python | false | false | 1,369 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"mohamed@radiirobotics.com"
] | mohamed@radiirobotics.com |
44e45baa28dfabad770130906a9edcbed40c5526 | 16c4173006036ff05646a81236991b112a3a48f9 | /fcsrf/wsgi.py | 2ed4028e05dd68af67d91bab66e4cea1b091df4b | [] | no_license | reshan9b11/fcscp | a862d007607b97da25126e74ca60734257221542 | 0a9376b8256170f64cc3956c6e1fdc9576fe9641 | refs/heads/master | 2020-08-29T18:50:01.778649 | 2019-10-30T12:12:23 | 2019-10-30T12:12:23 | 218,137,035 | 0 | 0 | null | 2019-10-30T14:42:31 | 2019-10-28T20:16:15 | Python | UTF-8 | Python | false | false | 387 | py | """
WSGI config for fcsrf 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"reshanofficial@gmail.com"
] | reshanofficial@gmail.com |
737e7ce4a2fd2b4aabe9f882affa65840be075de | 1345397c014d757daf99e4d782d76b502c3c6e2a | /coursera_algorithmic toolbox/divide_and_conquer/majority_element.py | 2d55b4782e59ea6b4d1ed7c1c81015f10b94b4f7 | [] | no_license | eobrie16/courses | 637dc912c949ac00509b590b65a8b213fe6c5298 | f660ca2a2791ef115e84230cceea90dba8f802bd | refs/heads/master | 2023-02-25T11:21:37.465227 | 2022-02-11T04:19:18 | 2022-02-11T04:19:18 | 85,152,794 | 0 | 0 | null | 2023-02-16T02:48:20 | 2017-03-16T04:30:50 | HTML | UTF-8 | Python | false | false | 1,837 | py | # Uses python3
# The goal in this code problem is to check whether an input sequence
# contains a majority element
# Algorithmic Toolbox, Week3.2 (Divide and Conquer)
import sys, random
def swap(a, i, j):
temp = a[i]
a[i] = a[j]
a[j] = temp
def partition(a, left, right):
x = a[left]
j = left
... | [
"late.for.lunch@gmail.com"
] | late.for.lunch@gmail.com |
eb853026c953d0ce0e7575ba3df55475b0c4da4b | a0d61a10b1791f7b4ef20de5dd1c4375b9b33596 | /monkeybook/generators/signals/posts_signal.py | 142bef48595bad9caa47f7928a2f08b4cb082cdb | [] | no_license | bcattle/monkeybook3 | e04cb477fe9e14cae63f6aaed75ae5c28bc0b140 | e5c60d88833c6940071e9dca45494a47b649749d | refs/heads/master | 2016-09-05T20:39:21.975209 | 2013-04-27T00:14:41 | 2013-04-27T00:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from monkeybook.generators.signals import Signal
from monkeybook.data_connnectors.results import ResultField
from monkeybook.data_connnectors.facebook.connectors import friends
class TopPostsResult(friends.FriendsResult):
score = ResultField()
class TopPostsSignal(Signal):
def __init__(self, *args, **kwargs... | [
"iotasquared@gmail.com"
] | iotasquared@gmail.com |
98df9a9e0a968c92a25dad6123757ca231261354 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-airec/aliyunsdkairec/request/v20181012/DescribeDiversifyRequest.py | 7e8eb2b99070adb40c1b39818922dfe0ebf97b6e | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | 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 u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
45c0b53cddd5f4a3d0d346f0b13ce1dd91ec0d58 | 0a0619950cb96dac087e78e633a64b5756abd95b | /Neural_Network/plot.py | 99c06ff72f794b948bff834109142f2b087e20a3 | [] | no_license | jsjtzyy/Pattern_Recognition | cb96b1ea6fcb53d2bd0be1614dac561271e3b92f | 6e527478c7b9c21407fff696d4a7192db26feeea | refs/heads/master | 2021-01-12T06:36:49.328240 | 2016-12-26T21:36:21 | 2016-12-26T21:36:21 | 77,396,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # This code from scratch part is completed by ghe10, yingyiz2 and gjin7
import matplotlib.pyplot as plt
import numpy as np
def plot_confusion_matrix_train(cm, classes, title='Confustion matrix of Training, stacked RBM', cmap=plt.cm.Blues):
plt.imshow(cm, interpolation='nearest', cmap=cmap)
plt.title(title)
... | [
"zhangyingyi1014@163.com"
] | zhangyingyi1014@163.com |
2b685efe2710a931b3ee1302bfc3ace91286f6c1 | 09793adc4b5d4bce7b57ff30cbe7ce4b5a1dcd6b | /lppydsmc/systems/creator.py | 1a72c87dd2ab111aa52a4ed2b93844d4c635cdd6 | [
"MIT"
] | permissive | Quettle/lppydsmc | 625c746928d2011af83bec2bfdaf6bf8ac2669e9 | 37290792e845086f7ea182d81f284d68b6cdcbea | refs/heads/main | 2023-08-11T17:40:39.554494 | 2021-10-07T07:59:45 | 2021-10-07T07:59:45 | 411,302,985 | 0 | 0 | MIT | 2021-09-28T13:54:41 | 2021-09-28T13:54:40 | null | UTF-8 | Python | false | false | 3,924 | py | import numpy as np
class SystemCreator(object):
"""
Represents a system with boundaries.
Example :
Boundary : type = ndarray ; value = [x1,y1,x2,y2]
"""
def __init__(self, segments, idx_out_segments = None):
""" Initialize a system from a list of segments (2D-ndarray). The segments... | [
"paul.calot@hotmail.fr"
] | paul.calot@hotmail.fr |
f26665d37c4e8a81c6c050dcc58187024404a27e | 78ba0fe28958b1d57563670448a788fe61fe100f | /homework/hw2/hw22_dev.py | 6dfa1c4a8a8766bc03fb3e01db256cccabdca4fb | [] | no_license | egleizer/High-Performance-Computing-2016 | 7ce9ea3f57142ba7dc69d1c944c0fd9c5e534436 | c41127070ec41f381ba5932b64ddc7969abb5b25 | refs/heads/master | 2020-03-28T19:40:40.327423 | 2018-09-16T14:13:11 | 2018-09-16T14:13:11 | 148,999,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | """Homework 2, part 2"""
"""Evgeniia Gleizer 00948999"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
def solveFlu(T,NT,a,b0,b1,g,k,y0):
#giving the parameters for the differential equation
def RHS(y,t):
#initial values
s=y[0]
e=y[1]
c=y... | [
"evgeniiagleizer@dyn1222-197.wlan.ic.ac.uk"
] | evgeniiagleizer@dyn1222-197.wlan.ic.ac.uk |
bce5c20325e09aa0a5da7db92fbfd50bbaba6361 | 0049ca3ab97f3753d28dbdaa0475f472106de613 | /week2/day2/parantheses.py | 80522c93323b57a84f029e8916672d57918691ba | [] | no_license | pavani1205/Competitive-Programming | 559bc9c9fc440fe29448428c119c2caae26e79ab | c06dca16ee67f4cf001943a3a790e13830a42a55 | refs/heads/master | 2020-03-21T13:10:04.241631 | 2018-07-21T09:58:00 | 2018-07-21T09:58:00 | 138,590,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import unittest
def get_closing_paren(sentence, opening_paren_index):
open1 = 0
for position in range(opening_paren_index + 1, len(sentence)):
char = sentence[position]
if char == '(':
open1 += 1
elif char == ')':
if open1 == 0:
re... | [
"noreply@github.com"
] | pavani1205.noreply@github.com |
7e5e24d059de75d022a6fa3d641c68c15e102ec4 | 4fa4a8c4b3cb1713d85942d7b3dac797ae3cb089 | /src/zojax/persistentresource/configlet.py | cf09562d353cdc575e18580fc579d5cb340edb45 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.persistentresource | 2c9b3f01dd564021e719f44e0c8da7ed660e1041 | b926bcfc5d15e4ede98393a6aa9fa701a61f21f0 | refs/heads/master | 2021-01-19T07:49:26.001052 | 2014-01-29T11:32:59 | 2014-01-29T11:32:59 | 2,026,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
d021e21b93f474e16b830e182b2b542e352153fc | dfeeb6f8a691c104898eee7b9ecefe8015d40f7c | /Pyhton tutorial /131Loop_grade_sum_average_variance_std_deviation_.py | 5bd8d9de2501fc6e4c35dd492e6af4affff6bf7d | [] | no_license | narendra-ism/Python_tutorial_basic_ | 9277926dbfc707a761abe2ddebafb0855249fb68 | 29c2ebd5e7095bfda02d8c03d0afb65a85efe05d | refs/heads/master | 2021-03-30T20:46:17.444715 | 2018-03-12T05:29:16 | 2018-03-12T05:29:16 | 124,831,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 11 17:52:00 2018
@author: narendra
"""
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades_input):
for grade in grades_input:
print (grade)
print(print_grades(grades))
def grades_sum(scores):
total = 0
for score in ... | [
"narendra11d@gmail.com"
] | narendra11d@gmail.com |
f3fc81bb805886431d55cc89ebaa87e0ecdd43d2 | 618dae24f1d1449cc7e9ab842e96892fd2f0413d | /db_client.py | 542ceb97b60ac3a36733bdd3626f86ac6a614ff4 | [] | no_license | Aehrlich98/fu_dbs_project_schehrlmar | ea023a18188cd6993ac153939b60460a359e3889 | f8048f618f2f88cb5849c06971889c758496a093 | refs/heads/main | 2023-06-14T04:37:01.870725 | 2021-07-08T23:12:43 | 2021-07-08T23:12:43 | 382,481,280 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | #!/usr/bin/env python3
# DB client by Aaron and Pirin:
# To run this successfully, you'll need the psycopg2 module for python:
# install with: pip install psycopg2
# you might also need the binaries: pip install psycopg2-binaries ; libpq-dev ; or more...
import sys
import psycopg2
from psycopg2 i... | [
"noreply@github.com"
] | Aehrlich98.noreply@github.com |
d77884e0ed4c8762eabaf1cb4ba40a475d9ae3e9 | 57f5bc8259589db28292cd13c399a66acdfe8031 | /tests/test_do_transform.py | e7050573a297535709e04082f8de80de080c8115 | [
"MIT"
] | permissive | bbelderbos/spreadsheet_etl | 29ef5fc802e40a3d8059c6e70ad0b07b2f8cea82 | 3e705029c7f47c76335af4e83010bb937313594e | refs/heads/master | 2021-02-12T21:59:46.175582 | 2020-02-25T02:29:04 | 2020-02-25T02:29:04 | 244,635,651 | 2 | 0 | MIT | 2020-03-03T12:53:55 | 2020-03-03T12:53:54 | null | UTF-8 | Python | false | false | 2,463 | py | # file: tests/test_do_transform.py
# andrew jarcho
# 2017-03-15
from tests.file_access_wrappers import FakeFileReadWrapper
from src.transform.do_transform import Transform
def test_read_blank_line_does_not_change_state():
file_wrapper = FakeFileReadWrapper('\n')
my_transform = Transform(file_wrapper)
my_... | [
"andrew.jarcho@gmail.com"
] | andrew.jarcho@gmail.com |
5b2e367e2953a85e91e7440a1aa0d6843497d5ac | e418ee670b6456a4b8555153894e97fd32358048 | /firebirdsql/srp.py | dff32807ec56e42f0bcae265ce463d91aa43994e | [] | no_license | tuksik/pyfirebirdsql | 1f3bb10d2edb99fe58fddf323629a26b9123836b | c061a135f16eb06a7e00021fea36f745d6581742 | refs/heads/master | 2020-07-22T16:58:25.397202 | 2016-11-03T00:26:16 | 2016-11-03T00:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,676 | py | ##############################################################################
# Copyright (c) 2014-2015 Hajime Nakagami<nakagami@gmail.com>
# All rights reserved.
# Licensed under the New BSD License
# (http://www.freebsd.org/copyright/freebsd-license.html)
#
# Python DB-API 2.0 module for Firebird.
##################... | [
"nakagami@gmail.com"
] | nakagami@gmail.com |
7554a55643233f24097ee42698e538afdfe3d67b | 45932ccaca48ec80cbca57ba3983522f9137d293 | /my_project/python/function_key.py | 5df5723ef2514f06bee3aad6bb8633257714f9e8 | [] | no_license | writetonewhorizon/device_driver_devlopment | dc00ab9e91518e2f56fcfcaf67c686bfd5a5b06b | a6429f69336b4bdd7867fddfe575e7f118d02d18 | refs/heads/master | 2021-01-21T07:25:40.229313 | 2016-08-30T11:43:50 | 2016-08-30T11:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #! /usr/bin/python
def func(a=10, b=10, c=30):
print 'a is', a ,' and b is ', b ,' and c is ', c
if a > b:
return a
else:
return b
x=func(3,7)
print x
func(25,c=12)
print x
func(c=50,a=100)
print x
| [
"dharmender.sureshchander@in.bosch.com"
] | dharmender.sureshchander@in.bosch.com |
bd44d091d10277509cb4e2440e95c35d97a262e2 | f41ca194f68b60c6b8d37f67d908310044b8485f | /whetherornot/forms.py | 9234da6019f2b7ee90a278f6fcfbbfcd7a88f414 | [] | no_license | cbo2/whetherornot | db238474d173375b898893388b8fc7438e92d9d1 | 82bd4df13c8524d473c18fd2a26c5d9619a52dd3 | refs/heads/master | 2020-05-18T20:26:17.691810 | 2019-10-08T11:06:49 | 2019-10-08T11:06:49 | 184,632,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django import forms
from django.views.generic.edit import FormView
# from .models import CustomUser
class CustomLocationForm(forms.Form):
location = forms.CharField(label='Location', max_length=100)
date = forms.DateField(label='Desired Date')
# def got_it(self):
# print('--------------- go... | [
"talk2cbo@gmail.com"
] | talk2cbo@gmail.com |
caaea7a38bae69afd366f96a2d336bcf8fdbafec | 1b49a60d578b6ae4bfc2d1421143f676c9d3128d | /src/core/src/tortuga/exceptions/volumeNotMapped.py | 0647aeee7afee21c51662b112a843c45c206cd2a | [
"Apache-2.0"
] | permissive | UnivaCorporation/tortuga | aad2c00a1b09fba67298b1dd7543125a26b64c51 | 56d808d7836cd15d6c6748cbf704cdea4407fef6 | refs/heads/master | 2021-03-24T13:31:33.060593 | 2020-11-23T19:57:59 | 2020-11-23T19:57:59 | 123,297,582 | 33 | 25 | NOASSERTION | 2020-11-23T19:58:27 | 2018-02-28T14:38:56 | Python | UTF-8 | Python | false | false | 1,031 | py | # Copyright 2008-2018 Univa Corporation
#
# 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... | [
"mfrisch@univa.com"
] | mfrisch@univa.com |
bd49d5a4286fbe4e3e99c8b77c829bb26d482069 | 21bc558dc0875614158a0125ea446d6389c392d1 | /python/ledecky_wr.py | 55446eabf2fb14e58355e76450435b44f1ee08be | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | nickloomis/loomsci-examples | b0d5beb81d5e969c7167918bb4b12225eb4c9c5f | 1225e5b33804a1501b5cef6c3a793434a5ed50f9 | refs/heads/master | 2020-12-21T09:36:57.312142 | 2019-06-16T18:22:05 | 2019-06-16T18:22:05 | 41,226,116 | 3 | 0 | MIT | 2019-02-03T05:03:29 | 2015-08-22T22:05:11 | Python | UTF-8 | Python | false | false | 2,794 | py | """
Fits an exponential curve to Katie Ledecky's world record swims in the 800m
freesyle through the 2016 Rio Olympics.
Change log:
2016/08/13 -- module started; nloomis@gmail.com
2016/08/14 -- documentation added; nloomis@gmail.com
"""
__authors__ = ('nloomis@gmail.com',)
import datetime
import matplotlib.pyplot... | [
"nloomis@gmail.com"
] | nloomis@gmail.com |
6b8ab0bccedc92e85d92cf5775f938f3b3b6de16 | 4d259f441632f5c45b94e8d816fc31a4f022af3c | /wechat/prequest.py | a935eacdfbbd28a091c716a921b9faba3a34a411 | [] | no_license | xiaoruiguo/lab | c37224fd4eb604aa2b39fe18ba64e93b7159a1eb | ec99f51b498244c414b025d7dae91fdad2f8ef46 | refs/heads/master | 2020-05-25T01:37:42.070770 | 2016-05-16T23:24:26 | 2016-05-16T23:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | import httplib
import json
def sendMessage(token = None, message=None):
print '------------ launch VM ------------'
#params = '{"touser": "@all","toparty": "@all","totag":"@all","msgtype":"text","agentid": "2","text":{ "content": %s},"safe":"0"}'%message
params = '{"touser": "@all","toparty": "@all","tota... | [
"junmein@junmeindeMacBook-Pro.local"
] | junmein@junmeindeMacBook-Pro.local |
030348a0cb51c3f9ae69fa7c0049045a4eebe627 | 6863b381ae7ff4614280cdd6d1a3e8eb22daaa47 | /rnafeatures/utils/argparser.py | 3105147c96e95de1e6f4f80715a3e3ae2536f823 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | Lewsey-Lab/rna-features | 4a797937fcb8f34bd1372b5fac498f7217d1f14b | 003441d3b772a5a666ad6ce49ec9ff7487dbd340 | refs/heads/main | 2023-08-25T12:05:06.978013 | 2021-10-21T02:08:16 | 2021-10-21T02:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import argparse
import logging
from pathlib import Path
logger = logging.getLogger(__name__)
#
# Type functions for parser
#
def p_val_type(arg):
"""
Checks if p_val is a float within the range {0, 1}.
"""
try:
p_val = float(arg)
except ValueError:
msg = f... | [
"74215773+SpikyClip@users.noreply.github.com"
] | 74215773+SpikyClip@users.noreply.github.com |
04e66e4ce10ae4663e2c81fbea4a34494a487eb3 | 7de526b33e5015cd548d7d4ae1abe42d802ade83 | /python/run_q5.py | 03bc75c01540c75f60c8a182270bec94054f65b5 | [] | no_license | ZhihaoZhu/Advanced-Neural-Networks-for-Recognition | 637816324a30bb09a1e638331e532b0489ff044b | 8b367636dda29a67e37b7d0554b075306e3cf8d0 | refs/heads/master | 2020-04-07T10:33:04.927871 | 2018-11-25T21:10:44 | 2018-11-25T21:10:44 | 158,290,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,635 | py | import numpy as np
import scipy.io
from nn import *
from collections import Counter
train_data = scipy.io.loadmat('../data/nist36_train.mat')
valid_data = scipy.io.loadmat('../data/nist36_valid.mat')
# we don't need labels now!
train_x = train_data['train_data']
valid_x = valid_data['valid_data']
print(valid_x.shape)... | [
"704242527zzh@gmail.com"
] | 704242527zzh@gmail.com |
e1d0797e7fcd7aa7369ef9da9997aeb02dcfa524 | 065acd70109d206c4021954e68c960a631a6c5e3 | /shot_detector/charts/event/trend/__init__.py | 15bd2dac2180be3b7cc4a71b37ee456d5879c914 | [] | permissive | w495/python-video-shot-detector | bf2e3cc8175687c73cd01cf89441efc349f58d4d | 617ff45c9c3c96bbd9a975aef15f1b2697282b9c | refs/heads/master | 2022-12-12T02:29:24.771610 | 2017-05-15T00:38:22 | 2017-05-15T00:38:22 | 37,352,923 | 20 | 3 | BSD-3-Clause | 2022-11-22T01:15:45 | 2015-06-13T01:33:27 | Python | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf8 -*-
"""
...
"""
from __future__ import absolute_import, division, print_function
from .mean_abs_diff_event_chart import MeanAbsDiffEventChart
from .mean_atan_diff_event_chart import MeanAtanDiffEventChart
from .mean_atan_vote_event_chart import MeanAtanVoteEventChart
from .mean_sign_diff_event... | [
"w@w-495.ru"
] | w@w-495.ru |
7baa37d309bda5e9063a2058730e93e7ccb6b4e2 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/baohaojun_system-config/system-config-master/bin/windows/Imap4Monitor.py | 7d5f014713909282d565804717534de509f9686b | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 30 | py | ./Imap4Monitor/Imap4Monitor.py | [
"659338505@qq.com"
] | 659338505@qq.com |
8e5be80571e060b33f9d240b87114ee0b07fe0b2 | 65cc6a8877896ef69dd03d7b5eee5bed56e5371f | /CSDN/Django第二季/Django第二季课程演示源码/Dj020701/Dj020701/settings.py | 865ff0effc452c887c248158725964b8f17983c0 | [] | no_license | wuhongyi/DjangoNote | 34bdb9e82fc379e19b1df0bd7c90e504fa70a40d | 81ad949ff895feda8131d8bdf5fa1439f962ae37 | refs/heads/master | 2020-05-02T17:54:12.270297 | 2019-05-22T14:37:32 | 2019-05-22T14:37:32 | 178,112,720 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | """
Django settings for Dj020701 project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
i... | [
"wuhongyi@pku.edu.cn"
] | wuhongyi@pku.edu.cn |
64270f6fe251897837c9c2643eec77077f76864b | a0b71771c5315b63e16182cf138032539774c7dc | /source/approximate/f2_new2_2.py | c05a866305ab489d67d879ca8dae5a3d2b3f2786 | [
"MIT"
] | permissive | kunalghosh/T-61.5060-Algorithmic-Methods-of-Data-Mining | 8af35952f4490ab86080419867ace35d978e5370 | 718b1ca4a3f83f1b244bb7ddeb5cc430b2967516 | refs/heads/master | 2021-01-10T07:57:03.536438 | 2017-03-18T15:25:44 | 2017-03-18T15:25:44 | 52,148,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,873 | py | from __future__ import print_function
import sys
import numpy as np
import cPickle as pkl
import pprint
RAND_NUMS = 100000000
def getEstimatedF2(counts, n):
# Mean of all values.
return np.mean(n*(2*np.asarray(counts) - 1))
# # def get_next_rand(rands):
# retVal = -1
# try:
# retVal = rands.po... | [
"kunalghosh@users.noreply.github.com"
] | kunalghosh@users.noreply.github.com |
b2f28a449c54d8272a7ce33e7e59814f7a0f2175 | 8e0c257beaefd47b8906901c8359c7748cc91bdf | /core/winApi/__init__.py | 8a5431f416fc13bc8e5497f2c7a1483549aa4f95 | [] | no_license | Reqin/tft_rebuild | fc2d917e7bb4ff097d7473da8d5110eddca9ebc4 | 2745d3e1ab84b5931ab018e49f7eb245304d8109 | refs/heads/master | 2022-11-27T23:28:51.421917 | 2020-07-26T10:53:25 | 2020-07-26T10:53:25 | 279,995,549 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from .winApi import get_cursor_pos
| [
"reqinfeng2008@gmail.com"
] | reqinfeng2008@gmail.com |
728a75114877d6e0d4059039ed2b4a8421eca3e8 | 87f11fae96f19abc0fb0a445fc60270fca853306 | /tools/numbering.py | d77c83f2d334816a64ad1c2d4b5720a553065b6c | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nmathewson/walking-onions-wip | 4e0ce8d597657f850d69364d8d1b58439595a8cc | cf9b2f98887943f460489ae01ce66e967552b448 | refs/heads/master | 2021-03-02T14:22:02.636942 | 2020-06-10T20:12:18 | 2020-06-10T20:12:18 | 245,874,531 | 0 | 3 | NOASSERTION | 2020-05-30T16:21:22 | 2020-03-08T19:25:52 | Rust | UTF-8 | Python | false | false | 1,932 | py | #!/usr/bin/python3
import os
import re
class Replacing:
def __init__(self, fname):
self.fname = fname
self.newname = fname + ".tmp"
self.inp = open(fname,'r')
self.outp = open(self.newname, 'w')
def finish(self):
self.inp.close()
self.outp.close()
os.r... | [
"nickm@torproject.org"
] | nickm@torproject.org |
41a42f6c70aff3b894781f36032df60d7d6b5c7d | 7309c198b5c70dab1cde69fa010d914e97fb2ea4 | /NN.py | c2fe2cfcac87a5ee9d8e986afd915ea1fa1aafd5 | [] | no_license | Waryur/Shade-of-RED-or-BLUE-Color-Deep-Learning | 637e75df02fa79db9774391f40f7c65f13e671c4 | 8d14167cea1ae3313c51fc65604c0b9a86c8e5c2 | refs/heads/master | 2020-06-19T23:41:41.161849 | 2019-07-15T03:17:28 | 2019-07-15T03:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,405 | py | import numpy as np
import os
from skimage import io
from matplotlib import pyplot as plt
import pickle as pkl
'''
Input will be [12, 1]
Hidden Layers will be 3
with 16 neurons in 1st layer
with 10 neurons in 2nd layer
with 4 neurons in 3rd layer
with 2 neurons in output
'''
DataFolder = os.listdir("C:\\Users\castrojl... | [
"noreply@github.com"
] | Waryur.noreply@github.com |
ee85d6966bff4e8284c95b45b43aa2eb8b930b69 | b1a0fd07fd8c28a5fa6c8ed1982e6f74bc6e6e53 | /12_basic rnn03.py | 0356edcc8fa09d2fc8a587040f133012be482d86 | [] | no_license | BingzheJiang/pytorch- | 805ecccae81abbdf29e6b556c4edd5df6baab66c | 8a555b80d22d1165fa4e4e0da95b0bc0a9c388d5 | refs/heads/main | 2023-07-04T11:55:23.449032 | 2021-08-03T03:31:38 | 2021-08-03T03:31:38 | 384,365,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,298 | py | '''
训练RNN模型使得 "hello" -> "ohlol"
输入为"hello",可设置字典 e -> 0 h -> 1 l -> 2 o -> 3 hello对应为 10223 one-hot编码有下面对应关系
h 1 0100 o 3
e 0 1000 h 1
l 2 0010 l 2
l 2 0010 o 3
o 3 0001 l 2
输入有“helo”四个不同特征于是input_size = 4
hidden_size = 4 batch_size ... | [
"1219255570@qq.com"
] | 1219255570@qq.com |
8fe41995148ecdbd6b30e5d1641322e6133f6478 | 7556e256fca5d92481fb3cfdc7f7f14c4f7e0a82 | /istagram/users/urls.py | 0c59844ba9afed220d3181c532d32f79c4d5ff9b | [] | no_license | faisol-chehumar/istagram | 3585654d544b1a5419f51986710fc4ec8751a443 | a52866b50d4c285dedeed288451e0f834ad892b0 | refs/heads/master | 2023-04-28T22:35:35.334503 | 2019-11-07T10:25:56 | 2019-11-07T10:25:56 | 220,209,847 | 0 | 0 | null | 2023-04-21T20:40:39 | 2019-11-07T10:25:13 | Python | UTF-8 | Python | false | false | 164 | py | from django.urls import path
from .views import ProfileDetailView
urlpatterns = [
path('<str:username>/', ProfileDetailView.as_view(), name="profile_detail")
]
| [
"faisol@tellscore.com"
] | faisol@tellscore.com |
c406ee91ac9285040485ea8f2059d302c28b6c50 | f9a526e5f034a866595e39c6564f5269c9cfe388 | /String_Array/2.py | e92ca9cb946deb970eddff7d1b0738776d2b76b6 | [] | no_license | ketanpandey01/DS_Algo | c660b9c5193aa5d6e077ab7b9bdb08c363a6ce24 | 31d2f22b85b87ff8438a5977684bb8ef428d1964 | refs/heads/master | 2022-12-14T15:21:56.477120 | 2020-09-14T06:42:29 | 2020-09-14T06:42:29 | 293,096,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # https://www.geeksforgeeks.org/given-a-string-print-all-possible-palindromic-partition/
def palindromiPartitions(inputStr):
paritionList = []
for itr in range(len(inputStr)-1):
tempList = []
for itr2 in range(itr+1, len(inputStr)):
if(checkPalindrome(inputStr[itr:itr2+1])):
... | [
"ketanpandey01@gmail.com"
] | ketanpandey01@gmail.com |
3ae336c77b34de633de2f368683dd45a023a6a36 | b4a0b784536c52d04c79735d0468f6d91dc7754c | /tools/set_LESCell.py | 1afc1f9e8c9d50e070ffe241efe9fed5c3ce2d6a | [] | no_license | ChanJeunlam/mpasowork | de773c1789567955b6d9dbc7fbeae08331c0421a | e50be1d8fb1f0b5ff051dcd68fc89067cdd20b6c | refs/heads/master | 2023-08-28T18:16:19.041903 | 2021-10-25T13:51:15 | 2021-10-25T13:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,873 | py | #!/usr/bin/env python3
"""
This script sets the lesCell array in a mesh, which is the mask for cells that run LES.
Qing Li, 20200205
"""
import sys
import netCDF4
import numpy as np
import argparse
from scipy import spatial
# process the input arguments
parser = argparse.ArgumentParser(description="""
Read i... | [
"lqingpku@gmail.com"
] | lqingpku@gmail.com |
5d81946181be0b9f5b740e80f1935a0eb3359a53 | e068f440b60a9ace1f42f278b0498dfc66e17d1a | /site/apps/shift_explorer.py | 62a43287bba6d8385a23a3dcdc6a25df83e3880d | [] | no_license | fundeIT/cmif | 1b211c6bf44d177c3a6959ed98f3129010cb1acc | 34a08fea60d67f3bccb3b8892372c38e76fe6fa7 | refs/heads/master | 2022-12-18T11:56:58.177074 | 2021-11-15T20:09:24 | 2021-11-15T20:09:24 | 213,757,972 | 0 | 0 | null | 2022-12-14T00:01:14 | 2019-10-08T21:26:07 | Jupyter Notebook | UTF-8 | Python | false | false | 12,341 | py | import io
import base64
import numpy as np
import pandas as pd
import sqlite3
import urllib
import dash_table
from dash_table.Format import Format
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.grap... | [
"jailop@protonmail.com"
] | jailop@protonmail.com |
62aabdad0a6857e754276e8d7ebae0643d4e73a2 | 0549411cae611072373e879ec6cd817cfdcf71be | /gaudinspect/controller/queue.py | 6c338f7eb022c10b0f37d2fd509002d4cb1d27c6 | [] | no_license | insilichem/gaudinspect | 47cf37a7476f9805c1161882b3fd86676a33ee36 | cb05e30905d29beac00e72d127b0c348899e17a3 | refs/heads/master | 2021-01-19T21:13:29.092642 | 2017-04-19T10:09:25 | 2017-04-19T10:09:25 | 88,628,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,093 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import os
from collections import OrderedDict
from PyQt4 import QtGui
from .base import GAUDInspectBaseChildController
class GAUDInspectQueueController(GAUDInspectBaseChildController):
def __init__(self,... | [
"jaime.rogue@gmail.com"
] | jaime.rogue@gmail.com |
ce28446d9d2c9a8c3d1d9d2e9ee9419513550c58 | d3c02bb6356d642fcea23a1897f93f64483c0c15 | /School/School/settings.py | b0ebb0f676829c9a99ff719f3bf8ae627c3b5fff | [] | no_license | pioneeringdev/Django-Student-Teacher-App | 46db8e8bcae56c6731cad868b4bbf5eb8abc0ca7 | 52dc139e7f91ebe00e8b3ae43c336451df3ac521 | refs/heads/master | 2020-04-21T04:23:01.045178 | 2019-02-11T16:32:15 | 2019-02-11T16:32:15 | 169,311,553 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,878 | py | """
Django settings for School project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"codedecc116@gmail.com"
] | codedecc116@gmail.com |
d7408f761936133d6913c9ae207071b8f062a66a | 90740d1bae141af44d479d090a6743da813ceebd | /genderclassmodel.py | 3af67d5373bbf13edb4de2e4f9e3077720611c07 | [] | no_license | shrawansher/Titanic-Project | 28119c37e0e360fcb4fba12b007f913d18cc479d | 509fcbcd51976aa8e8eef25577bff7e4d0bb92bf | refs/heads/master | 2021-01-11T12:05:30.956562 | 2017-01-23T02:41:33 | 2017-01-23T02:41:33 | 79,544,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py |
import csv as csv
import numpy as np
csv_file_object = csv.reader(open('train.csv', 'rb')) # Load in the csv file
header = csv_file_object.next() # Skip the fist line as it is a header
data=[] # Create a variable to hold the data
... | [
"shrawansher@gmail.com"
] | shrawansher@gmail.com |
233294896ceef236dcbba663d8ddc879b191cd60 | b364967f39d243c2419cd62d6f5dd426c624dcfa | /members/migrations/0007_auto__add_resetpasswordlink.py | c3099205414ad077cb0ddd391aed99b996100bfc | [] | no_license | KSET/kset-org | 839c98f696bdf2fc5a2fcfdf837a71156884198b | 40f48d8060a427572a257233cdcc1607894e955b | refs/heads/master | 2022-11-26T00:52:24.741122 | 2021-05-07T19:47:47 | 2021-05-07T19:47:47 | 3,121,818 | 5 | 14 | null | 2022-11-22T00:28:19 | 2012-01-06T23:14:57 | Python | UTF-8 | Python | false | false | 5,681 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ResetPasswordLink'
db.create_table(u'members_resetpasswor... | [
"deni@kset.org"
] | deni@kset.org |
6454a8fee39ebcb772b1c9079f154b5b4df9102b | 73f80ceb12b4d972233457708d513674e227c394 | /jmpy/encrypt_py.py | ae538b5b3e6b5df8e8ba72536f195e8ce804db44 | [
"MIT"
] | permissive | Dev-Bobbie/jmpy | 5694d0911f227159beb087ae0dda2f4a7d8f1cde | e0ed6e962dee8db35bde867b5a2230e53c31ab75 | refs/heads/master | 2022-11-08T13:42:30.126948 | 2020-06-19T09:55:18 | 2020-06-19T09:55:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,061 | py | # -*- coding: utf-8 -*-
"""
Created on 2018-07-18 18:24
---------
@summary: 加密python代码为pyd/so
---------
@author: Boris
"""
import os
import re
import shutil
import tempfile
from distutils.command.build_py import build_py
from distutils.core import setup
from typing import Union, List
from Cython.Build import cythonize... | [
"564773807@qq.com"
] | 564773807@qq.com |
f1751807e875e09aa0f44efc9653bd6617246fcc | 559ffb0a2a99b71a1645e5bb26d03bea6c5452c1 | /.c9/metadata/workspace/connected_academy/urls.py | 227833abad5d5373d1bfcf9b005442f11bd6f588 | [] | no_license | MrOverfl0w/ConnectedAcademy | 98516a7495c54dd5640f33414b4072dc2c66ddd4 | 60eb2905482a5067dfce815879d2e4b696910661 | refs/heads/master | 2020-07-28T17:17:19.049660 | 2019-09-19T06:18:17 | 2019-09-19T06:18:17 | 209,477,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,383 | py | {"filter":false,"title":"urls.py","tooltip":"/connected_academy/urls.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":29,"column":75},"end":{"row":29,"column":76},"action":"remove","lines":["i"],"id":593}],[{"start":{"row":29,"column":74},"end":{"row":29,"column":75},"action":"remove","lines":["f"... | [
"alberto_pumarejo@hotmail.com"
] | alberto_pumarejo@hotmail.com |
ec6b542404a0a7cbfc24f45e2e9850da0d8e7a46 | baab63bb8601c7d5465829a7f5ca258878093ebd | /simulate12.py | 77acde8f390d7e6344b5315bc6dcfb71ca170515 | [] | no_license | marx-saul/random_walk | f7290b50a0ff7cdac5fe19bf321f946e2acaa609 | 4809c992820a49a5cfa95ac21543fee6978500f0 | refs/heads/master | 2020-05-26T11:19:24.839618 | 2019-07-09T13:33:29 | 2019-07-09T13:33:29 | 188,213,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | import matplotlib.pyplot as plt
import numpy as np
import random
import copy
from math import *
from statistics import mean, median,variance,stdev
INF = -1
Going = 0
PlayerLose = 1
MasterLose = 2
MAX_TIME = 2 * 10**3
MAX_SIM = 2 * 10**3
class Game:
# money, money, probability of player winning
def __ini... | [
"noreply@github.com"
] | marx-saul.noreply@github.com |
1128f685ef01448cdffdeab32ea8895e4d59cbfa | 344474523310d9cab431366bdfc170e3267c4490 | /Lesson3/task5.py | 904211b05443202b8f2f0d5aa63156a579d9d500 | [] | no_license | SarahU/WWCPythonDataAnalysisWorkshop | 4c8d9fb0f41c308c5d59ba52edfdcd8b88a5bf96 | 075abfe5645e400eec6bc3362b1e434f4ec50152 | refs/heads/master | 2022-12-07T12:27:29.423978 | 2020-08-23T12:06:43 | 2020-08-23T12:06:43 | 287,929,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # Get names of the DataFrame columns and sum of losted values DF
# Replay ( Apply) missed values in the Column with average values.
# Calculate basic statistics for 2 columns
# For any column create histogram
# Create Linear Regression plot for 2 column
import pandas as pd
import matplotlib.pyplot as plt
import seabo... | [
"sarahnusher@gmail.com"
] | sarahnusher@gmail.com |
995baba4a5a1e71d5129f15122c9f11044026302 | 782357625779cad8ee8264d50066caefbaad3024 | /rearrange_files.py | cc1b1f1f0fcf4ec0203e7abf93760137f7920f6e | [] | no_license | abtinkd/utilities | 8e2438f9461789a914ea51f5f6bf37349aa1dcee | 3ca9cde542480dde712ae4fcc0eea8c6cb73ad7a | refs/heads/master | 2023-02-04T03:32:12.896999 | 2019-09-15T06:26:29 | 2019-09-15T06:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from __future__ import print_function
from core import traverse
import os
from subprocess import call
def arrange(root_path):
for file_name, file_path in traverse.access(root_path):
st_id = file_name.split('_',1)[0]
if not os.path.exists(file_path + '/' + st_id):
os.mkdir(file_path + '... | [
"abtinkh+github@gmail.com"
] | abtinkh+github@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.