blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3040254d9e002106e561ff20aa92098f99b38eee | 6e77e4956005e3c0906dd9bc78e17026293d26a7 | /manage.py | e7b080c346adb3fef80260f72f6ab15f452d031d | [] | no_license | lenines/djangoAD | 191bdc4ebbdaa2ba5aa86e6bda55daff39cda4f6 | 11b8f1396e75592ff9c0d8f80610c87ea3d5c148 | refs/heads/master | 2020-06-04T22:39:54.490867 | 2014-05-14T18:35:25 | 2014-05-14T18:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoAD.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"lenines.cueva@gmail.com"
] | lenines.cueva@gmail.com |
c4029a02879afac1579de64ece60784d40003ce5 | 7144d29d32343bd35a9fc9f169fed0eac9817a14 | /banner/urls.py | cc4af951984d3a6f49e0bf9b27b2585654f2dee8 | [] | no_license | spectatorqq/backstage-management-system | 3f030f6f42311d81bdccb931581c02f2dca2171b | 5086e97a65cead40e30426ed3c551c9378b57068 | refs/heads/master | 2020-09-20T04:00:43.718967 | 2019-11-27T08:42:12 | 2019-11-27T08:42:12 | 224,371,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.urls import path
from banner import views
urlpatterns = [
path('save_banner/', views.save_banner),
path('show_current_page/', views.show_current_page),
path('edit_carousel/', views.edit_carousel)
] | [
"463126405@qq.com"
] | 463126405@qq.com |
779f02e54dec316aae91f2c3db6455f6aea08182 | 4f718b014cd56215979a466c2ef3f2b6a82fbec1 | /venv/Scripts/django-admin.py | 600fb92973f9ab329362ba0bd7cd953c944b9382 | [] | no_license | carminejcorbo/CS416FPDeployment | 8a9bc9567ac8cc09a76b863ac76a6e8ccce87bbb | 58ffb539ee24fc870cb89a74cf10d8dbef8aa34a | refs/heads/master | 2023-02-23T03:52:28.575863 | 2023-01-04T19:00:41 | 2023-01-04T19:00:41 | 225,298,683 | 0 | 0 | null | 2023-02-07T21:23:27 | 2019-12-02T06:10:49 | Python | UTF-8 | Python | false | false | 164 | py | #!C:\Django Workspace\FreshShirts\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"Carmine.j.corbo@gmail.com"
] | Carmine.j.corbo@gmail.com |
09976773a29250a9dfcd0ec12efbc745d44041f3 | 8750c559722f1dc63d31f2df293a7d4feb71fc09 | /molotov/tests/test_slave.py | b6e47aa94ec42664075fa8dd0387322de09b4ed6 | [
"Apache-2.0"
] | permissive | ymoran00/molotov | 4f8017a90fd71c412f08355db98c72ea106ae8bf | 2533d9653160845bd9a40defcf2e39810ad80215 | refs/heads/master | 2020-08-17T22:00:31.724709 | 2019-12-16T09:53:11 | 2019-12-16T09:53:11 | 215,716,155 | 0 | 0 | Apache-2.0 | 2019-10-17T06:11:04 | 2019-10-17T06:11:03 | null | UTF-8 | Python | false | false | 1,123 | py | import os
import pytest
from molotov import __version__
from molotov.slave import main
from molotov.tests.support import TestLoop, dedicatedloop, set_args
_REPO = "https://github.com/loads/molotov"
NO_INTERNET = os.environ.get("NO_INTERNET") is not None
@pytest.mark.skipif(NO_INTERNET, reason="This test requires in... | [
"tarek@ziade.org"
] | tarek@ziade.org |
fdbc22579dbfd729a9c7cf738cd5dbd3f54004a6 | 2eae961147a9627a2b9c8449fa61cb7292ad4f6a | /test/test_migration_tax_return.py | 5ba3369f4cd1b2ccbec9996ca4e1a387c408f536 | [] | no_license | kgr-eureka/SageOneSDK | 5a57cc6f62ffc571620ec67c79757dcd4e6feca7 | 798e240eb8f4a5718013ab74ec9a0f9f9054399a | refs/heads/master | 2021-02-10T04:04:19.202332 | 2020-03-02T11:11:04 | 2020-03-02T11:11:04 | 244,350,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,941 | py | # coding: utf-8
"""
Sage Business Cloud Accounting - Accounts
Documentation of the Sage Business Cloud Accounting API. # noqa: E501
The version of the OpenAPI document: 3.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
imp... | [
"kevin.gray@eurekasolutions.co.uk"
] | kevin.gray@eurekasolutions.co.uk |
35fbc68d5d7a092f36ad7817eb98d630e7078ff9 | 0698da9cae7d49222742d99daf3cc2b1b618501c | /LoadingBar.py | d8f2efa5e2d8382fc0915b4dc5228726b35e415c | [] | no_license | Ahmad-Kaafi/Facial-recognition-project | deee4a9b1dac278194e9a0ee54e74f1ef5acc2d1 | 90ce3ecfcbb86e44df8d79beab1d32018b499afb | refs/heads/master | 2020-04-28T12:21:10.259381 | 2019-03-25T18:06:44 | 2019-03-25T18:06:44 | 175,272,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | from tkinter import *
from PIL import Image, ImageTk
import ttk
class DemoSplashScreen:
def __init__(self, parent):
self.parent = parent
self.aturSplash()
self.aturWindow()
def aturSplash(self):
self.gambar = Image.open("Green.png")
self.imgSplash = ImageT... | [
"noreply@github.com"
] | noreply@github.com |
2f70ec7d64d3e0d0ef8953864baafa9c81fbf3fa | a34a580a222eeda9fb0230bdf257f2c65b7bc72a | /Develop/psjDevelop/searchFY.py | d0d7447db89fa782ccd7b50e6bd0b41aaf23b8fb | [] | no_license | diwangtseb/COVvisualization | 3551dc91f8d2b71f631fdd52755d33be2c8d982c | ccc0c4aef1868b0ed6bf81406ce843045c426ff6 | refs/heads/master | 2022-04-09T09:06:43.878526 | 2020-03-08T07:24:04 | 2020-03-08T07:24:04 | 245,126,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | import requests
import json
import time
def GetDetailsData(url, headers):
"""
爬取数据
:param url:
:param headers:
:return:
"""
r = requests.get(url, headers)
res = json.loads(r.text)
data_all = json.loads(res['data'])
details = [] # 当日详细数据
update_time = d... | [
"pansijie@lidarongyi.cn"
] | pansijie@lidarongyi.cn |
9dc27008134db0b35326d29d2df481dd1ecbf194 | df241cd4aacb97fb5562a08ea4f912e9bd348657 | /list5/toy_story.py | 4e62b77003fe671c41f33424d82178dab0e6001f | [] | no_license | jakubdabek/python-uni | a8c7a323b1389fbe46e96b3c5fe9d4f1a5e825ec | 0380bbce5f42a7b8cce2f678986c48b17b40f0a9 | refs/heads/master | 2022-11-18T18:59:55.229564 | 2020-07-05T17:42:12 | 2020-07-05T18:01:25 | 244,458,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | from pathlib import Path
from typing import Union, Optional, Tuple
from sklearn.linear_model import LinearRegression
from matplotlib import pyplot as plt
from list4.overload import flatten
import pandas as pd
import numpy as np
def load_data(file_name: str, *, dir_path: Optional[Union[Path, str]] = None) -> pd.DataF... | [
"jakub.dabek@gmail.com"
] | jakub.dabek@gmail.com |
fe14e2773566f9017c9e893c04fd4ab422bb744a | 5d707e323f945ed5183b342f67ee23072755ac08 | /General/plugin.py | 9081fa8c2a5cfcba4f10e2505fbbe5d77e79033c | [] | no_license | scornflakes/StewieGriffin | 1826b3f52ee2274b2daf9f4b674340a8666b09bd | 678db2f855550ae3eefb174e62b8b41fb63be359 | refs/heads/master | 2020-12-03T05:10:34.385457 | 2012-07-19T11:20:09 | 2012-07-19T11:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,253 | py | ###
# Copyright (c) 2011, Anthony Boot
# All rights reserved.
#
# Licenced under GPLv2
# In brief, you may edit and distribute this as you want, provided the original
# and modified sources are always available, this license notice is retained
# and the original author is given full credit.
#
# There is no warrenty or ... | [
"antb@home"
] | antb@home |
a83270f6d427c435029af0bb9b9d25f6cecb3ade | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/containsDuplicate_20200907094218.py | 458d5b60e59b1430badf47c2855449f00123736e | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | def duplicate(nums,k,t):
m = None
n = None
for i in range(len(nums)):
for j in range(i+1,len(nums)):
if abs(nums[i] - nums[j]) <= t:
m = i
n = j
if nums[m]
duplicate([1,2,3,1],3,0)
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
04dad20bfc067a777d7795de17a2478da378fbba | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_T2_Validation_20210612125732.py | a3e3c1f66f5dc1ddb190e134a71155157cd4acab | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 9,251 | py | #T2 TEST DATA
# %%
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pickle
from scipy import interpolate
from scipy.integrate import simps
from numpy import trapz
# %%
#Load Stack
UVStack = pd.read_excel('./ML_Results/T2_test/ImgStack.xls')
ImgStackk = UVStack.copy().to_numpy()
# %%
de... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
b1a7fc689b623866f4aec9ced8da6ca250e1cc48 | e5cd01fd620e8e746a20b883de7ac32bec4feb5c | /Ejercicios python/PE7/PE7E4.py | 1b13263e7dde6dfb7f5fa46c512b4da81767aed9 | [] | no_license | eazapata/python | 0f6a422032d8fb70d26f1055dc97eed83fcdc572 | 559aa4151093a120527c459a406abd8f2ff6a7d8 | refs/heads/master | 2020-08-27T09:19:29.395109 | 2019-11-23T20:11:14 | 2019-11-23T20:11:14 | 217,314,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #Escribe un programa que pida una frase, y le pase como
#parámetro a una función dicha frase. La función debe
#sustituir todos los espacios en blanco de una frase
#por un asterisco, y devolver el resultado para que el
#programa principal la imprima por pantalla.
def quitaespacio(x):
x=x.replace(" ","*");
retu... | [
"you@example.com"
] | you@example.com |
1f35b67c23f1552af6886e53be9c92cde29f3333 | fcb5267ea83fe2f15922b5f405e534d5c37bd560 | /day21/day21a_ext.py | 249175f48203607f0023520fd97cc3348b92a4b2 | [
"MIT"
] | permissive | kannix68/advent_of_code_2019 | b3d02b695a167028bd09e72a224d89680844aade | b02a86e1f8e83111973cc2bc8c7f4d5dcf1c10aa | refs/heads/master | 2020-09-30T16:33:47.871407 | 2020-01-10T21:00:50 | 2020-01-10T21:00:50 | 227,325,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | # external solution by mcpower
# see: https://github.com/mcpower/adventofcode
# name input as input.txt
import sys; sys.dont_write_bytecode = True; from utils import *
"""
Strings, lists, dicts:
lmap, ints, positive_ints, floats, positive_floats, words
Data structures:
Linked, UnionFind
dict: d.keys(), d.values(), ... | [
"Robert.Heitzmann@me.com"
] | Robert.Heitzmann@me.com |
2a91321f84c7bf043df76df27261026d41dd5a72 | b0475ce87641476199f8c46aa3adb9e56e1061fc | /jsonpath_ng/ext/string.py | d463967aaa487e42e9bbc3c56cdd08bc75ab4329 | [
"Apache-2.0"
] | permissive | antonstakhouski/jsonpath-ng | 0acca321022de418fd779923ac8b830b77b0046f | 8cacb50796e250a4f9fab0ca0ccf3b20cf082fd8 | refs/heads/master | 2022-01-06T22:39:35.044002 | 2019-06-27T14:12:57 | 2019-06-27T14:12:57 | 274,714,446 | 1 | 0 | Apache-2.0 | 2020-06-24T16:17:52 | 2020-06-24T16:17:52 | null | UTF-8 | Python | false | false | 2,598 | 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 under... | [
"taparicio@flashpoint-intel.com"
] | taparicio@flashpoint-intel.com |
de3c13459fa4c91f66c0dd232ec9b25575a4fe77 | 857b8979e587a5993a3362ae267a90b218413518 | /Warmup/timeconversion.py | 968831656e7611361c7a358102cb89edc4eebf59 | [] | no_license | GRinaldi97/PCSIIH2 | 08074ec0f696110f4ea0c8dce10d2f7d91a9b25f | dc8791aa226441ea6587335e2e6fcd9a0473bb27 | refs/heads/master | 2021-05-06T20:30:03.877828 | 2017-11-28T09:52:20 | 2017-11-28T09:52:20 | 112,308,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!/bin/python3
import sys
def timeConversion(s):
L=s.split(":")
if L[-1][-2:] =='AM':
if L[0]=="12":
L[0]="00"
L[-1]= L[-1][:2]
else:
if (int(L[0]))==12:
L[-1]= L[-1][:2]
else:
L[0] = str(int(L[0])+ 12)
L[-1]= L... | [
"noreply@github.com"
] | noreply@github.com |
def169ee9056eaa842fac83a407d9e4fe98eadd5 | 3319aeddfb292f8ab2602840bf0c1e0c2e5927be | /python/fp/lists.py | ccb0c857fc2aa5458d4ad2cadced3d896d8aca44 | [] | no_license | slaash/scripts | 4cc3eeab37f55d822b59210b8957295596256936 | 482fb710c9e9bcac050384fb5f651baf3c717dac | refs/heads/master | 2023-07-09T12:04:44.696222 | 2023-07-08T12:23:54 | 2023-07-08T12:23:54 | 983,247 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | #!/usr/bin/python
l=range(0,100)
i=iter(l)
for i in iter(l):
print(i)
| [
"rmoisa@yahoo.com"
] | rmoisa@yahoo.com |
ae860b7bf43311fe416a63cf0c493b2ed218d7f5 | 2de130eadae04a40884c2692a13d7999621dfd9f | /Python/Tarea/Guia2/3_fecha_como_cadena.py | 7fcc5526521b8893744116df0fcd6b3b5b9db0a7 | [
"MIT"
] | permissive | marce1994/Learning | e11e33496f6a536e9d64cb015fa90ff4dd9ce2cf | 2b5928cf16c0d25bfc130ad4df9d415475395ec3 | refs/heads/main | 2023-06-17T11:35:14.308755 | 2021-07-22T15:34:07 | 2021-07-22T15:34:07 | 373,610,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | cadena_ingresada = input("Ingrese la fecha actual en formato dd/mm/yyyy: ");
separado = cadena_ingresada.split('/');
print(separado);
print(
f'Dia: {separado[0]}', '-',
f'Mes: {separado[1]}', '-',
f'Anio: {separado[2]}'
);
c = cadena_ingresada;
print(
f'Dia: {c[0]}{c[1]}', '-',
f'Mes: {c[3]}{c[... | [
"noreply@github.com"
] | noreply@github.com |
dc9873589ffbfb60b12635001740f6860f245eb0 | c6442366f1791a3e384a7298b41a70bcda6d0107 | /fahtocel.py | 828f4ed97c583c72bdc3b7cbe7da4a979bb72406 | [] | no_license | srikrishna777/python | eb8970ad9b22e5f836627bb36e152d0a26dc4526 | 78f56724d722676ef3fe2ee0ebe3bebbfd9ecb56 | refs/heads/master | 2023-06-14T08:20:38.214513 | 2021-07-14T15:50:24 | 2021-07-14T15:50:24 | 292,761,941 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | Fahrenheit =int(input("Enter Fahrenheit: "))
Celsius = (Fahrenheit - 32) * 5/9
print("the value of Celsius is" ,Celsius)
| [
"noreply@github.com"
] | noreply@github.com |
bbddaea0e02684bcad5e5059bded52512c484070 | a23ee3eb7218985cc9297faef698d3d5651565d2 | /recipe_fork/recipe_fork/settings.py | 69e0407485934862c82e25dbb3852f569dd48437 | [] | no_license | suxxxoi/recipe_fork | ea402eec5657af0978d90c1fcc308f34358f8741 | 04d80c1402a0f6acbfc989076f6474245eac1b25 | refs/heads/master | 2023-01-23T03:22:51.913739 | 2020-12-02T10:56:48 | 2020-12-02T10:56:48 | 284,443,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | """
Django settings for recipe_fork project.
Generated by 'django-admin startproject' using Django 3.0.8.
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 o... | [
"simon.sattlecker@gmx.at"
] | simon.sattlecker@gmx.at |
d2f43ec0f5c50ef641f8a57903e8005945738a71 | 3a462a714408cc0f5c01d1336f301ed1ba30a53e | /strategy.py | 4c87c6c45667a9b85a393a60285cbaae030c675b | [] | no_license | opz/gdax_order_book_trader | ee23e7e0be880042ec6cf83571b322351cf5ba50 | fe9253a18d011dab110950774002f242d7cf2b1f | refs/heads/master | 2018-10-14T03:04:44.239295 | 2017-12-01T16:56:29 | 2017-12-01T16:56:29 | 112,248,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | from decimal import Decimal, InvalidOperation
import logging
logger = logging.getLogger(__name__)
class Strategy:
"""
Base class for trading strategy implementations
Attributes:
trader: An instance of :class:`GDAXTrader`.
accounts: GDAX account data
bid_orders: GDAX order book ... | [
"will.shahda@gmail.com"
] | will.shahda@gmail.com |
ef9bfca4ec8c994e9d2c9fc630c5971675320583 | 01457e05d0b550eccf2d677e78d04d032326288d | /migrations/versions/f743ab141e32_posts_table.py | d9e63340ab53d1e87ae6f89aab8e7c9e60e75142 | [] | no_license | nessig12/Connect21 | d87e2ca18101777e05cc7c2493bd5a8969115107 | c5dd30fdf8de34625f4d0049534df7e8f586427d | refs/heads/master | 2022-12-10T11:57:35.365588 | 2020-04-24T20:27:59 | 2020-04-24T20:27:59 | 203,684,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | """posts table
Revision ID: f743ab141e32
Revises: 8f164b7b3fc3
Create Date: 2020-02-05 16:19:35.074665
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f743ab141e32'
down_revision = '8f164b7b3fc3'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"nessig@bu.edu"
] | nessig@bu.edu |
7c545b2539b091a80362983c3601a5370b3900d0 | 5869de949e274cbaa016bfd52b5b4ab9814de49f | /utils/tester.py | 0598481151fb1aec9ca493e6a4a1aa90491f7908 | [] | no_license | samherring99/ContentBasedMIR | 018a59e8b90f3715ef93fb6c80ec7ee9cf2ed7ad | 787e53f4b1896fb95d66ce110ce4327571b64a4b | refs/heads/master | 2022-06-12T04:45:23.900073 | 2020-05-06T17:04:49 | 2020-05-06T17:04:49 | 261,822,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import csv
with open('fma_metadata/tracks.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 2
for row in csv_reader:
if line_count == 2:
#print(f'Column names are {", ".join(row)}')
line_count += 1
else:
if str(row[40]) != "... | [
"samherring99@gmail.com"
] | samherring99@gmail.com |
ab490c6822ee354cc666f436e00aa5657b6a6e99 | dd0cb8b8e7658ae639961cda37397a1e8ea6f4b1 | /test/test_sim_config.py | 6620e507a846a713407dbb63fc1f877b0f9e1c41 | [] | no_license | jamesprinc3/data-analysis | 271b234375b7943770a45718685a4cb708e278b1 | ba3cb56bd05318921e12c4be9600e6ac069d1f14 | refs/heads/master | 2020-03-07T23:32:17.912776 | 2018-06-25T10:33:45 | 2018-06-25T10:33:45 | 127,784,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | from unittest import TestCase
from sim_config import SimConfig
class TestGenerateConfigString(TestCase):
def setUp(self):
pass
def test_generate_str(self):
config = {'paths': {'testPath': "test/path"}}
config_str = SimConfig.generate_config_string(config)
assert config_str =... | [
"jamesprinc3@me.com"
] | jamesprinc3@me.com |
b9aaf73be86b80c86bd56f0ca20545750714ee9d | 66757f36d5e9482058d4283835ab6534e92b48d8 | /Back/glucose/models.py | 23b1ea45b271f6bea89556f8f5aef2bbc29617b0 | [] | no_license | baldiniyuri/ihealth | 4155a008cb7ce9d3b8ccf5313cde171f45e2ebb8 | dedf421593e503bb80f92bb9b5cff95fbedddb75 | refs/heads/master | 2023-06-21T23:54:50.052907 | 2021-07-22T19:22:02 | 2021-07-22T19:22:02 | 388,496,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.db import models
from authentication.models import User
class Glucose(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
glucose = models.IntegerField()
date_time = models.DateTimeField()
| [
"yuriabaldini@gmail.com"
] | yuriabaldini@gmail.com |
2ca84c0f31091c70c2f07ff54c5f0e2242ac4d07 | 6818c057f2f6635979400133ef4557f0feae0f9b | /manage.py | e03ca74e91f9550cb5c9ba5be9848a1e5c47ef8e | [] | no_license | MGoss115/parentingapp | 7094cd4bf7a19099e574dec871d86bffe9b15de2 | 518b12ad9f8f36383a9ce83269211ceb9fc080ff | refs/heads/main | 2023-08-16T20:33:23.311835 | 2021-09-21T15:32:50 | 2021-09-21T15:32:50 | 401,867,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'parenting_django.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"mligon115@yahoo.com"
] | mligon115@yahoo.com |
1729d1308dd79975f42c02fcd155b256d5e09da2 | 9f12202bf41fb4a8fc36871aeae3834c55129bf2 | /Interview Questions/Inorder Traversal of BST.py | c67319e4b4b23c2fa2cc95559dc85d8cadde1d8f | [] | no_license | veetarag/Data-Structures-and-Algorithms-in-Python | b8afebbcfc9146ed06efcf09b58c13c52e76b9ab | 167240935d89df2ec6e2777dc561fabe0244c8a9 | refs/heads/master | 2022-11-15T07:38:31.309514 | 2020-07-04T01:54:30 | 2020-07-04T01:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def inorderTraversal(self, root):
rst = []
def util(root):
if root:
util(root.left)
... | [
"mushahidshamim@gmail.com"
] | mushahidshamim@gmail.com |
9253df4be11c51d42b256b0cb1030a6890b769a5 | e8bd148169647433cedd8219833271e275044145 | /client.py | 5c0466242b044eb65c826fe436035bad6aafdacc | [] | no_license | marco2013/weather-cn | a752cb880f5d1c12ac11471f8214307b1f03411d | ecb7e8b9900342d89323234a575cf872f6c9ca04 | refs/heads/master | 2020-06-30T00:25:46.968308 | 2017-07-17T16:15:44 | 2017-07-17T16:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import requests
import sys
import simplejson as jsmod
def main(args):
# http://119.254.100.75:8080/v1/query
ip = "119.254.100.75"
url = "http://%s:8080/v1/query" % (ip)
ret = requests.post(url, data={
# "cn": "重庆",
"cn": "aaa",
})
obj ... | [
"dean@yunify.com"
] | dean@yunify.com |
7d21bd6490d491584a25d9471d4e8fa2af419c32 | 401bf511c4791f9f582ef51e82ceb63c69d31de6 | /src/revolio/serializable/__init__.py | 9f43814bf7635637096ede509eb80792220560a2 | [] | no_license | BenBlaisdell/revolio | ce312332bc13b97ad87d195045d7e8ea74a3da99 | 93d998f1816dee881e71d576574ff9b3bcd9d90c | refs/heads/master | 2022-12-09T08:11:10.936934 | 2018-04-06T14:44:45 | 2018-04-06T14:44:45 | 86,363,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from revolio.serializable import fields
from revolio.serializable.serializable import Serializable, KeyFormat, column_type
| [
"bblaisdell@rmn.com"
] | bblaisdell@rmn.com |
723404b6f6ded8abfd07d6f264cc4a03cd885cc2 | 025ed7b41e7bb4204916ed0160bc16935999f94f | /library-backend/book/admin.py | f795aeeeec53ddeec8bc7b5898ad52df53ddd2dc | [] | no_license | luhc228/SmartLibrary | deec554778e27b1ede3ad86be52d1f293331be5e | 075814058a721a51b753216908e13995e3d1e819 | refs/heads/master | 2020-04-30T14:18:47.274452 | 2019-03-21T07:07:19 | 2019-03-21T07:07:19 | 176,887,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from django.contrib import admin
from .models import Book, NewBook, RecommendBook
admin.site.register(Book)
admin.site.register(NewBook)
admin.site.register(RecommendBook)
| [
"luhengchang228@gmail.com"
] | luhengchang228@gmail.com |
8531ff31b3ebfe39de4f571d391d90a7f0ade912 | 9795dda526b3436de26c73353021a0651a6762f9 | /example/wxpython/图形按钮组件封装测试.py | d53fbaf9305e953572ac050f909f31e672a223de | [
"Apache-2.0"
] | permissive | brucekk4/pyefun | 891fc08897e4662823cf9016a680c07b31a8d5be | 1b4d8e13ee2c59574fded792e3f2a77e0b5e11a2 | refs/heads/master | 2023-07-10T03:54:11.437283 | 2021-08-23T17:46:19 | 2021-08-23T17:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import pyefun.wxefun as wx
class 窗口1(wx.窗口):
def __init__(self):
self.初始化界面()
def 初始化界面(self):
#########以下是创建的组件代码#########
wx.窗口.__init__(self, None, title='易函数视窗编程系统', size=(600, 369), name='frame', style=wx.窗口边框.普通可调边框& ~(wx.MAXIMIZE_BOX))
self.容器 = wx.容器(self)
... | [
"ll@163.com"
] | ll@163.com |
c68569999404cf2d9c7dc35dfaf1c7cd5618998e | 79d55c2d9c6fd7fe5a3b6a1b12c4ff5426e6a505 | /venv/Scripts/easy_install-script.py | 300c999a5cbe9930fd0dc10a79ef4c08bae4c46b | [] | no_license | Mbraun5/Pac-Portal | f63a33070d17f0aecab2227789909dc135ca943c | 4dd48d799f3494a3924605c65ce6f458993b77f6 | refs/heads/master | 2020-04-02T01:38:07.100864 | 2018-11-01T00:47:17 | 2018-11-01T00:47:17 | 153,866,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!"C:\Users\Matthew\Desktop\Pycharm Programs\Pacman Portal\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(... | [
"31942887+Mbraun5@users.noreply.github.com"
] | 31942887+Mbraun5@users.noreply.github.com |
2366c4dccff48536bca68ac6e560f8df0e8a899f | be77678a23b1d44c7bc0ca87be919d84590b19cd | /wymarzony_pies/migrations/0011_auto_20200915_1235.py | 2946a68153c8ac2eba0266a9f8a9665612309cbb | [] | no_license | Arkadiusz0202/Reservation_system_wymarzony_pies | 42d1d7dbf3ae48836473a05957b36424fbed2358 | 21c09b069a2d78073d26316e7978de3a44dca6c5 | refs/heads/master | 2022-12-17T15:17:01.651347 | 2020-09-15T10:50:45 | 2020-09-15T10:50:45 | 294,917,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Generated by Django 3.1.1 on 2020-09-15 10:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wymarzony_pies', '0010_remove_reservation_customer'),
]
operations = [
migrations.AlterField(
model_name='location',
... | [
"62333271+Arkadiusz0202@users.noreply.github.com"
] | 62333271+Arkadiusz0202@users.noreply.github.com |
1e54fceed8c88b5f717dd20801e59eee679cba41 | 7a738f6c8ae8c4004161a4c3f72120594d48cc07 | /backend/projects/models/category.py | 71e6e390344dc23bb2041e0fb39dc3dfbc07c06b | [
"Apache-2.0"
] | permissive | hndoss/manos-bondadosas | 277bcefd1307cfbcd76bfc70cd0846eb83e9a15e | 2d6eaee63ef3d90f26c7f4862b31f6635eb9dee3 | refs/heads/staging | 2020-12-27T18:54:17.372304 | 2020-07-17T02:41:05 | 2020-07-17T02:41:05 | 238,011,718 | 0 | 0 | Apache-2.0 | 2020-07-17T03:05:55 | 2020-02-03T16:37:04 | JavaScript | UTF-8 | Python | false | false | 367 | py | from django.db import models
class Category(models.Model):
category = models.CharField(blank=False, primary_key=True, max_length=30)
description = models.CharField(blank=False, null=True, max_length=60)
def __str__(self):
return self.category
class Meta:
verbose_name = 'Project Categ... | [
"hector.rosales@acklenavenue.com"
] | hector.rosales@acklenavenue.com |
2f43c32851336a99b0f4e75ce5945c65d261ebec | 9bb4f38b400540dee75294a1f48bcb1128f5ecaf | /db/peewee/Students.py | ac9c53de4f43c3b8c509fa7209d063eb55669735 | [] | no_license | andresmontoyab/Python | 43184a01f4e168918ee0499cfc4e989a318de3f5 | 713840ba1bbd64eb8d5549c03c2c7f7e18261017 | refs/heads/main | 2023-05-12T10:28:50.273930 | 2021-05-29T00:20:22 | 2021-05-29T00:20:22 | 333,450,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | from peewee import *
db = SqliteDatabase('students.db')
#In order to map object to models we must create a class that extends from peewee Model
class Student(Model):
username = CharField(max_length=255, unique=True)
points = IntegerField(default=0)
class Meta:
#This meta class help peewee to unde... | [
"and.montoya18@gmail.com"
] | and.montoya18@gmail.com |
ac7938005be2abd036a827eb5074e581c46cf254 | 13b1ece281a1eaa0cac2706c14f1d4c190f73c2b | /Assignment 3/flood_fill_solutions/BMC201955/BMC201955.py | 149f4a1fda7450ab05aa6732a5ca52691108105c | [] | no_license | bhi5hmaraj/APRG-2020 | 0c995f79cc50108956d1bd0ceed8d7cb6d96f34e | 7e11c14a02d48d52b547696fc930f38c586ce0da | refs/heads/master | 2022-07-17T09:41:58.947321 | 2020-05-21T12:34:46 | 2020-05-21T12:34:46 | 236,176,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import sys
lst = list(map(int,input().split(" ")))
lst1 = list(map(int,input().split(" ")))
(m,n) = (lst[0],lst[1])
(p,q) = (lst1[0],lst1[1])
matrix = []
for i in range(n):
matrix.append(list(map(int,input().split(" "))))
lsst = [[0]*m]*m
for i in range(n):
a = matrix[i][0]
b = matrix[i][1]
... | [
"srinidhin@outlook.com"
] | srinidhin@outlook.com |
e6e263c361724887317befacbe85f8dd61830b20 | 30200bf7122c0bb2777db5df451174378493e984 | /tools/run-after-git-clone | 3afe5cf77802ddbeb695af2a5a6afb5c40ddcaae | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | rjanser/fastai_pytorch | 7310320d6ef24a47fb9035bf8584b23511eb0261 | ffef0b405292d0a5dc14bf1c0c21d3763f2b4646 | refs/heads/master | 2020-03-30T06:42:22.102529 | 2018-09-29T14:33:08 | 2018-09-29T14:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | #!/usr/bin/env python
# if you're a fastai developer please make sure you do this:
#
# git clone https://github.com/fastai/fastai_pytorch
# cd fastai_pytorch
# tools/run-after-git-clone
#
import subprocess, os
from pathlib import Path
def run_script(script):
cmd = f"python {script}"
#print(f"Execut... | [
"stas@stason.org"
] | stas@stason.org | |
fdaf8ca8fbc75704adf287f7fed5dfe185c3a435 | 434a2de27730f42a4d632e9c810324e35f893cd4 | /model/base.py | 81b36e5a062720d3ecd01cf234b284f70226352b | [] | no_license | AcademiaSinicaNLPLab/LJ2M | f49ebd55dc777271727a61faecb13c80a5c65c9c | a1dae7e2bb7de03322c5faeabfa8c15d4d476c5b | refs/heads/master | 2020-08-08T20:08:15.493660 | 2015-09-05T02:59:43 | 2015-09-05T02:59:43 | 34,600,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import abc
class LearnerBase:
__metaclass__ = abc.ABCMeta
#def __init__(self):
# raise NotImplementedError("This is an abstract class.")
@abc.abstractmethod
def set(self, X, y, feature_name):
"""
set the training X, y, and feature name string
"""
pass
@... | [
"doug919@gmail.com"
] | doug919@gmail.com |
0750700020ee9d97d76ac24dad19ec69e89de280 | ebd3ade52cc1122830e2bc07700b83ff0339c7cf | /ufc_live/account_extend/models/models.py | 0748eb41fbf98211927b3f15ef9ee53500769d00 | [] | no_license | Guobower/odoo-project-data | 8596031646d8ba6ed301f7d745f9125bb4d7d99f | 1f6ce801b4113aad18b3ea9a380b5ad257bdbe34 | refs/heads/master | 2020-04-07T07:41:02.796468 | 2017-12-27T17:39:40 | 2017-12-27T17:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from odoo import models, fields, api
class account_extend(models.Model):
_inherit = 'account.invoice'
bill_no = fields.Char(string="Bill No")
frm_bill_no = fields.Char(string="From Bill No")
province = fields.Char(string="Province")
branch = fields.Many2one('branch',string="Branch")
bill_num = fi... | [
"nayyabzakir@gmail.com"
] | nayyabzakir@gmail.com |
ca941ddddb7fc347c0a254966760fb0239e0ba73 | 96ea8a4b241794f0eab2e34cbd75124dac26f2ac | /users/migrations/0002_auto_20200628_1146.py | 76855fd7b14a9ccf3149ea2cd030b856d34bdfce | [] | no_license | magloirend/budget_tracker | a1cd53aa9ad2a99e1fd1b8ee445bce2f98136806 | 4a66bc3d516f8116c20aa11399f25e618e74f06e | refs/heads/master | 2022-11-18T04:02:58.427416 | 2020-07-13T13:03:38 | 2020-07-13T13:03:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 3.0.7 on 2020-06-28 11:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
n... | [
"jan.morawiec@outlook.com"
] | jan.morawiec@outlook.com |
502b63b465725af09cddcbad8d731b28c955743a | c31931fa13cb469b7cc10df3bb87dc308d241fa1 | /game/core/systems/dialogue/__init__.py | 4c39a8a5317135ee08de407920c0e44ea555de4e | [] | no_license | darrickyee/ue-pygame | 53158a98df1dddbd2efdd0132c82eff523b54413 | 9be0a519aa8de455fdb54bddad7e5f773fe86d75 | refs/heads/master | 2021-02-09T01:24:15.015941 | 2020-12-03T03:50:32 | 2020-12-03T03:50:32 | 244,221,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from .system import DialogueSystem
from .loader import loadNodes, loadDlgGraph
| [
"darrick.yee@gmail.com"
] | darrick.yee@gmail.com |
071e915b9f4f0fb968ac51115b47470507899e6e | 89a3cb6e0625e7ae8d3d4c12bf5214557d344059 | /Report_[2017-05-13]_Box_Spline_Initial_Analysis/box_mesh[6-8-2017 max-side-len verbose].py | 91afd0bec85321cdbf04efb580f2f16d4754acf1 | [] | no_license | tchlux/VarSys | e5adc802bbf8149bd3584d350bb429c24d4cbdd8 | 313a3029d838520d30ce960fa56a897ba9180037 | refs/heads/master | 2023-07-20T10:58:34.901566 | 2020-09-22T15:37:45 | 2020-09-22T15:37:45 | 108,617,499 | 0 | 0 | null | 2023-07-06T21:13:39 | 2017-10-28T03:44:31 | null | UTF-8 | Python | false | false | 23,062 | py | # WARNING: This 'max-side-len' box mesh construction code cannot
# handle data with shared x or y coordinates (allowing for
# more than 2*dimension neighbors)
# WARNING: This 'max-side-len' box mesh construction code does not
# properly expand into higher dimension than x \in
# R^2. ... | [
"thomas.ch.lux@gmail.com"
] | thomas.ch.lux@gmail.com |
64f33d189625ea147141f4287452b920cda333fb | 19b2affa8ed62c2a1e6299ac6de797e602894b16 | /backend/src/server/api/stats/at_work.py | 0fe49ab0fce6071c837017169c89df887eb97621 | [] | no_license | skapin/power-elements | 8b0c24869588abe05b46d998e82090bd7e39b3a2 | 76b1547eeeea521ef655dda134a47f2469990394 | refs/heads/master | 2023-01-02T19:26:38.072353 | 2020-05-22T15:54:50 | 2020-05-22T15:54:50 | 265,940,649 | 0 | 0 | null | 2020-10-27T22:35:41 | 2020-05-21T20:03:02 | Python | UTF-8 | Python | false | false | 1,137 | py | import logging
import json
from flask import request, jsonify, abort, Blueprint
from flask_restful import Resource, reqparse
from config.settings import SETTINGS
from common.utils.security import generate_user_token, extract_payload
from db.models import Question, Account, Response
from common.db.base import Database
... | [
"antoine.poussard@gmail.com"
] | antoine.poussard@gmail.com |
49d8a0cb2a3ec05cdb81a281746a484cb2616dcb | b4c0c347cca4856bbdf82c06142ae9cd18e02746 | /api/models.py | 6ef37b3c1375701f4d646f1685e3a746a8782ab0 | [
"MIT"
] | permissive | AanandhiVB/bank-admin-backend | dfb9793eedd6a447d25ad15f3417f4933806a512 | cce02c37e06dc2cd72d160f4817ec7658714831e | refs/heads/main | 2023-05-05T15:19:35.241460 | 2021-05-23T18:49:22 | 2021-05-23T18:49:22 | 370,040,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | from django.db import models
# Create your models here.
class Bank(models.Model):
name = models.CharField(max_length=100, blank=False, null=False)
class Branch(models.Model):
bank = models.ForeignKey(Bank,on_delete=models.CASCADE)
ifsc = models.CharField(max_length=100, blank=False, n... | [
"aanandhi.vb@gmail.com"
] | aanandhi.vb@gmail.com |
241a1492ddab027c0632271bea37fbd696a507f5 | 344caf79f5640b2b6d86f5c70a92b0358e3bfc15 | /dynamics/gravity/projectile.py | 3eceac1460803d0e6318a8e339460c43d4a8b0ba | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brettrhenderson/PySims | 8a70712864a38b3090a14ef8e45751f719d656c1 | 07fe37d1a61ef3b8f3d10ef9f393b5144acc1b96 | refs/heads/master | 2022-11-16T13:33:20.227467 | 2020-06-29T01:06:39 | 2020-06-29T01:06:39 | 275,475,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
# gravitational constant 6.67408 × 10-11 m3 kg-1 s-2
G = 6.67408E-11
class Projectile:
def __init__(self, h0, v0, rg=6.731e6, g=9.8, dt=1.0, nmax=300000):
self.dt = dt
self.h0 = h0
self.g = g... | [
"brettrhenderson25@gmail.com"
] | brettrhenderson25@gmail.com |
b3f61b006eab4de683eabd97c232a3538ac61f90 | eb40d59aaceed26160aae48f6abc9dca0ab4bd1e | /project3/settings.py | 4008cf7547ce3130b5ed4f000c533160287de206 | [] | no_license | scarlos723/mail | 8936c92fe6ebb1f882334f660c88683b46a879ba | e00521240592ac13ff52dbfd6373e69011d8a36c | refs/heads/master | 2023-01-01T06:56:47.189807 | 2020-10-25T07:38:44 | 2020-10-25T07:38:44 | 305,962,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """
Django settings for project3 project.
Generated by 'django-admin startproject' using Django 3.0.2.
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
... | [
"scarlos@unicauca.edu.co"
] | scarlos@unicauca.edu.co |
fe6b4e9a2fa21b14b8a757cf8fcbf9e6df72eef4 | 220a1bd2b0d26475dfa357eef7f4955d13f5560f | /hwk_11_ve/bin/pip | 9a6395f55793276a645ebfa09e0e7550d776e4bf | [] | no_license | togaryo/SI507_F18_HW11_Flask | 5cefc8be0b9a1b38e5d28d446dd9d8f0ffc0fc2d | 462ffb87b440767922c71a8d805e9a97efb6f615 | refs/heads/master | 2020-04-09T05:58:24.015258 | 2018-12-03T03:28:19 | 2018-12-03T03:28:19 | 160,089,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/ryo6122/Desktop/SI507/week12/hw11/hwk_11_ve/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ryo6122@0587357540.wireless.umich.net"
] | ryo6122@0587357540.wireless.umich.net | |
0dea56dcecce21edb733840c1fb5b8adbf4b9c65 | a43cb9427265e8d7f2202bf88578401beb90e47a | /url_reducer/views.py | f26495eee7e56dd543b9890abfd1cd892832fbfe | [] | no_license | danielngd/url_reduce | 7bf8896f0dcdc62acf7ec5a5df9fe68019126b3e | 8626344c19ea69b7e4b21517edb83a56ffcd90e5 | refs/heads/main | 2023-05-15T07:50:38.757052 | 2021-06-07T15:27:55 | 2021-06-07T15:27:55 | 369,886,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | from django.db.models.fields import SlugField
from django.shortcuts import redirect, render
from django.http import HttpResponse
from django.db.models.functions import TruncDate
from django.db.models import Count
import string
import random
# Create your views here.
from url_reducer.models import UrlRedirect, Urllog
... | [
"daniel.ngd@gmail.com"
] | daniel.ngd@gmail.com |
de83d9b23e9cd7655d6124d3683b4051a0b582ed | 2ec662ebc944b9fcc4a1b10fb61bb091b0d45c57 | /Code_Pattern/beamforming_pattern_gen_circ_array.py | 91f6fadf0dbe1f3d0e578c59edeb5daafdf4bac4 | [
"MIT"
] | permissive | tomhirsh/acoustic_beamforming | 99e98b13b6f87dede2498cb2d6c160607d307808 | f0f4222c6328566f2436313a4d430c4ad6080d59 | refs/heads/main | 2023-07-11T05:12:22.387690 | 2021-08-15T11:42:49 | 2021-08-15T11:42:49 | 395,537,242 | 0 | 0 | MIT | 2021-08-13T06:01:26 | 2021-08-13T06:01:26 | null | UTF-8 | Python | false | false | 4,912 | py | """This module plots and outputs beamforming pattern
of a circular phased array.
Author: Tom Hirshberg
"""
import numpy as np
import matplotlib.pyplot as plt
import argparse
from beamforming_pattern_gen import *
# Get amplitude law
def get_amplitude_law(N, law = 'constant', minAmp = 1):
"""Comp... | [
"tom.hirshberg@gmail.com"
] | tom.hirshberg@gmail.com |
8f35b00ec2863b4bc1ed7fe3a963aa23f295757d | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /istio/tests/test_istio_1_5.py | 3b34e35c23c2b215618191c3b6ee30ea493de837 | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 3,149 | py | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
import requests_mock
from datadog_checks.dev.utils import get_metadata_metrics
from datadog_checks.istio import Istio
from . import common
from .utils import _assert_tags_excluded, get_response
def test_lega... | [
"noreply@github.com"
] | noreply@github.com |
d66f55673cf2057f85cac998e95c9393c4a3fc95 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/neal.py | a9b23af628c29baef5be38fc3499691d0ef5fd97 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 274 | py | ii = [('CookGHP3.py', 1), ('WilbRLW4.py', 1), ('AdamWEP.py', 1), ('ClarGE2.py', 3), ('AdamHMM.py', 1), ('ClarGE.py', 11), ('GilmCRS.py', 1), ('DaltJMA.py', 1), ('GodwWLN.py', 2), ('SoutRD2.py', 3), ('WheeJPT.py', 2), ('MereHHB.py', 1), ('DibdTRL.py', 1), ('SadlMLP2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
618c8454e39c26836efdcd1b025c4b926ae44d83 | 67ef0a3f31c141e0cb156cb3d278091e63b32dfd | /0x07-python-test_driven_development/4-print_square.py | 5c4a6a2d4961caeeb26163218545e2b26947a288 | [] | no_license | Orcha02/holbertonschool-higher_level_programming | 7078ac665f027b845a55a8499764cfce78d89eec | 1d0136aef388ede1ecbe625b303e07c177fee52e | refs/heads/main | 2023-08-22T10:04:56.495834 | 2021-09-23T02:56:36 | 2021-09-23T02:56:36 | 361,823,730 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #!/usr/bin/python3
""" Function that prints a square """
def print_square(size):
""" function that prints a square with the character #. """
if type(size) is not int:
raise TypeError("size must be an integer")
if size < 0:
raise ValueError("size must be >= 0")
if type(size) is float an... | [
"orcha2002@gmail.com"
] | orcha2002@gmail.com |
cba11837296d1468a2f7aad89d33ddce44995fda | 388e054480b4a26e602b213967e3c4bec9ae96d5 | /server.py | 2237b54355bd547c3c26e68f67605a0f0f4a4c09 | [] | no_license | budinugroho13/Ftp-sederhana | b035211602269e450ffc3552203d96af4e807f7a | cf2accb3faa3921aca37163d35524c6b99eeaff5 | refs/heads/master | 2022-04-19T14:09:10.748831 | 2020-04-16T05:18:30 | 2020-04-16T05:18:30 | 256,115,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | # import socket
# import tqdm
# import os
# # ip addres yang digunakan
# SERVER_HOST = "0.0.0.0"
# SERVER_PORT = 5001
# # menerima 4096
# BUFFER_SIZE = 4096
# SEPARATOR = "<SEPARATOR>"
# # membuat socket
# # TCP socket
# s = socket.socket()
# # bind socket sebagai local address
# s.bind((SERVER_HOST, SERVER_PORT))
# s.... | [
"nugrohobudi520@gmail.com"
] | nugrohobudi520@gmail.com |
ee7ad7136607639eb8a04211e9c3183c5cecb2e7 | 707723ab7908db14c2caa0a3f590bae1ef4ae8ac | /data/ageBuild/rd_btx_ageb.py | beed4c8deebb91f86701de2caeb663ef2bbbd4c8 | [] | no_license | mvalari/EXPLUME | a57e9cd320bb7519267af599ae6fa763956b286f | f90d4474ca54e29fec872ea7016a51b93f7a3bcb | refs/heads/master | 2020-06-25T01:05:55.354526 | 2019-03-04T14:21:27 | 2019-03-04T14:21:27 | 199,148,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | import pickle
import numpy as np
ageBins=[]#=[0, 15, 20, 25, 40, 55, 65, 80]
cnsDates=[]
comIds=[]
#Read once to get comIds, ageBins, and dates
f=open('BTX_TD_AGEB_2008.ins','r')
for i,ln in enumerate(f):
if i>0:
comId,sex,age,type,ageB,cnt=ln.split()
if comId not in comIds:comIds.append(comId)
if age not i... | [
"myrto.valari@lmd.polytechnique.fr"
] | myrto.valari@lmd.polytechnique.fr |
210775055ec3d9710db431bf6467c57b98377d24 | 5e260d0cde3e77f310bb80ba48319376c067b989 | /Tarea5/GrafoTarea5.py | 2740b2c59c96b74a086330da0f78fdb09f8a7ae2 | [] | no_license | EvelyGutierrez/Optimizacion-de-flujo-de-redes | 4f0674d945ca1ef7305c75e5f81b48e67f3317eb | 6f2405847022cc230fcfc9ddbe5a5e9a60cd86d6 | refs/heads/master | 2021-05-09T09:48:25.294949 | 2018-05-27T21:14:43 | 2018-05-27T21:14:43 | 119,458,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,086 | py | from random import random, uniform, randint, gauss, expovariate
from math import sqrt, ceil, floor, factorial, cos, sin, pi
from datetime import datetime
from time import clock
def cabecera(aristas, k, eps=True):
if eps:
print("set term postscript color eps", file = aristas)
print("set o... | [
"noreply@github.com"
] | noreply@github.com |
d649d41ce316b48c42f29c9f9d76f08d614277f3 | 93e298426c8bc05af9c6dc9ba0d15386a862ada0 | /guess v.0.1.1.py | 042d33c1099960bdd2c365e5371ffa4f207e4262 | [] | no_license | MagicBackup2018/SchoolProject1 | de37d24500052495a164192dea346c2441152837 | a89d2502f1b83445e967fa7a1f1fb97cd3af71ac | refs/heads/master | 2020-04-10T01:51:38.624991 | 2018-12-07T11:04:46 | 2018-12-07T11:04:46 | 160,727,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | """Bagels, a number puzzle game.
Exercises:
1. Can you guess the number?
2. How much harder is 6 digits? Do you need more guesses?
3. What's the maximum number of digits we could support?
Adapted from code in https://inventwithpython.com/chapter11.html
"""
from random import sample, shuffle
digits =... | [
"noreply@github.com"
] | noreply@github.com |
9e169041eceb4d706cd68dba965f55dd679f9a94 | c305a0971486efd74b688b43d14432afd99f91e8 | /assignments/weekly3/C1_W3_Assignment.py | 4fbbcd413cdc97b267c49f1151739a8749edc864 | [] | no_license | ckharide/nlplearn | cba1e435bbfd39dda7b15e6f974c63c605a35ede | b614b8c780fdb1064443137de04ef46756aad216 | refs/heads/main | 2023-04-16T08:18:55.620804 | 2021-04-27T12:49:49 | 2021-04-27T12:49:49 | 352,520,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,186 | py | import pickle
import numpy as np
import pandas as pd
#import matplotlib.pyplot as plt
from utils import get_vectors
data = pd.read_csv('capitals.txt', delimiter=' ')
data.columns = ['city1', 'country1', 'city2', 'country2']
# print first five elements in the DataFrame
print(data.head(5))
print(data.shape)
word_embe... | [
"chandra.mouli@servicenow.com"
] | chandra.mouli@servicenow.com |
b13b4d3b13b0518c818531117f412a5f56a71c10 | 74a6414e6ea1af00d66ba92f0a62e3a6eaf0fff9 | /public/publicMethod.py | 0483fb9fd6706f6c46310c80fc69a9d083fd9d5a | [] | no_license | blanchede/jobtest | 717b586852fe669d49efc8e98cddc5f7511899f2 | 16e354a4673c236af55e29a2964162ec43e91e92 | refs/heads/master | 2021-01-01T17:51:50.999708 | 2017-07-28T07:01:49 | 2017-07-28T07:01:49 | 98,182,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | #!/user/bin/env python
# -*-coding:utf-8-*-
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
from time import sleep
#启动chromdriver
driver = webdriver.Rem... | [
"917805067@qq.com"
] | 917805067@qq.com |
1bcdd525c0ab3623c6d017154cb036bf15b79a66 | 3950896bb3dcf9a03a9682a17b42bfa3feda3885 | /src/vaytrou/vaytrou/tests.py | d931ef4e7366752af20398333357cc1120abb5ae | [] | no_license | sgillies/vaytrou | c02c38579565ddb0d1782600537113e9eafb38b0 | 89385800491f36a774e8fc4eddd79952a982f115 | refs/heads/master | 2016-09-09T22:54:00.789976 | 2013-06-21T23:29:19 | 2013-06-21T23:29:19 | 884,337 | 2 | 1 | null | 2016-02-26T00:04:56 | 2010-09-02T20:59:45 | Python | UTF-8 | Python | false | false | 1,063 | py | import shutil
import tempfile
import vaytrou.admin
# Admin tests
def test_admin():
admin = vaytrou.admin.IndexAdmin()
def foo(*args):
pass
admin.foo = foo
admin.run(['foo', 'bar', 'x'])
admin.run(['help', 'info'])
admin.run(['info', '--help'])
def test_ro_commands():
data = tempf... | [
"sean.gillies@gmail.com"
] | sean.gillies@gmail.com |
8a7403ed5ad850d888a8b77975d30d6748ac5cfd | 38d00b7c5335ecfeee9cd8efdc0d5526ac60102c | /lenskit/algorithms/tf/__init__.py | dc8c5ce09959e2b4f476bf9f2d8171857ee515fb | [
"MIT"
] | permissive | carlos10seg/lkpy | ce07791f241099a4c1e844ba802c7da37e379fb7 | 7bb2b78a5315a19a182a3d64995c48dbbd42d9d8 | refs/heads/master | 2023-01-19T02:04:57.192293 | 2020-11-24T00:06:39 | 2020-11-24T00:06:39 | 266,886,328 | 0 | 0 | MIT | 2020-11-23T23:50:32 | 2020-05-25T21:45:48 | Python | UTF-8 | Python | false | false | 500 | py | """
TensorFlow-based algorithms.
"""
import logging
from .util import have_usable_tensorflow
from .biasedmf import BiasedMF # noqa: F401
from .ibmf import IntegratedBiasMF # noqa: F401
from .bpr import BPR # noqa: F401
from lenskit.util.parallel import is_mp_worker
TF_AVAILABLE = have_usable_te... | [
"michaelekstrand@boisestate.edu"
] | michaelekstrand@boisestate.edu |
0878fdbae5fcd996435a304fd52aa773374222d7 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1NyvbQNkxTVanX4BHohcJ64NyA68ZgQfzE.py | 4e3422ecc498a42b1713e07178bccf64f7472514 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,130 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1NyvbQNkxTVanX4BHohcJ64NyA68ZgQfzE(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
88b2ed689b8e719c2649a84df2cfec7bea1dc0c8 | 4e2b98c0cc67c447ea1421ae6fbe38842e354024 | /train_fuits.py | b3e5807f651762b98847abbe4d55fb2c87e7c1af | [] | no_license | rancher43/fruit_mnist | 6c5e3e5f8005de03dd50c1d4fbe78742eac61ce8 | 34c487352f2e4f7d2172fa16539249ce9a7378de | refs/heads/master | 2022-04-13T05:31:35.598412 | 2020-04-10T20:01:07 | 2020-04-10T20:01:07 | 254,723,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import tensorflow as tf
import numpy as np
from tensorflow.keras.layers import Dense, Flatten, Conv2D, MaxPool2D, Dropout
from tensorflow.keras import Model
import pickle
print('tensorflow version: ' + tf.__version__)
train_images_file = open('train_images', 'rb')
train_images = pickle.load(train_images_file)
train_i... | [
"rancher8000@gmail.com"
] | rancher8000@gmail.com |
4e14132c8dedc644bde9ccf908cbbd5f2ed82839 | d8797e2aaf814a25282f036065e7f5cc4ccf5450 | /3. PyTorch/tutorial/gradient2.py | 7de9a983b513cc703cc4fda0e0816e03cacd8c60 | [] | no_license | ddubbu/AI-Study-with-python | 8b38c5f679795899238ccfbd7965ef26d3e0e695 | efc05c9977803fc1990e3dbec35541591d165155 | refs/heads/master | 2020-12-05T21:49:16.973179 | 2020-08-22T13:11:16 | 2020-08-22T13:11:16 | 232,256,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | import torch
from torch.autograd import Variable
a = torch.rand(5)
print(a)
a = Variable(a)
print(var) | [
"hello.ddubbu@gmail.com"
] | hello.ddubbu@gmail.com |
1f0b37159950fd92ee3d274aefba1b34e7bc80ce | 4703b990612ece92825eec4ad7608ce8fd563f4e | /src/server_handler/definitions.py | 052504276a4a1b3df71196ccde5f624fd125f36d | [
"MIT"
] | permissive | robertpardillo/Funnel | 69a270ee722f05e6a23eb27d7b3268f916a0d9f8 | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | refs/heads/master | 2020-03-08T10:15:24.458019 | 2018-04-04T13:52:04 | 2018-04-04T13:52:04 | 128,068,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py |
import os
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
SERVER = 'handler'
IS_MULTITHREADING = 0
| [
"robertpardillo93@gmail.com"
] | robertpardillo93@gmail.com |
fb3e3789a52522a4deefa049a55718abb44cd51a | 6aa9c8841ab3b86394dff1378106b4c9da57f772 | /scripts/plot_trips.py | 855638163a1c9028e1702d3f4becf51011ab686d | [] | no_license | dmulholl/taxisim | e185abbfa6dd4c15b10c5c34ee776b3f9911b391 | d5cc4a097fede2a2aab528a5cc649ee99d0e290e | refs/heads/master | 2021-03-05T20:46:13.953842 | 2020-08-05T22:47:43 | 2020-08-05T22:47:43 | 252,199,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #! /usr/bin/env python3
# ----------------------------------------------------------------------------------------
# This script plots a bar chart showing total daily trip numbers for February 2016
# (08:00 to 12:00).
# ----------------------------------------------------------------------------------------
import mat... | [
"dmulholl@tcd.ie"
] | dmulholl@tcd.ie |
72390b880a83eaa83dcc10b3c8aa9ade7d362a74 | 043a17d196250048a5a34e990a19d8622436f9ce | /trainingday04/apple_pineapple/pikotaro.py | 7eca21f43e639d92300bf23bc479ac724ba2c319 | [] | no_license | chimtrangbu/hyperspace | 8df8cb9c5475b70b218d0a56034c7f520815fa0d | ec49324c705e9af61c3857cf2dea2a551bda5537 | refs/heads/master | 2020-03-26T07:18:34.249976 | 2018-12-20T05:16:55 | 2018-12-20T05:16:55 | 144,647,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Creating a function for return lyrics of pineapple pen
def apple_pen(first_ingredient, second_ingredient):
des = ['I have a pen, I have a apple\nUh! Apple-Pen!']
des.append('I have a pen, I have a pineapple\nUh! Pineapple-Pen!')
des.append('I have a pen, I have a pen\nUh! Long pen!')
dic = [['pen', 'a... | [
"you@example.com"
] | you@example.com |
3b85f1cf324080852822ab4ad0d215c4ba3c2e10 | 666e6233275d23dda84a24fa55aa38243ec91536 | /src/toolshelf/commands/pull.py | cbd24b00f1060b32a525213163e46711a39faee9 | [
"MIT"
] | permissive | catseye/toolshelf | 5f4dbf8902ddbe4c3fcb2d240fc5b3a977ed2cb0 | d597455a57610d34658fa37a3ec8c780996cd65f | refs/heads/master | 2020-12-24T06:02:39.836314 | 2017-05-31T13:42:36 | 2017-05-31T13:42:36 | 4,310,103 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | """
Pull latest revision of specified sources from each's upstream repository.
Upstream repo is always the external source from which
it was originally docked. Does not work on distfile-based sources.
pull {<docked-source-spec>}
"""
# TODO: figure out how to propogate was_changed to a subsequent 'build'
from tool... | [
"cpressey@catseye.tc"
] | cpressey@catseye.tc |
4034376ae7eccd5f9a0ccefb3a5ca1d3a8526926 | 023fc76dfce8366062028d386bdb08407d2bec79 | /src/custom_extension_davidlopes.py | 40b4a8f9d715eb5cf7bd57990ae74b75346b77c8 | [] | no_license | dlopes7/accenture-training-plugins | 60fb0c6a83e73cc3f9039d704f7b02f66dedd1a5 | 931f0592c3a109452fe4069b8e9bd577511a9fa2 | refs/heads/master | 2022-10-08T15:41:47.103779 | 2020-06-05T19:33:53 | 2020-06-05T19:33:53 | 269,724,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import requests
import logging
from ruxit.api.base_plugin import RemoteBasePlugin
log = logging.getLogger(__name__)
class CustomExtensionDavidLopes(RemoteBasePlugin):
def query(self, **kwargs):
meu_nome = "David Lopes"
log.info("Extension executando!")
grupo = self.topology_builder.crea... | [
"davidribeirolopes@gmail.com"
] | davidribeirolopes@gmail.com |
d0bdbe1317c6e8a5e655d4787ab7aea35fc7499d | 8469f426b47222d8f0c82c5f05131e61ea7bf623 | /uri1001/uri1012.py | 0df10d3a5b09693f89d938cdeb6e5bbf558eed07 | [] | no_license | jamil2gomes/uri-python | 493b07448fc9ddc9e86ae30808c0cd7465444281 | db3c9ae4dac93c4c03c040ee46a74a6c5987bc11 | refs/heads/master | 2020-08-23T07:18:13.146535 | 2019-10-26T01:59:46 | 2019-10-26T01:59:46 | 216,568,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | valor = input().split(" ")
a, b, c = valor
pi = 3.14159
triangulo = (float(a) * float(c)) / 2
circulo = pi * (pow(float(c), 2))
trapezio = float(c) * (float(a) + float(b)) / 2
quadrado = pow(float(b), 2)
retangulo = float(a) * float(b)
print("TRIANGULO: {:.3f}"
"\nCIRCULO: {:.3f}"
"\nTRAPEZIO: {:.3f}"
... | [
"jamil.lannister23@gmail.com"
] | jamil.lannister23@gmail.com |
a87fd4041d854f92d11a7ddf1b81ef9d504287d2 | bd5810c2eeafea74b6d0a3b1017297a69165e487 | /Python/list_pair_to_sum/PairToSumFunctions.py | 2f0c1a75aa30a77897cd46928e34815646b29c1f | [] | no_license | kpalmberg/Programming | e8d18ec3c0ee50ce72052be2a6170bf35df2b7d7 | c8dd5dad081e0682489af84e41c26d823eee0418 | refs/heads/master | 2020-04-05T20:01:40.614465 | 2018-11-29T10:17:12 | 2018-11-29T10:17:12 | 157,161,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | class PairFunctions:
# Function to determine is a pair exists in the SORTED list which adds to the sum
# Linear time: O(n)
@staticmethod
def pairExistsWithSum_SortedList(sortedList, sum):
low = 0
high = len(sortedList) - 1
while low < high:
currentPairSum = sortedLis... | [
"kevin.palmberg@wsu.edu"
] | kevin.palmberg@wsu.edu |
4d06f0fef0a49eaa87c617682a91228e07778e96 | a812e3953ff8da2e1f0eaecb69e09628366ca4ed | /session18/wordcount/urls.py | a61fbead0635aa95f1e10516733163f7bb4bce30 | [] | no_license | marobew/project | 999c45d0b2c7d1f1f1446d000673bef5924f0a65 | f20580a542acb4b64aea035f0fe812dcaca68437 | refs/heads/master | 2020-06-19T22:26:09.581459 | 2019-07-16T14:41:44 | 2019-07-16T14:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.urls import path
from . import views
urlpatterns = [
path('count/', views.count, name='count'),
path('result/', views.result, name='result'),
] | [
"boramm@likelion.org"
] | boramm@likelion.org |
91d50cf45a97dacfbb3c939c17de07a29a3a08ad | 16ea89da61e52d75239286851b7b2fa98c3024a3 | /CosmicAnalysis/test/runCosmicAnalysis.py | 0d50e9cfcd35b815280922045d7b2f74eaa65a5c | [] | no_license | watson-ij/CosmicAnalysis | 67492bf1bb3318429a604c5588fee9bafdbb0900 | a3b2887523930a1da781fa73f575b37785b2b174 | refs/heads/master | 2023-06-09T03:05:44.908091 | 2021-07-02T05:33:23 | 2021-07-02T05:33:23 | 381,917,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('CosmicAnalysis',eras.Run3)
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.Magn... | [
"ian.james.watson@cern.ch"
] | ian.james.watson@cern.ch |
a0af7a358d5cf743246b22a5c21c9a74cf6da2de | e4920699d195c1a831d90e9f5470df71648943bf | /lists/urls.py | 671dc88708da597a71c7e5c24a595589fda3ae54 | [] | no_license | kuchichan/test_goat | b27ff4b8b94fb3b95c1d26e52337d4cbd1475dcf | 603d2f09d4368fb6893541a81daa23b09f621e64 | refs/heads/master | 2021-07-11T12:45:02.067314 | 2020-09-19T22:12:53 | 2020-09-19T22:12:53 | 204,347,922 | 0 | 1 | null | 2019-11-17T13:12:18 | 2019-08-25T20:46:09 | Python | UTF-8 | Python | false | false | 1,039 | py | """superlists 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... | [
"pawel.kucharski@hotmail.com"
] | pawel.kucharski@hotmail.com |
01945a6a9fe9671dde25ee92c1525856eac4cfcc | 12f6466ba8fad1293e78ee123ad56938bd515a16 | /and_or.py | 61febdeeaae77f6e04f213087888888a5d958498 | [] | no_license | greshem/develop_python | 9dd1eaac4137b0c5b5b9f822bba07a8d6fa0f9ae | ddd370a35c63a89c5885f0918e3fe1d44c2a3069 | refs/heads/master | 2021-01-19T01:53:09.502670 | 2017-10-08T12:14:33 | 2017-10-08T12:14:33 | 45,077,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import os
import re
if not os.path.exists("test4.py") and not 0:
print "There is no gtest.zip"
def check_env():
if 1==find_bake and 1==find_vc2003:
return 1
else:
return 0
| [
"qianzhongjie@gmail.com"
] | qianzhongjie@gmail.com |
c9377460124a516d9b3e84d11eb0cd06931ea316 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/06_Collections/04_Dictionaries/m_dict_deepcopy.py | f87a64bcfe2a9745cf195aea1c8c7a956c93a781 | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 742 | py | import copy
from pprint import pp
payload = {
"DOB": "-",
"age": 25,
"education": {"college": "Yale", "highschool": "N/A"},
"hobbies": ["running", "coding", "-"],
"name": {"first": "Robert", "last": "Smith", "middle": ""},
}
pp(payload)
payload1 = copy.deepcopy(payload)
for key, value in payloa... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
dafd4069662cee4fb9446b0d89b3fa38abdc8f5d | 1cc638da0163ca7c8578b659fc0b067cc5d25265 | /server/migrations/versions/e160191ff485_.py | 8740099a7a050a53d9abd8c8b681bb46f187453a | [] | no_license | netang/label-it | a2591d456c8ed5c539bb2f0bf93caf2c3ef94d0c | 1e9ac5d1040b0c49af7c1838e43a010c45378d13 | refs/heads/master | 2023-01-13T01:02:56.943956 | 2020-01-25T15:45:05 | 2020-01-25T16:08:13 | 212,176,509 | 0 | 0 | null | 2023-01-04T22:12:51 | 2019-10-01T18:59:44 | Python | UTF-8 | Python | false | false | 711 | py | """empty message
Revision ID: e160191ff485
Revises:
Create Date: 2019-10-05 18:20:06.893067
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e160191ff485'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"netang@yandex.ru"
] | netang@yandex.ru |
51a0ebcdec898e707954df31f6137beb9cc47715 | e374785dd48ab3d3d8306c10b788983c2f2ac2e3 | /search_old/urls.py | 3dab893ca9935dc903b1902f04f567488d897a19 | [
"MIT"
] | permissive | common1/newassetcms | 0fd5ca2b310ccbd1f2ae432490b91ff22d352e2e | 65eee3c2ed9dac4cc56bfff863a6cbaff9830d26 | refs/heads/master | 2022-12-15T22:17:45.613715 | 2019-07-25T05:54:46 | 2019-07-25T05:54:46 | 186,583,756 | 0 | 0 | MIT | 2022-12-08T05:06:46 | 2019-05-14T08:54:19 | Python | UTF-8 | Python | false | false | 201 | py | from django.conf.urls import url
from django.urls import path
from .views import (
SearchAssetView,
)
app_name = 'search'
urlpatterns = [
path('', SearchAssetView.as_view(), name='query'),
]
| [
"ubuntu.user@ubuntuuser.com"
] | ubuntu.user@ubuntuuser.com |
2f5d8559d038f71c467a9850b0d3b57bb4ada4c4 | 5d6140bde09548c43965c11ad1ab50237671e1f8 | /Denise/par_example.py | 6351adafbb5be520bdb508c3f5f4bccc88c6f929 | [] | no_license | wyzhang120/GeophyPkgTools | fb27e44c0a550b5b83ab9bfd59b39d4e0a108c2d | b8233798573ddeb72ae0d81897ca64955818d3c5 | refs/heads/master | 2022-06-09T01:25:20.638459 | 2020-05-06T05:49:42 | 2020-05-06T05:49:42 | 223,804,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,547 | py | import os
import numpy as np
import PkgTools.Denise.denise_out as deniseIO
from PkgTools.Denise.utils_denise import AcqCw2, print_factors, write_mfile
from PkgTools.TOY2DAC_marm.utils_marmousi_cw import crop_mamousi
from utils_model_building.util_model_building import mod2d
from sympy.ntheory import factorint
basedir... | [
"wyzhang120@gmail.com"
] | wyzhang120@gmail.com |
0b0864d7bcd9a8bbbafc7d85f9f8e90a96bd8a47 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /metapose/launch_anipose.py | 928740a6681f6e2cee01b6aa52cdd923c73d23b3 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 7,366 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a8572ed76842012079600e505ff96ed2f3ad217c | 4e79c63941476046816d937d4e8f90d26c05e748 | /main_bulk.py | c098c9d204231295e56f6df7995e53d5981cb4fd | [] | no_license | ouromoros/booru_downloader | a41963c8d0c9317d9934bf5c251b44c4f7917440 | b86b0f63d3a0fb001bc601534fe2434940a95955 | refs/heads/master | 2021-04-03T06:54:00.869390 | 2018-10-22T10:35:15 | 2018-10-22T10:35:15 | 124,854,821 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | import requests
import time
from bs4 import BeautifulSoup
import os
from optparse import OptionParser
import datetime
import threading
# paramaters to be defined
website = 'http://konachan.net/post' # 'http://lolibooru.moe/post'
download_path = '/home/chaos/opt/pip/white'
tags = ''
pages = 1
image_count = 1
class d... | [
"ouromoros@gmail.com"
] | ouromoros@gmail.com |
ad2330d8afc9b51696c93c8c657b6ae40639a143 | 890657e5e5d0668fdb7015abc3ea78313b9abcbf | /simStock.py | c4122c978895211fae5145f404e84607235e2269 | [] | no_license | grsmith1943/econophysics | 4d3f72f1b4761364136978c94614895c7cc0e325 | eef63511dbabec637272368bbb7a47a3b4caa670 | refs/heads/master | 2021-06-14T03:33:44.307066 | 2017-03-06T05:40:17 | 2017-03-06T05:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
# simulates the path of a stock and outputs the estimated call and put prices
def simStock(r=0.01, mu=0.01, sigma=0.01, T=60, S=15, X=15, N=1000, n=30):
dt = T/N
calls, puts = [None]*n, [None]*n
for path in range(n):
pathPrice = [None] *... | [
"jmarrvin@gmail.com"
] | jmarrvin@gmail.com |
e7e8f4cff06e14fcbc56bac03f97f74a51c810d3 | c1ed05a3c546d3580ac0bb0e66bcaddaf8d78b28 | /app/models/time_utils.py | 584226049bdc48b57f288886692a59ca9c223514 | [] | no_license | lelandbatey/whereIAm | 382108fd296ab69e97ac8bf6a11a3aaf7cef7de4 | 66c071cce541f65bfcf1a1865948e5a4abe55601 | refs/heads/master | 2022-08-07T17:10:15.354394 | 2022-07-12T00:50:16 | 2022-07-12T00:50:16 | 17,266,937 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from __future__ import print_function
import time
import datetime
# Test
def simplefmt_in_pdt_to_utc_epoch(moment):
"""Converts simple format string as if taken in PDT to UTC.
This function is good for helping a developer in PDT query times in a
format they're comfortable with.
"""
t = simplefmt_to_datetime(mo... | [
"lelandbatey@gmail.com"
] | lelandbatey@gmail.com |
6e85b271ef79c17d8c18fcf939716b7ef7bf09cc | 47dd1fe92dd3b918881171c8159c2da931a43cd0 | /erasing_background.py | 8c0238257df9f08f233e52a1c507257cab098a12 | [] | no_license | HCl3646/Ball-Recognizing | eef38c40e0ee3978c53ce61e654b91a14656f684 | 4707f93800b2e08401fc237b3b68d6db2e571ff1 | refs/heads/main | 2023-07-16T14:35:22.326111 | 2021-08-25T10:00:45 | 2021-08-25T10:00:45 | 390,645,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | import cv2
import numpy as np
import sys
import math
def afterFindCircle(src, circle):
for y in range(len(src)):
for x in range(len(src[y])):
count = 0
for cnt in circle:
formula = (y - cnt[0][1]) ** 2 + (x - cnt[0][0]) ** 2
if formula > (cnt[1])**2:... | [
"79964155+HCl3646@users.noreply.github.com"
] | 79964155+HCl3646@users.noreply.github.com |
e58c5f71e7e0260f7e30521044465cd8a9326093 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02778/s173819636.py | 68ef04cad2b1b6d8ccded1faecc1b0de046a7534 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | S=input()
l=len(S)
X='x'*l
X=str(X)
print(X) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a3d0337ce71f1be2261bb1b53e4460a25995c0c | a142942a91142f7139a74c3843527220caefc7e0 | /model/pawns/behaviors/moving_behaviors/explorer.py | d8955a298dbd9d77476d5efc591ca34e7ed19343 | [] | no_license | ME-JAD/projet-python-les-roms | 2ae2c6c703e0c575d4cafba47845c38bd91cf302 | 7c006a1c887de2b88feb658719dc28e17de1be09 | refs/heads/main | 2023-06-26T00:35:21.610800 | 2021-07-26T08:07:21 | 2021-07-26T08:07:21 | 369,602,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from model.pawns.behaviors.moving_behaviors.anarchic_abstract import AnarchicAbstract
class Explorer(AnarchicAbstract):
def __init__(self):
super().__init__(0.04)
def to_string(self) -> str:
return "explorer"
| [
"romain.roubaix@hotmail.fr"
] | romain.roubaix@hotmail.fr |
d183fc7c9346569cfd30247f70f6d734d228465a | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc066/B/4898222.py | d42241014312de127729cea09494cd0e85291565 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | s = input()
found = 0
for i in range(len(s)):
if i % 2 == 0 and i >= 2:
t = s[:i//2]
t2 = s[i//2:i]
if t == t2:
found = i
print(found) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
f4f5cc0bfddd33da8f868b066af7b61019f05d75 | 0f2a9eab881c471e32b9467280633a2649519861 | /tensorx/activation.py | c8e2efa1af2e090d7128861133dc4ba83f3aefe0 | [
"Apache-2.0"
] | permissive | mkdir700/tensorx | 97720423109ffcd5cd50c21909051e31ffca07d1 | 11d7727b055fbee29e122ffbfc7a39057aeeae40 | refs/heads/master | 2023-03-15T19:32:31.002867 | 2021-01-16T21:20:37 | 2021-01-16T21:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,062 | py | import tensorflow as tf
import math
from tensorx.utils import as_tensor
def identity(x, name: str = None) -> tf.Tensor:
""" Identity function
Returns a tensor with the same content as the input tensor.
Args:
x (`Tensor`): The input tensor.
name (`str`): name for this op
Returns:
... | [
"davidelnunes@gmail.com"
] | davidelnunes@gmail.com |
30fee447c48fbadf60c4992516d343c3172117ad | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1920.py | 90cfffa52cf142046f944f67dd669ef10263e345 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import sys
cases = int(sys.stdin.readline())
for i in range(1,cases+1):
r1 = int(sys.stdin.readline())
board1 = []
for j in range(4):
board1.append(set(sys.stdin.readline().strip().split()))
r2 = int(sys.stdin.readline())
board2 = []
for j in range(4):
board2.append(set(sys.s... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6edd0b38fb67914d917cc619077312985109a170 | 94eed60e05689e25f9070e80ad7e4fc3092d9df4 | /Languages/Python/python_study_3/page10/script.py | 8fdc9c00a26f834116e701e6e8cdaaafd65dbe91 | [
"MIT"
] | permissive | myarist/Progate | 0998e79f786db7a93ebd7488494427c3156729c7 | 0132583c989b5ec1805d4de1a6f6861586cf152e | refs/heads/main | 2023-05-09T05:52:12.476226 | 2021-06-07T21:26:48 | 2021-06-07T21:26:48 | 363,348,949 | 13 | 17 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | def validate(hand):
if hand < 0 or hand > 2:
return False
return True
def print_hand(hand, name='Tamu'):
hands = ['Batu', 'Kertas', 'Gunting']
print(name + ' memilih: ' + hands[hand])
print('Memulai permainan Batu Kertas Gunting!')
player_name = input('Masukkan nama Anda: ')
print('Pilih tang... | [
"aristyanto2320@gmail.com"
] | aristyanto2320@gmail.com |
1505ecdc491bd9721b4650ce6eda55cdbee0446a | fdefd1f4b402620d7a9cc1f5ca8ed522c54bec4a | /torch_geometric/nn/conv/dna_conv.py | 2b90319e7c9fa0d0e6415824ba077d9d74642c10 | [
"MIT"
] | permissive | Lotayou/pytorch_geometric | 75f9ee187503fed9b70a800e5d768ecb91719d9f | 09ef8e3a510de3336f092a5dc1ede290b1c5cdb8 | refs/heads/master | 2020-05-07T22:24:52.701826 | 2019-04-12T05:24:52 | 2019-04-12T05:24:52 | 174,668,900 | 1 | 0 | MIT | 2019-03-09T08:36:42 | 2019-03-09T08:36:41 | null | UTF-8 | Python | false | false | 9,892 | py | from __future__ import division
import math
import torch
from torch import Tensor
from torch.nn import Parameter
import torch.nn.functional as F
from torch_geometric.nn.conv import MessagePassing, GCNConv
from ..inits import uniform, kaiming_uniform
class Linear(torch.nn.Module):
def __init__(self, in_channels... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
fa5290467644a2b4bf1c09544db265e9187a3b94 | 6293491133e816f6148d576639f21348f8f19297 | /main/models/legacy.py | dd4cf540dfae6daf01225a5085e3e09b1ce6366c | [
"MIT"
] | permissive | BAMRU-Tech/bamru_net | 0f6539973fb4eb088d76f50f491c2c1b74edd35b | b988b6e41c786448c4a8a76c11397d195f802a26 | refs/heads/main | 2023-07-24T14:09:59.712325 | 2023-07-11T06:37:07 | 2023-07-11T06:37:07 | 149,375,227 | 7 | 3 | MIT | 2023-07-11T06:39:00 | 2018-09-19T01:38:59 | Python | UTF-8 | Python | false | false | 5,554 | py |
#####################################################################
# Models below this line have not been looked at
#####################################################################
class DataFiles(models.Model):
id = models.IntegerField(primary_key=True) # AutoField?
member_id = models.IntegerField(b... | [
"github.kevin@duncklee.net"
] | github.kevin@duncklee.net |
5e9e628a0571d892088ff32b1a6315611dcec60e | 5ab78eb2f4f17337f9e8b6a90e588aaba6af4a90 | /work/auto_make_iso.py | 685dc4c8924bfea5ff8431c946d8ec46dd276f11 | [] | no_license | swl5571147a/stone | 3946dbdba2315bb9f75495a1efcbe713e4c72324 | d75538601e992fec000adf0550f9ac54fa326e18 | refs/heads/master | 2021-01-21T00:20:55.272706 | 2014-05-26T15:41:16 | 2014-05-26T15:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,701 | py | #!/usr/bin/env python
import paramiko,os,sys,commands,time
from subprocess import Popen, PIPE
import shlex
#set the default configure and argvs
current_time = time.strftime('%Y-%m-%d-%H-%M-%S',time.localtime(time.time()))
conf = {'path_mcu':'/home/broad/sunwenlong/iserver-mcu/medooze',
'path_mcuWeb':'',
... | [
"sunwenlong@broadeng.net"
] | sunwenlong@broadeng.net |
79791e657d895150d196b1b657a4d3fecc3f369a | d50aee7c9ede6e17be1825b4ef124fdfd63b67bf | /wargames/root-me/basic2.py | fdbea4bda5383dd9a8a464468050939c8bf50d60 | [] | no_license | geethna/Binary-Exploitation | c4512f8389fc2ef94954ba13ca60b63afd430967 | ef22d7592cd536b08dcad503f744b31f73bb761b | refs/heads/master | 2022-11-23T04:33:59.076903 | 2020-07-29T06:35:27 | 2020-07-29T06:35:27 | 283,412,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from pwn import *
p = ssh(host='challenge02.root-me.org' ,user='app-systeme-ch15' ,password='app-systeme-ch15',port=2222)
s=p.process(executable='./ch15')
s.sendline('i' * 128 + '\x64\x84\x04\x08')
s.sendline('cat .passwd')
print s.recvline()
| [
"geethna.teekey@gmail.com"
] | geethna.teekey@gmail.com |
0d9dd9c943b6681df14ffab31032cc8d1c929a07 | a0e6a780eb8789b4674a686997a3d9de9ad9c95c | /contracts/business_template/privacy_computation/Fiat-Shamir-ZK/contract_step45.py | e1bd0b4f7e3fdaf1db8c14492ba9eb4962748dc8 | [
"Apache-2.0",
"Apache-1.1"
] | permissive | freezehe/SmartDev-Contract | 4e8d5d3670e59889500269a6207d1c855972cac7 | ec31fb787bdab96703669b551f938e3c327fc00e | refs/heads/master | 2023-06-29T09:12:14.049701 | 2021-08-04T13:39:18 | 2021-08-04T13:39:18 | 385,824,978 | 2 | 0 | Apache-2.0 | 2021-07-14T05:34:01 | 2021-07-14T05:34:01 | null | UTF-8 | Python | false | false | 337 | py | import libnum
import hashlib
import random
n=8269
g=11
password = "Hello"
x = int(hashlib.sha256(password.encode()).hexdigest()[:8], 16) % n
print('\n======Phase 4: Peggy recieves c and calculate r=v-cx, sends r to Victor==================')
c = input("c= ")
v = input("v= ")
r = (int(v) - int(c) * x) % (n-1)
print(... | [
"noreply@github.com"
] | noreply@github.com |
7469228ba95707cd19ef91526eeb6fb67073a8e4 | 276ceede3fe56f00af940732df478f045337b67c | /Loss_functions.py | 4b8856c98b96e6d87b6c349432b09085e0ecbeb2 | [] | no_license | Ali-Sahili/Generative_Architectures | 32c4a122af567f4b48418e69b13210a76254932f | bd7ae32e149592221b622f2d3ab9a43c1daa89ca | refs/heads/master | 2022-08-10T12:55:58.726022 | 2022-07-09T15:06:05 | 2022-07-09T15:06:05 | 255,911,670 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import torch
from torch import nn
# This function is used in the variational auto-encoder
reconstruction_function = nn.MSELoss(size_average=False)
def loss_function(recon_x, x, mu, logvar):
"""
recon_x: generating images
x: origin images
mu: latent mean
logvar: latent log variance
"""
BC... | [
"alirida.sahili@gmail.com"
] | alirida.sahili@gmail.com |
9c53e1a542d95c9a0bc8497a2a168df57c45e704 | 2a3a7f4940157f3d07700451b2633f60ba58abdc | /stack/150-Evaluate-Reverse-Polish-Notation/num_push_operator_pop2push1.py | 7e80fad345956003b2ab85e49202df48460ea324 | [] | no_license | moonlightshadow123/leetcode_solutions | cd8400eff270f0608995089ab0207240071a7c46 | 6e4fa7fba17292fe4e2511555d743f41259d5351 | refs/heads/master | 2021-05-24T03:43:49.949864 | 2020-04-11T03:55:27 | 2020-04-11T03:55:27 | 73,599,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import math
class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
operators = set(['+', '-', '*', '/'])
stack = []
for token in tokens:
if token in operators:
y = stack[-1]
de... | [
"noreply@github.com"
] | noreply@github.com |
1086b526a49d9b0593b4fd44ca8ffb61a9479f33 | 6e820756b82ffbe9837348937e53f1a0ce0e6cca | /Lib/site-packages/sklearn/datasets/tests/test_openml.py | fa6b53d5132cbf961f655908b2a6fbb64b0f596f | [] | no_license | AndreasPatsimas/pms_papei | c2afd941de6ae234dd37784d746e794183ebb8d3 | da10220ea468304c1066bed55b8f92ba9e5ada8a | refs/heads/master | 2023-02-01T23:33:39.221747 | 2020-12-19T12:17:59 | 2020-12-19T12:17:59 | 321,115,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,761 | py | """Test the openml loader.
"""
import gzip
import json
import numpy as np
import os
import re
import scipy.sparse
import sklearn
import pytest
from sklearn import config_context
from sklearn.datasets import fetch_openml
from sklearn.datasets._openml import (_open_openml_url,
_arff... | [
"45208441+AndreasPatsimas@users.noreply.github.com"
] | 45208441+AndreasPatsimas@users.noreply.github.com |
4f17b9642923971d36bd340e30cf3088aa9e4934 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/MSYS/python/Lib/test/test_macpath.py | 09609c89ed3cbbeca84d8e94c33db3bb69321b4a | [
"bzip2-1.0.6",
"LicenseRef-scancode-proprietary-license",
"OpenSSL",
"Python-2.0",
"LicenseRef-scancode-newlib-historical",
"TCL",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | Python | false | false | 6,503 | py | from test import test_genericpath
import unittest
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", "the macpath module is deprecated",
DeprecationWarning)
import macpath
class MacPathTestCase(unittest.TestCase):
def test_abspath(... | [
"jczhang@bouffalolab.com"
] | jczhang@bouffalolab.com |
7cfa8bc5f3f464ee75f8482cc31e6b0550228649 | f73241e87cef9250d8e6a3648b23920dddccb19f | /Web Scrape.py | 85c7f9f0bceec54ec321a0cabcdd18b23c736d6e | [] | no_license | roshanpokhrel/webscrape | cf39c6826913c2e01490797e3a48943574eddcaf | 23f3e07b14bbd6ea5ee1b8d5f21e4a7b7b7b1657 | refs/heads/master | 2020-03-25T17:17:05.148421 | 2018-08-08T06:36:22 | 2018-08-08T06:36:22 | 143,971,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'https://www.newegg.com/Video-Cards-Video-Devices/Category/ID-38?Tpk=graphics%20card'
# opening up a connection, grabbing the page
uClient = uReq(my_url)
# offloads contents into variable
page_html = uClient.read()
# close the c... | [
"roshan@Roshans-MacBook-Pro.local"
] | roshan@Roshans-MacBook-Pro.local |
bdd85e097c2d83b1fa81fe61ddc8d6a2508d83d0 | fe9935b08e22fc019fbcfd6c0bc37ab235e2a0e2 | /catkin_ws/devel/lib/python3/dist-packages/suruiha_gazebo_plugins/msg/__init__.py | 47936db23aedbd75e93835ebb9ed84b9da5ba4b5 | [] | no_license | abdussametkaradeniz/RosLessonsAndTutorials | ce22a06d8a881d949479956ea6aa06ff9f8bf41b | 940597350f5ed85244696ec44fe567fd89a6d5d8 | refs/heads/main | 2023-07-18T22:56:52.075918 | 2021-09-07T21:42:24 | 2021-09-07T21:42:24 | 404,125,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from ._UAVBattery import *
from ._UAVMessage import *
from ._UAVScore import *
from ._UAVSensorMessage import *
from ._UAVTracking import *
| [
"abdussametgosukaradeniz@gmail.com"
] | abdussametgosukaradeniz@gmail.com |
ce0d6c9dabd06a703319e21717d1378c7980e8d9 | 9d35a44bd264258fc306c622e1097f637988638a | /shortnr/bookmarks/migrations/0004_auto_20160405_0334.py | 3def50627d8aed2a9864fbaa008a26134ef36c2f | [] | no_license | D4VEB/urly-bird | fca75ea8888895b6a84dff73a931007af45de0e6 | 906de245acd5cd45883928ffb415791efbd32c01 | refs/heads/master | 2021-01-12T20:00:30.126945 | 2016-04-07T20:13:35 | 2016-04-07T20:13:35 | 55,182,743 | 0 | 0 | null | 2016-03-31T21:02:19 | 2016-03-31T21:02:19 | null | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-05 10:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookmarks', '0003_auto_20160405_0319'),
]
operations = [
migrations.AlterFie... | [
"dhblodgett@gmail.com"
] | dhblodgett@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.