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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00e49abbbc905185fd43c9b31614702c3b79cdc5 | f6217c228984107f1fdde63fc544c92ad32efd13 | /set5/challenge39.py | 2148c2cde01c51b1add2f57d3fb2d22cda4379c8 | [
"MIT"
] | permissive | lukius/mts | 8be64972fd700ec9110789a7e15307e3fc3dfecb | 96d3d8b28742a474aca67bfcb079577c878bbb4c | refs/heads/master | 2021-06-06T03:22:21.991908 | 2017-11-28T23:52:50 | 2017-11-28T23:52:50 | 22,904,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from common.challenge import MatasanoChallenge
from common.ciphers.pubkey.rsa import RSA
class Set5Challenge39(MatasanoChallenge):
PLAINTEXT = 'Vos tambien la tenes adentro.'
def expected_value(self):
return self.PLAINTEXT
def value(self):
rsa = RSA()
ciphertext = rs... | [
"lukius@gmail.com"
] | lukius@gmail.com |
67deb719882876bb2771cebc1ff3c00f8db896ec | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/hcd.py | e2e56fc373c3f6d761c872420a5d1fec8bff7db0 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
8a2b10b3bf23cc2880e7a5c77f088812a7b6b302 | e9449b3cf7e77c1405b138930bc09eeef309afaf | /lib/keras/retinanet/loss.py | 21e3a2f539c016d584080ce1020cceef0f42c036 | [] | no_license | eglrp/BeginnerAI | b1b27cc86bc195e0d2b624a7d3a72ef3fc537e9a | e2c06141e2ac1a382a4c7fc043a07e9f69a1f7e0 | refs/heads/master | 2020-04-11T12:07:52.004232 | 2018-11-12T06:48:50 | 2018-11-12T06:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | import keras
import tensorflow as tf
def smooth_l1(sigma=3.0):
""" Create a smooth L1 loss functor.
Args
sigma: This argument defines the point where the loss changes from L2 to L1.
Returns
A functor for computing the smooth L1 loss given target data and predicted data.
"""
sigma_... | [
"jeffcobile@gmail.com"
] | jeffcobile@gmail.com |
9ebe2335b057de0cf545a9146a03a479b7523c33 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/KISS/testcase/firstcases/testcase5_007.py | 1edd1b4c8dc7f0434139af110fd3711bcb486e66 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
a8c22cf47fcda4a358fe6d95fdc2ab91355259ab | cac31c8c2117be4c0dbce2f4413b4bc24e1a4d4b | /0x07-python-test_driven_development/3-say_my_name.py | fd766cf0900cab14a30c67495c9f22859948d3e4 | [] | no_license | Julianeme/holbertonschool-higher_level_programming | 47a7b67c10247ec7cf49662fec1d233fd1f44238 | 04a14320359fd67b667008343d5e7fab3fc93ec9 | refs/heads/main | 2023-08-11T08:12:58.900262 | 2021-09-23T01:07:35 | 2021-09-23T01:07:35 | 361,739,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/python3
"""
Returns the concatenation of
first name and last name
only works with strings
"""
def say_my_name(first_name, last_name=""):
"""
Returns the input matrix divided by div variable
"""
if type(first_name) is not str:
raise TypeError("first_name must be a str... | [
"juliantve@gmail.com"
] | juliantve@gmail.com |
017c8ca3c72f05e67a0869c090d85a35c1ee5044 | b030e97629ce909e60065fb061110d9b0818aee1 | /501-600/543.Diameter of Binary Tree.py | 36c9e0dfdf86a379d6875b38f6a7294654644510 | [] | no_license | iscas-ljc/leetcode-easy | 40325395b0346569888ff8c065cacec243cbac98 | e38de011ce358c839851ccac23ca7af05a9d0b32 | refs/heads/master | 2021-01-20T09:27:07.650656 | 2017-11-22T03:07:47 | 2017-11-22T03:07:47 | 101,595,253 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | class Solution(object):
def getdeep(self,root):
if root is None:
return 0
left=self.getdeep(root.left)
right=self.getdeep(root.right)
self.deep=max(self.deep,left+right)
#求解左右深度和
return max(left,right)+1
def diameterOfBinaryTree(self, root):
self.deep=0
s... | [
"861218470@qq.com"
] | 861218470@qq.com |
9df5c5263384fcce1ef2a9b912d1c10b9e068014 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_bivariate.py | dc1100b190a1869a8490e4379b53fcc7a64adfe3 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.bivariate import bivariate
def test_bivariate():
"""Test module bivariate.py by downloading
bivariate.csv and testing shape of
extracted d... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
8c1aab2ce2ed6c5b61ecd3331629252d04a9b7c9 | a66533a34aeec78668532e5b515538f6fae2a97a | /__pypackages__/3.9/lib/matplotlib/backends/backend_webagg_core.py | e7430e89640ed6a004a733e33cc6e29523c79e49 | [] | no_license | EclairK/pyqt_test | 1d54510b32d04ba6384bf003eded62962adc54db | d787532d3c864abd833d470c6e2aaf540148e083 | refs/heads/main | 2023-09-02T04:15:29.391794 | 2021-10-30T06:28:49 | 2021-10-30T06:28:49 | 417,495,190 | 0 | 0 | null | 2021-10-30T06:28:50 | 2021-10-15T12:41:14 | Python | UTF-8 | Python | false | false | 18,344 | py | """
Displays Agg images in the browser, with interactivity
"""
# The WebAgg backend is divided into two modules:
#
# - `backend_webagg_core.py` contains code necessary to embed a WebAgg
# plot inside of a web application, and communicate in an abstract
# way over a web socket.
#
# - `backend_webagg.py` con... | [
"lightning0404@gmail.com"
] | lightning0404@gmail.com |
a8454a43f005c36b5f473fc390883c383fac2cb7 | 88064e96a4ce3aaa472222c8f294799655e923b8 | /lesson08/exercise08.py | c2989958f47b356fde9e40c81550885ab382df05 | [] | no_license | manosxatz/python | 52d91b42dcd3e516296811a036f23a988542008d | 789f2306f7c6c1ad798c228000bb0d49e99c9629 | refs/heads/master | 2022-11-09T18:46:54.002464 | 2020-06-24T16:57:19 | 2020-06-24T16:57:19 | 275,238,123 | 1 | 0 | null | 2020-06-26T20:05:26 | 2020-06-26T20:05:26 | null | UTF-8 | Python | false | false | 58 | py | s = 0
for i in range(1, 100+1):
s += 1/i
print(s)
| [
"noreply@github.com"
] | manosxatz.noreply@github.com |
bac12af964f4330ea16893ac759d6e305d20d7dd | 33c51931bc7d6f73da5a64ecc0e7cb751e7fc62c | /karesansui/db/access/machine.py | d15d909c142620fdab4825f15eb3da908d373afe | [
"MIT",
"GPL-1.0-or-later"
] | permissive | qmutz/karesansui | e86ed107f313f8c4140797a2c3250c5f16b524c2 | f4ba1cf6f88cf76c3e4dbc444139d73134f7c9d1 | refs/heads/develop | 2023-05-06T14:52:38.668631 | 2019-02-01T03:57:00 | 2019-02-01T03:57:00 | 316,682,704 | 0 | 0 | MIT | 2021-06-03T14:59:45 | 2020-11-28T07:43:33 | null | UTF-8 | Python | false | false | 5,540 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of Karesansui Core.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# 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 restric... | [
"taizo@karesansui-project.info"
] | taizo@karesansui-project.info |
35e7caa08f5026a4a0f86f59fbfebb2e4bf7c0c4 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/rfRecon/100-tideGauge.py | 02c12eaf639c8724a445881116b90dd113d56b09 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,696 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 7 11:39:00 2020
This program is designed to reconstruct
daily max surge using RF
@author: Michael Tadesse
"""
def reconstructRF():
"""
run KFOLD method for random forest regression
"""
#import packages
import os
import numpy as np
import pan... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
1773ca0fa5066398d20d0d647b47271f7c15dd5d | e8b0e90d938e92ba0319ba673568677810430cd0 | /387.py | f2ddf320ef401423e0721ad0f7d12ab1ec1eb204 | [] | no_license | ilanschnell/project-euler | 6d99673d101a56d2e2b2d301f0738ca1986afbf7 | 24f38523b5631c71894b957e5d59e66bd6da1149 | refs/heads/master | 2023-08-27T08:03:45.206810 | 2023-02-16T16:23:05 | 2023-02-16T16:23:05 | 225,198,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from sympy.ntheory import isprime
def compute(N):
result = 0
# n must be a right-truncatable Harshad number, and the other
# arguments are properties of the number n
def find_harshad_primes(n, digitsum, is_strong):
nonlocal result
s = digitsum
# shift left by 1 digit, and try ... | [
"ilanschnell@gmail.com"
] | ilanschnell@gmail.com |
2820e6926c21206d2ae8813e136c36fe80e16dc7 | e137e58654449f28870e895eb7059eb780b6e3eb | /novaclient/service_catalog.py | 00502340129aa9c5db50aac58677af59b855adc8 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ntt-pf-lab/backup_python-novaclient | c94f04ba8516aae607f771ddaade7806289593f0 | dcd0e9aaa21dda45d490b771c6e7a7c6ab2ab13c | refs/heads/master | 2021-01-01T05:32:57.081398 | 2011-09-20T14:10:52 | 2011-09-20T14:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # Copyright 2011, Piston Cloud Computing, Inc.
# 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 ... | [
"chmouel@chmouel.com"
] | chmouel@chmouel.com |
199b800775e6c4ae44b0a1a2a009966ef0b66221 | 8760766a314dc1cb126b235cd2528fd39963a5bf | /database_ui/venv/Lib/site-packages/pyrogram/raw/functions/account/update_device_locked.py | 411cd4b2ba1b6d1d973ad1143afbedc017e6afbe | [] | no_license | sunliangjun/database_demo | bb3eeaf0523e35f1b5c2c4d80ee68197f6e60715 | f7a1edc9a0eb9ce56ec76c5be67bbcbd66e45666 | refs/heads/main | 2023-01-02T19:43:16.874831 | 2020-10-22T13:06:20 | 2020-10-22T13:13:10 | 306,046,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"582675682@qq.com"
] | 582675682@qq.com |
e10843fb707c27d2f153b2ab45383d3ee05b3ea8 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/VOLO/timm/optim/rmsprop_tf.py | a5fbd97713f235d28d6c1f8d35318b7c354e7b54 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 8,212 | py | """
BSD 3-Clause License
Copyright (c) Soumith Chintala 2016,
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of con... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
68e6be44b770a57da9335955ec4086de5694ef31 | 6c2f307035f31e7527eb754c00df57cfc9914530 | /generate_site.py | 710f6b2a664f45ed76400ddf00ea584ac7298f35 | [
"MIT"
] | permissive | wd5/django-site-gen | 80223f5818868fb77ce03e204b35285cfe477223 | dd52b1afc6d283b7dc7eb0d8aa985892db055afe | refs/heads/master | 2020-12-25T06:05:41.138825 | 2012-04-19T18:23:55 | 2012-04-19T18:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,357 | py | #!/usr/bin/env python
import imp
import os
import subprocess
import sys
import yaml
from optparse import OptionParser
from random import choice
from django.conf import settings
from django.template import Context
from django.template.loader import get_template
def configure(site_type, site_name, port, config_file=... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
0014da66ed996a15d88b91de320bc7e0751ee85b | 057e0ea5fbe7fdc278d7aa07d213dce8f6ccc791 | /web/status.py | 67b0ef72715bb5a57df21607287d20316999968d | [] | no_license | ktt-ol/spaceticker | f9e9c5995cdb550d40d0af4e19bc184689f693af | beef429e54818644615dbfc051282c4ff34830a2 | refs/heads/master | 2020-05-23T14:24:48.007417 | 2014-02-05T17:36:38 | 2014-02-05T17:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | import requests
import json
import socket
import threading
import time
STATUS_URL = "http://status.kreativitaet-trifft-technik.de/api/statusStream?spaceOpen=1"
import logging
log = logging.getLogger('spaceticker')
def parsed_events(events):
for event_lines in events:
resp = {}
for line in event_l... | [
"olt@bogosoft.com"
] | olt@bogosoft.com |
a51b7d20146596f7667dedf8f997cb358522ee33 | 49c174fa2363461bbefd07af08f2d62b2d12b591 | /examples/sim2real/envs/locobotEnv/gym_env.py | 76b42cfcce4f3af74705604e11412b9852cde434 | [
"MIT"
] | permissive | Improbable-AI/pyrobot | 452f68ca503fb4aff247d6166cff8914471fa9d8 | 326b49057421ae7d5feefdca93b580846aaef730 | refs/heads/master | 2022-07-07T20:58:23.358744 | 2022-04-01T22:02:39 | 2022-04-01T22:02:39 | 221,547,610 | 1 | 2 | MIT | 2022-04-04T20:24:45 | 2019-11-13T20:41:11 | Python | UTF-8 | Python | false | false | 9,902 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import time
from os.path import expanduser
import gym
import numpy as np
import pybullet
import pybullet_data
import pyrobot
import ... | [
"kalyan051993@gmail.com"
] | kalyan051993@gmail.com |
ed88f30e363ee9c74a9eb98e33476f91cd389f3b | 5d6ef1469740109d732441e88aed91890f2b8361 | /accounts/migrations/0004_auto_20170103_0158.py | 3fa1648b084a3e63bba8300f37f982ae856a3a10 | [] | no_license | boiyelove/workflow | 1ce88ee830fe4536db4423962296557629d81a7e | 273c168f0a0979f29f5154d3c67337091e0fe4b3 | refs/heads/master | 2023-07-17T16:40:05.178225 | 2020-08-08T16:59:06 | 2020-08-08T16:59:06 | 172,429,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-03 06:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_userprofile_verified'),
]
operations = [
migrations.Rename... | [
"daahrmmieboiye@gmail.com"
] | daahrmmieboiye@gmail.com |
d847c2f60a3ef36cdb39e03513e38a521b5327ba | f9e9a186b60b1e05cc51ad8c63e2a872689d045d | /venv/Lib/site-packages/segregation/_base.py | 20828a68828b025c384d0fb4db813bebd7ed3cea | [] | no_license | pszemraj/CASSINI_geo | a4f139d6bc267ac8a9d7fa1a0620a53979c8ec74 | 6266994b60252df00b44a4af3bb42fe8de90df2c | refs/heads/master | 2023-06-02T04:55:02.594348 | 2021-06-23T03:13:44 | 2021-06-23T03:13:44 | 378,507,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,007 | py | """Base classes for segregation indices."""
from logging import warn
import warnings
import geopandas as gpd
import libpysal
import pandas as pd
from libpysal.weights import lag_spatial
from libpysal.weights.distance import Kernel
from libpysal.weights.util import attach_islands, fill_diagonal
from .util import calc... | [
"peterszemraj@gmail.com"
] | peterszemraj@gmail.com |
cdf94c6238c9f18e1aad3a98d133f0bbd343622b | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/TUPLE/Day 52 Tasks/Task8.py | c8efb7472000388f7c64030f97daaaef4caa7d00 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 320 | py | '''8. Write a Python program to create the colon of a tuple.'''
from copy import deepcopy
#create a tuple
tuplex = ("HELLO", 5, [], True)
print(tuplex)
#make a copy of a tuple using deepcopy() function
tuplex_colon = deepcopy(tuplex)
tuplex_colon[2].append(50)
print(tuplex_colon)
print(tuplex)
#Reference: w3resource | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
c95b9df1d909b877e67350dfee4dde9e40e67358 | 2a6f4d4a91c451f428bf585d4a909bb950f87ecb | /tests/covid_challenge/test_cli.py | f152799afb201ec98ea5f316d6c614a719327df1 | [] | no_license | jggrimesdc-zz/Covid_Challenge | c00e5a4747d9a0222d6bb3132de4d0afab6606f8 | 8eee3fd43542e8a90c9b212854d476a17e6325a4 | refs/heads/master | 2023-03-07T22:20:35.570719 | 2021-02-20T02:19:10 | 2021-02-20T02:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,138 | py | import pytest
import covid_challenge.cli
from datetime import date, timedelta
def test_main_with_doubling_time():
""""
Tests a run via CLI with the minimum amount of parameters. Exponential
factor is defined by doubling-time.
"""
arguments = [
"pytest",
"--current-hospitalized", ... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
7e310fb788d57071971e7f60d934cddee463e2d3 | 1f3b5e8b362303b73a6756069a5c8b8bc3113e1a | /backend/manage.py | 886be77ba4e32c63aab8251ebd08d4b68584167d | [] | no_license | crowdbotics-apps/alculate-22010 | 7eea20ceed9a93ef9a0431841ad4a10aae5ebe37 | 85e2f22a4f257a6ae616918fe78ff500f8d0e6a2 | refs/heads/master | 2023-01-03T16:33:57.841925 | 2020-10-27T12:52:45 | 2020-10-27T12:52:45 | 307,698,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | 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", "alculate_22010.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
03e113f2cddec9947fe589f68881aadb5d70c72d | 03a11192950db709f51ba9c8e399a86bf18c7c8d | /functionalprogramming/decarators.py | a9035b29304ea4916a468864b24bb1c83522a12f | [] | no_license | vivekvgsk/pythonallpgm | 266e64b6407ddafeac86cab549458a0f4aa08582 | b66c0ad592acb1034183eea0a6b1195e3e03b593 | refs/heads/master | 2023-04-25T09:23:11.896900 | 2021-05-04T15:33:24 | 2021-05-04T15:33:24 | 359,359,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def div_deco(func):
def inner(n1,n2):
if n1<n2:
(n1,n2)=(n2,n1)
return func(n1,n2)
return inner
@div_deco
def div(num1,num2):
return num1/num2
res=div(2,10)
print(res) | [
"vivekvgsk@gmail.com"
] | vivekvgsk@gmail.com |
8af43cc5ef530e8b7e11681cbf1c3d8c67a02784 | 5c0493ef3ed08009387eda5eda98c35b9b7c8187 | /setup.py | 04e86706854e954fcfe5bffdecea38021875ebe4 | [
"Apache-2.0"
] | permissive | lyft/awseipext | 2c3668a01004a53fc17a84f3626ac6895f5c87b1 | 113328b43a57951255fc405593314610307555c0 | refs/heads/master | 2023-09-05T02:13:42.902272 | 2021-10-08T22:11:39 | 2021-10-08T22:11:39 | 64,725,170 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import os
from setuptools import setup, find_packages
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
about = {}
with open(os.path.join(ROOT, "awseipext", "__about__.py")) as f:
exec (f.read(), about)
setup(
name=about["__title__"],
version=about["__version__"],
author=about["__auth... | [
"rlane@lyft.com"
] | rlane@lyft.com |
418cdc6c2e7f9b069cf8e1ab5ad4409efd3315dc | 148125096da896fd93292d2cd408265d159fec28 | /qa/rpc-tests/may152018_forkactivation_1.py | be4e3f4b4aa2c148f45ef80a9c28b538a2dddce2 | [
"MIT"
] | permissive | lycion/lkcoinse | 7cfbcbdfc1e98f20d9dfc497ea65fd75ca6de25d | 9cf9ed5730217566b44466c22dc255f0134ad1bb | refs/heads/master | 2020-03-30T03:24:44.245148 | 2018-09-28T04:55:30 | 2018-09-28T04:55:30 | 150,548,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,579 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Lkcoinse Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import test_framework.loginit
import time
import sys
if sys.version_info[0] < 3:
raise "Use Python 3"... | [
"lycion@gmail.com"
] | lycion@gmail.com |
418af91cee9dd654057ba162dfac0515effa815a | c3bc08ddabf1ed7c72823adea6318b47d7eb92eb | /math/physicalunits.py | ef8d724d7737bd8e447b1036b569ca5b795194fd | [
"MIT"
] | permissive | spinpluspython/spputils | 9753724f17bee3fd1e12c3082bf2567966406302 | 2b04c7e658b811d529ab03f9b26468bfe821332f | refs/heads/master | 2021-05-03T05:30:42.279101 | 2018-11-20T11:11:18 | 2018-11-20T11:11:18 | 120,638,768 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | # -*- coding: utf-8 -*-
"""
@author: Steinn Ymir Agustsson
"""
def main():
pass
def get_energy_density(spot_size=100, power=1, rep_rate=283000):
""" Return energy density in microJoule /cm2
spotsize as FWHM diameter of gaussian profile in micrometers
power in mW
reprate in Hz
P... | [
"sagustss@uni-mainz.de"
] | sagustss@uni-mainz.de |
509ca82a195a9c34e779ae15a001bc978c68c56b | fb114e1b9800d71c2914f608c49dfea1fc5668dc | /crontest/crontest.py | f5bc0a6017f6bcdfb77e1cdd4074c1fa2bd9a296 | [] | no_license | mobread/Python | 46ff4a5210901e32ee8a4de6392dedbd100beb69 | 1f35d68f549b4323ee11b41e50a8eb7c9220de9e | refs/heads/master | 2021-05-30T05:10:00.138842 | 2016-01-20T22:34:57 | 2016-01-20T22:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #something to do every two minutes
import time
import datetime
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
file_obj = open('/home/pi/crontest/crontest.txt', 'a')
file_obj.write(st)
file_obj.write(' timestamp test \n')
file_obj.close()
| [
"pi@raspberrypi"
] | pi@raspberrypi |
1dea4577e0892107466ef92c2a5394a2ef16c7f1 | 7907dd80d51da495f8fc82885231cd1c43d38235 | /hms/hms_auth/migrations/0023_auto_20210219_1035.py | 83ff8f850ea0a595714a9934be0efbade67c7a13 | [] | no_license | opexzy/HMS-Backend | 5a54b3818a3a921cf4b7090249ba0a8d91417efd | 650af551b6c385db9dbae0ebe1544834b6ac5d4c | refs/heads/master | 2023-03-29T02:22:08.798354 | 2021-04-02T03:11:36 | 2021-04-02T03:11:36 | 336,312,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.1.2 on 2021-02-19 09:35
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('hms_auth', '0022_auto_20210218_1421'),
]
operations = [
migrations.AlterField(
... | [
"mayluv@hotmail.co.uk"
] | mayluv@hotmail.co.uk |
9846128d8c8899517fef68f5f4a93cc3c87d328f | 73603d6f87feb144096a5c4af539b55263525779 | /src/gwas_parsing.py | 0b5dbb5d52c9bdc73bdb38c79e7ed8cdddd17f7a | [
"MIT"
] | permissive | leamhernandez/summary-gwas-imputation | 2cb0e83d21211f9cfefc48678537e33280cdc457 | eef0fb04991d06329ca90728ed8fea1da35b7788 | refs/heads/master | 2020-07-20T21:40:13.774992 | 2019-08-29T14:49:35 | 2019-08-29T14:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,457 | py | #!/usr/bin/env python
__author__ = "alvaro barbeira"
import logging
import os
import math
from timeit import default_timer as timer
import numpy
import pandas
import pyliftover
from genomic_tools_lib import Logging, Utilities
from genomic_tools_lib.miscellaneous import PandasHelpers, Genomics
from genomic_tools_lib.d... | [
"alvarobarbeira@gmail.com"
] | alvarobarbeira@gmail.com |
40ad3e9f64da761b9382b7f0e3f3bff85fb973a2 | 9e41adf86b2c166a219f0b6d9371089c5f2d7d93 | /Exerciciospython/Utilizando modulos TEXTOeNUM/e018.py | 2194dad41b34f93bb40eca22eeaa59be527354c5 | [] | no_license | Nadirlene/Exercicios-python | 1aaead61dd0efcb5303f6294e765e9e1d54506cc | 3fe82e166003922ef749756a249840ed1fe940b0 | refs/heads/main | 2022-12-25T21:35:06.172839 | 2020-09-28T15:08:37 | 2020-09-28T15:08:37 | 299,343,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import math
a = float(input('Digite o valor do ângulo: '))
seno = math.sin(math.radians(a))
cos = math.cos(math.radians(a))
tan = math.tan(math.radians(a))
print('O angulo {} tem o SENO de {:.2f} \n COSSENO de {:.2f} \n e TANGENTE de {:.2f}'.format(a, seno, cos, tan))
| [
"nadirleneoliveira@yahoo.com"
] | nadirleneoliveira@yahoo.com |
6c7c0d59974494b8921beb2d6151288a4f1261a2 | 98503e87afc8c749155038b72ebf42e198cc045a | /setup.py | dfff03929d0d741731c9031305adfb6b7cfcc6cc | [
"MIT"
] | permissive | WilliamMajanja-zz/xopen | 8b028666d70331198323dd0e5f38091786935e56 | 06823e2920b2aca9d66f907feac941862f5bd7ce | refs/heads/master | 2022-11-25T19:26:35.257446 | 2020-04-02T09:13:32 | 2020-04-02T09:13:32 | 286,841,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 5):
sys.stdout.write("At least Python 3.5 is required.\n")
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_r... | [
"marcel.martin@scilifelab.se"
] | marcel.martin@scilifelab.se |
054451278e053c5e63883bc908c5e81a3ba068d2 | bbebd95ce007baf3be20ca14fc8fe696c4c7dd96 | /L8 Python Scripts/MonOhm_b995/FlashingButtonElement.py | c69547f48f1f2f7fd3e23230ddeb2edb7348b527 | [] | no_license | spiralune/monomodular | 70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3 | 862bb02067c2fbc9816795904b2537a9b5e1c7b6 | refs/heads/master | 2020-12-11T04:06:25.390424 | 2014-07-09T19:45:41 | 2014-07-09T19:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,468 | py | # emacs-mode: -*- python-*-
import Live
#from ValueListenerComponent import ValueListenerComponent
from _Framework.ButtonElement import ButtonElement
from _Framework.InputControlElement import InputControlElement
from _Framework.NotifyingControlElement import NotifyingControlElement
from MonOhm_Map import COLOR_M... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
729f97ae907467bb3462fce5c37071509b1e0f71 | 2321ebc9c76e2eb95a05976e3681ed7f4e24d361 | /pandas-for-finance/07/01.py | fd4194d4760f3e8e043ba1d8405e4f5f1abbc54d | [] | no_license | sharebook-kr/books | 71428bfec46759a8da81d70bfe28fa67e4244aee | 7537053c559ca055bf54ab940bf4078217c288a1 | refs/heads/master | 2020-04-22T19:08:42.294339 | 2019-08-17T12:06:42 | 2019-08-17T12:06:42 | 170,598,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import pybithumb
df = pybithumb.get_ohlcv("BTC", interval="day")
print(df) | [
"brayden.jo@outlook.com"
] | brayden.jo@outlook.com |
b405752c345e50ca4310941f32fcf7a015387893 | c882b8a20537ad9850a57c51226c5c4462bfd85c | /podder_task_foundation/utilities/__init__.py | 8eb9cd767686583741b69cabd805454da56aa109 | [] | no_license | tthufo/podder-task-foundation | 086b76208460d5eaae3b8a51717acdb0ef5b585a | d0897da906a689486704cc9b973d44ec0ad348c7 | refs/heads/main | 2023-03-23T02:51:35.684229 | 2021-02-15T09:07:27 | 2021-02-15T09:07:27 | 343,996,723 | 0 | 0 | null | 2021-03-03T04:04:13 | 2021-03-03T04:04:12 | null | UTF-8 | Python | false | false | 138 | py | from .data_file_loader import DataFileLoader
from .json_encoder import NumpyJsonEncoder
from .strings import Strings
from .uid import UID
| [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
25ca030ed3d8e2eeb34e11c1a60e57ed76b17381 | 5201e237c0d58cdfdbc2fdf8103f9141161eb9f8 | /itkProjectedLandweberDeconvolutionImageFilterPython.pyi | 0819920a448d71e8c38a280572c119891344f246 | [] | no_license | hjmjohnson/itk-stubs | 704f5b92a755e55b81d02fcad62a366143e125f3 | 771951d007ae425b758e088eae6f9e4ca0e4afb1 | refs/heads/main | 2023-01-22T05:50:33.649088 | 2020-12-04T01:31:09 | 2020-12-04T01:35:06 | 318,368,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,901 | pyi | import itk.itkImageToImageFilterCommonPython
from itk.support import itkHelpers as itkHelpers
from typing import Any
class _SwigNonDynamicMeta(type):
__setattr__: Any = ...
def itkProjectedLandweberDeconvolutionImageFilterIF2IF2_Superclass_New(): ...
class itkProjectedLandweberDeconvolutionImageFilterIF2IF2_Supe... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
abc46a7c13c8c09f76241da94836f139fa9b7c8a | 448d70d59cd2ebf5c6f183de227d66180cef3029 | /scripts/addons_extern/outliner_extend_keys_yi.py | 0c0f90dc2d6ccf0f754c2bbbb63f45f5b7d288c6 | [] | no_license | motorsep/blenderpython | 804fb149f7a8d22425e057bf3ae91f36fecb047f | f69bc448ed44875d30fcfda1acb33962015386c9 | refs/heads/master | 2021-01-18T02:01:54.117018 | 2016-04-10T06:06:36 | 2016-04-10T06:06:36 | 56,364,677 | 1 | 0 | null | 2016-04-16T04:00:56 | 2016-04-16T04:00:55 | null | UTF-8 | Python | false | false | 10,943 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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; version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
53fd10f8effad83bb53825df8ecbab96dfec966a | c0f511fe8af64aea87c0d96d7114b9dd23127bf8 | /utils/master.py | 2f114e586547ed631de6f6c27811af84130c544d | [] | no_license | wsyx123/firecloud-agent | 54456b1041a72879f441ab900094dfa0bac9d303 | a8e3f0da86f84049b391fa5d9619d9d837bad6df | refs/heads/master | 2020-05-24T18:06:23.025637 | 2019-05-18T20:35:31 | 2019-05-18T20:35:31 | 187,402,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,873 | py | #!/usr/bin/env python
#_*_ coding:utf-8 _*_
'''
Created on May 12, 2019
@author: yangxu
'''
import urllib
import urllib2
import cookielib
from subprocess import Popen,PIPE
import json
import platform
from plugin.cpu import cpu_num
from plugin.disk import disk_size
from plugin.network import net_if_stat
from plugin.me... | [
"690943136@qq.com"
] | 690943136@qq.com |
71d2ca35c772896645386abce3ad53801e7c5eea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03212/s551098654.py | c35ce941492ccdaae689e65505065b19b357431e | [] | 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 | 2,791 | py | N = input()
n = len(N)
ans = 0
if n < 3:
print(0)
exit()
if n > 3:
for i in range(3,n):
ans += 3**i - 3*(2**i) + 3
a = int(N[0])
if a > 3:
ans += 3**(n-1) - 2*(2**(n-1)) + 1
if a > 5:
ans += 3**(n-1) - 2*(2**(n-1)) + 1
if a > 7:
ans += 3**(n-1) - 2*(2**(n-1)) + 1
b = int(N[1])
c = int(N[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f651f400b31cfb258dae9f2f0004ae352157800 | ee988eb6ad8eb96cacc5137f1d3cb372c3f74c0e | /code/tasks/HANNA/utils.py | b3b14ac122d60661e66c0397880ba570fcc6e2cc | [
"MIT"
] | permissive | weituo12321/PREVALENT_HANNA | bb8818ddc23bd46dcd00b1bba928ce605c10a764 | 8b3e9b591f3b002c019d5202f04dc45d186808a5 | refs/heads/master | 2021-04-09T03:06:21.696254 | 2020-07-21T19:26:10 | 2020-07-21T19:26:10 | 248,832,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,283 | py | import os
import sys
import re
import string
import json
import time
import math
from collections import Counter
import numpy as np
import torch
import networkx as nx
import base64
import csv
def load_nav_graphs(scan, path=None):
''' Load connectivity graph for each scan '''
def distance(pose1, pose2):
... | [
"weituo.hao@gmail.com"
] | weituo.hao@gmail.com |
bfad1d93dec12799e22961112c9c06ed49a496ee | 6bf492920985e3741440ba53e1c7f8426b66ac1f | /snakemake_rules/rules/dfilter/dfilter_run_dfilter_bam.smk | 7fa416358d1ebe00443986ca6f4e000e5ca152a0 | [
"MIT"
] | permissive | ukaraoz/snakemake-rules | 5b2ba7c9ec19d88b56067a46f66fd0c72e48c368 | 07e96afeb39307cdf35ecc8482dc1f8b62c120b9 | refs/heads/master | 2020-03-31T15:20:44.444006 | 2018-09-07T08:53:47 | 2018-09-07T08:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | smk | # -*- snakemake -*-
include: "dfilter.settings.smk"
rule dfilter_run_dfilter_bam:
"""Run run_dfilter command. Currently only works on one file."""
params: options = config['dfilter']['options'],
cmd = config['dfilter']['cmd']
input: chipfile = "{prefix}.bam"
output: bed = "{prefix}.dfilt.be... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
b827784e00a4f207442bd550283c57a069633b3e | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.4.2/_downloads/7d40c40c96a62a41226026de985e1260/spines_bounds.py | 96205a43d38eb38f50a7fa005dc5293002e0f249 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 901 | py | """
===================
Custom spine bounds
===================
Demo of spines using custom bounds to limit the extent of the spine.
"""
import numpy as np
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
np.random.seed(19680801)
x = np.linspace(0, 2*np.pi, 50)
y = np.sin(x)
y2 = y + 0.1 * n... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
42e7184419dd600194562a4ee108a52154486a8f | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /mks_7th/ord7_3D_localstate_test.py | ba95c80e604afef534acecffd879bc93489389d9 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 07 15:19:39 2014
Trying to generate additional terms to represent seventh order microstructure
descriptors.
3-D case
@author: nhpnp3
"""
import numpy as np
import itertools as it
## MICROSTRUCTURE GENERATION ##
el = 3
ns = 2
micr = np.round(np.random.rand(el, el, el, ... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
907abfe0a90839c2ac4a380479cc9c62cf5ecf31 | 738aedb8035e49951f83ce3f4291eee149cad5fb | /OB Damage - Li-Hopfield Model/All the code/Matrices/olf_bulb_update_weights_10MC_2D.py | 9f5595437666ee6812dc764e6526a5b4a467f782 | [] | no_license | jkberry07/OB_PD_Model | fb453303bfa64c1a3a43c7d81d2b5373950e1f4d | 1ce30205354dc30cab4673e406988bfa76390238 | refs/heads/master | 2022-11-21T09:39:09.692654 | 2020-07-25T23:25:11 | 2020-07-25T23:25:11 | 282,358,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,830 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 18 13:38:32 2018
@author: wmmjk
"""
#Matrices are updated randomly until both the average oscillatory power per cell and the participation number (Inverse Participation Ratio, IPR)
#reach their respective threshold values. The average power per cell ensured a suf... | [
"noreply@github.com"
] | jkberry07.noreply@github.com |
30c6f902f806a0062f1c66805e25c84330f4f527 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/block_canvas/context/editors/context_shell_editor.py | d8a0303f7ca3caf1b8513a376299628680d149cb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 117 | py | # proxy module
from __future__ import absolute_import
from blockcanvas.context.editors.context_shell_editor import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
4c85632bce56468db9045beffac58d5a0a34232e | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /Temp/q863_all_nodes_distance_k_in_binary_tree.py | f22b8003e0681ae3bedf6d20dcb0a0edab91accb | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | # Time: O(n)
# Space: O(1)
# 解题思路:
#
from common import TreeNode
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
class TreeNode1:
def __init__(self, x):
self.val... | [
"429134862@qq.com"
] | 429134862@qq.com |
b74c1c088b5a51111b3d85d2ec8d5f70c1f75f81 | fe204bdebce1ae9c0169d0e1bf98a30adf5e7f4d | /jams/version.py | 30358ea7daca8513c4ab9e8c0c9520c9e792f66a | [
"ISC"
] | permissive | irisyupingren/jams | 9c28d4899e231d514122470bb962b931137033cc | efcb2b35298f2ef5aef5e289123fad45df53f13e | refs/heads/master | 2020-04-06T17:57:27.351448 | 2018-06-04T19:56:18 | 2018-06-04T19:56:18 | 157,679,565 | 0 | 0 | ISC | 2018-11-15T08:44:24 | 2018-11-15T08:44:24 | null | UTF-8 | Python | false | false | 106 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Version info"""
short_version = '0.3'
version = '0.3.2'
| [
"brian.mcfee@nyu.edu"
] | brian.mcfee@nyu.edu |
5eac72f664f5fb5177098844e68eccc116844810 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_11365.py | 4ac5b116fd254b1f7ae280c4f5c92368f7b1aee6 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # What is the best drop-in replacement for numpy.interp if I want the null interpolation (piecewise constant)?
scipy.interpolate.interp1d
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
468fb235b8050f99a794f0e684a8bddccbd48070 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/vision/v1p3beta1/vision-v1p3beta1-py/noxfile.py | ef09ecf7584ab024ccaccabf927dc620416964ab | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,563 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
935d366419ef1597e72899fa334017253ae9fddb | 9f5dd76fe21a66f90700f83840f2491dd34b17f9 | /tensorflow/python/keras/premade/linear.py | 451ac3d59088ca36d79cb61efeaa49d4181c4cb4 | [
"Apache-2.0"
] | permissive | thuanvh/tensorflow | b328964da68744bbd77799b13729835dcf4dbf79 | a599e0e2fc5a0e7964ad25c2f5c7e6ed5b679dc6 | refs/heads/master | 2021-07-20T13:55:40.451003 | 2019-12-03T06:34:09 | 2019-12-03T06:34:09 | 119,012,773 | 3 | 1 | Apache-2.0 | 2019-12-03T06:42:38 | 2018-01-26T06:05:36 | C++ | UTF-8 | Python | false | false | 5,947 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e52167f0d881577fdb66394a4542c0f2ee59dd80 | 8e1d96b0d599c077ca02a4bce797ac3bc6f32668 | /user/migrations/0010_auto_20160206_1816.py | 67d190c85fe0e24420356c3b4f7a5ec97ff703b4 | [] | no_license | nikoladang/dailyhn | 7ef8473217a3ea18f884ff76c613d7eb5c995893 | b3e45b4e6891b4955110f9a253f29f1bce5f2602 | refs/heads/master | 2021-01-15T13:14:53.245533 | 2016-08-03T12:51:45 | 2016-08-03T12:51:45 | 48,632,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-06 11:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0009_auto_20160205_1950'),
]
operations = [
migrations.AlterField(
... | [
"ducthinhdt@gmail.com"
] | ducthinhdt@gmail.com |
a91db2f3d89653e30b5760e883552ed814494265 | 41777d4d219ea97b4632f4a8a31ab6c82a60772c | /kubernetes_typed/client/models/v1_webhook_conversion.py | 8c93915b4b973c1bc87d1994857a5399f746b74a | [
"Apache-2.0"
] | permissive | gordonbondon/kubernetes-typed | 501d9c998c266386dc7f66f522f71ac3ba624d89 | 82995b008daf551a4fe11660018d9c08c69f9e6e | refs/heads/master | 2023-07-18T12:06:04.208540 | 2021-09-05T19:50:05 | 2021-09-05T19:50:05 | 319,183,135 | 24 | 2 | Apache-2.0 | 2021-09-05T19:50:06 | 2020-12-07T02:34:12 | Python | UTF-8 | Python | false | false | 418 | py | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1WebhookConversionDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import ApiextensionsV1WebhookClientConfigDict
V1WebhookConversionDict = TypedDict(
"V1WebhookConversionDict",
{
"clientConfig": ApiextensionsV1... | [
"noreply@github.com"
] | gordonbondon.noreply@github.com |
b5f42636f77212601d5e3f62129923cfe0d69c8d | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/arc/arc072/e.py | a128fea3dc8c5f8f9a5a6c2232d97ef861d39bc9 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # -*- coding: utf-8 -*-
N, D = map(int, raw_input().split())
d = map(int, raw_input().split())
Q = int(raw_input())
q = map(int, raw_input().split())
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
f2e0b1700e107a36d0df7d6a66bd5637cad6aa6b | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/learn_runner_lib.py | a5bdb858042f905c5f5256c73bcd19ff8db80726 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:9e9bd67b41d18a763918a9f87bacf3c7c68f862dac68fe021602328c904fb07d
size 1098
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
3202edfc343a0fd94a0797e6d4c15ff4b80477e8 | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/maznicyn28/raraze96/lab3/tzi.py | 3d193e2d593a07df3cccca6534e36d8f21a8fa66 | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import math
s = int(input())
k = int(s % 10)
s = int(s // 10)
smm = k
k = int(s % 10)
s = int(s // 10)
smm = smm + k + s
print(smm) | [
"you@example.com"
] | you@example.com |
dfd82b6b4db7287f230e6ab0e3ce53145564e84e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2588/58778/257267.py | 0df6f0e9cb60c736273fc09e6e496a40f34704e7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | n=int(input())
for i in range(n):
m=int(input())
k=m
z=0
if(m==1):
z=1
s=1
temp=[]
while(m!=1):
for j in range(2,m+1):
if(m%j==0):
temp.append(j)
m=int(m/j)
break
numlist=list(str(k))
c=0
for d in numlist... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
39b66279ab86c418663b25d0fb3207caad0f193f | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes2/33.py | 1a911c0664f4489503fb3e773cc6ed70d82a6088 | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,746 | py | data = [
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... | [
"lists@quernstone.com"
] | lists@quernstone.com |
5b46c2104e923bd95f99c339365c79719c29f00a | 8dbc93e608c5c8aa0a6bf6a6db194ac31964d880 | /cbdshop/urls.py | 080457e8704ab271598aef9ea1090c81de5a5405 | [] | no_license | Kamelgasmi/CBD | 3254b1d48b8435328a65236b019a7011f7d9aae6 | ef239b97640118619478579218fdf4d2da1ae128 | refs/heads/main | 2023-04-04T16:04:45.758408 | 2021-04-22T14:56:54 | 2021-04-22T14:56:54 | 359,452,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('pages.urls')),
path('cars/', include('cars.urls')),
] + static(settings.MEDIA_URL, d... | [
"kam_7@hotmail.fr"
] | kam_7@hotmail.fr |
f8dcd93b72e290bd9ae63043d6ccfac7f9db2dbf | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /56_4.py | 476af976f4f8c0135a6dcf9b3257cc04040e3810 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[List[int]]
:rtype: List[List[int]]
"""
intervals.sort(key=rightbound)
res=[intervals[0]]
for v in intervals[1:]:
if v[0]<=res[-1][1]:
res[-1][1]=max(v[1... | [
"noelsun@mowennaierdeMBP.lan"
] | noelsun@mowennaierdeMBP.lan |
661721ef250e85761fdbbb79a819b60b3e8caeba | f2f7afcac4aa6f579c806baede0b6996ef21d679 | /search/routes/context_processors.py | 60130434d1a0b2b238e8cefed215653651153f5d | [
"MIT"
] | permissive | alefnula/arxiv-search | 8ec8b31277cad298d5ed8a061b5e021b83b857a8 | 9ce21d469b6266c9a9ea008dd4b5ee681c16d695 | refs/heads/master | 2020-12-05T13:43:11.301247 | 2019-12-17T20:10:27 | 2019-12-17T20:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | """Context processors for use in :mod:`.routes.ui`."""
from typing import Dict, Callable, Optional, Any, List
from urllib.parse import urljoin, urlparse, parse_qs, urlunparse, \
urlencode, ParseResult
from flask import request, url_for
from arxiv import taxonomy
from ..domain import Classification
def url_for_... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
316050ca4cbb30e0b08563b4567073be94c21171 | e6acc5f23e01078a32dae472fd1acbd67493e938 | /buy/views.py | 776cd14230a2d5dcc985a8822a25ce331a8806ca | [] | no_license | ShantanuBal/TransactionMgmtSystem | eac6f0156ad2118a92457ba434bae4bd48233165 | faa89130891aed0ddb6b1620a8eb481f79c82e96 | refs/heads/master | 2020-04-30T03:29:55.500887 | 2015-05-28T18:27:55 | 2015-05-28T18:27:55 | 35,459,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | # Create your views here.
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
import MySQLdb
import datetime
import pdb
pwd = "scuderia800"
def buy(request):
check = check_login()
if check == 1:
return HttpResponseRedirect("/login")
... | [
"shantanu.r.bal@gmail.com"
] | shantanu.r.bal@gmail.com |
9467baab3e3a6618d9a1da38150096194039784c | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_10805.py | 4a0e73342dcaddc27741f18f00a40dd425ad685c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | # eliminating redundant tuples
set([(a,b,c) if a<b else (b,a,c) for a,b,c in tups])
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
7799e4800e3ced4e3a6a475dcf817e0d425869f8 | 08f5dd97433ce84868dbd95020e49f795e8e3f42 | /creations/migrations/0060_webpage_display_title.py | 83be97b3889bb1cb1b78a4b712f8b96d00aaf3fc | [] | no_license | katur/forthebirds | f76e9d78f8b71f5cb13f22f3c417e737f6048896 | 2118fabebd8780cd3151f5ddd88245de402590e9 | refs/heads/master | 2023-08-08T18:57:55.722516 | 2023-03-28T03:04:19 | 2023-03-28T03:04:19 | 22,771,365 | 2 | 1 | null | 2023-07-25T21:23:49 | 2014-08-08T20:56:20 | Python | UTF-8 | Python | false | false | 460 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-24 00:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('creations', '0059_auto_20160109_1844'),
]
operations = [
migrations.AddField... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
fde6866ba990d6dd1e47dd8e5d8460d591409608 | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_2/models/rbm_models/dbn.py | f48771b8763c5c5740f2fb7a789bd7016cc47d62 | [
"MIT",
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 12,967 | py | import numpy as np
import tensorflow as tf
from tensorflow.python.framework import ops
from models.rbm_models import rbm
from utils import utilities
import model
class DBN(model.Model):
""" Implementation of Deep Belief Network using TensorFlow.
The interface of the class is sklearn-like.
"""
def _... | [
"793679547@qq.com"
] | 793679547@qq.com |
d0a6d4acd7ed0d07d6a36580ece526f0498641f7 | e638e9fda0e672fa9a414515d0c05a24ab55ad38 | /SwapNodesInPairs.py | 9ce0212832d0cc1dcb0ab9b7dc187d862cd3deb7 | [] | no_license | zjuzpz/Algorithms | 8d1c7d50429aa5540eb817dc5495a20fc3f11125 | 2df1a58aa9474f2ecec2ee7c45ebf12466181391 | refs/heads/master | 2021-01-21T05:55:48.768728 | 2020-08-04T22:44:08 | 2020-08-04T22:44:08 | 44,586,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | """
24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space.
You may not modify the values in the list,
only nodes itself can be changed.
"""
class ListNode(obje... | [
"zjuzpz@gmail.com"
] | zjuzpz@gmail.com |
8a91b334609173c492025ed8effc7f0c30f1d7b8 | c82d049de07e93700b534056139df1ab698b889e | /src/hunter/backports/inspect.py | 668b482d80ca87008aab871b14f05fb9768588b1 | [
"BSD-2-Clause"
] | permissive | macduff23/python-hunter | ecbea8d25b094db79cb8e4642ea9f8b9fd5fadbd | 3c0a3564fbef31bae704d2768940f0cd9b0e0f86 | refs/heads/master | 2021-05-21T08:59:43.766092 | 2020-03-19T23:57:06 | 2020-03-19T23:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,952 | py | import types
_sentinel = object()
def _check_instance(obj, attr):
instance_dict = {}
try:
instance_dict = object.__getattribute__(obj, "__dict__")
except AttributeError:
pass
return dict.get(instance_dict, attr, _sentinel)
def _check_class(klass, attr):
for entry in _static_getm... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
8f38556c035d6ad754850e2d34c102672956ae30 | 0ea64713582df26190354acc39eeedba513e7548 | /Intro/Bite 110. Type conversion and exception handling.py | bea2789ab94d2a304e09a35b6aeeb7abc5de271f | [] | no_license | SimonSlominski/Pybites_Exercises | 38e9fe477a4539f4e96347c19a6b49df40028d48 | 07f95ec7bfd3c3563478e3d161425f8d4e50c945 | refs/heads/master | 2023-08-04T14:56:58.795590 | 2023-08-03T10:03:43 | 2023-08-03T10:29:20 | 241,180,910 | 2 | 0 | null | 2021-04-20T19:47:02 | 2020-02-17T18:39:07 | Python | UTF-8 | Python | false | false | 1,294 | py | """
Bite 110. Type conversion and exception handling
In this Bite you complete the divide_numbers function that takes a numerator and a denominator
(the number above and below the line respectively when doing a division).
First you try to convert them to ints, if that raises a ValueError you will re-raise it (using r... | [
"simon.slominski@gmail.com"
] | simon.slominski@gmail.com |
87c92bcce2d0cf58b21fe43b4c7cdf9d46fbcf72 | e6f83d91402d586e42d656cd351fc9d6cb07105b | /kivy_4510 fixed py2 kivy_uix_image ascii error/main.py | 4d873cb05cb8647e0689a21e64c81ce67e43362a | [] | no_license | Bakterija/push_examples | 466c9068e46f27783ae1779decfeb782d8190d8d | f52bb077b14843984aa6803b90c2c56a0d3c3f4e | refs/heads/master | 2020-12-29T00:56:40.374551 | 2016-08-27T22:56:55 | 2016-08-27T22:56:55 | 64,957,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
import kivy
from kivy.app import App
import image
class NotificationDemoApp(App):
def build(self):
sorc = "ØØØØØØØ example.jpg"
img = image.Image(source=sorc)
return img
if __name__ == '__main__':
NotificationDemoApp().run()
| [
"atiskr@gmail.com"
] | atiskr@gmail.com |
59f529dcc03e413bbe3c6972105ca9dfbd26e625 | e836c9a9620c9c9940c74064e28f97f38a8a4ba1 | /failures/parsedeath.py | da6e9e2fae22318b94a56a29fd60236b1a25635f | [] | no_license | ftrain/deaths | 72028fcbef6578c40aeb0bba1528a7cf413c5827 | 3769aaea0bc411e716d2da107eb23f7874cdf440 | refs/heads/master | 2016-09-06T05:09:53.232624 | 2015-07-07T19:10:03 | 2015-07-07T19:10:03 | 38,708,967 | 3 | 1 | null | 2020-05-04T21:44:03 | 2015-07-07T19:08:24 | Python | UTF-8 | Python | false | false | 4,521 | py | #!/usr/bin/env python3.4
from fixedwidth import fixedwidth
import datetime
import sqlite3
fw_config = {
'acd': {
'type': 'string',
'start_pos': 1,
'length': 1,
'required':False,
'alignment':'left',
'padding':' '
},
'ssn': {
'type': 'string',
'... | [
"ford@ftrain.com"
] | ford@ftrain.com |
5232fcff03c1116df8bde9ad632d9e665db84e2e | c45b9c481a1e12001e2d2593c7adc114c03f7a3b | /blogages/apps/blogages_core/__init__.py | e8498aff8c536b6258a1d59b895b124ca022d8aa | [
"MIT"
] | permissive | codasus/django-blogages | 8d08feb87f3087aaf61072234b24668681bd2321 | f0242ff114f868f27ae3dafb79efd66c8eae7ce1 | refs/heads/master | 2021-01-11T11:01:33.409338 | 2011-11-21T16:41:37 | 2011-11-21T16:41:37 | 2,723,524 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | import apps.blogages_core.signals
| [
"caio.ariede@gmail.com"
] | caio.ariede@gmail.com |
ec7843f434de4c281231fa83ab3ed1bc499cd41e | 9f0f5816b9d810c9ce01c56588024e1c804809fe | /study/day4/day4_1.py | 9335cf048184c578302f4aa8a40f4c42cc93a7ef | [] | no_license | parkwisdom/Python-Study-step1 | bf8cc8c5f89bfb9ccbb395a3827e23d4f0d6ae9a | bae2f5653c5a0d1eac1d4b89476ece7e0802d33b | refs/heads/master | 2020-04-03T13:49:58.990930 | 2018-10-30T00:37:29 | 2018-10-30T00:37:29 | 155,300,210 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | # from bs4 import BeautifulSoup
# html="""
# <html><body>
# <ul>
# <li>
# <a href="http://www.naver.com">naver</a>
# </li>
# <li>
# <a href="http://www.daum.net">daum</a>
# </li>
# </ul>
# </body></html>
# """
# soup=BeautifulSoup(html,'html.parser')
# # print(sou... | [
"43980901+parkwisdom@users.noreply.github.com"
] | 43980901+parkwisdom@users.noreply.github.com |
cbf3070ffbef8556c29d9c25ba67c4b1e4943115 | 9a2b9059600765d48af259bb1f26d30e64cf4302 | /.history/entity_20211023182759.py | a8ac78477e7fb83de7d4b46b6b396cbc92549bdc | [] | no_license | Igor-Boson/Space-Invaders-Python | 478079551f7d1ba7046ae052041f9db0c434bcd1 | 1a12329ced82e80edf4446e5d6895f1656c639db | refs/heads/main | 2023-08-16T01:21:29.407569 | 2021-10-23T21:45:56 | 2021-10-23T21:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | from color import Color
import pygame
class Entity:
def __init__(self, handler, x, y, size, color, speed):
self.handler = handler
self.x = x
self.y = y
self.size = size
self.color = color
self.speed = speed
self.health = 1
def draw(self, screen):
... | [
"79543678+Igor-Boson@users.noreply.github.com"
] | 79543678+Igor-Boson@users.noreply.github.com |
aedc0e5dcb320a49656f8e7f7b9e1a722a8ab634 | 57f5c04e15aa3872db60715ea686f285d10c139e | /avaliacoes/api/viewsets.py | c0288edde2d0737c8a0dbaac8308ae55b107a88a | [] | no_license | edsonrp/djangoRest-pontos-turisticos | 43cf8b38146beed7c7fef1285cf7be126a891b40 | 1beb7d8fc7e70108582f22c11dc5b5290be399e5 | refs/heads/main | 2023-01-10T13:33:41.675487 | 2020-11-16T01:28:59 | 2020-11-16T01:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from rest_framework.viewsets import ModelViewSet
from avaliacoes.models import Avaliacao
from .serializers import AvaliacaoSerializer
class AvaliacaoViewSet(ModelViewSet):
queryset = Avaliacao.objects.all()
serializer_class = AvaliacaoSerializer | [
"davi-rocha2@hotmail.com"
] | davi-rocha2@hotmail.com |
a93a2a2f7f5bb1d437d150c4d2c7e0060d567f96 | a101af55dd0f584fe43884acaa125cca982c384a | /samples/service_robot/workspace/catkin_ws/build/slam_gmapping/gmapping/catkin_generated/pkg.develspace.context.pc.py | cfaffb8c88a20d414459b7f264ac451330465023 | [] | no_license | anupamkaul/robot_ball_chaser | 32a585c55af884427b50496aa1615a12e3dd8ad2 | 70f6952c3042d5d16400685a0f5d976a4c417767 | refs/heads/master | 2020-06-07T09:34:45.317405 | 2019-06-20T21:54:11 | 2019-06-20T21:54:11 | 192,988,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "gmapping"
PROJECT_SPACE_DIR = "/home/... | [
"anupam.kaul@yahoo.com"
] | anupam.kaul@yahoo.com |
c7844e035e415471ff284e91d984979a991f2435 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20210501/get_nat_gateway.py | f63f37c2188348624e56a88e45e692b20d9ed50b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,316 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
5fd36ae5c1303c926db4cb78e29121ded60a9165 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/csc_utils/vector.py | 865bde4c2a7c9ec2c4fe21287106863da06fc9e5 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,715 | py | import numpy as np
base64_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
base64_array = np.chararray((64,), buffer=base64_alphabet)
log2 = np.log(2)
def pack64(vector):
'''
Packs a NumPy vector into a kind-of-floating-point, kind-of-base64
representation, requiring only 3 by... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
510df947dec1ae0f4f63705037abcad55323cb6f | 6245db4e53782ab380de287f945bc026e3c6b281 | /LeetCode/serialize-and-deserialize-binary-tree.py | b2e1f0600a969c64f7cb5a5196b0db127be5dd34 | [] | no_license | rashmierande/python_exercise | e510174820efb793cfe435ad53c6baa34c829d86 | 9703b67a1f5614594244b4d8d2c42ebfb6a2aaec | refs/heads/master | 2021-01-23T00:53:17.235391 | 2018-03-15T05:46:53 | 2018-03-15T05:46:53 | 85,846,226 | 0 | 1 | null | 2018-01-21T18:11:11 | 2017-03-22T15:42:09 | Python | UTF-8 | Python | false | false | 2,688 | py | # Time: O(n)
# Space: O(h)
# Serialization is the process of converting a data structure or
# object into a sequence of bits so that it can be stored in a file
# or memory buffer, or transmitted across a network connection link
# to be reconstructed later in the same or another computer environment.
#
# Design an alg... | [
"eranderashmi25@gmail.com"
] | eranderashmi25@gmail.com |
ce512ec5845463f34dacccf068029346ada6cceb | e48948c487ec9dfb3eec0c2a804be248b22b0e11 | /test2_scarpy/test2_scrapy/utils/content_parse_utils.py | 7c588e1de0c8420741684c9f56bb8a750957c9cf | [] | no_license | hi-noikiy/syo_project | 9b0b9f9d32ce4f00366954370c701302c8abea4d | 53d8ed996d6a55e7b14fc7e7a51cb4451474fb2e | refs/heads/master | 2022-03-10T19:45:02.079626 | 2019-11-19T06:57:14 | 2019-11-19T06:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py |
from scrapy.selector import Selector
def delete_img_attr(tag):
pass | [
"1120773382@qq.com"
] | 1120773382@qq.com |
c6b8e9c707169a8c373f2ee78ac3d0178d9f8777 | 562d81a288c4db8435cb64bfc0279088ac364c39 | /REST_UBER/vvwm_rest/VVWM_pi_win.py | 9ad34e179ec858c378ac7e3661343072047ccbfb | [] | no_license | nareshpai/ubertool_ecorest | f63b1e8dc5fa6140d9dec2bcd8bc47fcf2788a17 | 30673426f5210d7da9987a99e4fa95f396c7add0 | refs/heads/master | 2021-01-17T22:34:29.663294 | 2015-02-08T18:22:22 | 2015-02-08T18:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,972 | py | #!/usr/bin/python
#
def VVWM_pi(working_dir,
koc_check, Koc, soilHalfLifeBox, soilTempBox1, foliarHalfLifeBox,
wc_hl, w_temp, bm_hl, ben_temp, ap_hl, p_ref, h_hl, mwt, vp, sol, Q10Box,
convertSoil, convert_Foliar, convertWC, convertBen, convertAP, convertH,
deg_check, tot... | [
"funkswing@gmail.com"
] | funkswing@gmail.com |
06420a82d3c96fdf046ed1ea351772de84d7f63a | cbcbb04be207839cab8d26d352f64cc505a5eec9 | /virtual/lib/python3.6/site-packages/pipenv/core.py | 6e8639ee9cb9167567cba3026347b5e4c26aa13c | [
"MIT"
] | permissive | Antony-me/perfect-pitch | 8c61b7d6de1d00fddff5c2feea0293eb85ea8f92 | a2de0adaa3a22844390627459796b823e4ac8e71 | refs/heads/main | 2023-01-10T23:25:46.931458 | 2020-11-02T20:34:52 | 2020-11-02T20:34:52 | 308,002,503 | 0 | 0 | MIT | 2020-11-02T07:58:34 | 2020-10-28T12:01:00 | Python | UTF-8 | Python | false | false | 109,969 | py | # -*- coding=utf-8 -*-
from __future__ import absolute_import, print_function
import io
import json as simplejson
import logging
import os
import sys
import time
import warnings
import click
import six
import delegator
import dotenv
import pipfile
import vistir
from click_completion import init as init_completion
... | [
"antonymunyasia993@gmail.com"
] | antonymunyasia993@gmail.com |
8eff6eb41ff587528769c695309a50dbdf280beb | 5130754859e274cd06f63260439e5203c2000a11 | /core/jobs/batch_jobs/exp_version_history_computation_job.py | 01a07862ab092b6a6d44d586f954d7a7300eb752 | [
"Apache-2.0"
] | permissive | oppia/oppia | 8ebc9c7c7f2b336e9a79ce04533abe3956f48cbe | d16fdf23d790eafd63812bd7239532256e30a21d | refs/heads/develop | 2023-09-04T07:50:13.661276 | 2023-09-03T09:21:32 | 2023-09-03T09:21:32 | 40,687,563 | 6,172 | 4,666 | Apache-2.0 | 2023-09-14T18:25:11 | 2015-08-14T00:16:14 | Python | UTF-8 | Python | false | false | 48,801 | py | # coding: utf-8
#
# Copyright 2022 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"noreply@github.com"
] | oppia.noreply@github.com |
5268ee7d4d9e2a102a249214d9cdc14039726362 | 4203b32040f6e399a10f2b8c0954b177c9ed83c7 | /reggae_project/urls.py | 9d1240fb0957832aa98cb3862b30c6de96c4ba5d | [] | no_license | MathsCostinha/reggae | 77c6c6829f8ffe281c5feb8e9bdc17db92e6ba04 | c4aa0fa20bd3442a3bf249a916fad59ce3237a67 | refs/heads/master | 2021-06-24T22:09:49.694651 | 2019-12-12T13:23:47 | 2019-12-12T13:23:47 | 227,522,617 | 0 | 0 | null | 2021-06-10T22:26:41 | 2019-12-12T04:50:13 | Python | UTF-8 | Python | false | false | 841 | py | """reggae_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"="
] | = |
9a49741a1cce40f1dbdbbe3001108f8c2a6e65e1 | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res/scripts/client/tutorial/gui/scaleform/offbattle/settings.py | ddef320eaf8ac9cbb51bad5337df083c3e5116fd | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,191 | py | # 2016.10.11 22:15:43 Střední Evropa (letní čas)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/offbattle/settings.py
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ScopeTemplates
from tutorial.gui.Scaleform.pop_ups import TutorialGreetingDialog, TutorialQueueDialog
from tutorial.gui.S... | [
"info@webium.sk"
] | info@webium.sk |
9c20052fdb14dfccebcaac48a3a13a00117f2b9c | e4b683644435aaf83ab8fe7693b97f1e105fa64d | /Escritorio/Control de voz auto-python/arranque.py | 2f5b32f38fb6ca39e73515b06940a026bd11c9c3 | [
"MIT"
] | permissive | brayanjav28/brayanjav28.github.com | 138afed08f79c131ae43f25ac117df687354d04f | 9bb40c24e1b4ef38654b3b144a49de9a84641efd | refs/heads/main | 2023-07-14T13:40:09.865405 | 2021-08-27T19:38:47 | 2021-08-27T19:38:47 | 334,521,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,219 | py | import numpy as np
arranque = [[10.19825875, 10.8602621, 11.468341, 12.35114893, 12.45085492
,14.65071836, 14.24620061, 13.64372954, 14.99352274, 13.2267395
,11.82172843, 11.71370868, 11.07514606, 13.26561174, 12.54720813
,11.43655713, 12.15091642, 13.6624598, 12.27963872, 10.75028036
,... | [
"brayan.saldarriaga@unillanos.edu.co"
] | brayan.saldarriaga@unillanos.edu.co |
b4675f3827e66421e97a0f5bc2eb7b19f8f07278 | 85c30319fa7a54414fedae612e287b91ce9f10df | /modulo4_ciencia/bloco_37/dia_3/exercicio_dia_2.py | e3be963f310159b25e8d4fe08b768addf97cbd99 | [] | no_license | Gustaft86/trybe-exercises | 9892c1ef968c0dd44dd88ad9dbd01123731b96f0 | 5dc2abaa6f6dfd3f3a7b6e305dde6bd090568913 | refs/heads/master | 2023-08-22T19:05:03.570511 | 2021-10-08T22:40:25 | 2021-10-08T22:40:25 | 301,892,171 | 1 | 0 | null | 2021-10-08T22:40:26 | 2020-10-07T00:58:31 | JavaScript | UTF-8 | Python | false | false | 2,016 | py | """
Exercício 2 - Google
Uma certa empresa tem uma estrutura hierarquizada onde cada pessoa reporta a uma única outra pessoa. Cada pessoa tem um score que é o total de pessoas que estão abaixo dela, incluindo subordinados de seus subordinados, além dela própria. Isso significa que uma pessoa que não tem nenhuma equipe ... | [
"gustavo.fthirion@gmail.com"
] | gustavo.fthirion@gmail.com |
1bb8fb043990fab240101300fb51f76166f967e3 | bdf3c98e33c6bc9c8e0332043cc5a3a3f5e8ea42 | /src/gmapping_example/catkin_generated/generate_cached_setup.py | 630d207490994f41dd5ed5d56144d8692a051da8 | [] | no_license | jstestsuite/ros-test | c33e244794287e2665cace847a9faf1b596ddf92 | b0bb5b06c1c18b804c0f0a4e2deb4d88be894d1f | refs/heads/master | 2020-04-11T16:54:41.401198 | 2019-02-13T00:44:14 | 2019-02-13T00:44:14 | 161,938,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"jsteele171@gmail.com"
] | jsteele171@gmail.com |
28368166238c37a6766bbcaab7c41a25b87bdbe4 | 03ffcd3db8c4046d61a3739313c2d8598a80ecc7 | /server.py | f18701c2229f0bc0ab9df1c2b412975a349317e5 | [
"MIT"
] | permissive | Grazfather/bnrepl | 31eca8dda479e5eb9bd4f0607033a81d0b941a06 | 8c9a637728ac5151d3e827b8d6eb7f619978eb1f | refs/heads/master | 2021-04-09T17:06:46.454153 | 2018-03-17T20:56:27 | 2018-03-17T20:56:27 | 125,765,769 | 0 | 0 | null | 2018-03-18T20:41:25 | 2018-03-18T20:41:25 | null | UTF-8 | Python | false | false | 5,599 | py | from binaryninja import *
_locals = locals().copy()
_locals.update({m: __import__(m) for m in (
'os', 're', 'sys',
)})
import SocketServer
import gc
import io
import json
import logging
import os
import rlcompleter
import signal
import socket
import sys
import threading
import traceback
from code import Interactiv... | [
"lunixbochs@gmail.com"
] | lunixbochs@gmail.com |
5fc560664b706173fb5410084825473da267c50b | 5b0dcb0a1f578d04b0c195a30ff1a7ccfd29deaf | /tests/import/ext/usys.py | d7629a4499d5bae3855a08a73aa37c1de045597a | [
"MIT",
"GPL-1.0-or-later"
] | permissive | rk-exxec/micropython | c87ecd8743413c8a65e64fd82cd1910ccaed96c6 | d529c20674131b9ce36853b92784e901a1bc86f4 | refs/heads/master | 2023-08-18T01:18:34.511851 | 2023-08-09T03:19:18 | 2023-08-09T03:22:57 | 136,508,987 | 7 | 16 | MIT | 2023-01-13T20:48:50 | 2018-06-07T17:17:01 | C | UTF-8 | Python | false | false | 126 | py | # usys (and any u-prefix) is always builtin and cannot be overriden by the
# filesystem.
print("ERROR: usys from filesystem")
| [
"damien@micropython.org"
] | damien@micropython.org |
24ca9b085371a45443bb18cc2ef18537e4d66acb | eb2ebaf1c53cfeb5a1abbc05e6423c5fdc27ca8a | /.history/ship_20200118115450.py | d98f12aaf5c8d41d262ae2b419d1f5b7d34e00f9 | [] | no_license | HeperW/VSCO | 8120bde36c73601e5b956955c0b68b599c9a663d | 4c3ee4aa45424313e335ff05934fbb6df7950304 | refs/heads/master | 2022-05-08T00:51:44.618385 | 2022-03-16T03:18:34 | 2022-03-16T03:18:34 | 233,367,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import pygame
class Ship():
def __init__(self,screen):
"""初始化飞船并设置其初始位置"""
self.screen = screen
#加载飞船图像并获取其外接矩形
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.image.get_rect()
self | [
"hgym300400@126.com"
] | hgym300400@126.com |
6e6dfff3a40b4e61b5617c0aff36fc66d0804b2c | 77190523b4cd9947d996426b3db4f1f189106ed8 | /0x0C-python-almost_a_circle/tests/test_models/test_base.py | 22e6c983598a7f94a51d25599bdea0d75807f54f | [] | no_license | ezno12/holbertonschool-higher_level_programming | 4f5e6078a0ae7658542e5b2f12a56b2d557d7686 | be9d864478424d6d6b072d07707a1e6cc36bdc75 | refs/heads/main | 2023-08-14T08:08:54.896968 | 2021-09-22T20:02:16 | 2021-09-22T20:02:16 | 361,715,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | #!/usr/bin/python3
'''
Unittest for base
'''
from models.square import Square
from models.rectangle import Rectangle
from models.base import Base
import json
import unittest
class TestBaseMethods(unittest.TestCase):
'''class TestBase'''
def test_base_id(self):
'''
tests for base class
... | [
"bassembenyhia12@gmail.com"
] | bassembenyhia12@gmail.com |
8bc5dd5c5b714d0184f07a7d52421dfedc541eba | 747f759311d404af31c0f80029e88098193f6269 | /addons/point_of_sale/wizard/wizard_refund_order.py | 6f7e18c18307f826b959c79d1ce2f47c1aa607d6 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | /home/openerp/production/extra-addons/point_of_sale/wizard/wizard_refund_order.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
08ef1ebaecd92459468f3416878b4fb1b53b63e2 | 7aa9beaf5ee24d80e2fe360b6c9dd53bfef450c4 | /model/dbproj.py | cc52f3dcaf1a5cf896a8bb20e05e168bc8142b45 | [] | no_license | brianyu28/alliance | 123fa6cc6cc756f978d23ad9d2eb0bdcbaf2ee99 | 39d944cd716c0ef3358019696e43338e891bb906 | refs/heads/master | 2021-01-18T19:48:41.633030 | 2016-08-10T23:06:31 | 2016-08-10T23:06:31 | 62,518,657 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,369 | py | import pymongo
from datetime import datetime
from pytz import timezone
from pymongo import MongoClient
from bson import ObjectId
from flask import session
from helpers import *
import dbmain
import secrets
client = MongoClient(secrets.mongo_uri)
db = client.alliance
# sets up an empty project for user, if it doesn't a... | [
"brianyu28@gmail.com"
] | brianyu28@gmail.com |
b47a6f3a2961b8f0bb7d6f0093d9c58c10cb1381 | 7c7902fa0efd6b249b67aaf8ef625981ca30ec2f | /clefts/manual_label/plot/figures/annotation/get_raw.py | d9960570b0210845706d488fb896408e4c2542b6 | [] | no_license | clbarnes/cleft_scripts | e170f4e212b62d347435eb686ff2cfc5b4f95a45 | 74a600c58c0b0f94d0a2db5eb654df06ee7825a8 | refs/heads/master | 2021-06-06T03:22:59.468426 | 2020-03-06T16:08:36 | 2020-03-06T16:08:36 | 140,337,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import numpy as np
from catpy import CatmaidClient
from catpy.image import ImageFetcher
from matplotlib import pyplot as plt
from PIL import Image
from clefts.constants import CREDENTIALS_PATH, STACK_ID
client = CatmaidClient.from_json(CREDENTIALS_PATH)
fetcher = ImageFetcher.from_catmaid(client, STACK_ID)
arr = fet... | [
"barnesc@janelia.hhmi.org"
] | barnesc@janelia.hhmi.org |
61594982d19a762c813ae37038b7f0aef516af78 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_116/ch118_2020_03_31_16_19_13_744668.py | 7225f2172dea942cd0f528762968cd0de01f1c68 | [] | 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 | 176 | py | import math
def reflexao_total_interna(n1,n2,θ2):
θ1=(math.asin(n2*(math.sin(math.radians(θ2)))/n1)
if θ1>1:
r=True
else:
r=False
return r
| [
"you@example.com"
] | you@example.com |
5fedd56c234f6eb5437afa55cd6572689aa4e0da | b72c9b41cec52d106cf13ae7763416a77b359c2a | /app/user/serializers.py | ef345d301a43ad6cd1fa737571dec3e2adc591e9 | [
"MIT"
] | permissive | LukaszMalucha/django-deployment-test | 8586c35d0dc74cba6d4b479ef461438bc08f931f | babb75904130d938e5c0fef0d96564697a105ad0 | refs/heads/master | 2021-06-30T14:09:23.281519 | 2020-01-07T12:45:49 | 2020-01-07T12:45:49 | 232,096,194 | 1 | 0 | MIT | 2021-06-10T22:27:57 | 2020-01-06T12:28:11 | Python | UTF-8 | Python | false | false | 2,082 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _ # future translations
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object"""
class Meta:
model = get_user_mod... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
9301985c6cec78ad79f4a08cedbd35bac28833a8 | 63a1671145dc6dc6e1a9d10ec21c520b83036fea | /Image_segmentation/U-Net/train.py | 20b246df99f4b7c558c9f21dde94e5d00556eab9 | [
"MIT"
] | permissive | chenpaopao/- | 4eca1405a3aab86fe649817048852b620a962c1a | 320f7d9a0b9e49528561024217ba07645eb68805 | refs/heads/master | 2023-02-04T17:44:48.639136 | 2022-06-06T05:04:57 | 2022-06-06T05:04:57 | 323,789,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,773 | py | import argparse
import os.path
import numpy as np
from loguru import logger
import sys
from pathlib import Path
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import optim
from torch.utils.data import DataLoader, random_split
from tqdm import tqdm
from torch.utils.tensorboard import Summ... | [
"739677819@qq.com"
] | 739677819@qq.com |
7114c681d3b299879748c88ce3f90ea999c1a0f5 | 75c0a3e958fc3db57ffb3d0d12337fc95a49947a | /day3/6 image thresholding2.py | 3f51a7c2fca2e6f2c80027274d344c638cd32848 | [] | no_license | chifeng111/opencv-test | 28d5e17d6bed93238117041e9b6050747149146d | 079eb9c44ecb3a9c7fe5e5d008f1ffdce721af29 | refs/heads/master | 2020-03-06T23:29:21.345593 | 2018-04-27T10:50:45 | 2018-04-27T10:50:45 | 127,133,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # coding:utf-8
import cv2
import matplotlib.pyplot as plt
img = cv2.imread('3.jpg', 0)
ret, th1 = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)
th2 = cv2.adaptiveThreshold(img, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 11, 2)
th3 = cv2.adaptiveThreshold(img, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH... | [
"liaozhenhua1129@gmail.com"
] | liaozhenhua1129@gmail.com |
e19c06eb97f9f8e8f7c8f1158f55d52e5d18080b | ed6c9903832748003a9208112be9c3db184954dc | /doc/LectureNotes/_build/jupyter_execute/neuralnetworks.py | a77be656a07fb6d98a8429f836ef262e9ee13448 | [
"CC0-1.0"
] | permissive | CompPhysics/ComputationalPhysics2 | ece24a2b16d7ed391c759765e228ddb484408757 | 73b364a3fc7df6e23e43876f1d5b6305a9f893cf | refs/heads/gh-pages | 2023-08-31T05:09:39.554926 | 2023-05-07T01:51:00 | 2023-05-07T01:51:00 | 28,933,001 | 128 | 65 | CC0-1.0 | 2022-03-03T21:50:27 | 2015-01-07T20:38:21 | null | UTF-8 | Python | false | false | 98,679 | py | #!/usr/bin/env python
# coding: utf-8
# # Neural Networks
#
#
# ## Introduction
#
# Artificial neural networks are computational systems that can learn to
# perform tasks by considering examples, generally without being
# programmed with any task-specific rules. It is supposed to mimic a
# biological system, wherei... | [
"morten.hjorth-jensen@fys.uio.no"
] | morten.hjorth-jensen@fys.uio.no |
6408bb1f363e3b9c2b34afd5f31513a59bf44242 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/locale/system_messages.py | edcb3a35bc02ffec86bdabe7f9b8eb205b916fa1 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 151,661 | py | # 2015.11.18 11:55:49 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/locale/SYSTEM_MESSAGES.py
from debug_utils import LOG_WARNING
class SYSTEM_MESSAGES(object):
REPAIR_SUCCESS = '#system_messages:repair/success'
REPAIR_CREDIT_ERROR = '#system_messages:repair/credit_error'
RE... | [
"info@webium.sk"
] | info@webium.sk |
30654d266ad1bd687b0c88946fceabc900cfc928 | 93a12156f091858f6e48c7c85c84483742c221f7 | /baekjoon/7785_office.py | 765d1d2d396ecfd06916999521deb292a901f74d | [] | no_license | dojinkimm/AlgorithmPractice | 74cd5c63f9973792f034fe019504b2160ad51e40 | 211857e7541faeeec2f21690eecc8c17d31ad142 | refs/heads/master | 2021-09-28T14:54:12.756098 | 2021-09-26T13:23:38 | 2021-09-26T13:23:38 | 205,849,589 | 2 | 1 | null | 2019-09-30T03:20:10 | 2019-09-02T12:12:24 | Python | UTF-8 | Python | false | false | 324 | py | # BOJ 7785 - 회사에 있는 사람
import sys
r = sys.stdin.readline
N = int(r())
people = dict()
for _ in range(N):
name, status = map(str, r().strip().split())
if status == 'enter':
people[name] = True
else:
del people[name]
for name in sorted(people.keys(), reverse=True):
print(name)
| [
"dojinkim119@gmail.com"
] | dojinkim119@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.