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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e911275049761c3d34e3f24d5c1a7c806c6d85e4 | a70ff84caceb693723846542c19d300bea321deb | /coins_test/settings.py | 53bc0e9900f1b3562edf8ec612055aea94864f58 | [] | no_license | Greyvend/coins_test | 10420bffa7d4510de20bca9fe7b71bd7091c01b1 | a259907a160d482bc0217aeecbb97c1665db62dd | refs/heads/master | 2021-04-12T10:13:33.417998 | 2016-08-14T16:42:13 | 2016-08-14T16:42:13 | 65,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | """
Django settings for coins_test project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"svmosin@gmail.com"
] | svmosin@gmail.com |
85d65df06168b2114299f77d388cbe712b4b7085 | 458c487a30df1678e6d22ffdb2ea426238197c88 | /ubcsp/add_gc.py | e6be0db995f628f5c02f95391bfd50d28fde12ec | [
"MIT"
] | permissive | pluck992/ubc | 04062d2cdeef8d983da1bfaa0ff640a3b25c72c2 | 54fc89ae6141775321d5ea770e973ff09be51c0c | refs/heads/master | 2023-02-19T05:01:42.401329 | 2021-01-21T06:32:15 | 2021-01-21T06:32:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import pp
from gdslib import plot_circuit
from simphony.library import siepic
from simphony.netlist import Subcircuit
def add_gc_te(circuit, gc=siepic.ebeam_gc_te1550):
""" add input and output gratings
Args:
circuit: needs to have `input` and `output` pins
gc: grating coupler
"""
c =... | [
"j"
] | j |
1292e503e8b05cd9f288de556289ca29880a41cc | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/JetAnalysis/python/jets/akVs4CaloJetSequence_PbPb_jec_cff.py | 1138081e341c23d6cf41f8774dfe47930fc4f528 | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 14,330 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
9eb758de63ec95f04758e32b359b987bccabd53c | 10a79a489ae800b25332c12ec829f99f0480c6cf | /floreria/settings.py | 94470c918c589eb73cf0e8a9ca339410226fcef1 | [] | no_license | taamfernandez/floreria | 2af0855ee413fbd617926c24a55d95a5894ee06e | 7f04b85a1dc4cf186dbe7a5f1e367f97116bd232 | refs/heads/master | 2020-09-26T04:13:23.938569 | 2019-12-18T16:42:41 | 2019-12-18T16:42:41 | 226,162,344 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | """
Django settings for floreria project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"ta.fernandeza@alumnos.duoc.cl"
] | ta.fernandeza@alumnos.duoc.cl |
ec6863f6fad89f0a79981b9ebe0b04003f60a4e1 | 38fa69b9334acd23a076372b340b8c1230265b05 | /Console.py | 5a713642b55f572d87502da149577781dccff197 | [
"Apache-2.0"
] | permissive | gauravssnl/IPViewer | c880a098e2300a95b63b8d73f6373d9491fed2ba | 3a04711aa3ba79a961e44e163a479e788de1d7bf | refs/heads/master | 2021-01-22T05:00:49.588000 | 2017-09-10T15:01:16 | 2017-09-10T15:01:16 | 81,607,532 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py |
#Console.py script for PyS60
import sys
import e32
import appuifw
ru = lambda text, : text.decode('utf-8', 'ignore')
class Console :
__module__ = __name__
def __init__(self, logger = False):
self.logger = logger
from e32 import Ao_lock as Ao_lock
from key_codes import EKeyEnter as E... | [
"noreply@github.com"
] | gauravssnl.noreply@github.com |
4f5c3e036dff53545e0841fdd9c6bd81bce99281 | 56e1844ca3e1c7bcc8f1d2a8c1465bf7120b3c08 | /Hypothesis_Candy.py | c8aa330e8e736dd7a36bae62d4fc8a82f052bd38 | [] | no_license | rl9703/Artificial-Intelligence | d95c32ffcd83a63cdc5b0461842dea6366c65838 | e39736ba6c33136b5287968df4612be6044770d6 | refs/heads/master | 2022-02-14T23:57:30.674789 | 2022-01-30T08:13:58 | 2022-01-30T08:13:58 | 208,346,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | '''
Author: Rishab Lalwani
Title: Q1 Generate a data set of length 100 and
plot the cor- responding graphs for P(hi|d1,...,dN) and P(DN+1=lime|d1,...,dN)
'''
import random as rand
import matplotlib.pyplot as plt
def P(x):
'''
:param x: Hypothesis of candy bags
:return: Graph plot of all hypo... | [
"noreply@github.com"
] | rl9703.noreply@github.com |
291e37a89529fee6456f713f03a74745d05ca459 | ef905b3f490049212ea7edf777f82eba85328741 | /hist_nsepy.py | 5ecf1a9717dedea68167734c50dd3c3d462a1bc8 | [] | no_license | ghoshsudipto/DA | 98d144541a7355efddd783bc304af396548af5e9 | dbd8725c64bfa9a7e55ff75ee5fa2e8fa270719a | refs/heads/master | 2023-08-18T04:58:12.607293 | 2023-07-27T09:11:07 | 2023-07-27T09:11:07 | 217,709,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | import pandas as pd
from datetime import date
from nsepy import get_history
scrip = input('Scrip:')
series = date(2004, 1, 29), date(2004, 2, 26), date(2004, 3, 25), date(2004, 4, 29), date(2004, 5, 27), date(2004, 6, 24), date(2004, 7, 29),\
date(2004, 8, 26), date(2004, 9, 30), date(2004, 10, 28), date(2004, 11... | [
"noreply@github.com"
] | ghoshsudipto.noreply@github.com |
107f09e9df2f036798d34862b440c2ebd70a7a7a | a9117d287019a6860693e8f6dbfac152f5e92a75 | /fe/lda_fe.py | 3467205482cca57aa79025515bb32b7db3f508ca | [] | no_license | backonhighway/kaggle_elo | 48a2e4eda9ef5025665564b22f99bfe2cf296dc6 | 636c1ecc64d70c9f1375653687679b745b8bf6db | refs/heads/master | 2020-04-29T01:26:23.269169 | 2019-02-28T15:29:39 | 2019-02-28T15:29:39 | 175,730,137 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | import numpy as np
import pandas as pd
import gc
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.decomposition import LatentDirichletAllocation
from typing import List, Tuple
from multiprocessing.pool import Pool
from functools import partial
import itertools
from concurrent import futures
cl... | [
"shota.okubo@dena.com"
] | shota.okubo@dena.com |
6b757a2650f5ee9d6947c57165ed1c0576b47485 | b628d0cf1717c466f193c90ce6a63fd40a1c3888 | /test.py | 5964dbe14b4c6bcc15952d1dbebe5e841e89d60a | [] | no_license | RduMarais/pioupiou | 8193cb00536e8479ac31b005916bd699baaa8636 | eafccc0dd3fa1071428a46b8d3680b1f75cf427d | refs/heads/master | 2020-06-02T15:34:48.038832 | 2019-06-10T18:21:53 | 2019-06-10T18:21:53 | 191,210,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | #!/bin/python3
import datetime
import cryptography
from Crypto import Random
from Crypto.Cipher import AES as AES
from Crypto.Cipher import DES as DES
from Crypto.Cipher import DES3 as DES3
from Crypto.PublicKey import RSA as RSA
from Crypto.Cipher import Blowfish as Blowfish
# from cryptography.hazmat.primitives.asy... | [
"rmichon@telecom-paristech.fr"
] | rmichon@telecom-paristech.fr |
4b0d73f1c9d3600690df7eb5b54d526f2b7a0427 | 2cf2df2807fff90d4c82c1cbbbece272a4b469c2 | /gplib/core/__init__.py | 1038489a4cd5070d90c14b2d9f7b42cb4ce8684d | [] | no_license | marcpalaci689/gplib | 826466f42da085b91d37297631fcc709c00edc3a | 859ed08d7b77b1a4f4ed3f0cdb5db8930ee95465 | refs/heads/master | 2021-09-01T12:19:30.683620 | 2017-12-27T00:11:02 | 2017-12-27T00:11:02 | 115,462,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | from .gp import GP
| [
"marcpalaci689@gmail.com"
] | marcpalaci689@gmail.com |
8581dd3dea171c93ad4e0fc231e5f70bdd96d430 | 0ca60d532c0a77c261f2b107c0e697e82af6000d | /svm/svmdemo1.py | 7cb5f27dd62519e6a8e909c08ad182c2ad32519c | [] | no_license | bnhalder/basic_ml | 6b3ad193622b0632fe449a83cc17a0a5211bdd5f | 91579c34adee090e75eb992f439fefd212741168 | refs/heads/master | 2020-03-10T01:35:09.090807 | 2018-04-11T15:29:41 | 2018-04-11T15:29:41 | 129,113,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 18 22:54:30 2017
@author: jabong
"""
import numpy as np
import pylab as pl
iris = np.loadtxt('../data/iris_proc.data', delimiter=',')
imax = np.concatenate((iris.max(axis=0)*np.ones((1,5)),iris.min(axis=0)*np.ones((1,5))),axis=0).max(axis=0)
targ... | [
"biswanath.halder@jabong.com"
] | biswanath.halder@jabong.com |
2f7739039404274a4296d6d5ede3692379b78d93 | c72069c173dcbc475d051ac23dde5c69017604f3 | /testcase/test02_home_search.py | 36eba48b20cf9a3e777424a0d53d671f226d81f5 | [] | no_license | NamedWu/test1 | de454907bbd2455ed1a45cc1b240b6525b3c5512 | db0f5d1f5737e4975cfe5d8f704f26aad84e169a | refs/heads/master | 2023-01-08T23:43:16.536079 | 2020-11-14T12:20:38 | 2020-11-14T12:20:38 | 312,811,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.by import By
import time
def test_select():
driver = webdriver.... | [
"dengqingqign@duiba.com.cn"
] | dengqingqign@duiba.com.cn |
88c6be80cd7eb38f457df5fa97ae76cdc8bb9cce | 2f3f48b87266a62a17d54c090f4b40f11d778f26 | /lib/utils/misc.py | 44179919e604f85ff607872d718a6e66a15eaf07 | [
"MIT"
] | permissive | DarioRugg/Self-Supervised_Pearson_Search | b9f78a2e61946f8709399bfbdeaabe1f303ff960 | 731ff0888b336076ec42c26808417809fb78e3cf | refs/heads/main | 2023-07-15T22:05:37.207853 | 2021-07-11T10:15:16 | 2021-07-11T10:15:16 | 379,900,903 | 0 | 0 | MIT | 2021-06-24T18:09:00 | 2021-06-24T11:24:10 | Python | UTF-8 | Python | false | false | 5,164 | py | # -*- coding: utf-8 -*-
# Reference:
# https://github.com/pytorch/vision/blob/fe3b4c8f2c/references/detection/utils.py
import argparse
import sys
import torch
import huepy as hue
from .serialization import read_json, write_json
class Nestedspace(argparse.Namespace):
def __setattr__(self, name, value):
... | [
"munjalbharti@gmail.com"
] | munjalbharti@gmail.com |
3904595484ebcb6236abea517fee084c507f798d | 93fae0c225f6ff3ab810997c8d9fb23d1e29a88f | /metaclass.py | a2048fc07ae0ac62917bd0f7c1cb237bac6449bb | [] | no_license | rahulkmr/python3_musings | fdb5d7765da654dac602c3d93d187c2f063cb8eb | b82b3384aec34c0d1d3c1f202b3dae014e541dc1 | refs/heads/master | 2021-01-22T03:22:18.792041 | 2017-05-25T06:36:53 | 2017-05-25T06:36:53 | 92,372,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python
class Meta(type):
def __new__(meta, classname, supers, classdict):
return type.__new__(meta, classname, supers, classdict)
def __init__(cls, classname, supers, classdict):
pass
class Klass(object, metaclass=Meta):
pass
| [
"rahul@thoughtnirvana.com"
] | rahul@thoughtnirvana.com |
1c7c615a5d5f6ffd5521a19f65c1f52ac3bc6411 | ee6b18145acdd00821b4a7578882ab7bac07b237 | /lab10/main.py | d396d90a7bc35119a4c779f98b3a6ca2dd319b45 | [] | no_license | Szymek13/Wizualizacja_danych | ec5238f074c686479fe1f318b2a87ddf7afcd7a8 | 01051f37cc863eb82dc6ee1a0364a79da217e1f7 | refs/heads/main | 2023-05-28T03:03:55.121856 | 2021-05-30T14:22:20 | 2021-05-30T14:22:20 | 343,164,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Zadanie 1
x = np.arange(20, 40, 1)
y = (1/x)
plt.plot(x, y, 'b-', label='f(x)')
plt.xlabel('x')
plt.ylabel('f(x)')
plt.legend()
plt.axis([20, 40, 0.02, 0.05])
plt.title('Wykres funkcji f(x)')
plt.show()
# Zadanie 2
x = np.arange(... | [
"noreply@github.com"
] | Szymek13.noreply@github.com |
f1404f7a787c775f3ce768b273fdb666e2071008 | 2d3dc770005c152f459be6f59062b736dc00aa69 | /2048/code/tkinter_event.py | 3d237a061bb54630c553e75a0c527c7db1110946 | [] | no_license | s-python-git/Python-The-code-base | 42394f9459cbcc6544486fb98ab04352eecad568 | b85052af64e5909d38649ee4ab576e608607ba50 | refs/heads/master | 2020-04-27T23:48:30.650696 | 2019-11-25T09:29:52 | 2019-11-25T09:29:52 | 174,791,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # tkinter_event.py
import tkinter
root = tkinter.Tk()
def onKeyDown(event):
print("有键盘按键被按下:event=", event)
print(event.keycode, event.keysym, event.char)
def onKeyUp(event):
print("有键盘按键抬起!", event)
root.bind('<KeyPress>', onKeyDown)
root.bind('<KeyRelease>', onKeyUp)
def mouseDown(e):
print("有鼠标... | [
"noreply@github.com"
] | s-python-git.noreply@github.com |
c808420814784eb74158420818d1e193c2cff1fe | eed5c6267fe9ac9031c21eae6bc53010261505ac | /tests/metrics/test_default_metrics.py | 9609d6d88e052ff6a942b412ee06c84c93ff3b82 | [
"MIT"
] | permissive | voxmedia/thumbor | 3a07ae182143b5a850bf63c36887a1ee8e3ad617 | 29b92b69e4c241ddd5ba429f8269d775a1508e70 | refs/heads/master | 2022-08-25T13:07:12.136876 | 2022-08-18T16:15:00 | 2022-08-18T16:15:00 | 22,433,808 | 6 | 0 | MIT | 2019-09-13T18:05:03 | 2014-07-30T15:33:42 | Python | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
import mock
from preggy import expect
import thumbor.metrics
from t... | [
"rflorianobr@gmail.com"
] | rflorianobr@gmail.com |
726011e89cde94425a4f3765a97b8e7bd24321c1 | 2621798adafdf2c4559059f5a0dda6477f54fdab | /databases/playlist-app/app.py | 4e87d815089e72ffe70d2331742bc3040b4264b8 | [] | no_license | BrandonLMcintosh/DatabaseDJ | 5eeabfb954a383e9ac8403771a7da78c8908bec3 | 1e73fce76722ed292410dce6d91688fe6584dba5 | refs/heads/master | 2023-03-07T06:52:22.503310 | 2021-02-01T19:09:04 | 2021-02-01T19:09:04 | 334,297,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | from flask import Flask, redirect, render_template, request, flash
from flask_debugtoolbar import DebugToolbarExtension
from models import db, connect_db, Playlist, Song, PlaylistSong
from forms import NewSongForPlaylistForm, SongForm, PlaylistForm
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postg... | [
"Brandon.L.Mcintosh@gmail.com"
] | Brandon.L.Mcintosh@gmail.com |
33dfd9eb9fc3006a8361ccc098a0c07b7feb98b1 | b106f6d4b3776b14fca34864bee4ccf3fb5186a9 | /OLS(F, M).py | effaf45acf0a63c0e1e6b56d04e9b9acec62eb90 | [] | no_license | KalyakulinaAnastasiya/DNA | 935bdacb3d5a723abd1657008f63e50696ca4679 | 171287d9c9eba2e9140851a6f73982691f6febbd | refs/heads/master | 2020-09-09T15:18:30.442332 | 2020-05-05T18:51:32 | 2020-05-05T18:51:32 | 221,481,882 | 0 | 0 | null | 2019-11-13T14:46:44 | 2019-11-13T14:46:43 | null | UTF-8 | Python | false | false | 1,529 | py | import numpy as np
import statsmodels.api as sm
import pickle
import matplotlib.pyplot as plt
file = open('observables.txt', 'r')
age_key = 'age'
#pers_key = 'geo_accession'
gender_key = 'gender'
line = file.readline().rstrip()
line_list = line.split('\t')
#pers_id = line_list.index(pers_key)
age_id = line_list.index... | [
"aaron.blare@mail.ru"
] | aaron.blare@mail.ru |
18735fd8a03cafe6b5b2fa7d241a8f0e31a492b3 | 51d504622c8bde5096d954bf9b38789d48ba4ff7 | /Python/flask_mysql/crud/users/flask_app/__init__.py | f2767c96c43e0e7e60569fcd53ccee202e799e37 | [] | no_license | BLee1126/Dojo-Assignments | 36c8fb2294c5cd6a04c065415aae12225c0eb483 | d40d8f6569b1f504d1785d8f34d27c58eab406c8 | refs/heads/main | 2023-07-10T16:00:30.863709 | 2021-08-20T16:42:10 | 2021-08-20T16:42:10 | 368,209,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # __init__.py
from flask import Flask
app = Flask(__name__)
app.secret_key = "shhhhhh"
| [
"blee1126@gmail.com"
] | blee1126@gmail.com |
a05cf8f5a0bbfbc66fc6366b15421295bcad5546 | 68e66947c2b2a2f1a1cac52a99363ce37f33e9bb | /getdata.py | 2eb211b79b5f329ebe7dad60d8c9b3cf6781e662 | [] | no_license | trmcdade/Manifesto | 30c424127bf734a63f9af13bb25671769077926a | 9a0d150783485492e8c45ebeb37ee41c9c31b253 | refs/heads/master | 2020-06-11T09:31:32.493158 | 2019-06-28T17:14:09 | 2019-06-28T17:14:09 | 193,917,576 | 1 | 0 | null | 2019-06-26T19:35:28 | 2019-06-26T14:10:24 | R | UTF-8 | Python | false | false | 950 | py | import urllib.request, json, ssl
#bypass SSL verification
context = ssl._create_unverified_context()
#you will need your own API. play around with key= parm also
with urllib.request.urlopen("https://manifesto-project.wzb.eu/tools/api_get_core.json?api_key=d00c54e1a64ef97f7a032c91ff45a627&key=MPDS2018b", context=conte... | [
"kylechan@unc.edu"
] | kylechan@unc.edu |
1fa1a301a80606168abdda73ff6ba0c7c75eb089 | 0c6c7365d6ff8b694bc906ec5f74c741e8bb0d37 | /Algorithms/1-Two-Sum.py | 5a8065a1ff799e35aa89d3fd7283348dbcfd26ad | [] | no_license | XiongQiuQiu/leetcode-slove | d58ab90caa250c86b7a1ade8b60c669821d77995 | 60f0da57b8ea4bfb937e2fe0afe3caea719cd7e4 | refs/heads/master | 2021-01-23T11:21:15.069080 | 2019-07-08T15:42:48 | 2019-07-08T15:42:48 | 93,133,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | '''
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0... | [
"zjw2goo@gmail.com"
] | zjw2goo@gmail.com |
8792f9fb40411dda7586be8db31e4e63b961154c | 2dd814284a1408706459e7dd6295a4575617c0c6 | /cupyx/scipy/special/digamma.py | af54d2a7fd9ec2e5072f91abcaa7fd7cf6a903c3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | dendisuhubdy/cupy | 4e31c646fa697f69abbb07f424910cc8e5f0e595 | b612827e858b8008455a76e8d9b396386c1e4467 | refs/heads/master | 2021-01-23T10:56:45.639699 | 2018-07-12T17:41:26 | 2018-07-12T17:41:26 | 93,111,021 | 0 | 0 | MIT | 2019-12-09T06:55:54 | 2017-06-02T00:31:07 | Python | UTF-8 | Python | false | false | 4,681 | py | # This source code contains SciPy's code.
# https://github.com/scipy/scipy/blob/master/scipy/special/cephes/psi.c
#
#
# Cephes Math Library Release 2.8: June, 2000
# Copyright 1984, 1987, 1992, 2000 by Stephen L. Moshier
#
#
# Code for the rational approximation on [1, 2] is:
#
# (C) Copyright John Maddock 2006.
# Use... | [
"yoshikawa@preferred.jp"
] | yoshikawa@preferred.jp |
42a05627e3a98cc0ead95e20b03d32f2cefee727 | 67d99eaf3e2355664d6b476e0cdfb4a376f5ace3 | /setup.py | 931fc78bd4758db172c223643c75612eea8bf75f | [] | no_license | Jef808/TicTacToePython | 7e9868b2efd28f1c2714ddce2db7eaae2afda9ea | c60f40bb3f4dd4beeee4533cb2d05a0b9251e98e | refs/heads/master | 2022-12-11T06:25:27.343644 | 2020-08-26T01:18:10 | 2020-08-26T01:18:10 | 290,363,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from setuptools import setup, find_packages
setup(name='TicTacToePython', version='2.0', packages=find_packages())
| [
"jf.arbour@gmail.com"
] | jf.arbour@gmail.com |
884ab6fcd860c6c1708f1f0f92d0a0b46f140e7f | a8fd25898010c2bfaa3e5c07782b6ec8738b6806 | /venv/Scripts/easy_install-script.py | d7ea1e7cc8f97577707b83df3e04f2a8694b7f18 | [] | no_license | manasarora98/FatiguedOperatorDetectionAlarming_PythonOpenCV | 2b9a312116dcdf99a12e760dd012b81bf0067e34 | 05b6949b6c6131a08d71aef377223662aca7791d | refs/heads/master | 2022-04-17T19:28:07.155742 | 2020-03-30T18:24:14 | 2020-03-30T18:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!"C:\Users\Manas Arora\PycharmProjects\FatigueDetection\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'... | [
"manasarora98@gmail.com"
] | manasarora98@gmail.com |
e62ac7a0915b7c7f70a113110172c99d24e59e8f | 81638739f723dbca5e662e572a9cef790319a430 | /conductr_cli/test/test_sandbox_logs.py | 56d88dbe3bb0f4c75921fbf7daebfa183a99c4ba | [
"LicenseRef-scancode-unknown-license-reference",
"JSON",
"Apache-2.0"
] | permissive | typesafehub/conductr-cli | 2afe5909720a1bc6eae24dd7677ac66ec2c9822d | 0ed890284228ec8acc894d49a2ea2a598f16e130 | refs/heads/master | 2023-06-19T18:59:16.175762 | 2018-02-07T16:14:56 | 2018-02-07T16:14:56 | 28,919,275 | 14 | 20 | NOASSERTION | 2022-11-04T02:29:09 | 2015-01-07T15:04:13 | Python | UTF-8 | Python | false | false | 1,043 | py | from conductr_cli.test.cli_test_case import CliTestCase
from conductr_cli import sandbox_logs
from unittest.mock import MagicMock
import io
import tempfile
class TestSandboxLogs(CliTestCase):
def test_log_files_is_correct(self):
self.assertEqual(
['/image/dir/core/logs/conductr.log', '/image/... | [
"longshorej@gmail.com"
] | longshorej@gmail.com |
699cc4b622f8e16c0d1b318294e129f9b6a4884c | cd8f1c6ceac85a870de457f237ea74509903cad3 | /tests/python/test_services/test_2/test.py | 754fecab92c98b3edb529bb68095be05eb69f7d2 | [] | no_license | HugoCornelis/sspy | 379cbfc08dc572c40f9dfba75662fb7ffa8c0d50 | e63e23a12add054c3fe98258877808b37ab76287 | refs/heads/master | 2020-06-04T17:06:07.893013 | 2019-06-16T15:25:47 | 2019-06-16T15:25:47 | 192,116,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py |
#*************************** Begin Service ********************************
class Service:
#---------------------------------------------------------------------------
def __init__(self, name=None, plugin=None, arguments=None, verbose=False):
"""
"""
self._plugin_data = plugin
... | [
"mandorodriguez@gmail.com"
] | mandorodriguez@gmail.com |
c48934190004c26d23b8ca37db448b5e6c9e7310 | 434c7afe36b1b5600d559ca46a096d9e75d8f385 | /home/migrations/0009_auto_20200823_1957.py | 438f6f6adf024020e79b767f6506aca084005db3 | [] | no_license | cangcang123/cangcang123.github.io | d7acc91ddff4576ae2e7016b9814cb1587ae9074 | a6288e8f4079654bf0bf1a2c1b0dad264ad32b63 | refs/heads/master | 2022-12-02T20:19:45.994139 | 2020-08-24T13:15:22 | 2020-08-24T13:15:22 | 289,930,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # Generated by Django 3.0.8 on 2020-08-23 12:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0008_auto_20200821_2035'),
]
operations = [
migrations.RemoveField(
model_name='giohang... | [
"muspassyou7@gmail.com"
] | muspassyou7@gmail.com |
67488237676831d1edf9d909b0ec985b4bd2e48b | 4959dcaf240badfcde1bb3de484dad7bf6dd88c6 | /Python/fun.py | a3d55d7cbb60a3e1db41d539ec80ba23962f5a89 | [] | no_license | awoltman/Computer_Science | 1025540f5cd087b8e5188e84557b9b276549a8de | 412de1d7519edea2e5ee0759ab3033d6ddfc81f5 | refs/heads/master | 2020-06-17T07:48:21.603061 | 2019-08-12T13:02:18 | 2019-08-12T13:02:18 | 195,849,350 | 0 | 0 | null | 2019-07-17T20:10:16 | 2019-07-08T16:27:34 | C++ | UTF-8 | Python | false | false | 60 | py | #first Hello World
message="This is Bob!"
print(message)
| [
"woltmanap@gmail.com"
] | woltmanap@gmail.com |
ad7ed55ad4a24f93212d491b8b82e0afff803c67 | 6a389811490cf5c4bbb8bb46cacf37b5992f9f22 | /Villordo_Cristian/001/001.py | dcd18937829e5283fa9ebd6c61418b22424defe1 | [] | no_license | informatorio2020com07/actividades | 40e2ba899e1a9d8ea6ac312ed7a480218ee6b79a | b9b76a5f8bc0a7da17ff378f954b38564f41fa66 | refs/heads/master | 2022-12-20T05:02:21.567549 | 2020-10-06T22:41:03 | 2020-10-06T22:41:03 | 285,361,906 | 2 | 26 | null | 2020-10-06T22:41:31 | 2020-08-05T17:39:32 | Python | UTF-8 | Python | false | false | 327 | py | # 001-
# Programa que pregunte al usuario, el precio del producto y la cantidad de unidades vendidas.
# Informar el total de ventas.
print("PRECIO DE PRODUCTOS")
producto=float(input())
print("CANTIDAD DE UNDIDADES VENDIDAS EN EL MES")
unidades=float(input())
print("el total de las ventas del mes es ", producto*un... | [
"cristianndvillordo11@gmail.com"
] | cristianndvillordo11@gmail.com |
c4b5c68f3abcb5ab6cc0ae450634d6e199046023 | 060a1f91c43e8931a8e2b5e023f6325f4c612862 | /excel_main.py | f7b56bc153bfbe4451309c9162a84fc8e3ce9a25 | [] | no_license | Dianuma/excel | 2ac8ee81f4c41fca007cb6eaa0eacd749ca378b1 | 5a9cf5e22d3b4d15f5c32b0b0326815fa249beab | refs/heads/main | 2023-04-25T03:40:46.789204 | 2021-05-11T10:50:40 | 2021-05-11T10:50:40 | 365,394,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,077 | py | try:
import Tkinter as tk
except:
import tkinter as tk
import tkinter.messagebox
import tkinter.ttk as ttk
import sys
import os
import numpy as np
import time
import openpyxl
import pyexcel as p
import pyexcel_xls
import pyexcel_xlsx
import pyexcel_xlsxw
import math
#font=("UD Digi Kyokasho N-B", 20, "bold")... | [
"dltmdgus1208@gmail.com"
] | dltmdgus1208@gmail.com |
7e7ca2bb4d9720d03335e98c0747b14c5fab0583 | cc6c9996e8601c28dc0d00bad1daf7280dd8338c | /python/qa_zcz_despreading.py | f4eb192b2e226828cf919e6b466340698b08add4 | [] | no_license | eokeeffe/gr-spreading | 5fad5c6e2db6637bbbf182a93bc45295d1d1246a | 886e1ebea61fa0c19688aff399aefe8339c1a097 | refs/heads/master | 2020-04-07T20:37:06.621572 | 2018-11-22T12:31:13 | 2018-11-22T12:31:13 | 158,696,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#... | [
"evan.o-keeffe@ucdconnect.ie"
] | evan.o-keeffe@ucdconnect.ie |
7b7636db25b9e2e083fd418062f950259431149f | 35244ce6da8ec7e86ab085c2ff17611a36d3bcd4 | /DrawCodes/MaskMakerPro.py | f79f797389960c946574a535f43b2d0b43dfd96e | [] | no_license | MRitter95/GraphCodes | c68a0e45585a22feaecb0b6481ef3cca2ed36539 | 6a561f41e908202362eba0c89964bf914ec9e712 | refs/heads/master | 2023-06-13T08:08:52.742532 | 2021-06-22T20:33:45 | 2021-06-22T20:33:45 | 302,158,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140,807 | py | # -*- coding: utf-8 -*-
"""
Created on Wednesday, Oct. 25 2017
MaskMakerPro. This provides a set of functions for drawing masks
@author: Mattias Fitzpatrick
"""
from . import sdxf
from math import floor
from . import sdxf
from math import sin,cos,pi,floor,asin,acos,tan,atan,sqrt
from .alphanum import alphanum_dict
fr... | [
"maritter@umd.edu"
] | maritter@umd.edu |
c897c81c731637190368f66d5e1b1c115ed5e888 | b1f76c7d9831d0307e2cda687e6f40877e31652e | /stepmaker/exceptions.py | 0b53f9bd7d5185c60ec2661a78a99b920e956faf | [
"Apache-2.0"
] | permissive | klmitch/stepmaker | 136a9efdabedce2053c94b91c7f35529dd653988 | 9f024ca2fbb575e0758c70276b441e0f7df26068 | refs/heads/master | 2021-04-28T14:55:03.687765 | 2018-02-18T18:07:19 | 2018-02-18T18:07:19 | 121,976,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | # Copyright (C) 2018 by Kevin L. Mitchell <klmitch@mit.edu>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"klmitch@mit.edu"
] | klmitch@mit.edu |
741589e2c36bb1ecd0e7f7062a505f0e372325fd | cbe24f0473f2b6212dbb165657dff0d99bc4d108 | /buildPythonBindings.py | a947414f8143f2c15c5d3ced5657168bf3892b22 | [
"MIT"
] | permissive | SArehalli/SimpleLED | 4612cd4c35e42f8bc986075424885580b2373a6d | d26d72a289a6b4853acaf5d24167a83ab580db3d | refs/heads/master | 2021-01-10T16:16:00.279724 | 2016-03-22T03:42:03 | 2016-03-22T03:42:03 | 43,258,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | #! /usr/bin/env python
import sys
from pybindgen import Module, retval, param
def module_gen(name):
mod = Module('display')
mod.add_include('"display.h"')
display = mod.add_class('Display')
display.add_constructor([param('int', 'height'),
param('int', 'width')])
display... | [
"sgarehal@ucsd.edu"
] | sgarehal@ucsd.edu |
6072d7b1aeea4e91805c782132b00e67448bf944 | 303041f23462a2095fa107976269c09618d1642f | /source/check_source.py | c28c64f71c2bea8891142c4f6dfbeaa0aba8225e | [
"MIT"
] | permissive | billyquith/GWork | 99a890e75713040739ef4f3393cdb27d9507263a | ea2d70137c97701e5b9eb6114a80d5ecd2aaaff8 | refs/heads/gwork | 2021-04-18T19:17:14.936917 | 2019-07-06T14:27:46 | 2019-07-06T14:27:46 | 7,449,996 | 216 | 54 | NOASSERTION | 2019-06-26T21:30:51 | 2013-01-05T01:20:46 | C++ | UTF-8 | Python | false | false | 1,532 | py | #!/bin/env python
"""
Check source code follows the rules!
"""
import os
CHECK_EXTS = ('.h', '.cpp')
CHECK_NAMES = ('CMakeLists.txt',)
IGNORE_DIRS = ('./platform/include/Gwork/External',)
IGNORE_FILES = ('DebugBreak.h', 'FontData.h')
class Stats:
def __init__(self):
self.files = 0
self.lines = 0
... | [
"chinbillybilbo@gmail.com"
] | chinbillybilbo@gmail.com |
aced241806907aec705128d3774a0a81da9b26ed | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/neilw4/base.py | 6cd2e86d9431e61edda3533f65f23cfb2d36240a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #!/usr/bin/python
import sys
def memo(f):
cache = {}
def memf(*x):
if not x in cache:
cache[x] = f(*x)
return cache[x]
return memf
def memo(*x):
if not x in cache:
cache[x] = f(*x)
return cache[x]
return memf
def valid(p, q, g):
return ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
eed75e0d57c80f1d2f9c7899be3f2d660a805599 | 3ecc78f69b63f8107de5ae65762192a5fdd60cc5 | /mhelper.v3.py | 73b3f0207a41be30127e34c6bb743cbbe0d14fe4 | [
"Apache-2.0"
] | permissive | KEKE046/memory-helper | 4d45a41d92aca4044f95c812fd915a812bf99ef1 | 377baaa823bd66de3d44770bb779ead9a5bdc334 | refs/heads/main | 2023-08-25T01:31:38.729101 | 2021-10-29T10:12:34 | 2021-10-29T10:12:34 | 422,525,858 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,655 | py | import warnings
if __name__ == '__main__':
print('Loading...')
warnings.filterwarnings("ignore")
import pyfiglet
import time
from rich.console import Console
from rich import print as rprint
from sklearn.linear_model import Ridge
from pypinyin import lazy_pinyin
import nagisa
import jieba
import regex
import n... | [
"KEKE_046@pku.edu.cn"
] | KEKE_046@pku.edu.cn |
6240e8f84b5a0173d47c8deafca8d65d264171b5 | 324f9b6017a15daf37114061458904b7d9c75e25 | /Homework/Homework7/sudokuHelper.py | 72da0ed5492c6b29e3d79f72d7d22c01d83b1c16 | [] | no_license | deasa/CS_6962 | 5f7fe2db4ad8bde417a83b550aa575b47c4102bc | 6c3b1e9fc320d2b9d2a6d02cafae28bddced5dba | refs/heads/master | 2020-04-02T12:31:15.862163 | 2018-12-05T14:18:47 | 2018-12-05T14:18:47 | 154,437,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | def ReadInFile(strpath):
file_object = open(strpath, "r")
l = []
for line in file_object:
for c in line:
if c.isdigit():
l.append(int(c))
return l
def Print(matrix):
i = 1
for v in matrix:
print(v, end=" ")
if i % 9 == 0:
print("\n... | [
"bgeorgeashton@gmail.com"
] | bgeorgeashton@gmail.com |
012bb09a813815387f8b28d569baf76eef101074 | 7b983f76554c0357fa0d6ec4087b953e1357b242 | /venv/bin/Swarm Dock/swarm_dock_get_results.py | 43712dcf7ddc06f100c151bb76fbc3c44b2769c9 | [
"MIT"
] | permissive | lpreuett/ser499_bioinformatics | 15967e3f043a6dabce9a239e7596ef3cfeff8ddf | 93fbed08a49851bb6cc484594fe2180b8a6bce1f | refs/heads/master | 2021-04-30T05:58:39.194963 | 2018-05-02T06:04:30 | 2018-05-02T06:04:30 | 121,423,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | import urllib, sys, os, tarfile
debug = False
OUTPUT_DIR = './Swarm Dock/output'
RESULTS_FILENAME = 'sds/clusters_standard.txt'
if len(sys.argv) != 4:
print('Usage: swarm_dock_get_results.py <link_to_results> <receptor pdb id> <ligand pdb id>')
sys.exit(1)
# get download_link
download_link = sys.argv[1]
# b... | [
"lpreuett@asu.edu"
] | lpreuett@asu.edu |
1cde0b81137596a71bf451ead8674e6f871f0355 | f5572734ef861c9e4aba0afaf8e3ada765eda04c | /pvc/ecat_smooth.py | 55ebdcfff6a545413b6b1ce1d85716f2c0b60385 | [
"MIT"
] | permissive | fengfeng11246/PetProcessing | fd9aa5c65a123a8551ba389d7b2f1fdb02ce6cb1 | be6d6467a54bd883f39f672864c0184576b3a93c | refs/heads/master | 2020-08-01T10:53:33.928853 | 2013-01-16T01:44:46 | 2013-01-16T01:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,423 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
#!/usr/bin/env python
import os
import nibabel
import numpy as np
import scipy.weave as weave
from scipy.weave import converters
import numpy
class PetPsf():
# resolution determined for out Pet scan... | [
"cindee@berkeley.edu"
] | cindee@berkeley.edu |
7504a286ab73b4c060e27ddd13924ec97e028b97 | d77896ec7aebc4f1da5ad820ce98068681bc7b9d | /Space_Shooter/alien.py | 1942c81ca635498829525db5adbcbe743306329c | [] | no_license | aquaman48/Python | 5474c6a79420149469660be0435e271820b3bd92 | 884c8c62945b35fc96aaa9a36a9b6c3507ce1e76 | refs/heads/main | 2023-04-14T13:13:06.694630 | 2021-04-18T05:26:50 | 2021-04-18T05:26:50 | 330,811,963 | 0 | 0 | null | 2021-03-14T18:31:13 | 2021-01-18T23:32:53 | Python | UTF-8 | Python | false | false | 1,181 | py | """This file will be the contents of the Alien class"""
import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""This class will represent a single alien in the fleet"""
def __init__(self, ai_game):
"""Initialize the alien and set the starting position"""
super().__init__()
self.screen... | [
"noreply@github.com"
] | aquaman48.noreply@github.com |
56adc16268f6d244ae04e2901531e17daad768f0 | 45457e15240a580bd24d5973ba23d368a2f34bbe | /Final sample/sample_2.py | 3142dcb3f7dad19189d200a18a53517b2a2423c9 | [] | no_license | brmuch/COMP9021 | 44a58deac1c7455fb13f9651ac5ac67da8d9fc87 | 2572756722a6b67b6facd021b02191a20b705d38 | refs/heads/master | 2020-04-04T11:08:43.889574 | 2019-06-19T02:58:17 | 2019-06-19T02:58:17 | 155,879,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | banknotes = {}
banknote_values = [1, 2, 5, 10, 20, 50, 100]
def recursive_method(num, amount):
if num == 0:
if amount > 0:
banknotes[1] = amount
return
else:
if amount >= banknote_values[num]:
banknotes[banknote_values[num]] = amount // banknote_values[num]
... | [
"br20130906@gmail.com"
] | br20130906@gmail.com |
9082848ae2d0cc2948f499a7e0d5ab47e3aea76a | 7109eecfb78e0123b534ef960dbf42be38e49514 | /x7-src/engine/engine/db/__init__.py | 092a2b6c0406d609cd15150f7c8c97faf8669621 | [
"Apache-2.0"
] | permissive | wendy-king/x7_compute_venv | a6eadd9a06717090acea3312feebcbc9d3925e88 | 12d74f15147868463954ebd4a8e66d5428b6f56d | refs/heads/master | 2016-09-06T16:58:13.897069 | 2012-01-31T01:26:27 | 2012-01-31T01:26:27 | 3,310,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you... | [
"king_wendy@sina.com"
] | king_wendy@sina.com |
e891c9a2c341878657997783d07af08d24b6558d | 4321f053da142c2faa27db42a0e2fff9544f76c2 | /urlshorterner/shortener/migrations/0001_initial.py | 8f99a99eb66b5e10e1546527d4a485a93e8e2c47 | [] | no_license | ELOBO5/url_shortener | b2dd48fdbf0a126fe72b815c813c9335a9e4b07a | 3e5ef0ac9196ce9bb9185e1ec32099fc9839bb66 | refs/heads/master | 2023-08-15T00:41:21.504266 | 2021-10-07T08:40:19 | 2021-10-07T08:40:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # Generated by Django 3.2.7 on 2021-10-04 10:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Shortener',
fields=[
('id', models.BigAutoF... | [
"harris.mawardi@yahoo.co.uk"
] | harris.mawardi@yahoo.co.uk |
b468b68150bb6fd52e90e01fcf615bdf01f04f4b | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/unittests/test_dist_fleet_ps13.py | 58248d325b1452e0525f68f20276017e7ad7e814 | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 6,958 | py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | Superjomn.noreply@github.com |
fdba97aa3f723173a174712b445c40df7b64abcd | 3a642fa1fc158d3289358b53770cdb39e5893711 | /src/xlsxwriter/test/comparison/test_print_area02.py | 8dc1c8ed62b42654997cba02f26ba5b02274c02d | [] | no_license | andbar-ru/traceyourself.appspot.com | d461277a3e6f8c27a651a1435f3206d7b9307d9f | 5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c | refs/heads/master | 2020-07-23T14:58:21.511328 | 2016-12-26T22:03:01 | 2016-12-26T22:03:01 | 73,806,841 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.TestC... | [
"andrey@voktd-andbar.int.kronshtadt.ru"
] | andrey@voktd-andbar.int.kronshtadt.ru |
512f01a1261eb1c96485dc9c80c20b5d387c5e0a | 71ddc215db07f311e7028cedcaaaaa08b92d5022 | /how_to_find_in_list_int_float_str.py | 61b074edfa7607a79552fc823c11540059116f88 | [] | no_license | kabitakumari20/list_logical | 026a17e80c8feeeccf9f4141882eb6a31b80b082 | af86c6609a2b20f0019e0bd33e498ab34c546fbd | refs/heads/main | 2023-05-31T23:49:08.922831 | 2021-06-08T11:15:30 | 2021-06-08T11:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | list=[2, 3.5,4.3,"hello world", 5, 4.3]
empty1=[]
empty2=[]
empty3=[]
i = 0
while i<len(list):
if list[i]==str(list[i]):
empty1.append(list[i])
elif list[i]==int(list[i]):
empty2.append(list[i])
elif list[i]==float(list[i]):
empty3.append(list[i])
else:
print(i)
i+=1
pri... | [
"kabita20@navgurukul.org"
] | kabita20@navgurukul.org |
0776d0727b2dcb2702c95cf752b9ffe9895b22c9 | 6b5f8d3678c78e4d6fbc51431d656b3c8c82a76a | /apps/torneo/migrations/0001_initial.py | 1b44f0dc482b6112bc898c07d6bf2e14efc7018a | [] | no_license | EderChu/LigaDeportiva | 13116290129d90bac90ed7d29375acd7453979dc | 747b88d9761591104cba051731c8a1c4542a7816 | refs/heads/master | 2021-01-18T04:03:18.388480 | 2015-12-11T19:33:11 | 2015-12-11T19:33:11 | 47,946,846 | 0 | 0 | null | 2015-12-14T02:12:53 | 2015-12-14T02:12:53 | null | UTF-8 | Python | false | false | 5,206 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('equipo', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Arbitro',
fields=[
... | [
"scam1121@gmail.com"
] | scam1121@gmail.com |
d8d9bb0d0d9d1b227024baf5aeb248df7c7324a5 | 1c824de3a57e8a62961d1a70e2473cb2d1b8654c | /1.1 Is Unique.py | 3b6585a10fb36959c6706ebab7fbf89f15c663ef | [] | no_license | Lawrencehudson23/ctci-algorithms | 8a1168ce87402d06fbfe264c6a67903e43dc1cdb | b31438402f98c54f426e1ab0a2019829cf1f7472 | refs/heads/master | 2022-05-22T10:01:51.419166 | 2020-04-28T18:42:49 | 2020-04-28T18:42:49 | 259,419,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # 1.1 Is Unique: Implement an algorithm to determine if a string has all unique characters. What if you
# cannot use additional data structures?
# Hints: #44, #117, #132
def isUnique(str):
dic = {}
for i in str:
if i in dic:
return False
if i not in dic:
dic[i] = 1
... | [
"Lawrencehudson23@gmail.com"
] | Lawrencehudson23@gmail.com |
6d368b9177060cc3907bbfdd9e7c3a64c76e995b | 832ae9dee102c195e8d25d64d3745e208731b725 | /needybot-raspPy/src/__main__.py | 153d37ea79a4772d94313f9b4b251682fc193c01 | [] | no_license | brettberry/needybot | 0eda60debbe4afca3fec629648a159d8a847dabd | f001357e5e63bebf09bd7376193929ff13a13076 | refs/heads/master | 2020-09-06T05:33:50.987229 | 2016-09-07T15:45:12 | 2016-09-07T15:45:12 | 67,619,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from nanpy import ArduinoApi, SerialManager
connection = SerialManager(device='/dev/cu.usbmodem1421')
arduino = ArduinoApi(connection=connection)
frontLeft = { "en": 13, "in1": 12, "in2": 11 }
frontRight = { "en": 8, "in1": 10, "in2": 9 }
backLeft = { "en": 7, "in1": 6, "in2": 5 }
backRight = { "en": 2, "in1": 4, "in... | [
"brett.elizabeth.berry@gmail.com"
] | brett.elizabeth.berry@gmail.com |
fcb4c6ebca02a66d08e3dd8fc564224541dfb1df | d3bb87661f3322e90a49d34961d42a6deb615aff | /get-gmus-attributes/best_attributes.py | 91f63044c642737f2f1522a1e884cf20601735cb | [] | no_license | UW-Macrostrat/map-processing | 07b0a248305488ec3e76f0424f1357ccf993ce91 | 0d33dabf4fecd4c9c3b8573e4db914470d38d191 | refs/heads/master | 2020-05-17T00:04:41.262573 | 2015-07-10T15:11:16 | 2015-07-10T15:11:16 | 30,981,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | import os
import psycopg2
from psycopg2.extensions import AsIs
import sys
import subprocess
sys.path = [os.path.join(os.path.dirname(__file__), os.pardir)] + sys.path
import credentials
# Connect to Postgres
pg_conn = psycopg2.connect(dbname=credentials.pg_db, user=credentials.pg_user, host=credentials.pg_host, port=... | [
"jczaplew@gmail.com"
] | jczaplew@gmail.com |
7ec96b068b8307a652e928eb77fe503c9c28d7b0 | cfcf10e6ded2ca4ee05ad77baa44503d87dd4136 | /python/moter2.py | 87f470e31ed1089c6a73cae77401b3e91ee48178 | [] | no_license | Rafael0110/programs | bb249148fa3dcf89f6a4cdd15a3f5d8e4218623e | 75a9116554c9fd570451923d5cd47e826c0dac9a | refs/heads/master | 2019-07-08T02:05:44.793366 | 2018-02-06T07:33:47 | 2018-02-06T07:33:47 | 119,935,759 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | #!/usr/bin/python
# coding: utf-8
import RPi.GPIO as GPIO
import time
import signal
import sys
def rad(num):
n = float(num)
return (n+90.0)/180.0*(12.0-2.5)+2.5
def exit_handler(signal, frame):
# Ctrl+Cが押されたときにデバイスを初期状態に戻して終了する。
print("\nExit")
time.sleep(0.5)
servow.ChangeDutyCycle(rad(0))
servoh.Ch... | [
"ichirosasaki@sf.cs.it-chiba.ac.jp"
] | ichirosasaki@sf.cs.it-chiba.ac.jp |
925bce9d8a558122254c04e1433f029d7becf5d7 | 85336da957102ec16dc7a7abb1aaab5ce4716a84 | /app/notes/views.py | e920ee71fe60647f9a3ad28c4bffc045f5510ab3 | [] | no_license | Aman2313/djoser | 9a115df4d203079488487d3517d4ebde46e4cbbc | 8c64b8a969104299f84dfd475e861a10a69905cf | refs/heads/main | 2023-03-14T03:43:41.665297 | 2021-03-04T20:09:46 | 2021-03-04T20:09:46 | 344,596,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from django.shortcuts import render
from rest_framework import viewsets
from apps.notes.models import Note
from apps.notes.serializers import NoteSerializer
class NoteViewSet(viewsets.ModelViewSet):
serializer_class = NoteSerializer
queryset = Note.objects.all()
def perform_create(self, serializer):
... | [
"root@ip-172-31-8-220.ap-south-1.compute.internal"
] | root@ip-172-31-8-220.ap-south-1.compute.internal |
209d0d207a72810d04216d15b8bafdbea0c50c36 | 19cda0cee59db5462e4e49ab5ada0b72f79556e2 | /Chapter_8_Classes_Methods/Exercise_9.13.py | 79c5ed4ec769756a283c43195eb7a16616ab19c4 | [] | no_license | vspatil/Python3-HandsOn | 1a2ff11a59d18509c818752f1716f7ee5baba471 | d03bf06f95797ac2a56a0a78a4f6ead141bbf214 | refs/heads/master | 2020-04-15T10:10:12.776911 | 2019-01-08T06:54:23 | 2019-01-08T06:54:23 | 164,356,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | #9.13
"""
from collections import OrderedDict
favourite_languages = OrderedDict()
favourite_languages['Brad'] = 'SQL'
favourite_languages['Adam'] = 'ERP'
favourite_languages['Mike'] = 'Python'
favourite_languages['Chris'] = 'JAVA'
for name , language in favourite_languages.items():
print( name.title() + " 's fav... | [
"vanispatil@gmail.com"
] | vanispatil@gmail.com |
2bce411c35e912e6ed7c250789f2f2259956fe8f | 6679fd1102802bf190294ef43c434b6047840dc2 | /openconfig_bindings/bgp/global_/afi_safis/afi_safi/l2vpn_vpls/prefix_limit/__init__.py | 912ccb145ff12843af0245b01ed67e1ee0f21e7d | [] | no_license | robshakir/pyangbind-openconfig-napalm | d49a26fc7e38bbdb0419c7ad1fbc590b8e4b633e | 907979dc14f1578f4bbfb1c1fb80a2facf03773c | refs/heads/master | 2023-06-13T17:17:27.612248 | 2016-05-10T16:46:58 | 2016-05-10T16:46:58 | 58,091,515 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,217 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"rjs@jive.com"
] | rjs@jive.com |
45ffe5b3c7157bbd4c9d05915a60db89b8cfb1ab | 374d01175564001908b85ebead7ca9f0d623cf4f | /endpoints/migrations/0015_auto_20210423_0447.py | 2234f44a378c706b6fb68eaaea79e18640d3235c | [] | no_license | Pandemic21/clammerav | bb9478bd044ba8fd6c80b768bab29770c2c5216d | 62a66c7eb51f170c09801446bad31a3741892fe6 | refs/heads/master | 2023-05-03T05:11:36.775531 | 2021-05-02T21:21:54 | 2021-05-02T21:21:54 | 363,769,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # Generated by Django 3.2 on 2021-04-23 04:47
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('endpoints', '0014_auto_20210423_0424'),
]
operations = [
migrations.AlterField(
model_name='ingest',
name=... | [
"pandemicjunk@gmail.com"
] | pandemicjunk@gmail.com |
c7399ed2a6a14b00d2fa225c257399f315242144 | ab85cd2264844b47234698686229f78a8a149c07 | /Deployed Flask File.py | b3bc14f2bf5e88d3270dd541fda1c4582ea1b008 | [] | no_license | pbhagavanreddy/Flask-Deployment | ecd4089aa80ccf679ac5c651f31db851f86fe572 | a8ee0e0be20d6ad504d53a84dbeddc4a2a06dfd9 | refs/heads/main | 2023-04-13T00:15:42.790021 | 2021-04-22T04:36:36 | 2021-04-22T04:36:36 | 360,392,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | from flask import Flask, render_template, session, url_for,redirect
# these 2 used when Postman API - request,jsonify
import numpy as np
from flask_wtf import FlaskForm
from wtforms import TextField, SubmitField
from tensorflow.keras.models import load_model
import joblib
def return_prediction(model, scaler,... | [
"noreply@github.com"
] | pbhagavanreddy.noreply@github.com |
d3b3d4e310f966463f944761e165626677feadbf | e5db3cd2fdf6d16e3136786982e08dc9414d653b | /computeAve/check50/__init__.py | af1698f39b89c49894edb65b4aac4a81cdd9c0cd | [] | no_license | cwaage/checks | 821f78622c0adaf89f5a4ccc28ba8e026ed61e35 | 04ac89ea26e35fff188f9fcdaf0031d3896eed15 | refs/heads/master | 2020-04-03T13:44:27.793485 | 2019-01-16T13:46:10 | 2019-01-16T13:46:10 | 155,296,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | from check50 import *
class Computer_Average(Checks):
@check()
def exists(self):
"""computeAve.c exists"""
self.require("computeAve.c")
@check("exists")
def compiles(self):
"""computeAve.c compiles"""
self.spawn("clang -std=c11 -o computeAve computeAve.c -lcs50 -lm").... | [
"noreply@github.com"
] | cwaage.noreply@github.com |
3dc16aba361b3ae8a677b763d965456e88721d4b | 29d982d3358b91bc120a7d4d2c3b65fe3058e2b0 | /15.2.py | ae5318e23af4909d1ad2d0ce257271e322a543fb | [] | no_license | JHanek3/Coursera | 46153f3abda91fc86b59aac2d313f1c9a48c6d77 | 5846f00a08752493d91a31e4992a1613ba762567 | refs/heads/master | 2020-06-19T16:24:29.279198 | 2019-07-14T01:57:26 | 2019-07-14T01:57:26 | 196,782,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import urllib.request, urllib.parse, urllib.error
import json
import ssl
api_key = False
# If you have a Google Places API key, enter it here
# api_key = 'AIzaSy___IDByT70'
# https://developers.google.com/maps/documentation/geocoding/intro
if api_key is False:
api_key = 42
serviceurl = 'http://py4e... | [
"noreply@github.com"
] | JHanek3.noreply@github.com |
7ed4c2eb2c224f3d1a91789faff26ab73a083d63 | 6821339070e85305875633abca1c3d6c90881ede | /flaskWeb/flask_demo/blue_print/index.py | ebd3377ee3bac19028f4335aaccdf5e7338cc9be | [] | no_license | Abel-Fan/uaif1901 | 07cda7ea5675ec52ae92c0021f713951c62bd198 | f6d81a44b658e61b2c3ae6b4b604faebc1fb136a | refs/heads/master | 2020-05-03T01:05:46.289805 | 2019-04-30T10:16:53 | 2019-04-30T10:16:53 | 178,328,172 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from flask import Blueprint,render_template
from flaskWeb.flask_demo.db.connectdb import database,cursor
from flaskWeb.flask_demo.settings import INDEX_STATIC
indexblue = Blueprint("index",__name__,url_prefix="/")
@indexblue.route("/",methods=["GET"])
def index():
data = {}
sql = "select * from produces limit... | [
"842615663@qq.com"
] | 842615663@qq.com |
91d40edb831ae2487b3fd892d3a141546d48b51d | d99955a336ebd72cb2df241e97f4a5644ca1f3f7 | /statistics.py | b26965e7e00d35957c81e2a25dae129f615fefb4 | [
"MIT"
] | permissive | mintanwei/IPCLs-Net | 397ba29815555d59febcd9b5ba77f1fa1b5b6c42 | 04937df683216a090c0749cc90ab7e517dbab0fd | refs/heads/main | 2023-03-03T16:37:07.697438 | 2021-02-01T09:07:47 | 2021-02-01T09:07:47 | 333,429,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | import seaborn
import pandas as pd
import matplotlib.pyplot as plt
result_file = "./experiments/total.txt"
file = open(result_file).readlines()
seaborn.set_style("whitegrid")
# data = {
# 'k':["1"]*9,
# 'p':[0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.5, 0.75, 1],
# 'F2':[0.846]*9,
# 'Sensitivity':[0.868]*9,
# ... | [
"mintanwei@126.com"
] | mintanwei@126.com |
21bdc59a455bc4ad4b5587d08c511557800ce26d | a7b61a0b2f6b1d1d742873c8e1f2fce2ffae7268 | /utils/hexutils.py | 87d2bfe5277d83b3c801decd82a139577a61fd56 | [
"MIT"
] | permissive | chenxiaoli/ethereum-watch | dd95483e4179a4fed4d6f4b8c51445d92f602c58 | 27104b3486f20e78b596b93ff38948715e26db67 | refs/heads/master | 2022-01-11T16:30:14.557387 | 2021-03-25T15:24:52 | 2021-03-25T15:24:52 | 216,600,649 | 4 | 0 | MIT | 2022-01-06T22:40:24 | 2019-10-21T15:21:00 | Python | UTF-8 | Python | false | false | 316 | py | from eth_utils import remove_0x_prefix
def hex2a(s):
# astr = ''
chrlist = []
s = remove_0x_prefix(s)
for i in range(0, len(s), 2):
aint = int(s[i:i + 2], 16)
if aint >= 32:
# astr = astr + chr(aint)
chrlist.append(aint)
return ''.join(map(chr, chrlist))
| [
"39185753@qq.com"
] | 39185753@qq.com |
1d2fcfdd3bd3561748484b153ccd79db0d2f6603 | ca850269e513b74fce76847310bed143f95b1d10 | /build/navigation/move_slow_and_clear/catkin_generated/pkg.installspace.context.pc.py | e8dee1765968cad46f6536a7c38fe58f630c2d73 | [] | no_license | dvij542/RISS-2level-pathplanning-control | f98f2c83f70c2894d3c248630159ea86df8b08eb | 18390c5ab967e8649b9dc83681e9090a37f3d018 | refs/heads/main | 2023-06-15T03:58:25.293401 | 2021-06-20T20:20:30 | 2021-06-20T20:20:30 | 368,553,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;nav_core;pluginlib;roscpp".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lmove_slow_a... | [
"dvij.kalaria@gmail.com"
] | dvij.kalaria@gmail.com |
fa0310a2886327f6a0829a3c05aa0ac2780b276c | c3422fd903f86edfa07a0d4e8d9aa7c123364ece | /app/hello_django/settings.py | 4c28a32df3f2e76b02de6d16a0399444c185ef08 | [
"MIT"
] | permissive | rachid1234/sendintime | 2e786bb7e2278dd9311d57032821d5bef0263760 | b7218f5f918b30a0b4343d4c434ff80d2a46eff6 | refs/heads/main | 2023-02-04T21:05:57.657739 | 2020-12-25T18:14:50 | 2020-12-25T18:14:50 | 324,344,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | """
Django settings for hello_django project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"amine@MacBook-Pro-de-mac.local"
] | amine@MacBook-Pro-de-mac.local |
1e8d620d1b89f1f965f4bcf74087f22d4cfa0fc7 | 211fb63fc4262cd618319ee715cbb39ba0a316ab | /SeleniumSEHU/UserModule.py | 869ca5cb152a6dc61b32bee61c40baf583bc5cf4 | [] | no_license | aurajimenez/Selenium-SEHU | a955e7074677087442fd200346a24aef442569d8 | 82c968ce9f410a6ee02ddee17e8a1ba13dfa5940 | refs/heads/master | 2022-12-22T12:27:31.007226 | 2020-09-23T04:29:57 | 2020-09-23T04:29:57 | 289,055,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
import time
class UserModule(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Opera(executable_path = r"operadriver.exe")
driver = self.driver
driver.maxim... | [
"auracristina.jimenezg@gmail.com"
] | auracristina.jimenezg@gmail.com |
e4133ca7cab9d2cfbcfdb3bd426bd7881b929df7 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Soup/HSTSEnforcer.py | d992a49c116ab36e63951f4d43c0915e61e2f82c | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 17,580 | py | # encoding: utf-8
# module gi.repository.Soup
# from /usr/lib64/girepository-1.0/Soup-2.4.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the mo... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
e03e985e0c2f4e2e0cf120daa75deb2ef3afd435 | 09b40c90f5848b284c5a0bc626fc144c1dcda8c0 | /node_modules/uws/build/config.gypi | 58687fdd4f26aa2379fa56eefd518b18c60967d2 | [
"Zlib"
] | permissive | jboudouris/gifMatcherPersonal | 48a9b9478fcaa44760ce17065bacb55449d75991 | 4c07803adb09b9e998b87cf21dcf8327cdfe61d9 | refs/heads/master | 2022-12-11T19:10:46.377675 | 2019-07-10T00:44:42 | 2019-07-10T00:44:42 | 133,701,249 | 1 | 0 | null | 2022-12-02T03:38:38 | 2018-05-16T17:25:55 | JavaScript | UTF-8 | Python | false | false | 5,234 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"JamesBoudouris@Georges-MacBook-Pro.local"
] | JamesBoudouris@Georges-MacBook-Pro.local |
882039e20687f5fc342b590337a912e08d38dc56 | 9a50f51a58e9a21e39e69ae09ddb9425a6bbffe4 | /widgets/PlayerBoxUI.py | e106a09bcdd6494d966f1831fa9e523367f25faf | [] | no_license | qizidog/vehicle_identification | fe5328aa0a10b3850e401ed2daa45bcc16596c0d | 50327c775d1d403675279b3cb89484dcc13782f9 | refs/heads/master | 2021-07-11T09:57:39.988469 | 2020-09-27T08:52:46 | 2020-09-27T08:52:46 | 199,362,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,659 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'PlayerBoxUI.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainW... | [
"451559450q@gmail.com"
] | 451559450q@gmail.com |
ffb751d0b3bd9c075d953abe3eb0a50653e9c9f4 | 6f8c7d2263f055b92d9a33b14095f0afa95b0fe7 | /core/migrations/0014_auto_20171120_1311.py | 275f0697eaea2138aa2d1e5e42285ef030ddd9fc | [] | no_license | timam1992/waass | 239d88c4339b7fb2ee338f266cee1f89e8e690a2 | 67cad45ccf66e51981ce4cd82ac0f61a55cbb523 | refs/heads/master | 2021-08-22T18:09:08.590338 | 2017-11-30T22:10:18 | 2017-11-30T22:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0013_auto_20171118_1959'),
]
operations = ... | [
"biswashirok@gmail.com"
] | biswashirok@gmail.com |
7eeb8cc2f090a98bd9e74c64a2ec9543969941c3 | f557a58a55be8167f89d900b612616187356e3db | /autokey/.config/autokey/data/TouchCursor/02 QWERTY/10 - P Backspace.py | f55be76ee7942b78f31794f5e35acee7fc55f367 | [
"MIT"
] | permissive | jeebak/touchcursor-x11 | 44a59368f2c812b1fa6314c5983bb7c6abd6c61c | 1e210a11fd5f72353ab8b685f9543840696acafd | refs/heads/master | 2021-07-06T22:55:08.268457 | 2020-06-08T00:26:26 | 2020-06-08T00:26:26 | 97,556,429 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | engine.run_script('init-touchcursor')
keyboard.send_keys('<backspace>')
| [
"jeebak.kim@gmail.com"
] | jeebak.kim@gmail.com |
57d5f77871d2e59fdda4f2f31e1e2a4423ec1a1a | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/algorithm/expert_algo/2_6.py | 48d002b4b59871316db762455451642b74ab27c3 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,332 | py | Minimum Bipartite Groups
Given Adjacency List representation of graph of **N** vertices from **1 to N**
, the task is to count the minimum bipartite groups of the given graph.
**Examples:**
> **Input:** N = 5
> Below is the given graph with number of nodes is 5:
>
>
> :
pass
img = cv2.imread('Eric_Romano.jpg',0)
window_title = 'edges with trackbar'
cv2.namedWindow(window_title)
cv2.createTrackbar('min', window_title, 0, 200, nothing)
cv2.createTrackbar('max', window_title, 300, 500, noth... | [
"noreply@github.com"
] | ericrom1228.noreply@github.com |
97deaf7c49e82df113a6ce3714f5553326e2aade | 982e913f1af0f342c0613034361d78019216e231 | /cognite/client/data_classes/iam.py | 4f7fa7b518cd6e2b07533f1b71d91dfe87511775 | [
"Apache-2.0"
] | permissive | ik-learning/cognite-sdk-python | 2defb83ab4a923e2b3a96b8055b14a2f921b5d1a | 11d51477feabdd363fdb072c444201ccda7182e7 | refs/heads/master | 2020-07-12T03:49:20.573317 | 2019-08-27T08:35:15 | 2019-08-27T08:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | from typing import *
from cognite.client.data_classes._base import *
# GenClass: ServiceAccount
class ServiceAccount(CogniteResource):
"""No description.
Args:
name (str): Unique name of the service account
groups (List[int]): List of group ids
id (int): No description.
is_de... | [
"noreply@github.com"
] | ik-learning.noreply@github.com |
062ecdd265d1297a42ff5c0a78c923af59c683dd | 60d84625e0d033748400b0bf0089248c3d83d9e1 | /hacker_news/main.py | 8c35f865565b3a74e1b84749d6a890cce1903edb | [] | no_license | bokotomo/feed_app | c4fb045a3340c5e0e49223e25323299a9775c3ec | c1c089faba23a1f58232fd0bd5cdc3c82fabe0dc | refs/heads/master | 2021-06-28T22:45:06.812241 | 2017-09-15T04:43:42 | 2017-09-15T04:43:42 | 103,614,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from message_manager import MessageManager
if __name__ == "__main__":
zc
| [
"bokotomo@me.com"
] | bokotomo@me.com |
5093968bda5c65cae1a81296e7048c66d8ce4653 | 3b109c04041f581a4c16e99e67c9cd6a20c6bea6 | /cfgov/v1/tests/migrations/test_0142_migrate_pas_link_data_to_pagechooserblock.py | 8890e2064c8973e4acef332b676a6f9cb018d132 | [
"CC0-1.0"
] | permissive | adrukh/cfgov-refresh | 49270630740ef7f95a66db253be28cde91c29b82 | 2209b1e9c74e3a2db74c97603d54274722ad8cec | refs/heads/master | 2023-07-08T17:26:32.855003 | 2019-03-07T17:25:37 | 2019-03-07T17:25:37 | 174,398,822 | 0 | 0 | CC0-1.0 | 2023-09-05T14:53:11 | 2019-03-07T18:28:30 | Python | UTF-8 | Python | false | false | 10,262 | py | from importlib import import_module
from unittest import TestCase
from v1.models.base import CFGOVPage
from v1.tests.wagtail_pages.helpers import save_new_page
class TestMigration0142(TestCase):
@classmethod
def setUpClass(cls):
super(TestMigration0142, cls).setUpClass()
cls.migration = impo... | [
"scott.cranfill@cfpb.gov"
] | scott.cranfill@cfpb.gov |
4ad44bcde9b6556481cdb983363a5b9757ecef01 | e1b09ae83920656b20cad0e84f21b741752e926d | /sams/check_dupl_def2.py | 29943740c0b63b607eb174d6f368341eced7c57f | [] | no_license | yeongsun/cute | 5c46729d43f13967cdf4bda0edd100362de90c70 | 3150d7387c04c15e3569dc821562564cd8f9d87c | refs/heads/master | 2020-04-25T10:38:41.833479 | 2018-11-29T05:42:46 | 2018-11-29T05:42:46 | 156,344,910 | 0 | 0 | null | 2018-11-06T07:41:03 | 2018-11-06T07:41:03 | null | UTF-8 | Python | false | false | 2,231 | py | import os, sys
import logging
import concurrent.futures
import ys_logger
sys.path.append(os.path.abspath('..'))
logger = logging.getLogger('root')
logger.setLevel("INFO")
logger.addHandler(ys_logger.MyHandler())
logger.info("Finish setting logger")
class check_dupl_conc():
def __init__(self):
... | [
"ylunar@naver.com"
] | ylunar@naver.com |
417001e885e8d1bbd4496011fe2f1681b399931a | 8a0e26f5823b7c40410ef48a577a82be9aa0d6bd | /fun2.py | d972f51825dd5aa267f9442a241cf3b9a566c145 | [] | no_license | yanashurpik/Andersen-Trainee-Shurpik | 40c209f9f73451dc1d2a9353d1423b7e3a39723e | 1bca51f8d1e42bec4833770ae8687d0298413ae0 | refs/heads/main | 2023-05-07T17:06:32.258501 | 2021-05-15T13:07:50 | 2021-05-15T13:07:50 | 367,345,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #Яна Шурпик, Минск, AQA, python
def collecting_data():
second_data = input("Введите имя: ")
return second_data
def second_function(second_data):
if second_data == 'Вячеслав':
print('Привет, Вячеслав')
return True
else:
print("Нет такого имени")
return False
#second_fu... | [
"yana_shurpik@imap.by"
] | yana_shurpik@imap.by |
a868f06ffc94c8e8f5374027fa9157e9edf75fed | 9d5ae8cc5f53f5aee7247be69142d9118769d395 | /582. Kill Process.py | f6d2712a589e4d1bded42a8fccb55a00c2de168e | [] | no_license | BITMystery/leetcode-journey | d4c93319bb555a7e47e62b8b974a2f77578bc760 | 616939d1599b5a135747b0c4dd1f989974835f40 | refs/heads/master | 2020-05-24T08:15:30.207996 | 2017-10-21T06:33:17 | 2017-10-21T06:33:17 | 84,839,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | class Solution(object):
def killProcess(self, pid, ppid, kill):
"""
:type pid: List[int]
:type ppid: List[int]
:type kill: int
:rtype: List[int]
"""
d = {}
for i in xrange(len(ppid)):
if ppid[i] in d:
d[ppid[i]] += [pid[i]]
... | [
"noreply@github.com"
] | BITMystery.noreply@github.com |
697c73285ea86570272d2a116bb2cf7710ad416f | d82cd4bc0121c913f0c7d4b86b8ef635c3ca9a98 | /Snakefile | e418a704963c0ef42a694754765138f1f7b656b5 | [
"Apache-2.0"
] | permissive | SamBryce-Smith/polyAsite_workflow | 3548a98d70f7f92d3312a8049694e9847817c021 | 6ea639e16d176e81591339cf657201a61aebd7a8 | refs/heads/master | 2023-05-09T21:26:57.879106 | 2021-06-03T17:13:41 | 2021-06-03T17:13:41 | 373,532,751 | 0 | 0 | Apache-2.0 | 2021-06-03T17:16:20 | 2021-06-03T14:17:54 | Python | UTF-8 | Python | false | false | 99,601 | #configfile: "config.yaml"
# don't provide a default config file
# to ensure that the executing person knows what it is doing
# and provides the intended information
from snakemake.utils import makedirs
from snakemake.utils import listfiles
import pandas as pd
import numpy as np
import string
import random
import os
... | [
"christina.herrmann@unibas.ch"
] | christina.herrmann@unibas.ch | |
7111ddfb6acf2732a7fac3581369ead18f23ff53 | 109ac2988a85c85ce0d734b788caca1c3177413b | /senlin/tests/__init__.py | 1634fd8f1ae8335f9341c3e1fcb454027b088cb8 | [
"Apache-2.0"
] | permissive | tengqm/senlin | 481c16e19bc13911625d44819c6461a7c72e41cd | aa59c55c098abb13590bc4308c753338ce4a70f4 | refs/heads/master | 2021-01-19T04:51:17.010414 | 2015-03-16T10:06:09 | 2015-03-16T10:06:09 | 28,478,662 | 2 | 5 | null | 2015-03-04T07:05:00 | 2014-12-25T10:22:18 | Python | UTF-8 | Python | false | false | 912 | py | # 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 writing, software
# distributed unde... | [
"tengqim@cn.ibm.com"
] | tengqim@cn.ibm.com |
c462013ed3ab5ba561d890a7be8d9df5ed9bdf6f | c362623e7bd0d656ad3a5a87cff8c2f2f4d64c30 | /example/wikidocs_exam_11_20.py | b96e7d53b878744a881b52ea3ed6b05932a6a7b8 | [] | no_license | bbster/PracticeAlgorithm | 92ce418e974e4be8e95b0878b2e349bf8438de5f | 171fa1880fb2635c5bac55c18a6981a656470292 | refs/heads/master | 2021-07-10T16:17:24.088996 | 2020-12-09T10:47:46 | 2020-12-09T10:47:46 | 222,721,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | # https://wikidocs.net/7014
# 011
삼성전자 = 50000
print("평가금액", 삼성전자 * 10)
# 012
시가총액 = 298000000000
현재가 = 50000
PER = 15.79
print("시가총액:", 시가총액, "현재가:", 현재가, "PER:", PER)
# 답안지
# 시가총액 = 298000000000000
# 현재가 = 5000
# PER = 15.79
# print(시가총액, type(시가총액))
# print(현재가, type(현재가))
# print(PER, type(PER))
# type(변수) - 변수... | [
"bbster12@naver.com"
] | bbster12@naver.com |
af7ae0fac74f267efbcb2be1b212c04444ecf130 | 9ac15348f627be602826e3699d2260ba76af712a | /pagerank/lib.py | 591065bb105953ea2dd3c24940ccf936291a61f7 | [] | no_license | mrasap/MMDS-algorithms | aab30f6d93380f74411bcf5802b4667354921845 | 7d745936df6f935ec715b7e478b7cd868804a8f8 | refs/heads/master | 2020-04-27T19:20:26.140807 | 2019-03-18T20:36:58 | 2019-03-18T20:36:58 | 174,613,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | from collections import OrderedDict
import csv
import itertools
import numpy as np
def import_csv_as_adjacency_dict(path: str) -> OrderedDict:
"""
Import the csv file and return an adjacency dict of the graph.
Expects the csv file to be of the format:
'node from, node to, weight'
where weight is ... | [
"michael.kemna@gmail.com"
] | michael.kemna@gmail.com |
88df44e91d318c2d1910ffe75e04bff27aebd197 | c087b91f6b8258b96be12388ea2b066b346f05ce | /roapy/core/domain.py | 615f9ce815fbb1c4c508689a19545bc855c00cb6 | [
"MIT"
] | permissive | kirknorth/roapy | 7d3e602655b8e8d28d1a400ecd02b6c38ed9720f | 9779f683e2eb1afc550a88a488c5c0849d7f25f8 | refs/heads/master | 2021-01-10T23:15:18.999992 | 2016-11-01T21:54:43 | 2016-11-01T21:54:43 | 70,624,678 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | """
grid.core.domain
================
"""
import pyproj
import numpy as np
class Domain(object):
"""
Attributes
----------
x, y, z : ndarray
Axes in meters defining the rectilinear grid.
coordinates : tuple
The (z, y, x) coordinates of each vertex in the rectilinear grid.
la... | [
"kirk.w.north@gmail.com"
] | kirk.w.north@gmail.com |
fc97a0d7aa4c2fab939444e80fd0c1e8be10e8ee | 3a7bcd709a5ca3b387cbf1d25f21f41c1a3ece33 | /Homework3.py | ecaf2a7b2b68f9ddd389f6f5fbd919707c6693fb | [] | no_license | Rafokost/homework | cad9d0a686290814882619d98f4a0f03155e59bb | 3d0508dd3f8229b5d233c0a16b8cff8170330737 | refs/heads/master | 2020-07-25T13:51:14.980975 | 2019-10-22T17:45:13 | 2019-10-22T17:45:13 | 208,312,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import datetime
print(datetime.date.today())
U=input('U is inner energy = ')
U=int(U)
print(U<10 and U not=5)
P=input('P is gas pressure = ')
P=int(P)
print(P<=10 or U!=-9)
V=input('V is volume of gas = ')
V=int(V)
print(V==8 and V!=9 or V<3)
print('H=U+P*V')
H=U+P*V
H=str(H)
print('the value of H is',H)
H=int(H)
... | [
"rafokost@mail.ru"
] | rafokost@mail.ru |
4eb5ec29014a4988620c2a2929b6d12c4505a545 | adb4e6b82e5f969fc46f7c58e70e49c5d53a6fe3 | /exotica_examples/scripts/example_ik_joint_torque_minimization_proxy | 0901046a933acbf7f9646c953cfa6c056823cbc9 | [
"BSD-3-Clause"
] | permissive | ipab-slmc/exotica | 8d9b531916f1e7422f85854597aa925091a7b7c4 | be580d162c5798d976f138cc1cd99474aef9c6fe | refs/heads/master | 2021-12-15T15:19:26.471745 | 2021-12-08T03:43:44 | 2021-12-08T03:43:44 | 44,607,894 | 144 | 55 | NOASSERTION | 2021-07-23T10:51:43 | 2015-10-20T13:24:57 | C++ | UTF-8 | Python | false | false | 2,359 | #!/usr/bin/env python
from __future__ import print_function
import pyexotica as exo
import numpy as np
import math
from pyexotica.publish_trajectory import *
import exotica_core_task_maps_py
import exotica_scipy_solver
from time import sleep, time
import signal
def figure_eight(t):
return np.array([0.6, -0.1 + m... | [
"w.merkt@gmail.com"
] | w.merkt@gmail.com | |
fa215df08f999e6b643dc6ae38cde42f29bad61f | cf6f79ec1a7cf2cbcf5b9dde3012b475203fcf08 | /Dota2/hero_type.py | ddec8990120292613a29c00466bf40d98f0e25ea | [] | no_license | BligJason/CS4373_Weka_Project | 1bbc4299d141893279c77d63b934ca8fcb08031d | 98b5f9eb8fb232d705b96391424665df5585c99e | refs/heads/master | 2021-01-23T07:55:24.617427 | 2017-04-21T02:04:09 | 2017-04-21T02:04:09 | 86,464,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | #This dictionary maps each of the 113 heroes to their attack type, ranged or melee.
#Attack types were determined by reading hero description on Dota2 web site.
AttackType = {"Abaddon" : "Melee",
"Alchemist" : "Melee",
"AncientApparition" : "Ranged",
"Anti-Mage" : "Melee",
"ArcWarden" :... | [
"dha861@fox01.cs.utsa.edu"
] | dha861@fox01.cs.utsa.edu |
411ad6583c126a7921c2c44b6ea8f5cd407c757b | 2b106f5b8fca4ad998de1e2e7bc4d9f4b37a52cf | /models/payment.py | 4e21385b68306fd0db84887b22ac87e411432348 | [] | no_license | vimit/unknown_test | 8ee89e679edbc85bf999f05a03c2d286043b9dd1 | 519fb4e7df1f42ca3d6f759651dd5cff8380b2e6 | refs/heads/master | 2020-04-03T15:48:15.720976 | 2018-10-30T12:02:56 | 2018-10-30T12:02:56 | 155,378,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,595 | py | # coding: utf-8
import logging
import json
import pprint
import stripe
from odoo.tools import float_compare
from odoo import api, fields, models, _
from odoo.addons.payment.models.payment_acquirer import ValidationError
from odoo.tools.float_utils import float_round
_logger = logging.getLogger(__name__)
# Force the... | [
"imen1aissaoui@gmail.com"
] | imen1aissaoui@gmail.com |
2ed301967dcb7f052a8c51f56ef1b0bdc1ca357e | fa54359c670fd9d4db543505819ce26481dbcad8 | /setup.py | 4d01cb7c22b59ecad2520a5c62baf9bba188d3c2 | [
"MIT"
] | permissive | masasin/decorating | 4b961e7b2201b84a1cf0553c65e4d0c0768723d5 | c19bc19b30eea751409f727b03e156123df704e1 | refs/heads/master | 2021-01-20T16:35:43.333543 | 2016-05-18T08:22:48 | 2016-05-18T08:22:48 | 59,138,136 | 0 | 0 | null | 2016-05-18T17:43:23 | 2016-05-18T17:43:23 | null | UTF-8 | Python | false | false | 2,158 | py | #!/usr/bin/env python
# coding=utf-8
#
# Python Script
#
# Copyright © Manoel Vilela
#
#
from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
from warnings import warn
import decorating
try:
import pypandoc
except ImportError:
warn("Only-f... | [
"manoel_vilela@engineer.com"
] | manoel_vilela@engineer.com |
8939aa5cea12440890c866f83eaff3e3468a5fb9 | 9c79c683196e0d42b41a831a6e37bb520a75e269 | /bin/read_csv.py | cd747d2de7527220c0d51ccbc09642e1e551c460 | [] | no_license | YutingYao/crater_lakes | 7714cf64cd3649bd93b2c3cafcc8c73b4a3ff05b | b57ac0c18ce37b0f71f59fc8d254fa12890090ee | refs/heads/master | 2023-05-14T08:45:02.290369 | 2017-05-13T00:55:48 | 2017-05-13T00:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
read_csv.py
Created on Fri Feb 10 08:48:07 2017
@author: sam
"""
import os
import pandas as pd
import numpy as np
import datetime
def read_csv(target):
try:
os.chdir('/home/sam/git/crater_lakes/atmcorr/results/'+target)
df = pd.read_csv(target+'.cs... | [
"samsammurphy@gmail.com"
] | samsammurphy@gmail.com |
a2d87a579f235a85e00ad7c8ef8cd4e1a5debb94 | 240c851de3b7d6a2901795c7f5416f36f8dba693 | /config.py | f1d9d36c0716835a0f807e45d0bff36576245b1c | [] | no_license | gdao-research/2R_Manipulator_Learner | 4c27c39cd6507409de97099b1b5ee370c34a930f | 352451560bcfda757926d1cc52c2b5b0746f96fc | refs/heads/master | 2020-05-04T10:41:09.074975 | 2019-05-03T18:47:07 | 2019-05-03T18:47:07 | 179,093,108 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from collections import namedtuple
import numpy as np
_CONFIG = {
'PI': np.pi,
'tau': 1e-3,
'clip_norm': None,
'critic_l2_reg': 0,
'discount_factor': 0.9
}
Params = namedtuple(typename='Params', field_names=list(_CONFIG.keys()))
CONFIG = Params(**_CONFIG)
| [
"gdao.research@gmail.com"
] | gdao.research@gmail.com |
2b4c4bd221c3436ef813abb5f350b2c980230d2a | 626abe2cccd31c1560234be9eb142f3c710c9980 | /server/taskbot/views.py | 1bd308887288678131e189326f598b1a06abe700 | [] | no_license | arkross/lingtelli-console3 | 7a8fd74052030cffd8ce694c9dab14b28f2ebc6c | 37f30fc5d8675d4d0878934b3b5c78317f759740 | refs/heads/master | 2022-12-10T11:22:40.994730 | 2019-06-19T04:46:34 | 2019-06-19T04:46:34 | 192,843,924 | 0 | 0 | null | 2022-12-03T14:26:40 | 2019-06-20T03:43:26 | JavaScript | UTF-8 | Python | false | false | 7,341 | py | import json
from django.shortcuts import render
from django.utils.translation import gettext as _
from django.contrib.auth.models import User
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAdminUser, IsAuthenticated
from rest_fr... | [
"cosmo.hu@lingtelli.com"
] | cosmo.hu@lingtelli.com |
d78f0ff1ab306c956ad4bbd555dafdf870f3ac0c | 360f08a6381e5ab1b2552303e0b96826d43b7de7 | /photo/urls.py | d4d2434397ccb16dc4d3e8de9cfc27c462278fee | [
"MIT"
] | permissive | Mukantwarivirginie/Instagram | abc11d603ed56a957f926dcc477c252fdbd57c46 | 91cf561e696638ec0ef410cc6410b844cf9bc2e7 | refs/heads/master | 2020-05-01T00:52:55.502953 | 2019-03-29T10:52:29 | 2019-03-29T10:52:29 | 177,173,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py |
"""instagram URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"rwjpyy@gmail.com"
] | rwjpyy@gmail.com |
3b0d6a8455a25f85ab87e64585230366a5e647bc | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5744014401732608_0/Python/veluca/sol.py | bd10179fcb95ce05a54755b6ee878bca104f9dda | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #!/usr/bin/env pypy3
import sys
def solve():
B, M = map(int, input().split())
if M > 2**(B-2):
return "IMPOSSIBLE"
sol = [['0' for i in range(B)] for i in range(B)]
for i in range(B-1):
for j in range(0, i):
sol[j][i] = '1'
if M == 2**(B-2):
sol[0][B-1] = '1'
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
bbabbdcef1783b6b7165e01d98fb992458d41adc | 8667486b32cba50c348c3e8985191753776e16a2 | /Lesson-02 Assignment/subway_search.py | 9e587d112e6c7d8e0a8cb389febb94c79d6a8059 | [] | no_license | feiYang2008/NLP_Assignment | 93c39c0dd698e0bcac49f647d91150f949d4e1af | 6a0db31ec171e28bc56847b6904506933178363f | refs/heads/master | 2021-01-06T22:37:57.325409 | 2019-08-13T10:57:26 | 2019-08-13T10:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,126 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
import os
from collections.abc import Iterable
from collections import defaultdict
import collections
import math
import requests
from urllib import parse
import networkx as nx
from bs4 import *
import re
import matplotlib as mpl
mpl.use('TkAgg')
import matplotli... | [
"noreply@github.com"
] | feiYang2008.noreply@github.com |
d1441b012702f2751b0bea9934251ad4628a2b71 | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/ao/pruning/_experimental/pruner/prune_functions.py | c4c94e0887adf43ca07ec7018d1b5e9703519da6 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 18,831 | py | """
Collection of conversion functions for linear / conv2d structured pruning
Also contains utilities for bias propagation
"""
from typing import cast, Optional, Callable, Tuple
import torch
from torch import nn, Tensor
from torch.nn.utils import parametrize
from torch.nn.utils.parametrize import ParametrizationList
f... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
0938c39b0ade04e2c3360559d93681b6c6a32640 | 5f7ad776002f81da978d180e0cbea4588e6b8d70 | /manage/resources.py | 3e42553c0f588efa84bde8f978bf49fb12fad394 | [] | no_license | thesteamnetworkcom/ToastBackendR1 | 3b812779ccf779f0dd360c7165727a1dfbd643cb | cb7b412c7d6c9d78dcfbaf238a12e03055999293 | refs/heads/master | 2020-06-20T18:18:21.843322 | 2019-07-16T14:06:14 | 2019-07-16T14:06:14 | 197,205,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py |
from import_export import resources
from .models import Assignment
from .models import Complex
from .models import Crosswalk
from .models import PMTL
from .models import Detail
from .models import Equipment
from .models import Facility
class ComplexResource(resources.ModelResource):
class Meta:
model = Co... | [
"scottiemlewis1991@gmail.com"
] | scottiemlewis1991@gmail.com |
e0a83c4a6640aa9ae36b4004cd85e1a20fd7a84b | 28729bdabcb1c83429752bc15b14f2ac1950028f | /firmware/python_modules/newline2020/dashboard/launcher.py | e8effa148ddfacb867e2bcf5a634b515fa1095af | [] | no_license | badgeteam/ESP32-platform-firmware | 434020769b36df164fd1719b3bcf996851d55294 | 04282f7fe84ddd0f0c3887fa948da68a9ade8126 | refs/heads/master | 2023-08-17T07:07:51.048777 | 2023-08-14T20:53:37 | 2023-08-14T20:53:37 | 194,534,857 | 31 | 49 | null | 2023-08-15T21:00:09 | 2019-06-30T15:59:30 | C | UTF-8 | Python | false | false | 20 | py | terminal/launcher.py | [
"renze@rnplus.nl"
] | renze@rnplus.nl |
57fbff89c04d7446cff424581cf47b00d74c7634 | 29c1600023fac94f1fc14c580e84ad603e37d12f | /gm_work/gm_work/settings.py | 4847fba777a9f1e27e964e9c871015dd7443d6a3 | [] | no_license | kingking888/scrapy_spider-1 | 33fb084b46617bd750273c471ed851cc5cf39c4a | 348402430d116eff53eb77761f618654f74a287f | refs/heads/master | 2022-07-04T11:04:15.564883 | 2020-05-16T14:47:58 | 2020-05-16T14:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,369 | py | # -*- coding: utf-8 -*-
# Scrapy settings for gm_work project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/top... | [
"xuchao0802@aliyun.com"
] | xuchao0802@aliyun.com |
b738f11079341122d83b2768d0c53eee79af3968 | 93df2cc5bb5ecc1a36bc6c900c9d9e4850833d54 | /cbrGui4.py | 3776d2976217fa715ff6831e1f26b5b3739055e8 | [] | no_license | Ramonahydoin/cbrPethon | 699e1fa5fddc43dc8e950a8e8aedcdfb1ebf5feb | 501f53940615b204794e68cbfb403f0df9e5fe51 | refs/heads/master | 2021-05-27T14:35:14.880925 | 2014-05-28T00:24:43 | 2014-05-28T00:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,775 | py | import fileOps,math
from Tkinter import *
from simMetrics import *
from collections import defaultdict
products = fileOps.openCsv("products.csv")
newOrderDict = {}
customerProducts = []
prodArr = []
amountArr = []
orderSimilarity = {}
similarityThreshold = 0.3
#similarityThreshold = raw_input('Enter threshold:')
stat... | [
"jtaylor1205@hotmail.co.uk"
] | jtaylor1205@hotmail.co.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.