blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.com |
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 |
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 |
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 | |
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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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"
] | 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 |
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"
] | noreply@github.com |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
778b5ec5834ff92e0543076176b311dae05ffe3b | e5cc31d7a1cd2bf662e792cf55325f9b93b0405c | /ip_canny_edge.py | 28102b0adb865b84009c49c6c01ffb4b6a19947d | [] | no_license | ericrom1228/Canny-edge-image-maker | b0fa8f9ce3173a3999f000c2cd792b2526cdcc89 | 05a3623a65c12d75b3ef76b10062ea63cecd32c6 | refs/heads/master | 2020-09-17T08:33:41.393772 | 2019-11-25T22:42:01 | 2019-11-25T22:42:01 | 224,055,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
def nothing(x):
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"
] | 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"
] | noreply@github.com |
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"
] | noreply@github.com |
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 |
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 |
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 |
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 |
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 |
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 |
1528c695e6d9d88403930b883ec3be56309b17c3 | 86f99a5835a7dda2f80d951bfee77000686274df | /lib/python/invenio/bibauthorid_webapi.py | 59fbbf98fb5984957e1c50042b2dc0af6412eeaf | [] | no_license | tomas44444/augustsedlacek | e8e99ac591f3d85d7bb5c20d08686682d6e1a859 | a47084a0ef7aa6c5dd8d34a9322b2b97528db904 | refs/heads/master | 2021-01-10T02:39:26.089821 | 2013-02-26T13:07:16 | 2013-02-26T13:07:16 | 8,431,012 | 0 | 1 | null | 2020-07-26T09:14:50 | 2013-02-26T11:19:50 | Python | UTF-8 | Python | false | false | 37,101 | py | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2011, 2012 CERN.
##
## Invenio 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 2 of the
## License, or (at your opt... | [
"root@tomasp-AMILO.(none)"
] | root@tomasp-AMILO.(none) |
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 |
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 |
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 |
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 |
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 |
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 |
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 | |
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 |
31e556001e587936a0ac18a2f7b0b4c686c3554e | f4713505e4647059cdfce9c1a7958ca823c763e8 | /Evaluacion/settings.py | 4dd3da306597120783da47d8b166ec623a367a39 | [] | no_license | iv-castrom/mi-primer-blog | 8591e38c6cf85f3a90dd5ae46c63959b2e29948e | d07bb0f55e5c529b9b2ce00e2808512875e14163 | refs/heads/main | 2023-02-03T04:38:17.820041 | 2020-12-10T21:04:03 | 2020-12-10T21:04:03 | 320,385,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,930 | py | """
Django settings for Evaluacion project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import o... | [
"iv.castrom@alumnos.duoc.cl"
] | iv.castrom@alumnos.duoc.cl |
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 |
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:
>
>
> 
# Force the... | [
"imen1aissaoui@gmail.com"
] | imen1aissaoui@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"
] | noreply@github.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 |
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 |
48e1529066f8dbe0f7cb66b9ea9b63486d1af790 | 1350e9518c6f86f38b926482524f4d841cbff9cb | /src/train.py | 0a760468cb83c24af424875a2792494e7610849f | [
"MIT"
] | permissive | popcornell/SLOCount | 1f6d66a457c8aad25c857350a9b95821ba889076 | 62d52c9141ba8def92408d54ba6a644b9df7f910 | refs/heads/master | 2020-09-12T13:38:56.819755 | 2019-11-18T12:23:22 | 2019-11-18T12:23:22 | 216,560,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,651 | py | import os
import math
import numpy as np
import torch
import traceback
from .assets import Binarymetrics
from .eval import validate
from .architecture import get_SLOCountNet
from torch.nn.parallel.data_parallel import DataParallel
from tqdm import tqdm
def train(args, pt_dir, chkpt_path, trainloader, devloader, writ... | [
"cornellsamuele@gmail.com"
] | cornellsamuele@gmail.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 |
38d9677de9ff7235b683e4a76b6e63e57c6f331d | 6ec824faaf74373f659f6066855780ae875b6e43 | /cs234/assignment3/tests/test_basic.py | 54ce6d641eb803b11168e96a2e89a41d98d17017 | [] | no_license | Felipebpm/stanford | 3a0c5c29010bf8e2fe7ef177eac13f8fdd010e69 | 50063ed6cb81633b9f7eaba815f445c4c5581550 | refs/heads/master | 2023-04-06T04:33:14.984324 | 2020-02-25T23:31:00 | 2020-02-25T23:31:00 | 232,892,974 | 0 | 0 | null | 2023-03-25T00:07:34 | 2020-01-09T19:54:32 | JavaScript | UTF-8 | Python | false | false | 6,605 | py | import unittest
import code
from code.baseline_network import BaselineNetwork
from code.policy_network import PG, build_mlp
from code.config import get_config
import gym
import tensorflow as tf
import numpy as np
import builtins
# Suppress unnecessary logging
# gym.logging.disable(gym.logging.FATAL)
builtins.config =... | [
"fbommfim@gmail.com"
] | fbommfim@gmail.com |
da9eb822f0f6cf4952572b117f55847e834f20fe | 20c3dd44dd972ee30b497f56cad323149a9d858e | /app/migrations/0001_initial.py | ce6a4c502b9182a080d8e7daa5aab0e7da409481 | [] | no_license | DiegoIDSUP/EcommerceBack | 7e05b0620edfb9d255db423a048c1f17b3eb459c | e13866cedb5242c115032cdb9ad5abb89a2ce1f3 | refs/heads/master | 2023-01-31T16:38:06.703807 | 2020-12-07T14:36:05 | 2020-12-07T14:36:05 | 319,347,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,385 | py | # Generated by Django 3.1.1 on 2020-12-04 10:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"153241@ids.upchiapas.edu.mx"
] | 153241@ids.upchiapas.edu.mx |
86a9f5d001803a950a30cb45d165d8bdf3b2c778 | 4b5cbd729da144a8160819c7f1462d8fd2669278 | /next_higher_number.py | a943da59d5f7197709d098ef599da91e569457cf | [
"MIT"
] | permissive | DavidEnciso/tests | 0f15fc3115bb4374745a247479cbbb728a92e328 | 414c0dd2dec8ace46dc50f07eccf8ebde0ee6be0 | refs/heads/master | 2021-01-01T18:01:04.991360 | 2017-07-24T19:36:52 | 2017-07-24T19:36:52 | 98,227,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | a='12345'
def flip(s, p1, p2):
#print('b:',s)
sd = dict(zip(list(range(len(s))), s))
#print('dict:', sd)
i1 = s[p1]
i2 = s[p2]
sd[p2] = i1
sd[p1] = i2
ret = ''.join(sd.values())
#print('a:',ret)
return ret
def nx(r):
#flip first
o = r
l = len(r)-1
print("back")
... | [
"noreply@github.com"
] | noreply@github.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 |
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 |
57c5c07684f1156339e34ede349eefac95e8db9e | 88ed4cedb817f94a7ae907e6a671befc89de4bdc | /nbr/views.py | 24e59a5f6cecf6850bc1e7b1dfff3481307c80ed | [
"MIT"
] | permissive | johnmwangi/Nbr_Hood | 0f2ac0a3177b6164c06d29694774a5743a68a6c9 | 7a4be73db001560a2a17f37166a544381fe07581 | refs/heads/master | 2022-12-03T07:27:40.465021 | 2019-06-03T07:07:29 | 2019-06-03T07:07:29 | 189,603,564 | 0 | 0 | MIT | 2022-11-22T02:56:59 | 2019-05-31T14:02:48 | Python | UTF-8 | Python | false | false | 7,355 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse, Http404, HttpResponseRedirect, JsonResponse
from django.contrib.auth.decorators import login_required
from .models import *
from .forms import *
from django.contrib.auth import login, authenticate
from django.contrib.... | [
"jonesmwas356@gmail.com"
] | jonesmwas356@gmail.com |
51b714d6e10f7256f6b381c9426b24b34e89579b | 9214105eb9e1622f49093b48400955e8cda7bee8 | /assignment1/cs231n/classifiers/softmax.py | d17ec60b37f45a7a1a9c34b07a7e1668ab14e98a | [] | no_license | beefinbj/CS231n | 5ea5798bf5b9e9e202e4ec09e2f3098ec389a7cf | e133f27ff114d7a2da3298c242a5a47e71a76c88 | refs/heads/master | 2021-08-29T04:41:45.691756 | 2017-12-13T12:07:11 | 2017-12-13T12:07:11 | 114,067,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | import numpy as np
from random import shuffle
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of shape (D, C) containing weights.
- X:... | [
"angus.ning@yahoo.com"
] | angus.ning@yahoo.com |
cec7c19376dd2dd84269594743f4ce3fc83a2cda | 45712328b046b5c5ea8a28e76d77ce353d43b94e | /in_Python/02-week/Efficient Algos/08-Last digit of sum of squares of fibonacci number-Efficient Algo.py | e5b745c223dfdeef19e417c19d71dcc0c850daee | [] | no_license | abdulwahid40/Data-Structures-and-Algorithms | 6259a67811da51c0691e3b0d7e2b678f636ab059 | 5823ac2c4018960ccf4b00ced4a92b35838017ee | refs/heads/master | 2022-11-25T23:26:34.594058 | 2022-11-14T16:48:27 | 2022-11-14T16:48:27 | 251,221,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 6 00:46:56 2020
@author: Abdul Wahid
"""
def pisano_period(m):
previous = 0
current = 1
for counter in range(0, m*m):
previous, current = current, (previous + current) % m
if previous == 0 and current == 1:
return counter + 1
... | [
"abdul.wahid1257@gmail.com"
] | abdul.wahid1257@gmail.com |
cabbb422a3ca7bc2796e7304b97b475d7a2b5d6b | a8a8d889e640c16eaccca3f813d9600c678fec50 | /tail_weight_comp.py | 408f398114b1499777b2996e43e8f97de16f6a29 | [] | no_license | nmohdkha/triton_eye | dee1370e294ff71f83689f9989cfe87fc33d5a85 | 79daba711db834c2261e5d03c891f889c8cea9c2 | refs/heads/master | 2020-05-23T09:04:07.071119 | 2019-05-25T20:19:31 | 2019-05-25T20:19:31 | 186,701,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import numpy as np
from openmdao.api import ExplicitComponent
class TailWeightComp(ExplicitComponent):
def setup(self):
self.add_input('S_t')
self.add_output('W_Tail')
#self.declare_partials('W_LG','W_0)',method='cs')
def compute(self, inputs, outputs):
S_... | [
"noreply@github.com"
] | noreply@github.com |
a9eca2d20dd542ef6aa215bdf112c85e1995dacc | 604402249f2ceb44153492e39959afc6dcd1e5d3 | /TextEdit.py | 888da59938d21aa50a3a0db4fd01f52bbde17c3a | [] | no_license | Sreeram2006/My-Python-Projects | 512ed03b8f9c2bbf24329394b053266d78d6c45a | 5b3365004597809e1319c1b30dc5d1f82d266bda | refs/heads/main | 2023-05-22T15:23:58.343964 | 2021-05-26T12:52:58 | 2021-05-26T12:52:58 | 371,031,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | from tkinter import *
from tkinter import filedialog
from tkinter import font
root = Tk()
root.title("TextEdit")
root.geometry("1200x660+0+0")
def new_file():
my_text.delete("1.0", END)
root.title('New File- TextEdit')
status_bar.config(text="New File ")
def open_file():
my_text.d... | [
"noreply@github.com"
] | noreply@github.com |
7fe6f3939974f57cf54ee1ec2edd52ceee019a19 | 1a559ace834d300aca6cde608ac9351032d4cd2e | /populate_rango.py | b3a91a7ecc126bedb52b90155a01ca50008142ec | [] | no_license | akilud/TangoTest | d9af5976c47e18056588c641c1aba8d249118a52 | 759cf7567318645f42e07c13c4e52874a7c164cd | refs/heads/master | 2021-01-01T05:05:22.712421 | 2016-04-22T03:12:40 | 2016-04-22T03:12:40 | 56,822,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Tango.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_cat = add_cat('Python',views=128,likes=64)
add_page(cat=python_cat,
title="Official Python Tutorial",
url="http://docs.pyth... | [
"akilud@gmail.com"
] | akilud@gmail.com |
6484c408d3f3b2c47a03d92785378350e8552ecb | f8ac9081d4bfcb5ae0ed4d7e194a023805541d34 | /accounts/tests/test_models.py | 06adb66d899e641874b5a812eda1ff4ff76971e7 | [] | no_license | cmermingas/tddbook | 9327a2710c3d678bd1645b2f1d8cd711580cddd0 | a957c5be16a408ecba326550d4564b8987de6dbe | refs/heads/master | 2020-12-24T19:46:55.455074 | 2016-05-14T19:03:03 | 2016-05-14T19:03:03 | 58,326,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
User = get_user_model()
class UserModelTest(TestCase):
def test_user_is_valid_with_email_only(self):
user = User(email='a@b.com')
user.full_clean() # Should not raise
def test_email_is_primary_key(self):
us... | [
"cmermingas@gmail.com"
] | cmermingas@gmail.com |
76e33f62e127998784a07731521e6ef615bc9c7e | df432760949b3e64bd73f363b92f82871c51ab4f | /sem15-code_clube-porta_da_fortuna-desafio03-perdendo_o_jogo.py | 738ac379fdf4222413059a5979583f8ee2c79805 | [] | no_license | AzzyOxx/pec-atividades | d3a37ecc2156e8682f90941bdf89da8b5dda435c | 3a89c1135de3caf0a19cffbf6142ca28ca012295 | refs/heads/master | 2023-05-31T15:26:29.938246 | 2021-07-06T23:48:27 | 2021-07-06T23:48:27 | 370,512,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | from random import *
def desafio_perdendo_o_jogo():
#imprime as três portas e as instruções do jogo
print('''Porta da Fortuna!
=========
Existe um super prêmio atrás de uma dessas 3 portas!
Adivinhe qual é a porta certa para ganhar o prémio!
_____ _____ _____
| | | | | |
| [1] | | [2] | ... | [
"catce.2021111mtds0316@aluno.ifpi.edu.br"
] | catce.2021111mtds0316@aluno.ifpi.edu.br |
cd5826257d8650a010bad89f2914a65cba719f9e | 5c019f5d465436a752cfc29f33353453e79c7e76 | /backend/mall/goods/goods_model.py | 55016886eba8f0016ad3173cef6e0404ad42613e | [] | no_license | mminhou/mall | 262110bcd802cadaa234758f192bffd15dfdb5c8 | 6261a15efa9a1ecba70263e17991e1f30608257d | refs/heads/master | 2021-09-12T13:21:13.552284 | 2018-04-17T07:39:55 | 2018-04-17T07:39:55 | 100,087,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from django.db import models
from mall.category.category_model import HighCategory, LowCategory
class Goods(models.Model):
style_num = models.IntegerField(primary_key=True)
high_category = models.ForeignKey(HighCategory, related_name="Goods", on_delete=models.CASCADE)
low_category = models.ForeignKey(LowCa... | [
"alsgh1003@hanmail.net"
] | alsgh1003@hanmail.net |
c7f7dc9027e7c74dc467b0c29e884e7db7d62e4f | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/brocade_mpls_rpc/show_mpls_lsp_name_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_instances_info/lsp_instances/lsp_rsvp_session_rro_hops/show_mpls_lsp_hop_list/hop/__init__.py | 96131278f35a517493f7e62b5cba8e2907096906 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,501 | 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... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
33fa1f4b99a1258ca7464dad27008d7d33f81f0c | 75d258d0cc8b07134a3db656a16e8c27557e3572 | /n42_m14/circuit_n42_m14_s1_e6_pEFGH.py | b795237a2e1f2c51ab0b0c43db3ac209a29f512b | [] | no_license | tonybruguier/martinis_et_al_data | 7c5acee8cb18586607c0ffdc25bc9b616e0847be | 1a35e6712c5bd4b48ef0027707b52dd81e5aa3f3 | refs/heads/master | 2023-02-23T09:36:24.179239 | 2021-01-24T20:23:04 | 2021-01-24T20:23:04 | 332,266,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138,500 | py | import cirq
import numpy as np
QUBIT_ORDER = [
cirq.GridQubit(0, 5),
cirq.GridQubit(0, 6),
cirq.GridQubit(1, 4),
cirq.GridQubit(1, 5),
cirq.GridQubit(1, 6),
cirq.GridQubit(1, 7),
cirq.GridQubit(2, 4),
cirq.GridQubit(2, 5),
cirq.GridQubit(2, 6),
cirq.GridQubit(2, 7),
cirq.Gri... | [
"tony.bruguier@gmail.com"
] | tony.bruguier@gmail.com |
664508da8d95fe0b4e34ddd2e210b0035ce7fab8 | 1e0203f40d4cffed0d64449edeaea00311f4b732 | /minimum-cost-to-move-chips-to-the-same-position/solution.py | 88a9a03183306b9e7d560942705966f3b87e3842 | [] | no_license | childe/leetcode | 102e87dd8d918877f64e7157d45f3f45a607b9e4 | d2e8b2dca40fc955045eb62e576c776bad8ee5f1 | refs/heads/master | 2023-01-12T01:55:26.190208 | 2022-12-27T13:25:27 | 2022-12-27T13:25:27 | 39,767,776 | 2 | 1 | null | 2020-10-13T01:29:05 | 2015-07-27T10:05:04 | Python | UTF-8 | Python | false | false | 698 | py | #!/usr/bin/env python3
"""
https://leetcode.cn/problems/minimum-cost-to-move-chips-to-the-same-position/
1 <= position.length <= 100
1 <= position[i] <= 10^9
"""
class Solution:
def minCostToMoveChips(self, position: list[int]) -> int:
"""
>>> s=Solution()
>>> s.minCostToMoveChips(positi... | [
"rmself@qq.com"
] | rmself@qq.com |
3cb04f968561e9aa25f6ab04a58640de1dca4fd9 | 5797109b344053721f354b8cd8bd654307068527 | /a4/loop-same-line.py | 30c645cc04e0a9633c40591edc1b20d47963eead | [] | no_license | susanphone/csci107-assignments | 9135b87fac8ef74f105e5aa87be6898e16a5075c | 0f2f0173d26e52667a48940c1b30a31b5b90e87b | refs/heads/master | 2021-08-17T11:46:21.814547 | 2020-01-12T03:31:42 | 2020-01-12T03:31:42 | 219,920,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | string_asterisks = input("Ener the number of asterisks: ")
asterisks = int(string_asterisks)
asterisks = int(input("enter the number of asterisks"))
print("*" * asterisks)
#same as above.
"""
line_of_asterisks = ""
for asterisk in range (asterisks):
# line_of_asterisks += "*" <----- same as one below
line_of... | [
"susan.a.mccartney12@gmail.com"
] | susan.a.mccartney12@gmail.com |
86926e47b54c38a35829cb0b930686dcdfe099c0 | c5a5bcdbb63869465107156cfe2f03da2c7fb8f7 | /Smoke_test_automated/features/pages/student_unenroll_page.py | b75c3bf4c809235adaafe0bc66b72eef1c12e0fb | [] | no_license | Jogues/SmokeTest | dbebadd57fc65f7cd93fbdac0c87b8a4ac5ca875 | 615363199eada0af6503d6dac9465d4445e19481 | refs/heads/master | 2021-04-09T10:20:23.488841 | 2018-03-15T07:00:55 | 2018-03-15T07:00:55 | 107,356,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
import time
#locators
settingButton = (By.CSS_SELECTOR, '#actions-dropdown-link-0 > span.fa.fa... | [
"noreply@github.com"
] | noreply@github.com |
3242f88ecdf9093acc3e2f8932964d234244f5dc | 0c83546e55b8e3a0f0ce28e69541d2f79d093909 | /transfer.py | 0f14e40f75b60d8d745039d14d6ae66d0acc9882 | [] | no_license | monaanvari/Neural-Style-Transfer-Reddit-Wallpaper | e6a579e7afebe6d60ee77c3feec60b063f18cd2c | 859eecad6f0cbc4f95a1017005b3c8f937c5fcd8 | refs/heads/main | 2023-02-09T01:37:53.686299 | 2020-12-29T22:31:07 | 2020-12-29T22:31:07 | 325,150,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py |
'''built using tensorflow's style transfer tutorial'''
import os
import time
import PIL.Image
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import tensorflow as tf
from os.path import expanduser
home = expanduser("~")
content_layers = ['block5_conv2']
style_layers = ['block1_conv1',
... | [
"mona@DN0a1e4bc1.SUNet"
] | mona@DN0a1e4bc1.SUNet |
e47531fea5a7ce4506ea4da759be3bf3eac25158 | b99f3fc079b092aae8c58438ea5ff3d5517619f7 | /DailyProgrammer/AnagramDetector.py | 3ab27179b41fc2fcd4f1631f75abffad1b5cec90 | [] | no_license | billykeyss/CodingQustions | 46eeced13275cd9e98c0c7eb91f31bc07f43f688 | f64427287e7497af6dd1b8481ab70c71913f174e | refs/heads/master | 2022-05-10T05:24:32.089050 | 2022-05-06T01:50:00 | 2022-05-06T01:50:00 | 59,133,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # You'll be given two words or sets of words separated by a question mark. Your task is to replace the question mark with information about the validity of the anagram. Example:
# "Clint Eastwood" ? "Old West Action"
# "parliament" ? "partial man"
#
# "Clint Eastwood" is an anagram of "Old West Action"
# "parliament" i... | [
"billhuang@live.ca"
] | billhuang@live.ca |
0fd7fb6a397224ee474e35019801fe163bad38be | 41e9702da8b5d5eba67b4df1a31cdf072bdf99c5 | /Basic_Python/EighthClass_Lambda.py | fb22b5a532a750a424dd4149081274a2e2ad0533 | [] | no_license | Rapha-Y/My_Python_Studies | b72badc3f02ca80e6e57556cee13066a9630baa0 | 8c45fed56eb8ab9b3e38ba05a19d3c2008b256e3 | refs/heads/master | 2022-09-26T00:31:36.104303 | 2020-06-01T17:38:29 | 2020-06-01T17:38:29 | 267,406,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | word_counter = lambda item_list: [len(i) for i in item_list]
fruits = ["Caju", "Morango", "Melão", "Pêssego", "Pitaya"]
print(word_counter(fruits))
sum = lambda a, b: a + b
print(sum(5, 10))
calculator = {
'sum': lambda a, b: a + b,
'sub': lambda a, b: a - b,
'mul': lambda a, b: a * b,
'div': lambda ... | [
"raph.yuki@gmail.com"
] | raph.yuki@gmail.com |
6b55598316455e43f008e4b6dad8851ba4ed3aa7 | e9a3f4a6f8828597dae8af8ea318b444af1798ba | /mag_ng/users/migrations/0003_auto_20200818_0517.py | f4d959172de433cee25454c2887bbea24208b12e | [] | no_license | kinsomaz/Online-Magazine-Website | c4a0b3b067a28202763a3646e02db9355e2e98a7 | dbb02225af2202913ea7dcc076f5af0052db117c | refs/heads/master | 2022-12-04T00:46:31.619920 | 2020-08-21T12:53:58 | 2020-08-21T12:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # Generated by Django 3.1 on 2020-08-18 04:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20200818_0506'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='username',
... | [
"alameenraji31@gmail.com"
] | alameenraji31@gmail.com |
2a653c6e01d45ec49bc2116acff021a462af90df | 5c4f7d36cfb3fe1791dfefa5a679bcc5e784490d | /tp2/tabla_5_zotenko_analisis.py | a205b6fdf2e72601f0133370340bd72f88d7f15c | [] | no_license | CarlosAndresRiosChavez/ProyectoRedes | 1ac43dbfe380ef696594c1dd1dab59bd98888914 | eb91bbf1f64e886664799d3d28e2d9facba95ae4 | refs/heads/master | 2020-03-27T05:38:34.377184 | 2018-12-05T15:52:12 | 2018-12-05T15:52:12 | 146,036,730 | 0 | 0 | null | 2018-09-24T16:18:48 | 2018-08-24T20:26:50 | HTML | UTF-8 | Python | false | false | 4,617 | py | from __future__ import division
import networkx as nx
import numpy as np
def ldata(archive):
f=open(archive)
data=[]
for line in f:
line=line.strip()
col=line.split()
data.append(col)
return data
# archivos de redes
file_y2h = "./dataset/yeast_Y2H_curado.txt"
fil... | [
"noreply@github.com"
] | 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 |
de3776c915a726bc67fd41a7bfba4a7611cdb4b0 | 804bcf4e04aba101440786cdc42db5fa8b818f76 | /new_api/api/article.py | e4502a844769e7bd7091bc757389d90b24d33a1a | [] | no_license | guateam/LabGuide | 481d962139ba182db47faab0f013f8f9e6eefdcf | 75a1162bac10742e7c0d88f85b4ea8acf658753e | refs/heads/master | 2022-11-21T19:08:25.054258 | 2020-04-14T07:01:29 | 2020-04-14T07:01:29 | 186,096,911 | 2 | 0 | null | 2020-07-30T15:01:16 | 2019-05-11T06:33:44 | Vue | UTF-8 | Python | false | false | 6,946 | py | from flasgger import swag_from
from flask import Blueprint, request
from new_api.db import database
from new_api.rights_control.models.AddAllArticle import AddAllArticle
from new_api.rights_control.models.AddAllArticleTag import AddAllArticleTag
from new_api.rights_control.models.AddArticle import AddArticle
from new_... | [
"zhangyu199946@gmail.com"
] | zhangyu199946@gmail.com |
4dac548217bff8aa8e8c3333e5616a4dec3b1b16 | e04183c57141b34a4b82aa94542bb5b6e5c666db | /f04_python_code/pyvista_learning/pyvista_01_uniform_grid.py | c247c816a182d8e532f70f5204b6c01225585930 | [] | no_license | ivandudkov/dynamic-surface-class | ac32758e7ea057bc451f24ea0c7831c11efeef8b | 6e58beefe884f312f55ea9460a629568529994ee | refs/heads/main | 2023-07-15T02:15:14.606915 | 2021-08-30T14:41:49 | 2021-08-30T14:41:49 | 386,748,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | # PyVista tutorial
# https://www.youtube.com/watch?v=FmNmRBsEBHE&ab_channel=SoftwareUnderground
# https://github.com/banesullivan/transform-2021
import numpy as np
import pyvista as pv
# 1. Let's create 3D numpy array
# To do that, firstly we create 1D array of values
values = np.linspace(0, 10, 1000)
# And after co... | [
"72301964+Spood-UR@users.noreply.github.com"
] | 72301964+Spood-UR@users.noreply.github.com |
cafd16de8f3a991bc1f93e7117a77c4e815657f0 | ea2bb35913e63c8a54b53a050c2ffe8067ab52e1 | /panepinto/collect.py | 42938746c2c7df6a986d4e6bf33d89cfc17363c8 | [] | no_license | jamesaoverton/obi-panepinto | 25250dfe809422423af5470126108f6eebfeea58 | 5a81d856ab4189b1b0bfcd2bed86476947b02d18 | refs/heads/master | 2021-01-01T03:44:33.641612 | 2016-05-13T14:57:27 | 2016-05-13T14:57:27 | 58,749,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/env python3
import argparse, csv, re
def main():
# Parse arguments
parser = argparse.ArgumentParser(
description='Collect labels and terms from a HOWL file')
parser.add_argument('howl',
type=argparse.FileType('r'),
help='a HOWL file')
parser.add_argument('table',
type=argpar... | [
"james@overton.ca"
] | james@overton.ca |
a95ad2492276f677f3e6732dccda73ecd536c253 | 040a669f8d27bcf62374e8ae5ce2a2b93a55f681 | /tests/test_new_user.py | ff99bb5887702db7ae3a47122187c770bc4c034d | [] | no_license | Pietertjie000108/Coding-Clinic-Booking-System | 5f31e6b48a15c2c82139c1960419c7903ee70795 | d1ad0a57b52b086b3ffd110c0a99dbe72e8c5afd | refs/heads/main | 2023-01-29T06:45:46.338705 | 2020-12-12T20:21:04 | 2020-12-12T20:21:04 | 309,633,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import sys, os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
import unittest
from authenticator.new_user import new_username, password, validate, user_and_pass
class Test_new_user_creation(unittes... | [
"67334887+Bubbles1206@users.noreply.github.com"
] | 67334887+Bubbles1206@users.noreply.github.com |
ef769a8b18d70bdc17a21f8b9b959edcf4ea4e8c | be74e1dbaab580a7e4024a595958d1893469863a | /Python/LetterTilePossibilities.py | 4b6263e334207669ea238fa51c1426960635c806 | [] | no_license | super0xie/Solution | 0392b2577c31415c60ebcbeedb3dedcb01c66f02 | d028c2d076b1136ee30673faae5844954674961d | refs/heads/master | 2021-06-21T12:34:40.968649 | 2020-12-06T05:27:34 | 2020-12-06T05:27:34 | 130,928,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | class Solution:
f = [1, 1, 2, 6, 24, 120, 720, 5040]
def numTilePossibilities(self, tiles: str) -> int:
map = {}
for i in range(len(tiles)):
if tiles[i] in map:
map[tiles[i]] += 1
else:
map[tiles[i]] = 1
count = []
for i in... | [
"sxie@alpine-la.com"
] | sxie@alpine-la.com |
d8aa1cf989be9f934534f4189d386207d403ad6d | 12101c4a2c3aeb8eca88c3db89af2aed69208190 | /stream_test.py | 698e377c1c98591f36d05601127cd6987d8f45ad | [] | no_license | BitFloyd/VisBiz | 8085d7f9e32c8fd9b9b66d309f62a889d87f778a | 9b0bcb99091b9845dbaaf3be1b4cd6e8bb2b2c67 | refs/heads/master | 2021-05-09T15:16:21.786198 | 2018-01-31T20:31:32 | 2018-01-31T20:31:32 | 119,087,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | import cv2
from classico.faces import FaceDetector as FD
import os
cap = cv2.VideoCapture(0)
fd = FD(face_cascade=os.path.join('..','data_folder','haarcascades','haarcascade_profileface.xml'),
face_profile_cascade=os.path.join('..','data_folder','haarcascades','haarcascade_frontalface_default.xml'),
ey... | [
"sby.jcub@gmail.com"
] | sby.jcub@gmail.com |
7acc20e556f673db572b0311c98a3a3398d490bd | f8cc4185ae04a926b05eaa6ff1c77d36f082dfae | /Python/Fundamentals Practice/MultiplesSumAverage.py | 0de0d4b18f6216bf6bd8a6cb6f45cbacff0fd15e | [] | no_license | KMA91/DojoAssignments | 9a51edcb2eec224ea8e7f73e3789ce791b464865 | c7b06b059e397c280fe17e341dc35c4123502344 | refs/heads/master | 2021-01-22T23:27:02.908845 | 2019-04-11T08:04:29 | 2019-04-11T08:04:29 | 85,640,158 | 0 | 0 | null | 2017-08-22T19:11:54 | 2017-03-21T00:13:20 | null | UTF-8 | Python | false | false | 221 | py | #Part 1
for count in range(1, 1001, 2):
print count
#Part 2
for count in range(5, 1000001, 5):
print count
#Sum List
a = [1, 2, 5, 10, 255, 3]
sum = 0
for i in a:
sum+=i
print sum
#Average List
print sum/len(a) | [
"kevinma91@yahoo.com"
] | kevinma91@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.