blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e2d27aa8e45e1d0028a1e9ed43e9f10c484a899 | 8d1d1e7677e1a18c00fb295971211d4e29d10896 | /vocal_synthesis/experiments/16mar_minimalist2.py | 8a0371d7ae056b62551b05945627504c8a9a062d | [] | no_license | christopher-beckham/ift6266h16 | 8296d1529f6ce3e209af371283f816a4c6d63ea9 | f141fb0a320c20c2c7b43b46f06b1c68cde183f0 | refs/heads/master | 2021-01-10T13:38:40.733180 | 2016-04-17T02:22:52 | 2016-04-17T02:22:52 | 49,399,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import numpy as np
from scipy.io import wavfile
import os
import sys
#os.chdir("..")
sys.path.append( os.pardir )
#sys.stderr.write("current working directory: %s\n" % os.getcwd())
import cPickle as pickle
from lasagne.updates import *
import rnn_experiment as experiment
if __name__ == "__main__":
# e.g. 1000_60s... | [
"chrispy645@gmail.com"
] | chrispy645@gmail.com |
a606c217a63ac78b1e6b4834db6bae76d44eb286 | 6d24a0820a2e1227e8caff083a8fef4f6f207c6f | /django_test4/manage.py | 919acccc182da8e574663362c470487af704fde5 | [] | no_license | pyh3887/Django | 45d4b3be955634edba924cc18bbc8d3454c7355b | a44e1067494391ff4a7473aeaeb63bbeba43b3d8 | refs/heads/master | 2022-11-08T08:36:04.750050 | 2020-06-28T14:00:53 | 2020-06-28T14:00:53 | 275,596,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_test4.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"pyh3887@naver.com"
] | pyh3887@naver.com |
3ae0f1c95796e57b71290c1ea4593981b8eaa8cc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_105/ch14_2019_08_28_18_56_07_920001.py | 274be80f2e6a4a400ac2bbcb7a5f2f8276dbfe22 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #funçao para calcular o volume de uma esfera
import math
def calcula_volume_da_espera(raio):
volume = (4 / 3) * math.pi * (raio)**3
return volume
r = 5
x = calcula_volume_da_espera(r)
print(x)
| [
"you@example.com"
] | you@example.com |
23025f36549d15efc64fc8f5fc60643bf064f03f | a08225934c425be313a12975c9563a72ded58be6 | /round668/ansbfsbro.py | d92b9b43907213e629b22639d82c6f148de5a3cc | [] | no_license | marcus-aurelianus/codeforce | 27c966554dee9986f23fb2925bd53e6cceb8b9e9 | 4764df151ade7806e32b6c88283a2de946f99e16 | refs/heads/master | 2023-03-18T09:30:55.042594 | 2021-03-12T18:14:08 | 2021-03-12T18:14:08 | 231,387,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | from collections import deque
import sys
input = sys.stdin.readline
def get_diameter(tree):
u, _, _ = _dfs(0, tree)
v, diam, dist = _dfs(u, tree)
path = [v]
while v != u:
for nxt_v in tree[v]:
if 1 + dist[nxt_v] == dist[v]:
path.append(nxt_v)
v =... | [
"37787424+marcus-aurelianus@users.noreply.github.com"
] | 37787424+marcus-aurelianus@users.noreply.github.com |
9eea1f089e5df0837a64cfa3733cfb136dab2f1b | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/syslog/rttoremotesysloggroup.py | 681035ba11c5042c7e1934d5b99fb4c077af129c | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 4,647 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
82fe2175ec04d5bd0ac591bc2dca2851cd2e62d4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch50_2020_09_30_20_44_23_062380.py | 2fc8c9a8fab5b14828d3b554d8252e61a4429570 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | def junta_nome_sobrenome(nome,sobrenome):
juncao=[]
i=0
j=0
while(i<len(nome) and j<len(sobrenome)):
juncao.append(nome[i],sobrenome[j])
i+=1
j+=1
return juncao
| [
"you@example.com"
] | you@example.com |
94fce4febd1a1ec48c9220916fc4081efd807f64 | 3955c3f367a3a60f8602dcb4609faec9898438bb | /test/test_retention_strategy_description.py | cac1211511a84328ecf682bb3d91e58adf7feb4c | [
"Apache-2.0"
] | permissive | MinhKMA/graylog.py | e89c34defa5422d59d0a501355058f5eb2dfe68c | 3118f4a49c91c2cbbd660523b0ab99e56fbfd861 | refs/heads/master | 2021-05-06T21:03:06.946509 | 2016-09-23T04:31:13 | 2016-09-23T04:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.1.1+01d50e5
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you m... | [
"on99@users.noreply.github.com"
] | on99@users.noreply.github.com |
e349b153a25f1095319e963ee6aeeb8b7ac6f557 | 8371e55cd5dc529611fd705c62476728e7b7e529 | /test/test_metrics.py | ed265becede1a85c12bbe8dad61fe8ce4522789f | [
"Apache-2.0"
] | permissive | timgates42/kornia | 3436515991f8799027766beef767c05ba3796cb0 | 03ab49feb075149c0df65d47cdb91d563b8980e2 | refs/heads/master | 2023-03-20T21:22:22.836296 | 2022-07-03T08:56:33 | 2022-07-03T08:56:33 | 236,164,451 | 0 | 0 | null | 2020-01-25T12:01:24 | 2020-01-25T12:01:23 | null | UTF-8 | Python | false | false | 10,430 | py | import pytest
import torch
import kornia
from kornia.testing import assert_close
class TestMeanIoU:
def test_two_classes_perfect(self, device, dtype):
batch_size = 1
num_classes = 2
actual = torch.tensor([[1, 1, 1, 1, 0, 0, 0, 0]], device=device, dtype=torch.long)
predicted = torc... | [
"noreply@github.com"
] | timgates42.noreply@github.com |
7c33a275e78c048129d92635ec3b86a215c3990b | d3fb61f506eb44deb55a5b4a99e1d2ae2d16fe0a | /code/models_old/just_graph_multi_video_multi_F_joint_train.py | 59479e24849bf7f87bef09a8c4d649282353e05d | [] | no_license | menorashid/nn_net | 3a719aaa3f608a65dfde3c57db20a3066d7ea453 | 11df1365b7f0375a251b00f807188f4be6b8f025 | refs/heads/master | 2021-07-06T08:08:25.879757 | 2020-07-28T22:01:34 | 2020-07-28T22:01:34 | 143,941,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,285 | py | from torchvision import models
import torch.nn as nn
import torch
import torch.nn.functional as F
from graph_layer_flexible_temp import Graph_Layer
from graph_layer_flexible_temp import Graph_Layer_Wrapper
from normalize import Normalize
import numpy as np
class Graph_Multi_Video(nn.Module):
def __init__(self,
... | [
"mhnrashid@gmail.com"
] | mhnrashid@gmail.com |
2c0bf2128c76702e7d8830f8120c27fde6389526 | 2d064dfb4244f5b915c3b02de9594f8e15beb6d0 | /Other Projects/RamanShiftNiller.py | e61d0127378fbfb4a711b9c2b17186a3aaa9a182 | [] | no_license | ArunShishodia/Smaller-Programs | 24937ff571a27b5e0c634bf235fb175794986086 | 318ee830188c526921083a5f9aabd41504e055a2 | refs/heads/master | 2023-08-24T11:28:54.234711 | 2021-10-22T17:29:03 | 2021-10-22T17:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | def print_to_file():
in1,in2 = 0, 0
while in1 != "stop":
in1 = float(input("Enter the right hand side mode: "))
in2 = float(input("Enter the left hand side mode: "))
print("The result is ", (in1 - in2)/2)
in_str = input("Do you want to print to file? y/n ")
if in_str ... | [
"martenscheuck@gmail.com"
] | martenscheuck@gmail.com |
5a84b74dd69aa586f5d914c72439c64a06582326 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/scikit-learn/py2/sklearn/externals/joblib/pool.py | e0682c1822314d799c3e14e7fbb7d6735c7ebd9e | [
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 25,033 | py | """Custom implementation of multiprocessing.Pool with custom pickler.
This module provides efficient ways of working with data stored in
shared memory with numpy.memmap arrays without inducing any memory
copy between the parent and child processes.
This module should not be imported if multiprocessing is not
availabl... | [
"evgueni.s.petrov@gmail.com"
] | evgueni.s.petrov@gmail.com |
5f24281f18439e98042de1cbc4bfec9f0b491c3d | d7aea8c5589c4d752e075244aab92d245ad98b4e | /densenetocr/core.py | 78633d70b458b00a6e5517337dfd7df40377835c | [] | no_license | fendaq/text-detection-1 | 9da5bc131c89f465f4dc64924bff4765253b6bdd | fedbfa1ad02da6b98cb154eeaba32692d40ec672 | refs/heads/master | 2020-04-05T17:47:20.221900 | 2018-11-11T04:54:26 | 2018-11-11T04:54:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,750 | py | import json
import keras.backend as K
import numpy as np
from PIL import Image
from keras import Input, Model
from keras.layers import Conv2D, BatchNormalization, Activation, Dropout, AveragePooling2D, ZeroPadding2D, Permute, \
TimeDistributed, Flatten, Dense, Lambda
from keras.layers.merge import concatenate
from... | [
"1490215053@qq.com"
] | 1490215053@qq.com |
10e11028f40f1ce8e532bb26f81c50593d8258d4 | 9da052515ce465cf296278f96c492d9ead1ccb13 | /chap09/mypack/mysub/lib.py | a3f12c3e5acdee4ab64b6699079d6a7edab03f9b | [] | no_license | usako1124/teach-yourself-python | ea5cf1491d8609be7436bab56798040314a3ccf8 | e53b1a27117d03804d136dbb5ace37efc9bf6a10 | refs/heads/main | 2023-06-15T22:47:22.873291 | 2021-06-30T13:34:08 | 2021-06-30T13:34:08 | 354,186,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from .. import hoge
def main():
hoge.func() | [
"usako1124.aibo@gmail.com"
] | usako1124.aibo@gmail.com |
1111f324e3844b239c55a24138a23a8c48c92e47 | 564fe9c8409d9ff4ba5f88dd36c0743d417767fa | /test/test_alert_team_meta.py | 3ae2e7a913c19ecd20b06e143be8e283b5169389 | [
"Apache-2.0"
] | permissive | criteo-forks/opsgenie-python-sdk | 28cf4b2e5eb5f10df582cfd6393a0e952dee5102 | 2a3924a0bd779eab47937925eb5d42ffbbd751d4 | refs/heads/master | 2020-04-05T23:09:41.002143 | 2019-04-12T13:37:22 | 2019-04-12T13:37:22 | 65,009,459 | 0 | 2 | null | 2016-08-05T10:08:55 | 2016-08-05T10:08:55 | null | UTF-8 | Python | false | false | 870 | py | # coding: utf-8
"""
OpsGenie REST API
OpsGenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import opsgenie_swagger
from opsgenie_swagger.models.aler... | [
"c.chary@criteo.com"
] | c.chary@criteo.com |
2575781d0b1a0577879a12cb6c9d39c26bb61fa6 | 00689951be97b3e9e3a036aca64efaa1ee59134a | /aula020 - FUNÇÕES/aula020.py | 6fb54eff457ee36900903b61a3a97b0b0b5a7171 | [
"MIT"
] | permissive | miradouro/CursoEmVideo-Python | 4826cf387cc9424e675f2b115842a643f2d67c8d | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | refs/heads/main | 2023-03-24T08:51:34.183169 | 2021-03-20T22:15:02 | 2021-03-20T22:15:02 | 349,843,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def mensagens(msg):
print('-'*30)
print(f'{msg:^30}')
print('-'*30)
def soma(a, b):
print(a + b)
def contador(*num):
somatoria = 0
for valor in num:
somatoria += valor
print(somatoria)
mensagens('Olá, Mundo!')
soma(4, 5)
contador(2, 3, 4, 1)
| [
"rafaelmiradouro@gmail.com"
] | rafaelmiradouro@gmail.com |
61fb1be17f956ac91e76b9c3f90e22510d726b03 | f63c4eb29ce57319441f5469d1d049b63bc220de | /swu_cycle_variance/run408.py | f7ee14169edb5f464ff68b4b2091bfc6fa2c2f51 | [] | no_license | a-co/diversion_models | 0237642153668b16035699e9e734ff0538568582 | 69eed2687b1cd2b48f5717d15919eccd24a0eabc | refs/heads/main | 2023-05-02T19:04:26.333677 | 2020-06-18T20:50:18 | 2020-06-18T20:50:18 | 216,904,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | SIMULATION = {'simulation': {'agent': [{'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'name': 'Source'}, {'lib': 'cycamore', 'name': 'Sink'}, {'lib': 'cy... | [
"acaldwel@wellesley.edu"
] | acaldwel@wellesley.edu |
7239fe20e9a84b702b3c129e529ae7d77af73d46 | 0cab1425f18ea11e498278815ed2d95e26d15ace | /helper/helper_file.py | 9ac77270fb042a05dcf7cf00ff88842a2d62d815 | [] | no_license | philgookang/pcr | 1574a26160b83987234f3103e5b82eaf1bc5ac72 | 4fa28fecc3ca22b8b3315991e6505c7519de4fde | refs/heads/master | 2023-08-08T00:47:03.508899 | 2019-12-19T05:11:02 | 2019-12-19T05:11:02 | 198,176,017 | 4 | 0 | null | 2023-07-22T11:30:00 | 2019-07-22T08:02:05 | Python | UTF-8 | Python | false | false | 921 | py | import torch
import pickle
import os
from PIL import Image, PSDraw, ImageDraw, ImageFont
from config import *
def save_dataset(filename, target):
with open(os.path.join(RESULT_DATASET_PATH, filename), "wb") as f:
pickle.dump(target, f)
def load_dataset(filename):
with open(os.path.join(RESU... | [
"philgookang@gmail.com"
] | philgookang@gmail.com |
3952e84d0d040f47a58aa80ddbefce5462fcdebb | d67fd48fdfd237c27faa23bd0430a279f63fa25c | /pageobjects/frames_page.py | 07c4302cb4a98152761153da2128c1c1ca0faff1 | [] | no_license | shreedora/pytestframework | 25ae843876ddeb77d43de2bbd4a6672d6c4c3541 | ceafe6c4d000e1c98174c3009b14c2ab115f2e4a | refs/heads/master | 2023-07-21T01:28:53.380077 | 2019-08-15T15:34:53 | 2019-08-15T15:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | from generic.base import Base
class Frames:
pass
| [
"khandepc@gmail.com"
] | khandepc@gmail.com |
ac1f040cb3738fe1771300341001c1a391bb690d | 3ba8bca6c557936450a4fa08de9dea68f97681ec | /tests/test_trade.py | 1f874ffc64c9718937d976db1a709d4b88db8198 | [
"MIT"
] | permissive | liuyang1/xalpha | 08a801d360cf77a0057414e84f846fdf68388a2d | 8672a7a11f2b2ded652cd37df0fc0db6dd6aac8a | refs/heads/master | 2020-05-06T13:36:28.806387 | 2020-01-09T04:57:00 | 2020-01-09T04:58:50 | 180,146,115 | 0 | 1 | null | 2019-04-08T12:39:21 | 2019-04-08T12:39:21 | null | UTF-8 | Python | false | false | 3,594 | py | import sys
sys.path.insert(0, "../")
import xalpha as xa
import pytest
import pandas as pd
path = 'demo.csv'
cm = xa.fundinfo('164818')
statb = xa.record(path).status
cm_t = xa.trade(cm, statb)
def test_trade():
assert cm_t.cftable.loc[2, 'share'] == -129.14
assert round(cm_t.xirrrate('2018-03-03'), 3) == -... | [
"kcanamgal@foxmail.com"
] | kcanamgal@foxmail.com |
0e80cef9ff865563cc3fdfaa2defb466e14a28db | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/scikit-learn_test_results/files/107_lda_conflict.py | 511968d49f04cad53c837abded54eb811fa06d03 | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,691 | py | """
LDA: Linear Discriminant Analysis
"""
# Authors: Matthieu Perrot
# Mathieu Blondel
import warnings
import numpy as np
from scipy import linalg, ndimage
from .base import BaseEstimator, ClassifierMixin
class LDA(BaseEstimator, ClassifierMixin):
"""
Linear Discriminant Analysis (LDA)
Parame... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
0e1c34ce545f90c85d2b94ad44a3e08011787ce8 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/lldptlvsd_54480213540819ecec7096f8f29c5c2f.py | 88f8bc13bf5f03db36a81cf2871e05693a7dd3e2 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 4,952 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
bd39d18338fdb9e9edfef7a78bef7d4241a5f37c | 6a9f6e6527afb38611a5c695e5845e492d7676ff | /70.climbing-stairs.py | e67b2fdcd439792b906fbdf509241afcf5d78dae | [] | no_license | Junyangz/leetcode | 39913d48778d369f9f0a96070352d63b207e7df6 | 5de48fbdcb61ce8a437255a119a4a3ae242ede52 | refs/heads/master | 2020-06-09T08:57:26.361138 | 2019-11-14T08:38:07 | 2019-11-14T08:38:07 | 193,413,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #
# @lc app=leetcode id=70 lang=python3
#
# [70] Climbing Stairs
#
from functools import lru_cache
class Solution:
@lru_cache(None)
def climbStairs(self, n: int) -> int:
if n <= 3: return n
return self.climbStairs(n-1) + self.climbStairs(n-2)
#dp
# if n <= 3: return n
... | [
"junyangz.iie@gmail.com"
] | junyangz.iie@gmail.com |
1e226fa654fee1fa9f4158ccb50e5d5da67a9749 | 92a506dbb59475e4378c0ed9685d52e67dd9dacd | /test/project_tests/test_poisson1d.py | f1a3d689740bdacaaf9a4d85e84964ab67f6d17d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | Parallel-in-Time/pyMG-2016 | c2aca9e5778f40c2e89ee492d01277f7e021825e | abf3e47ba374c39fddd576fdaccf5187c1632f8a | refs/heads/master | 2021-01-21T04:31:05.543828 | 2016-06-23T09:18:29 | 2016-06-23T09:18:29 | 53,484,378 | 2 | 11 | BSD-2-Clause | 2020-10-02T05:44:46 | 2016-03-09T09:16:18 | HTML | UTF-8 | Python | false | false | 943 | py | import numpy as np
from project.poisson1d import Poisson1D
def test_has_spatial_order_of_accuracy():
expected_order = 2
k = 4
ntests = 6
ndofs = []
err_list = []
for i in range(ntests):
ndofs.append(2 ** (i + 4) - 1)
prob = Poisson1D(ndofs[-1])
xvalues = np.array([... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
e2b9ab8b70a89a2eedddc4ecbf3c75754d27cbef | 05afca01eccc6d35d20fe4925c5d4bd2c8161379 | /chat_28374/wsgi.py | 83f029c803529a9171dffe807aed0c501f86a27c | [] | no_license | crowdbotics-apps/chat-28374 | 45261db0fc1d7da5da69536fd3ac776f7b3a0c12 | 74a2159530882d79c8937cb37d0ba285be0a5e7e | refs/heads/master | 2023-06-05T13:41:15.892156 | 2021-07-02T01:01:10 | 2021-07-02T01:01:10 | 382,193,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for chat_28374 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
06bbb14932b3dc339d410086b48bde70742732a1 | 9a081f87749245666f40402b389167f03375aa27 | /CNN.py | 2375fbef13b31125db4dfb4aee2799b62c2f2d95 | [] | no_license | reddytocode/tensorFlw | 704e981dc39dfde0e0e9ddb892b484f5d95a111d | 4c20d23cea87ab7fe086a3d619ea3ff779f478f7 | refs/heads/master | 2021-10-23T08:41:49.688089 | 2019-03-15T23:35:41 | 2019-03-15T23:35:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import tensorflow as tf
import keras
mnist = tf.keras.datasets.fashion_mnist
(training_images, training_labels), (test_images, test_labels) = mnist.load_data()
training_images = training_images.reshape(60000, 28, 28, 1)
training_images = training_images/255.0
test_images = test_images.reshape(10000, 28, 28, 1)
test_im... | [
"aaabeeelooon@gmail.com"
] | aaabeeelooon@gmail.com |
0930f0b6a519782da3bf9118c41a62cf0286bc68 | 7e8668e54d0ea55dc1e0185eff920a85af974fa6 | /vendor-local/lib/python/celery/tests/tasks/test_states.py | 4acf8aafeee7d8e35b1d92deeec6dab9aa94cdfa | [
"BSD-3-Clause"
] | permissive | mozilla/firefox-flicks | 3003cee1af0941976ef960a97a0806e19079cd79 | ad19ed59aac682744badae6d19a149327037f293 | refs/heads/master | 2023-07-03T17:33:13.589884 | 2019-03-30T04:45:50 | 2019-03-30T04:45:50 | 3,148,994 | 3 | 6 | BSD-3-Clause | 2019-03-30T04:45:52 | 2012-01-10T21:52:31 | Python | UTF-8 | Python | false | false | 1,318 | py | from __future__ import absolute_import
from celery.states import state
from celery import states
from celery.tests.utils import Case
class test_state_precedence(Case):
def test_gt(self):
self.assertGreater(state(states.SUCCESS),
state(states.PENDING))
self.assertGreate... | [
"mkelly@mozilla.com"
] | mkelly@mozilla.com |
6cb5ca73a3c4b544f93c530b04ebbfe82214ff41 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/61/18544/submittedfiles/funcoes1.py | a3ae4f4e9c4225d28057fe39cceda6c1ea832ff0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # -*- coding: utf-8 -*-
from __future__ import division
def crescente(a):
cont=0
for i in range (0,len(a)-1,1):
if a[i]>a[i+1]:
cont=cont+1
if cont==0:
return True
else:
return False
def decresc(a):
cont=0
for i in range (0,len(a)-1,1):
if a[... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6bb5e25a7b62fe82c79b3eb82972f7a6e16d8953 | 6ae42d809532e463b2cef2a9648ececde501faa1 | /MobileRevelator/python/android_facebook_batch.py | bb122e07248eac572f9dddd399ebe51edd8e1a60 | [
"MIT"
] | permissive | bkerler/MR | c52fa76a1ae46ebb637cac20925f8543235d85f3 | 5ba553fd0eb4c1d80842074a553119486f005822 | refs/heads/master | 2022-04-28T23:48:14.788560 | 2020-06-01T08:25:17 | 2020-06-01T08:25:17 | 168,991,623 | 140 | 35 | MIT | 2020-02-10T10:45:50 | 2019-02-03T20:46:14 | Python | UTF-8 | Python | false | false | 6,399 | py | #Pluginname="Facebook app_analytics (Android)"
#Type=App
import os
import struct
import json
import tempfile
def convertdata(filenames):
zfields=[]
for fsname in filenames:
print("Running Facebook conversion: " + fsname[fsname.rfind("/") + 1:])
filename=tempfile.gettempdir()+"/"+fs... | [
"info@revskills.de"
] | info@revskills.de |
d83cd414c71770b0af62ab4617bc4f101a35b432 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /iMRN9YGK4mcYja9rY_23.py | 75d7bb82d79759426baf19e08f08c025e9422e86 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py |
def accumulating_product(lst):
if lst:
r=[lst[0]]
for i in range(1,len(lst)):
r.append(lst[i]*r[-1])
return r
else:
return []
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2272e4858674584c2763baa58a85ba9c90c95123 | 795fcb8fca8d4d0b940e5b82e33803bb5f4cfe36 | /soapbox/templatetags/soapbox.py | 9431e47bd2d12c81c72efeb846ddb974b8c2a941 | [
"BSD-3-Clause"
] | permissive | callahad/django-soapbox | ef4fc36a4e539cb3008918e8adb08a67ef1d1b1d | f9189e1ddf47175f2392b92c7a0a902817ee1e93 | refs/heads/master | 2021-01-04T13:21:22.022457 | 2017-06-05T09:26:33 | 2017-06-05T09:26:33 | 240,570,323 | 0 | 0 | BSD-3-Clause | 2020-02-14T18:08:01 | 2020-02-14T18:08:00 | null | UTF-8 | Python | false | false | 291 | py | from django import template
from ..models import Message
register = template.Library()
@register.assignment_tag(takes_context=True)
def get_messages_for_page(context, url):
if url == context.template.engine.string_if_invalid:
return []
return Message.objects.match(url)
| [
"james@b-list.org"
] | james@b-list.org |
34bb52a1936b775ded476143836f87df0c213fde | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/s1_3_getHtml_20210209165302.py | 06251e4a9d3dadbfde199980f5e23866fdb8bc24 | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | # This module is called from 3R Automation Component.
import os
import sys
# pdftotree is available as part of the virtual environment for 3R Python processing
import pdftotree
import json
from pprint import pprint
import pdfminer
import matplotlib.pyplot as plt
import ocr_extract as imgpdf
from utils.ocr.handle_ima... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
e72c98ab5cea32846ce3c45803b0b82ff6c328ab | 1c69aaf4ff5c9bbabd4e4e3486e3f442808f96ea | /models/r4/meta.py | ebcab05264342b9983abf18e75edef597276aa0e | [] | no_license | glow-mdsol/devday-boston-clinical-research | 72565289b27e9d6105640ec14749e07d7bc14014 | 560a8141bc3bd1ae5a31b110e82863e25b4ce9f8 | refs/heads/master | 2020-03-20T00:48:32.862642 | 2018-06-20T15:33:29 | 2018-06-20T15:33:29 | 137,056,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.3.0 (http://hl7.org/fhir/StructureDefinition/Meta) on 2018-05-12.
# 2018, SMART Health IT.
from . import element
class Meta(element.Element):
""" Metadata about a resource.
The metadata about a resource. This is content in the res... | [
"glow@mdsol.com"
] | glow@mdsol.com |
3e6e0e70c38de7ddea9dc2f9b668c0b8f3e0bbdd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_get_none-110.py | 2998259b825a549bf3b348da7f8b538e5dcc83a0 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
a = B()
print(a.a)
print(b.a)
print($Parameters)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
4de951b94deba051a37c1db4f7ece94e983a7c83 | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /graphics/3d/4/lawrence_lim/matrix.py | a041e2c30a8361efb4f61e085905e8ef8449ba7d | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | import math
def make_bezier():
return [ [-1, 3,-3, 1],
[ 3,-6, 3, 0],
[-3, 3, 0, 0],
[ 1, 0, 0, 0] ]
def make_hermite():
return [ [ 2,-3, 0, 1],
[-2, 3, 0, 0],
[ 1,-2, 1, 0],
[ 1,-1, 0, 0] ]
def generate_curve_coefs( p1, p2, p3, p4... | [
"azilby@gmail.com"
] | azilby@gmail.com |
8f8adb948cbbabadfc351ff919f05caab0ebb239 | 3d83e5d6c5c3b264dbca94f2fedcd1abaf522278 | /tests/test_wps_cmip5_regridder.py | aadc72a608fab27bdaf0c0cda2f46a48b42b16ef | [
"Apache-2.0"
] | permissive | cp4cds/c4cds-wps | 4767d779a2338d46d52f0c23bb89f0072928c482 | 5abd9281195548bbd1e7653fe2ab1fee26745200 | refs/heads/master | 2020-04-02T06:43:19.383112 | 2020-01-14T16:05:36 | 2020-01-14T16:05:36 | 154,164,988 | 0 | 0 | NOASSERTION | 2020-01-14T16:05:37 | 2018-10-22T15:09:32 | Python | UTF-8 | Python | false | false | 578 | py | from pywps import Service
from pywps.tests import assert_response_success
from . common import client_for, resource_file
from c4cds.processes.wps_cmip5_regridder import CMIP5Regridder
cfgfiles = [resource_file('test.cfg'), ]
def test_wps_cmip5_regridder():
client = client_for(Service(processes=[CMIP5Regridder(... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
c6b598899b53d519f2fdb672ab2f909910a5485a | 969fed6b9f4c0daa728bda52fea73d94bda6faad | /fakeSPS/spss5.py | 750bdd7ae87c3d3ed6a837b471912130b45e52e3 | [] | no_license | ess-dmsc/essiip-fakesinqhw | 7d4c0cb3e412a510db02f011fb9c20edfbd8a84f | ad65844c99e64692f07e7ea04d624154a92d57cd | refs/heads/master | 2021-01-18T22:50:50.182268 | 2020-10-01T08:39:30 | 2020-10-01T08:39:30 | 87,077,121 | 0 | 0 | null | 2018-12-07T08:43:00 | 2017-04-03T13:28:23 | Python | UTF-8 | Python | false | false | 3,061 | py | #!/usr/bin/python
#
# fake SINQ SPS S5. This is a Siemens SPS S5 with a custom RS-232 interface and
# protocol as used at SINQ. The protocol is very simple. What is instrument
# specific is what happens when you set one of the digital inputs. Currently,
# only the AMOR case is implemented.
#
#
# Mark Koennecke, Augus... | [
"mark.koennecke@psi.ch"
] | mark.koennecke@psi.ch |
387830023b70ccdb90dd7ac0b468f571c24753f0 | 8ded32c55d5223654030d176e9df6acf0d9f8855 | /mpikat/meerkat/fbfuse/fbfuse_feng_subscription_manager.py | d5e55f66b74d8673f94689c739bf3adcefb4a347 | [
"MIT"
] | permissive | TeepChairin/mpikat | d5afb738df69e6e4264aac8829a9d48b9aacbd93 | 464d76113c92e0e8a3106ccc05ef551a1427e582 | refs/heads/master | 2020-09-23T20:31:27.677733 | 2019-07-02T15:08:50 | 2019-07-02T15:08:50 | 225,580,332 | 0 | 0 | MIT | 2019-12-03T09:27:15 | 2019-12-03T09:27:14 | null | UTF-8 | Python | false | false | 7,004 | py | """
Copyright (c) 2018 Ewan Barr <ebarr@mpifr-bonn.mpg.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | [
"ewan.d.barr@googlemail.com"
] | ewan.d.barr@googlemail.com |
2edc2b5179347ab0c63389d5e6b5df02fa39f18f | fe62dbd83ac715d640e740e21bf68d9041baab31 | /api/repository/repository.py | 16d007ecaa4231c60d357e2aad26266b069d04df | [] | no_license | chandler767/flask_api_example | ccf2d7ff13a69d1f9a823074e14d7f1073ed215e | a5525fbc537d12f1d2492a6174bf66a3662b9969 | refs/heads/master | 2021-01-18T10:19:27.456774 | 2016-05-25T00:40:52 | 2016-05-25T00:40:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from ..database.database_model import *
## Repository layer will handle database transactions.
class UserRepository():
def signup():
pass
def get_userinfo_id(id):
pass
def get_userinfo_username(username):
pass
def does_exsist(username):
check = db.session.query(User).filter(User.username == username).f... | [
"joshuadparkin@gmail.com"
] | joshuadparkin@gmail.com |
51e1436fc9fa4d880c435775e809bd50dfb571fe | a045055cb41f7d53e1b103c3655a17dc4cd18d40 | /python-master/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py | ef060d462ef5635af99dded85243dfd48b74b671 | [] | no_license | 18271693176/copy | 22f863b180e65c049e902de0327f1af491736e5a | ff2511441a2df03817627ba8abc6b0e213878023 | refs/heads/master | 2020-04-01T20:20:28.048995 | 2018-11-05T02:21:53 | 2018-11-05T02:21:53 | 153,599,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... | [
"906317366@qq.com"
] | 906317366@qq.com |
ec7a4da280ef858b1fa27fea0877fec4c261e8e5 | 6d63aa2f237c0d2662a71b2065026cebad56829f | /netease-musicbox-git/lilac.py | e466f53e2bda5ee027883177b90d7dd65eaa1518 | [] | no_license | MaskRay/repo | dbc407f5a30ac69d9aad27592e71337a4c194fe7 | e8def5b474d55dfbabdefd20c64cf1a12e3d950c | refs/heads/master | 2021-01-13T11:09:18.404283 | 2018-05-05T08:11:03 | 2018-05-05T08:11:03 | 77,249,750 | 0 | 0 | null | 2016-12-23T20:44:24 | 2016-12-23T20:44:24 | null | UTF-8 | Python | false | false | 234 | py | #!/usr/bin/env python3
from lilaclib import *
build_prefix = 'extra-x86_64'
pre_build = vcs_update
def post_build():
git_add_files("PKGBUILD")
git_commit()
update_aur_repo()
if __name__ == '__main__':
single_main()
| [
"farseerfc@gmail.com"
] | farseerfc@gmail.com |
28e13bc91b63fc55d62a0d4a6677303b7db657ad | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /eggs/mercurial-2.1.2-py2.6-linux-x86_64-ucs4.egg/mercurial/lock.py | cc2c533a2b2474daea45ead213c5e4f8b3c81b16 | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 4,642 | py | # lock.py - simple advisory locking scheme for mercurial
#
# Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
import util, error
import errno, os, socket, time
import warnings
cl... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
066de1d07307922afb7ea23dfc46e85906ab1c9f | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/12113086.py | ce8a5b592a5552f40e8070fd8db1fbe8f91f91d7 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/12113086.py generated: Fri, 27 Mar 2015 16:10:07
#
# Event Type: 12113086
#
# ASCII decay Descriptor: [B+ -> K+ (Higgs0 -> mu+ mu-) ]cc
#
from Configurables import Generation
Generation().EventType = 12113086
Generation().SampleGenerationTool = "SignalRep... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
c9af53687ffb088e04769d9ad518028fef96b976 | c8ae7695a26ec273a04e8043b7cf6fff8e1d6f71 | /supervised_learning/0x11-attention/11-transformer.py | c85826c82e240f06cbaf00a0ad0414cdb76df3e6 | [] | no_license | xica369/holbertonschool-machine_learning | 479e1c1675f8a256375bc65470233a261daf0039 | 4a7a8ff0c4f785656a395d0abf4f182ce1fef5bc | refs/heads/master | 2020-12-22T00:04:16.702927 | 2020-10-08T21:32:44 | 2020-10-08T21:32:44 | 236,605,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #!/usr/bin/env python3
"""
class Transformer
inherits from tensorflow.keras.Model
to create a transformer network
"""
import tensorflow as tf
Encoder = __import__('9-transformer_encoder').Encoder
Decoder = __import__('10-transformer_decoder').Decoder
class Transformer(tf.keras.Model):
"""
Transformer Networ... | [
"761@holbertonschool.com"
] | 761@holbertonschool.com |
93a584d292f25e782b1154a567808936ade4b16a | 6237a1d1aa61be65f1a71bb645ec6d8689f24715 | /PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/sympy/utilities/lambdify.py | 81ba6af14496dd3d20f877144929107ab2954d76 | [] | no_license | Tkizzy/PythonistaAppTemplate | cf8485dc8e9e45c65af624916d71b38e2e11ce56 | f196581cfee4a1c10168892a20ddcf16270c91b0 | refs/heads/master | 2021-01-16T00:17:04.628848 | 2016-03-13T08:15:35 | 2016-03-13T08:15:35 | 52,062,119 | 1 | 0 | null | 2016-02-19T04:48:36 | 2016-02-19T04:48:35 | null | UTF-8 | Python | false | false | 16,291 | py |
"""
This module provides convenient functions to transform sympy expressions to
lambda functions which can be used to calculate numerical values very fast.
"""
from __future__ import print_function, division
from sympy.external import import_module
from sympy.core.compatibility import exec_, is_sequence, iterable, s... | [
"olezorn@gmx.net"
] | olezorn@gmx.net |
a36d44be1afafe9974039f5346e460075beb65c3 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/ipv4_internal_reachability/prefixes/prefixes_/delay_metric/state/__init__.py | 71a2f010109896f0136ecf7c9f1861f51899b598 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 19,242 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
8654792c1a49543b79c8d56cef1ace102e942f3b | 802040662d6b0978480f8c72e0bd91c8c08201a9 | /clindmri/registration/fsl/__init__.py | 13241d900a67e2e7dafbb9da9ea434bb656fcd66 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | neurospin/caps-clindmri | a07fa214f5b6f7adf0f0f0e558830727bd7087ac | 3105d2b1e4458c3be398391436be54bf59949a34 | refs/heads/master | 2022-06-16T19:05:51.125370 | 2016-03-30T08:28:14 | 2016-03-30T08:28:14 | 38,047,302 | 0 | 10 | NOASSERTION | 2022-05-19T10:16:34 | 2015-06-25T12:14:17 | Python | UTF-8 | Python | false | false | 434 | py | #! /usr/bin/env python
##########################################################################
# NSAP - Copyright (C) CEA, 2013
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# ... | [
"antoine.grigis@cea.fr"
] | antoine.grigis@cea.fr |
4fd25df95f1c71fd0fc0a613ae9326102b596302 | 3693e668644ca63ac02d442ab93a63c4ca2ac125 | /webfiles/models.py | 321ae90a6255639a09f393dbe89e410f10c038ea | [] | no_license | akumulouisa/cs-final | 32e4c0965c0464e3fafd90f1f4c8c3fad220c7e1 | 5dc2eee8c251ede97f14370ddfe0f7e9c5410314 | refs/heads/main | 2023-06-10T06:56:13.124862 | 2021-07-07T05:32:34 | 2021-07-07T05:32:34 | 382,359,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,132 | py | import sqlalchemy
from webfiles import db, login_manager
from webfiles import bcrypt
from flask_login import UserMixin
from sqlalchemy.sql import exists
from sqlalchemy.ext.automap import automap_base
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.M... | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
246bbf69992559ed5836a1bd059223841ff94817 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02801/s643704920.py | e6c533210a3087a40548c3ca4a17dec387ba724e | [] | 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 | 195 | py | C=input()
A=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
for i in range(len(A)-1):
if A[i]==C:
print(A[i+1])
break | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5abd60fd92bb98ae630bdbd52647696582f27caa | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_091/ch39_2020_10_07_03_48_28_137004.py | 0d991cb66ed650d17f8e64e0156902c94b3b9ed1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | d = 1
termos = 1
maior = 1
resultado = 1
while d < 1000:
a = d
termos = 1
while a != 1:
if a % 2 == 0:
a = a/2
termos += 1
else:
a = 3*a + 1
termos += 1
if a == 1:
if termos > maior:
maior = termos
... | [
"you@example.com"
] | you@example.com |
35d2a07f62d4095ba2f43918c7ac2da2ecf3d934 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /035.py | 33832baca3cd3737190cce0c0e3ffe86590269e5 | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
# @Time : 2021-03-02 13:43
# @Author : zxl
# @FileName: 035.py
class Solution(object):
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
i = 0
while i < len(nums) and nums[i]<target... | [
"791057615@qq.com"
] | 791057615@qq.com |
bd1567cacdd578097bce86eceb5a80609d8254db | 5db44def243996321c33a9961de82b9d6f6aafd3 | /rkmt/engines/converter.py | 5698f65f1f53a058bb3f40ecb821ec6f3f2fe508 | [
"MIT"
] | permissive | BokyLiu/rknn-model-tools | fa010b17b0a1f35fdee5f29d47cb6bbceffd3bdd | 8af9c062ea4955a76ba9986a6cab6f771c9e678a | refs/heads/master | 2022-04-09T12:49:29.417800 | 2020-02-25T13:48:38 | 2020-02-25T13:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | #!/usr/bin/env python3
import os
import sys
import shutil
from rknn.api import RKNN
from rkmt.engines.base import BaseEngine
from rkmt.utils.util import check_success
class Converter(BaseEngine):
def __init__(self, opt) -> None:
super().__init__(opt)
# Create RKNN object
self.rknn = RKN... | [
"xxdsox@gmail.com"
] | xxdsox@gmail.com |
a0fd9f8124403e36d3014d05f4728d5c9eb92625 | 4a31bfe6ebbf6d474b0c05ae4db55183acee2c25 | /run/gram_ctc/cnn/test.py | 421536d06b4b2cbf61ea021689cb836af1aa5f35 | [] | no_license | musyoku/chainer-speech-recognition | 3c1a939d259abf6ff41faff7a81d109b93407e7a | de83fc497ec3f629ff43431ef863d45e8a9cdf68 | refs/heads/master | 2021-01-21T19:12:34.873720 | 2017-09-25T07:49:39 | 2017-09-25T07:49:39 | 92,125,978 | 11 | 1 | null | 2017-06-28T07:00:14 | 2017-05-23T03:40:37 | Python | UTF-8 | Python | false | false | 2,922 | py | # coding: utf8
from __future__ import division
from __future__ import print_function
from six.moves import xrange
import sys, argparse, time, cupy, math, os
import chainer
import numpy as np
import chainer.functions as F
from chainer import optimizers, cuda, serializers
sys.path.append("../../")
import config
from erro... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
32a051a44ceb309b3121ec4546c25eb2f786ead4 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_manhwa.py | a0e51954cc4efc701f2fe99e296fb3d938a402b6 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import dbpedia
from dbpedia.models.manhwa import Ma... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
6bbd64d5e2f22efb216a8983e5526f60a4225e0c | 6c05654182024f5e4590d5d5b428a4e9016e27b4 | /InvenTree/build/test_build.py | b560a4f9c9b12d38b7a70f5a3a2ca8086c5109c0 | [
"MIT"
] | permissive | amishHammer/InvenTree | 13fc53dd002dfbbbf14c616308966321e045594e | fc54a9d195d0ffa2308b9333e6fc376adde753d7 | refs/heads/master | 2021-07-08T00:17:37.316432 | 2020-11-06T14:51:25 | 2020-11-06T14:51:25 | 212,488,242 | 0 | 0 | MIT | 2020-10-27T17:48:43 | 2019-10-03T03:13:50 | JavaScript | UTF-8 | Python | false | false | 9,437 | py | # -*- coding: utf-8 -*-
from django.test import TestCase
from django.core.exceptions import ValidationError
from django.db.utils import IntegrityError
from build.models import Build, BuildItem
from stock.models import StockItem
from part.models import Part, BomItem
from InvenTree import status_codes as status
clas... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
6256896c95eb5d80d7e6e914a3902189aa23c3a6 | dfab6798ece135946aebb08f93f162c37dd51791 | /core/aokuang/aokuang/core/actors/htmldocument/Basic.py | 7a2947db8a0a531affbd985cdd932ba6a3fffc75 | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
e05684095f5f0f3229aa98005b7dd348d30b3d27 | fdef3562ae7ef1d4bccdfe8f44173308ca40476a | /user/apps.py | 54252ad03bba63e4c93b8b31cc8588abdfaf2f96 | [
"MIT"
] | permissive | leeyoshinari/TestPlatform | 72abb5cbc5c081b940b1754319c18120f8147d49 | 07011d22d0b525abb1dfc0667d3af4018de3e4c8 | refs/heads/master | 2020-11-26T12:16:05.548741 | 2020-10-18T15:26:42 | 2020-10-18T15:26:42 | 229,067,589 | 3 | 2 | MIT | 2020-10-18T15:26:43 | 2019-12-19T14:08:03 | Python | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class UserConfig(AppConfig):
name = 'user'
| [
"lee_jc@outlook.com"
] | lee_jc@outlook.com |
4935ff00986227c99934d3901139ca001f13bea9 | f0157f79b147d3ecd9c5aba32c4dc6c6ac48e43b | /emop/emop_run.py | 1bbf3d2793fd4b17ec8bc4f6509a2ae91dec1f3a | [] | no_license | idhmc-tamu/emop-controller | 5bdea6454da588f9b46161cd925e41f8059230ed | b5e299d92afa4ef187a5a80f0970de8b849ce6d5 | refs/heads/master | 2021-01-19T06:05:55.359480 | 2015-03-27T02:52:59 | 2015-03-27T02:52:59 | 28,823,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,669 | py | import json
import logging
import signal
import sys
from emop.lib.emop_base import EmopBase
from emop.lib.emop_payload import EmopPayload
from emop.lib.emop_job import EmopJob
from emop.lib.emop_scheduler import EmopScheduler
from emop.lib.processes.tesseract import Tesseract
from emop.lib.processes.xml_to_text import ... | [
"treydock@tamu.edu"
] | treydock@tamu.edu |
ad4355bf766f6babe97522e5183c3ee460733155 | ef0d8fd55fbdb526e20d6c2b05e601f1d86587c5 | /frappe/core/doctype/page/test_page.py | 9ad215c1df1a7c2bb10a3b584693420811e33145 | [
"MIT"
] | permissive | indictranstech/v4_frappe | 8976e84c14346196b8895ad6274740dca7fd6504 | dba708c8aa83f503b9f4a264850307111a2b5f19 | refs/heads/master | 2021-09-26T12:26:29.994294 | 2018-10-30T06:09:36 | 2018-10-30T06:09:36 | 103,262,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
test_records = frappe.get_test_records('Page')
class TestPage(unittest.TestCase):
pass
| [
"sagarshiragawakar@gmail.com"
] | sagarshiragawakar@gmail.com |
2add2a167b6f6ecc71809a1c88703d1a559ddd69 | 8f15e2170d08e61b4ac70f75ab755967b0009338 | /mason/util/exception.py | 2770ab632ea621e7b2718484c56eb27af1ca7de3 | [
"Apache-2.0"
] | permissive | malave/mason | eb86d60b96b16b6e49482097474c05c9805b5f24 | bf45672124ef841bc16216c293034f4ccc506621 | refs/heads/master | 2023-06-12T21:59:46.858046 | 2021-06-11T16:07:18 | 2021-06-11T16:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import traceback
def message(e: Exception):
return ''.join(traceback.format_exception(etype=type(e), value=e, tb=e.__traceback__))
| [
"kprifogle1@gmail.com"
] | kprifogle1@gmail.com |
943202dc3b2c3630faa41c6e214b2888d8ef7e92 | 37a7fcb84fb33e28680fc7b0ddb50aa18985a66f | /seleniumbase/translate/spanish.py | 7260bbf117b6c209eaf82b970d224aa136ba3d0a | [
"MIT"
] | permissive | dc-avasilev/SeleniumBase | 99004ec7f978424ff2a7f8d3e9c8f84a185832bf | a854d75b6b0c4c5a6bd77ef634742a3b2eefa581 | refs/heads/master | 2022-08-28T07:33:47.560383 | 2020-05-22T21:13:44 | 2020-05-22T21:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,215 | py | # Spanish / Español - Translations - Python 3 Only!
from seleniumbase import BaseCase
from seleniumbase import MasterQA
class CasoDePrueba(BaseCase):
def abrir_url(self, *args, **kwargs):
# open(url)
return self.open(*args, **kwargs)
def haga_clic(self, *args, **kwargs):
# click(sele... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
3cff2276a49a7356bbc1bbd7c7052699a5e74df7 | 3876b862c61d64c9c225eb8a6305853a2ac16325 | /pal/writer/access_mechanism/none.py | 246e92b2175a0a072f4958ee21826c2b4c011205 | [
"MIT"
] | permissive | connojd/pal | 0d122de7e9b6fe659e35dd44310b9783830c4838 | 800f8bd6de0004313d4208da619b4ef98d2e1e76 | refs/heads/master | 2020-09-11T06:17:08.837738 | 2019-11-21T19:18:31 | 2019-11-21T19:23:23 | 221,967,287 | 0 | 0 | MIT | 2019-11-15T16:56:22 | 2019-11-15T16:56:22 | null | UTF-8 | Python | false | false | 513 | py | from pal.writer.access_mechanism.access_mechanism \
import AccessMechanismWriter
class NoneAccessMechanismWriter(AccessMechanismWriter):
def declare_access_mechanism_dependencies(self, outfile, register):
pass
def call_readable_access_mechanism(self, outfile, register,
... | [
"jared.wright12@gmail.com"
] | jared.wright12@gmail.com |
fd03014fc14d457010bc0bdcd28a64aefbdd894e | f72fe33d1a181f89d2464cc07744dbd275a7d071 | /CNNectome/postprocessing/partner_annotations/luigi_pipeline_spec_dir/prepare_luigi.py | 280ade177af970bf8a531ddad83d057ed3b73873 | [
"BSD-2-Clause"
] | permissive | saalfeldlab/CNNectome | 6c8d44d8cc2e161a91b10abb7b4a425d7fc64d1b | c043e3111ff5ec6707a68edffae54eb902a1652d | refs/heads/master | 2023-04-03T15:11:36.586030 | 2022-06-15T14:12:17 | 2022-06-15T14:12:17 | 124,144,317 | 8 | 10 | BSD-2-Clause | 2023-03-24T22:16:04 | 2018-03-06T22:04:16 | Python | UTF-8 | Python | false | false | 1,334 | py | import luigi
import os
class CheckCheckpoint(luigi.ExternalTask):
it = luigi.IntParameter()
path = luigi.Parameter()
@property
def priority(self):
if int(self.it) % 10000 == 0:
return 1.0 / int(self.it)
else:
return 0.0
def output(self):
base = os.... | [
"heinrichl@janelia.hhmi.org"
] | heinrichl@janelia.hhmi.org |
69b6aec08c2ed56cfcd0213106d16764a708984a | ec1deb682fb96a1f937f2fca5f161aa951462876 | /pythonTextBook/exercises/files/exTenThree.py | edbaf04d420fb624cf41f51648403964fd6d11d4 | [] | no_license | AnatoliKosarev/Python-beginner-course--Teclado- | 31d82f5e9a1f39e2970323bed9de1fd539990565 | fa91199938d6975b5874341585343566caaf3600 | refs/heads/main | 2023-06-30T12:14:33.779827 | 2021-07-24T11:16:19 | 2021-07-24T11:16:19 | 376,371,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | def save_guest_name():
name = input("Enter your name: ")
if name:
with open("guest.txt", "a") as f:
f.write(f"{name}\n")
if __name__ == "__main__":
save_guest_name()
| [
"anatoli.kosarev@gmail.com"
] | anatoli.kosarev@gmail.com |
6d5b1b017e641d25258e4a6f3936bcc0de658724 | c2acac76572d0784f29d1a0cc529c0f753aac184 | /apmec/db/migration/alembic_migrations/versions/6e56d4474b2a_blob_to_json_text.py | 8469f5fbc095fe33ef7934b322650f3f92daf624 | [
"Apache-2.0"
] | permissive | openMECPlatform/apmec | 6d1d8380385beda7c2e59539c5001dffe9da8672 | 1046bf4730d2bdf95e3cd7efe487cb3fbf1fcd22 | refs/heads/master | 2023-03-26T13:52:43.647511 | 2021-03-31T16:40:03 | 2021-03-31T16:40:03 | 353,424,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | # Copyright 2016 OpenStack Foundation
#
# 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 ... | [
"tung.doan_van@tu-dresden.de"
] | tung.doan_van@tu-dresden.de |
7f1679ac1ba910f2b2bf2f711c9cb9d730731be5 | a14ec6e367e6a471bfc74c066fb958ef585bc269 | /2020/01/a.py | 2d6e886022516fb0bde3df14250fdb6fd3e78fad | [] | no_license | jimhendy/AoC | 90641814ed431f46a8500ff0f022c6c957567563 | a1727f88bc2e6f739d65902dce188377966b3fb4 | refs/heads/master | 2023-09-02T14:48:39.860352 | 2023-08-28T08:09:19 | 2023-08-28T08:09:19 | 225,152,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import os
def run(inputs):
nums = list(map(int, inputs.split(os.linesep)))
for i, n_i in enumerate(nums[:-1]):
for n_j in nums[i + 1 :]:
if n_i + n_j == 2020:
return n_i * n_j
return None
| [
"jimhendy88@gmail.com"
] | jimhendy88@gmail.com |
b7e3d0e691bf434020466185cae8f091158ce029 | 4863a76461ebdb2abf384df672bf07170b5cc4ce | /scanner.py | 3ca86d2aea1e70a868641fc142691d5e07527b56 | [
"MIT"
] | permissive | squidgameholders/Website-Scanner | 73a3db8ea39ab5b91c309da6491db60a1cdc83a7 | ee27f265913957c5357ba673b61338336c222672 | refs/heads/master | 2023-03-19T04:12:29.324705 | 2015-02-17T18:20:53 | 2015-02-17T18:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/env python
import difflib
import hashlib
import requests
bags_urls = [
'http://www.mansurgavriel.com/collections/all',
]
def get_content():
#r = requests.get("http://www.mansurgavriel.com/collections/all")
r = requests.get("http://new.yancao.me")
return r.content
def hash_obj(content... | [
"cyandterry@hotmail.com"
] | cyandterry@hotmail.com |
298dca1095a9f092a9bd979bec50465e9fcc6f65 | 5406d6bce007c90ca36e7557e060296e04b7c1b6 | /scripts/spp02/spp.py | a5f22d94ac733a722292942abc919a18f06f3ec2 | [] | no_license | darraghdog/dfake | 10df7c19acc3447c1833ab2754ec61b5699b9a05 | e128d0d907b0cb2d4e5d841de4bcfb0ddb0af276 | refs/heads/master | 2022-04-12T02:46:02.272497 | 2020-04-05T19:18:30 | 2020-04-05T19:18:30 | 229,479,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,128 | py | import os
import sys
import glob
import json
import cv2
from PIL import Image
import numpy as np
import pandas as pd
#import dlib
import torch
from itertools import product
from time import time
import datetime
import collections
from tqdm import tqdm
import skvideo.io
import skvideo.datasets
import random
import optpa... | [
"darragh.hanley@gmail.com"
] | darragh.hanley@gmail.com |
cf5e67e597f03b6997a0db48a15f099ec801cb3b | 6e5bd4eb27bbd2e4cd248334d4eeeeda3954a541 | /trainer.py | f333469c056ea81a666efe51bfe2a38df79cb28e | [
"Apache-2.0"
] | permissive | arunava-de-e3172/JointBERT | c85053aff52f195b8d02872d234707c1909416cb | 1eee7c09f141c4649addf09d3db37072e9860fc1 | refs/heads/master | 2021-05-21T15:54:22.810359 | 2020-04-03T08:53:12 | 2020-04-03T08:53:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,589 | py | import os
import logging
from tqdm import tqdm, trange
import numpy as np
import torch
from torch.utils.data import DataLoader, RandomSampler, SequentialSampler
from transformers import BertConfig, AdamW, get_linear_schedule_with_warmup
from utils import MODEL_CLASSES, set_seed, compute_metrics, get_intent_labels, ge... | [
"adieujw@gmail.com"
] | adieujw@gmail.com |
5ea20db9e23c11fc2b7e25e17da92ee9a931ec95 | 1eed777d0174fecc14fee1bf1ca6e47c412666cd | /virtual/bin/chardetect | 2097c185eb4a4d78969f5693629a1c542ed3b987 | [] | no_license | ALKEMIA-CHARLES/Postify | 9ff3d36b8962660febc56ef0de139b792f074756 | a915da3a9b9c2011f47e7a31e6cf2e4d75d4fd39 | refs/heads/master | 2022-12-21T21:28:03.813680 | 2020-03-30T06:50:40 | 2020-03-30T06:50:40 | 243,502,216 | 0 | 0 | null | 2022-12-08T03:41:52 | 2020-02-27T11:23:19 | Python | UTF-8 | Python | false | false | 286 | #!/home/charles/Documents/moringa-school-projects/myposts/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"charlesmtawaliJr@gmail.com"
] | charlesmtawaliJr@gmail.com | |
80b11878a88ff37497c211fb5f2bd12f6c51e000 | 616c3c02be31b9ae4d06bd7c5a8d4a2e7c446aa1 | /796.旋转字符串.py | 2a3f2c04330031f2887eb2ce899980a55c92aab2 | [] | no_license | L1nwatch/leetcode-python | 8b7c47c04ee9400d50d8b0764a544a0463df8f06 | 0484cbc3273ada25992c72105658cd67411c5d39 | refs/heads/master | 2023-01-11T14:53:15.339276 | 2023-01-11T05:24:43 | 2023-01-11T05:24:43 | 194,516,548 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #
# @lc app=leetcode.cn id=796 lang=python3
#
# [796] 旋转字符串
#
# @lc code=start
class Solution:
def rotateString(self, s: str, goal: str) -> bool:
if len(s) != len(goal):
return False
for i in range(len(s)):
if s[i:]+s[:i] == goal:
return True
return F... | [
"watch1602@gmail.com"
] | watch1602@gmail.com |
c821fc32436da400c7d10c1e029fc1b0c73e5cfc | 037a03d4b8b81bc39dc41cb4f3726f8297c8b672 | /0348.py | 4cabe4d37e2f40b1fd122a1cc55f51f9e02481ec | [] | no_license | Agchai52/Leetcode1 | ee3433ef6f6c3ddd800204c25a456dc7c3fd0053 | 9535d038bee690b7c7aeca352a4ab32d188684bb | refs/heads/master | 2021-08-22T02:59:45.632548 | 2020-05-21T00:31:45 | 2020-05-21T00:31:45 | 185,273,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | class TicTacToe(object):
def __init__(self, n):
"""
Initialize your data structure here.
:type n: int
"""
self.grid = [['']*n for _ in range(n)]
def move(self, row, col, player):
"""
Player {player} makes a move at ({row}, {col}).
@param row The ... | [
"noreply@github.com"
] | Agchai52.noreply@github.com |
7ad5eaabf7279f414bab5d88d5d8c71193018ee8 | c6fea702b817b719d9774b66d76c7cbaf1369d7d | /plilja-python3/day10/day10.py | 81c932996f18e594549035d1a6645113a8d9b5c3 | [] | no_license | piksel/advent_of_code_2016 | eae359228372b53f88430360b38e48210ac6da40 | 996fe2a999949fab420115474b32b40ed8ba8414 | refs/heads/master | 2021-01-12T10:12:19.865894 | 2016-12-18T16:55:58 | 2016-12-18T16:55:58 | 76,386,900 | 1 | 0 | null | 2016-12-13T18:29:15 | 2016-12-13T18:29:15 | null | UTF-8 | Python | false | false | 2,078 | py | from collections import *
import sys
def solve(inp):
value_to_bot = {}
bot_to_values = defaultdict(set)
outputs = defaultdict(list)
giveaways = []
Giveaway = namedtuple('Giveaway', 'bot low_to low_type high_to high_type')
for s in inp:
instruction = s.split()
if instruction[0]... | [
"patlil@kth.se"
] | patlil@kth.se |
914e6f7c89aa39a56fd10010b11450b11fe0aa41 | 7a1b88d06ea18772b065b43d775cec6dd2acdf80 | /1769.py | 335ddf10102d99cbef71424085f8d7fa2bffbf8f | [] | no_license | skaurl/baekjoon-online-judge | 28144cca45168e79b1ae0baa9a351f498f8d19ab | 1620d298c2f429e03c5f9387d8aca13763f5c731 | refs/heads/master | 2023-07-26T10:07:29.724066 | 2021-09-07T09:21:02 | 2021-09-07T09:21:02 | 299,019,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | def asdf(n):
result = 0
for i in n:
result+=int(i)
return str(result)
n = input()
cnt = 0
if int(asdf(n))%3==0:
check="YES"
else:
check="NO"
while len(n)!=1:
n = asdf(n)
cnt+=1
print(cnt)
print(check) | [
"dr_lunars@naver.com"
] | dr_lunars@naver.com |
5c0876753f3a3beecafacee2e309160167af9ad7 | 073e5e503e01b44881edffc81e6ad1efe04f4520 | /python/collibra-core/collibra_core/model/paged_response_workflow_task.py | 56ad3e4d40f3107fd98e85069d58a6a87c47f06c | [] | no_license | AaronCWacker/collibra | f251d3556192c03b2be5acb0101608b4f2d87c9d | 8bd1de3eecc5835bc96feacc17c6dd86ed70ac85 | refs/heads/main | 2023-03-05T05:00:48.940201 | 2021-01-20T03:03:17 | 2021-01-29T21:17:49 | 416,506,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,369 | py | """
Collibra Data Governance Center Core API
<p>The Core REST API allows you to create your own integrations with Collibra Data Governance Center.</p><p><i>Create custom applications to help users get access to the right data.</i></p> # noqa: E501
The version of the OpenAPI document: 2.0
Generated by... | [
"srid@streamsets.com"
] | srid@streamsets.com |
7919fddec59e58186fdf0241675e0b0acd49cd6e | a63410602c5bb9ffbf4d37769a1df1a271d7ff8f | /src/sentry/nodestore/riak/backend.py | 539d2d182d500d29d5564f4b69c0f3a94e6125cc | [
"BSD-2-Clause"
] | permissive | meituan/sentry | d824d5e9096fe4e8604cebbea0a6c939ce12ac44 | cd35f2345aaef1346e95b4ce5fed12fb0b648db7 | refs/heads/master | 2023-06-07T06:43:20.007879 | 2013-12-27T05:18:12 | 2013-12-27T05:18:12 | 15,473,792 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | """
sentry.nodestore.riak.backend
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import riak
import riak.resolver
from sentry.nodestore.base import NodeStorage
class R... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
78637d9daeacf6d6c1a53731dbbbe95ed1f0eb3f | 2d93403fac1645fdbf1727f0d17fbea6eeef470a | /decorators/demo.py | bf5bfdf65750333628011b83fb028c9a19c0a484 | [
"MIT"
] | permissive | Minkov/python-oop-2020-02 | d13c8c8feaa9ad41c524fc82887a98745115ac57 | d2acb1504c1a135cded2ae6ff42acccb303d9ab1 | refs/heads/master | 2021-02-04T00:43:14.997404 | 2020-03-26T18:21:03 | 2020-03-26T18:21:03 | 243,588,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # def f1():
# print(1)
#
#
# def execute_operation(func):
# print(f'Started execution of {func.__name__}')
# func()
# print(f'Execution of {func.__name__} ended')
#
#
# execute_operation(f1)
# execute_operation(lambda: print(2))
def sum2(x):
def sum_internal(y):
return x + ... | [
"DonchoMinkov@gmail.com"
] | DonchoMinkov@gmail.com |
27415cb1d4b42809e8acaf23400ac4b0155a6eba | b1cf54e4d6f969d9084160fccd20fabc12c361c2 | /dsa/recursion/reverse_string.py | 0f8c0fc52f7f09d9560c02f86b5d4e92a141f047 | [] | no_license | zarkle/code_challenges | 88a53477d6f9ee9dd71577678739e745b9e8a694 | 85b7111263d4125b362184df08e8a2265cf228d5 | refs/heads/master | 2021-06-10T11:05:03.048703 | 2020-01-23T06:16:41 | 2020-01-23T06:16:41 | 136,668,643 | 0 | 1 | null | 2019-02-07T23:35:59 | 2018-06-08T21:44:26 | JavaScript | UTF-8 | Python | false | false | 324 | py | """
Reverse a String
This interview question requires you to reverse a string using recursion. Make sure to think of the base case here.
Again, make sure you use recursion to accomplish this. Do not slice (e.g. string[::-1]) or use iteration, there must be a recursive call for the function.
"""
def reverse(s):
... | [
"beverly.pham@gmail.com"
] | beverly.pham@gmail.com |
cad321d76d8a31d63c2ff825f3c60e5531e36aed | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /gmn/src/d1_gmn/tests/test_proxy_mode.py | 02187cb5bb6855cde698e87f8f984985f130fdc4 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 7,028 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
d4bceb1aa1d9448ab60826ebb39c69fc254e7129 | b1e7fecc6b177acc0730d5b882d2ed9418233f01 | /wedding/rsvp/admin.py | 0a685d61961822a0f056f9a1cd26eb4a5d5bc86a | [] | no_license | mavroskardia/wedding | 0607a3905456c017b0c1e4d9cc051a13fa20f849 | e8909ceaa6c7665966344994c641c0a997705714 | refs/heads/master | 2020-05-20T16:46:47.343124 | 2014-09-03T17:21:28 | 2014-09-03T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.contrib import admin
from rsvp.models import Guest
admin.site.register(Guest) | [
"chryso@gmail.com"
] | chryso@gmail.com |
1f6b679170bc33780d485262b7c0cf107349373d | f6cb3563a412f148a8a9f47204ac1e2226ae7b2e | /examples/svc/metrics/attention.py | 096c433cdc7662bd0095ddcc4c570cfe3686cbe0 | [
"MIT"
] | permissive | sundogrd/tensorflow_end2end_speech_recognition | 424789888a54d7149aa9a35a68e781df553abfd9 | 61e4a65fb5c9f3d9f690d713dcd77a48b1de0a14 | refs/heads/master | 2020-05-17T19:21:34.206076 | 2019-04-28T14:03:12 | 2019-04-28T14:03:12 | 183,913,207 | 0 | 0 | MIT | 2019-04-28T13:40:36 | 2019-04-28T13:40:36 | null | UTF-8 | Python | false | false | 12,373 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Define evaluation method for Attention-based model (SVC corpus)."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import pandas as pd
from tqdm import tqdm
from experiments.svc.metrics... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
a75c0da167a87c4e4c4d0f4d60cba2a79742103d | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_None/trend_ConstantTrend/cycle_0/ar_12/test_artificial_1024_None_ConstantTrend_0_12_100.py | f6d41bf4691b38fb611f12d410521c6f82596ac1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 271 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
fa3a11c01c620e678186a5d1ba7fb254f3c4cfd8 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_os_disk.py | db287a53c829cd6de75306f14adce5f33c0b6c14 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 3,721 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
f58135f4e2c1093cf3d082d8408c503226f4a87e | 9a55969cdf85b30873f33aae1410be1cdb91fca5 | /gym_wrapper.py | a9056fcd2d3e3dbef297b98a9edc2e3102534c8b | [
"Apache-2.0"
] | permissive | StepNeverStop/RL-TF1 | 65f296bce00ba00185df080c7f770d59ef92e4ed | c9e75819504a8db4c587e2aa3e4c9c8845fd9f08 | refs/heads/master | 2022-12-11T18:04:06.306955 | 2020-09-26T03:47:01 | 2020-09-26T03:47:01 | 223,076,782 | 5 | 2 | Apache-2.0 | 2022-12-08T06:16:32 | 2019-11-21T03:06:17 | Python | UTF-8 | Python | false | false | 8,020 | py | import gym
import numpy as np
import threading
class FakeMultiThread(threading.Thread):
def __init__(self, func, args=()):
super().__init__()
self.func = func
self.args = args
def run(self):
self.result = self.func(*self.args)
def get_result(self):
... | [
"271668153@qq.com"
] | 271668153@qq.com |
2ef9028b99e09a2662b0d9c7461782c15a37d51d | ebb63b057a82b8a10df305252cbcda4186ec02f7 | /taichi_blend/bundle-packages/meltblend/__init__.py | 86e44f3f0f3dde2931cfa10dc1339672c07d53d1 | [] | no_license | yjchoi1/taichi_blend | aa2d6f0129c8068b9a2c8bb5a7677b3c60923d5b | 907fdbee6027375324c9605ffc14db16e590f992 | refs/heads/master | 2023-03-21T12:31:04.126621 | 2021-03-01T15:06:13 | 2021-03-01T15:06:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | bl_info = {
'name': 'Taichi Blend Physics',
'description': 'Taichi Blender intergration',
'author': 'Taichi Developers',
'version': (0, 0, 5),
'blender': (2, 81, 0),
'location': 'Taichi Blend Window',
'support': 'COMMUNITY',
'wiki_url': 'https://github.com... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
8345cc43468edb997ff7b911356f1e9ae0cd0f9d | 1bfa2c800b2d76787e224e5cf25d69fec3a9eff1 | /tests/synapses/FI.py | 3c5d7fb4185c1d5c6e3c707a5e73cf44a5af1738 | [
"MIT"
] | permissive | OpenSourceBrain/MiglioreEtAl14_OlfactoryBulb3D | fdd55b324695c82deb04b70c4f2f238af5e92285 | edaf58abd6b3e0195125fb730e9654ae937d790b | refs/heads/master | 2023-06-30T23:14:33.842015 | 2023-06-17T08:53:44 | 2023-06-17T08:53:44 | 31,535,489 | 2 | 2 | null | 2018-02-08T21:43:43 | 2015-03-02T10:37:44 | OpenEdge ABL | UTF-8 | Python | false | false | 807 | py | import sys; sys.path.insert(0,'..')
from tests.synapses.NEURONSynapseTest import NEURONSynapseTest
from tests.synapses.NeuroMLSynapseTest import NeuroMLSynapseTest
class NEURON(NEURONSynapseTest):
def __init__(self):
super(NEURON, self).__init__()
self.path = "../NEURON/fi.mod"
... | [
"jbirgio@gmail.com"
] | jbirgio@gmail.com |
6987d77bade5bae99b89fae4d7412d77288a691a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02973/s456069800.py | 2c1e3100d68ffea4badc684c47be28c5e8d55461 | [] | 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 | 237 | py | from bisect import bisect_right
n = int(input())
a = [-int(input()) for _ in range(n)]
li = list()
for e in a:
i = bisect_right(li, e)
if i == len(li):
li.append(e)
else:
li[i] = e
ans = len(li)
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
610b8f2dbd7222992ae2de1ebf4f382a854940ba | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/addon/google_maps/overlay/polygon.py | 8990b4e16f9d503dbd0e2cb1dc99ee6f8bc9eb97 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # @MUNTJAC_COPYRIGHT@
# @MUNTJAC_LICENSE@
from muntjac.addon.google_maps.overlay.poly_overlay \
import PolyOverlay
class Polygon(PolyOverlay):
def __init__(self, Id, points, strokeColor='#ffffff', strokeWeight=1,
strokeOpacity=1.0, fillColor='#777777', fillOpacity=0.2,
clicka... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
08f8f65d622de581829d8817089108087adc12fb | 46cdf1f348c1fe1cf46ea2e14ecbef9bf59006bd | /resolwe/flow/executors/null.py | 1fac4c33744cd01297cfa7344e0b9ebf41374fca | [
"Apache-2.0"
] | permissive | mzganec/resolwe | b08dd971f1b19f55052d857063eb43afc4a827dc | fd5bbbc459289811ae34ad263b96b498ba15ba7d | refs/heads/master | 2021-06-27T11:30:09.883345 | 2017-09-26T10:11:00 | 2017-09-26T10:16:03 | 105,652,149 | 0 | 0 | null | 2017-10-03T13:00:16 | 2017-10-03T13:00:16 | null | UTF-8 | Python | false | false | 615 | py | """Local workflow executor."""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from resolwe.flow.executors import BaseFlowExecutor
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
class FlowExecutor(BaseFlowExecutor): # pylint: disable=abstract... | [
"domen@blenkus.com"
] | domen@blenkus.com |
019915d58f638d00af71e64044703bf60cd85e7a | 160b65e1bb780f0409f4a34cc0f0e8693c67ebc4 | /test_haystack/elasticsearch5_tests/test_query.py | cbddc2d8db4b74e94a1bff03a20b32d2fda3d732 | [
"BSD-3-Clause",
"MIT"
] | permissive | webbyfox/django-haystack | 83fd8a8c36ebe3e62cd7a1b0972b913c37251f9a | 4910ccb01c31d12bf22dcb000894eece6c26f74b | refs/heads/master | 2020-03-22T05:14:13.137009 | 2018-06-18T19:42:35 | 2018-06-18T19:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,497 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import datetime
import elasticsearch
from django.test import TestCase
from haystack import connections
from haystack.inputs import Exact
from haystack.models import SearchResult
from haystack.query import SQ, S... | [
"chris@improbable.org"
] | chris@improbable.org |
3961d1b537a00c32618a754782ecee5157adcf74 | b64f4a01f1b15d7128b1bd806bfe3d10c66f14d4 | /shortner/admin.py | a3ef210f572ae7b0c4b969f0fd752aeca7192ab9 | [] | no_license | mahmoudzeyada/Cloned-Pastbin-webapp | 2e85a92b852baf0253a169107e0dafd8f90a9d0c | c3fbb768707d2fee5a3bed7c99f64109d103707f | refs/heads/master | 2022-05-15T15:28:46.681474 | 2019-06-03T21:39:00 | 2019-06-03T21:39:00 | 190,085,592 | 0 | 0 | null | 2022-04-22T21:26:07 | 2019-06-03T21:34:59 | Python | UTF-8 | Python | false | false | 102 | py | from django.contrib import admin
from .models import UrlShortener
admin.site.register(UrlShortener)
| [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
fb78a7ba635cbda1a933a00eb4dd0da34c3334c4 | 1fdf7dbde0b8253ef164b8a8fdff958ecef6866e | /proyecto_tienda/carrito/urls.py | 4720a39d71e7706be0f6f794d953f06a5cf2ed68 | [] | no_license | jkaalexkei/proyecto_tienda | b9b0315b05a956ab1bf619059b8ea839fb4c7093 | 6986ccce2f8aaffc6b1289090d274cbc43b36509 | refs/heads/master | 2023-08-25T07:21:40.781058 | 2021-11-05T02:17:18 | 2021-11-05T02:17:18 | 396,094,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.urls import path
from . import views
app_name = 'carrito'
urlpatterns = [
path('',views.carrito,name='carrito'),
path('agregar/',views.agregar,name='agregar'),
path('eliminar/',views.remove,name='remove'),
] | [
"jkaalexkei@gmail.com"
] | jkaalexkei@gmail.com |
74dfc36af985a5ffa5a9f34e9e7f893fc514bef3 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/compute/instance_groups/managed/delete.py | 368808d0b8bcc4f36cd56c4ef8184a148eacee2a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 7,090 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. 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 requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
fa45d061dd6710a66d3b365dc1f3104878de0bd9 | 66ab8fac9fb19e5ff470be0fa7b2b73600231f16 | /pyble/osx/console.py | f823488bb6edf4f68be5844e217d58b1b79c62e0 | [
"MIT"
] | permissive | bgromov/PyBLEWrapper | e97bbc2299f880838d246a8c6fdb27b05cb72af1 | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | refs/heads/master | 2020-03-25T21:41:43.702666 | 2018-08-12T23:38:16 | 2018-08-12T23:38:16 | 144,185,816 | 0 | 0 | MIT | 2018-08-09T17:50:12 | 2018-08-09T17:50:12 | null | UTF-8 | Python | false | false | 6,054 | py | from objc import *
from Foundation import *
import cmd
import os
import logging
import time
from pprint import pformat
try:
from queue import Queue, Empty
except:
from Queue import Queue, Empty
from pyble.patterns import LoggerObject
class OSXCmd(cmd.Cmd, LoggerObject):
def __init__(self, history_size=... | [
"brett.chien@gmail.com"
] | brett.chien@gmail.com |
00e012b55ec43e614adb4687ff49bb5f5b807e97 | 7c551e749064b25af706b9167211050f8c6ad0a9 | /signatures/windows/disables_browserwarn.py | 3fb78aceaba0966a66cdcad065787f4ccc8ebbb4 | [] | no_license | dashjuvi/Cuckoo-Sandbox-vbox-win7 | fa382828b4895c5e1ee60b37a840edd395bf1588 | a3a26b539b06db15176deadeae46fc0476e78998 | refs/heads/master | 2020-03-12T08:33:06.231245 | 2019-01-14T23:09:02 | 2019-01-14T23:09:02 | 130,529,882 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | # Copyright (C) 2015 Optiv, Inc. (brad.spengler@optiv.com), Kevin Ross, Updated 2016 for Cuckoo 2.0
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from lib.cuckoo.common.abstracts import Signature
class DisablesBrowserWarn(Signature):
nam... | [
"diegovm14@gmail.com"
] | diegovm14@gmail.com |
a4febf7096cdd80c0178f06210bc98d127790e7b | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Desenvolvimento web com Flask/Capitulo03/Nível 01/exemplo14a.py | fb031bc2512a683fa44f48441a518deee804b3f6 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # Program: exemplo14a.py
# Author: Ramon R. Valeriano
# Description: Programa do Capítulo 3, para melhorar a fixação
# Developed: 05/03/2020 - 20:05
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from datetime import datetime
app = Flask(__name__)
bootst... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
46e27f7215b2e25256ad1950e0f41b1e35267578 | 9587c6e58ef0ef4959898454c1a7c3d8fc963530 | /blog/migrations/0001_initial.py | 2df14f34fc1416652b5fb0330668df6e589da01d | [] | no_license | okielife/okie.life | cfa5450be85c4076985156793a48ee4e68c1610d | 6be9ed7178cddd300b00adb263b1962a7987ac11 | refs/heads/master | 2020-05-26T11:45:40.831311 | 2018-01-31T15:52:45 | 2018-01-31T15:52:45 | 84,996,176 | 0 | 0 | null | 2018-01-31T15:52:46 | 2017-03-14T20:54:11 | Python | UTF-8 | Python | false | false | 1,354 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-04-09 12:47
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"leeed2001@gmail.com"
] | leeed2001@gmail.com |
81219fa1bf7140d19dfa21d75f40241648410d07 | c733d8d610a2f00b128abc25e4cdf79212ce4e63 | /photologue/migrations/0017_remove_photo_admin_orig_image_tag.py | cd1025dd49ec8530e2cab6c30842f42d30bb112e | [
"BSD-3-Clause"
] | permissive | pbarton666/photologue | 301f56010208e068fd2c29d24862e529ceade6f1 | fe47e6eb7830dbcfecfd059294dfbee30b94c4f9 | refs/heads/master | 2020-12-24T18:51:07.411561 | 2016-04-11T17:35:05 | 2016-04-11T17:35:05 | 55,991,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-04-01 18:20
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('photologue', '0016_photo_admin_orig_image_tag'),
]
operations = [
migrations.RemoveFie... | [
"barton.pj@gmail.com"
] | barton.pj@gmail.com |
28a524703a77756b184f0f4bfe85f853572665a8 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Math Game/mathgame/constants.py | 512e7167a39e24c0b56398f58226c05d5c9119a5 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4cb8c44068f19e31f8a933330313b35f4f809635c3f596eef01c16fd342dacd6
size 2243
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
ddf805539d408d7e2034a60ca30138c7b2a902ad | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/vanilla/version-tolerant/AcceptanceTests/test_security.py | 46f859bb9858d9cdcf2f59faebdd3fdd493eee3f | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 2,189 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
6ce782e1de0a0f55c0d164d33e68d359bb9bd33d | 5050cb4aa00de443d3f9dfeddd4b3d70389386c0 | /site-packages/sugar_network/toolkit/network.py | a0ba49914efda6ddccf4108d45178f41d6278200 | [] | no_license | sugar-activities/4619-activity | 0f72e6c64fd0f98ac3e7d6011a75fb2ddd27490a | f6bc2dc64f30de57d3c2f50ac9795ac2faf5ac9e | refs/heads/master | 2021-01-19T23:15:29.516534 | 2017-04-21T05:03:58 | 2017-04-21T05:03:58 | 88,936,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # Copyright (C) 2012 Aleksey Lim
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in th... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.