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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32331f9923b0abcb27dcc217b52866eb23ab0f62 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Machine Learning Scientist with Python/17. Advanced Deep Learning with Keras/02. Two Input Networks Using Categorical Embeddings, Shared Layers, and Merge Layers/08. Evaluate the model on the tournament test data.py | bf90f3b6ddce7112fd8971933ef1651d802cd0a0 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | '''
Evaluate the model on the tournament test data
The model you fit to the regular season data (model) in the previous exercise and the tournament dataset (games_tourney) are available in your workspace.
In this exercise, you will evaluate the model on this new dataset. This evaluation will tell you how well you can ... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
05e1cbf165c15afc12c8ac326b1e7768bc1bfae2 | bd8906d5afd0c45ebb7b52b4385a2f81a518fa90 | /기존자료/PBR_OE.py | ca8a8b40f9d5a0b6196d4c2f4845f7205d3fc3fd | [] | no_license | lshlsh135/LeeSangHoon | e791b3ee3f92263867d33b77c033708849972aac | 9e8928cef02b91e26fdd39341de235ffd91b57f7 | refs/heads/master | 2021-01-22T13:30:10.063276 | 2017-10-10T01:10:31 | 2017-10-10T01:10:31 | 100,658,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 6 09:02:25 2017
@author: SH-NoteBook
"""
#==============================================================================
# Dependent double sorting 1) PBR 2) OPerating Income 3x3
#==============================================================================
import ... | [
"lshlsh135@naver.com"
] | lshlsh135@naver.com |
d87a0c850e79e49ecebfb20e46598ac3229dc768 | 433a1b7a7199fda2e6f0f422bbc7a2ee2fa4245a | /dnanexus/make_trackhub_from_analysis.py | a5fb5e06bbdebeb03d8ae89c5edc7a3c6dce70f1 | [] | no_license | weng-lab/chip-seq-pipeline | d0543b8d29fc0025a59e45d1427d975b34500576 | 3f946fb0e3475ce6c07b6a43b46a970268d0f610 | refs/heads/master | 2020-12-24T17:26:02.174682 | 2016-03-06T03:26:04 | 2016-03-06T03:26:04 | 52,372,487 | 1 | 1 | null | 2016-02-23T16:13:35 | 2016-02-23T16:13:35 | null | UTF-8 | Python | false | false | 15,983 | py | #!/usr/bin/env python
import os, sys, subprocess, logging, dxpy, json, re, socket, getpass, urlparse
from posixpath import basename, dirname
import common
EPILOG = '''Notes:
Examples:
%(prog)s
'''
DEFAULT_APPLET_PROJECT = 'E3 ChIP-seq'
KEYFILE = os.path.expanduser("~/keypairs.json")
def get_args():
import argpa... | [
"jseth@stanford.edu"
] | jseth@stanford.edu |
a983320a7e1004f9fa32517d4379028084a82f51 | f48cc81ab1213ce44566dd5755c29b60c3576a2e | /original/test.py | f601402ee3fae802335c6fb3a40d0a63a8ca7c04 | [
"CC0-1.0"
] | permissive | gbrault/railroad-diagrams | 21264ff885f3bd6f68cb19ebcd869feee97aded7 | ac1bd0d01c8837963b23db39916a82973985e2c6 | refs/heads/gh-pages | 2021-01-12T08:25:42.776807 | 2017-08-02T10:08:36 | 2017-08-02T10:08:36 | 76,576,171 | 32 | 4 | null | 2017-08-02T10:08:37 | 2016-12-15T16:24:12 | JavaScript | UTF-8 | Python | false | false | 8,752 | py | # coding=utf-8
from __future__ import unicode_literals
import re
import io
import pprint
import collections as coll
import itertools
import railroad_diagrams as rr
class TokenStream:
def __init__(self, tokens, before=None, after=None):
self.tokens = list(tokens)
self.i = 0
self.before = before
self.after = ... | [
"jackalmage@gmail.com"
] | jackalmage@gmail.com |
68e354cf9bb17764fb19b91af524da42412395d7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2799/60632/302627.py | 3b6036464689386d371592ec284dcc29f7406dd0 | [] | 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 | 1,168 | py | # n = int(input())
# data = list(map(int, input().split(' ')))
# sign = [0 for i in range(n)]
# big = max(data)
# for i in range(10):
# big *= 2
# for j in range(len(data)):
# if sign[j] == 0:
# if (big / data[j]) % 2 == 0 or (big / data[j]) % 3 == 0:
# sign[j] = 1
# for i in... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d9525b86d731239f7dd1b87ec53918705b328a4e | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_device_auth_radius_server.py | 9e5519a3754b3026d749b1f99ea5d5f3f9718ca8 | [
"MIT",
"GPL-3.0-only"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 14,733 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2019, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
---
module: bigip_device_auth_radiu... | [
"sifang@cisco.com"
] | sifang@cisco.com |
d0b4d757feef83d09309557fa073ee91775a08b7 | 19f3de5ab4e37219a1a191987004e6dbc8688ecd | /api/mon/backends/dummy/__init__.py | 79e161384c6f0b8eacf73bda967e4352237f4b48 | [
"Apache-2.0"
] | permissive | cgvarela/esdc-ce | da8800ff66e1d6b838fed66c3ecca23fdeeb40ea | 0acf9d2b45b1e281e4cc4b6e86fb898ec6261911 | refs/heads/master | 2021-01-20T10:37:03.196599 | 2017-08-21T12:28:09 | 2017-08-21T12:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from api.mon.backends.abstract import AbstractMonitoringBackend
# noinspection PyAbstractClass
class DummyMonitoring(AbstractMonitoringBackend):
pass
def get_monitoring(dc, **kwargs):
return DummyMonitoring(dc, **kwargs)
# noinspection PyUnusedLocal
def del_monitoring(dc):
return True
MonitoringBack... | [
"daniel@kontsek.sk"
] | daniel@kontsek.sk |
07cb440b206147097505e877f206d0ce437e4f70 | 1d36f1a3c527e364b50cb73d0ce82b5b5db917e6 | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py | d9c005afdde904b3042e59e1b107f18c3cb3c6c3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | emreyalcin26/azure-sdk-for-python | 08c0a294e49e9c3a77867fb20ded4d97722ea551 | 6927458c7baa5baaf07c3b68ed30f6e517e87c9a | refs/heads/master | 2022-10-17T02:25:23.373789 | 2020-06-12T23:43:40 | 2020-06-12T23:43:40 | 272,001,096 | 1 | 0 | MIT | 2020-06-13T12:06:11 | 2020-06-13T12:06:11 | null | UTF-8 | Python | false | false | 4,850 | 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 may ... | [
"noreply@github.com"
] | emreyalcin26.noreply@github.com |
724bbb8b468c866d9be1ef6d754507d2fc8ef943 | 3f7b74f47b5aaf69e388ab8b3a7b55bf3ccdb082 | /fsm/ex4/Stoplight.py | bba73a43f7358620a704cb7557ae2efe03905088 | [] | no_license | BarryZM/saai | 9e214cdb87eb8dfcebfd64cdca38a334c3166856 | f7dda2dfdca6766ca7a3813285c9a13e83922299 | refs/heads/master | 2022-11-05T06:06:09.146277 | 2020-06-29T08:07:13 | 2020-06-29T08:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,790 | py | #
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis,... | [
"xiaofei.wu@gmail.com"
] | xiaofei.wu@gmail.com |
d1c2b3918a9f6fa2cc58ca49a0e63fc503ecfc08 | 003ffcf8144565404636f3d74590a8d6b10a90a4 | /128-longest-consecutive-sequence/128-longest-consecutive-sequence.py | c2f514546ac47f771794502a68f0738f327b9634 | [] | no_license | congve1/leetcode | fb31edf93049e21210d73f7b3e7b9b82057e1d7a | ce1e802b5052da2cdb919d6d7e39eed860e0b61b | refs/heads/master | 2020-05-13T19:19:58.835432 | 2019-05-06T00:44:07 | 2019-05-06T00:44:07 | 181,652,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | class Solution(object):
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
| [
"congve1@live.com"
] | congve1@live.com |
b018dd5983ede679e8b423cb97e64dbf50ee8a90 | 8434418b00897f019396b9270fe430c8254a4e42 | /backend/migrations/0005_user.py | 4f02dbfd89a1dc6bc99b3290924f69f0da472d1f | [] | no_license | JoeTanto2/learnlanguages | 7d13dbce38b8583f757a7dec9f362a0060ce410d | a0d7657256737252434b4eade881c05486b121af | refs/heads/main | 2023-07-17T11:33:59.165687 | 2021-09-04T16:58:16 | 2021-09-04T16:58:16 | 378,680,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | # Generated by Django 3.2.4 on 2021-06-20 01:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0004_auto_20210619_2344'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"77851879+JoeTanto2@users.noreply.github.com"
] | 77851879+JoeTanto2@users.noreply.github.com |
b79e1e04b78d413c490b186cd0a47f46e410a55c | 6bb7145391c4fb056ed8331c5527ab916b29a80a | /pyLensingToysCtypes/opencl_ctypes/test_ctypes.py | 08fc45b96b47a6d7448885ab5646a9a81791d096 | [
"MIT"
] | permissive | linan7788626/HackDays | ed36d0d4deb87e6ae4d31cdec2c029a058893756 | b786b6f19a39e23aabb0f82d707e37f2073452c9 | refs/heads/master | 2020-03-24T04:40:04.254952 | 2019-10-14T13:15:26 | 2019-10-14T13:15:26 | 142,460,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | #!/usr/bin/env python
import numpy as np
import ctypes as ct
#-------------------------------------------------------------
llt = ct.CDLL("./libcl_test.so")
#llt.main_test.argtypes = []
#llt.main_test.restype = ct.c_int
llt.opencl_lq_py.argtypes = [np.ctypeslib.ndpointer(dtype = ct.c_float), \
... | [
"linan7788626@gmail.com"
] | linan7788626@gmail.com |
ed6993ca0cce683b0776839795043c4f2a619da7 | c57edcd861e7ed6607b60411a175e041ceaf94bc | /bin/scm/update.py | 4cded309ad86a603d9d028dcf814a100174516a3 | [
"BSD-3-Clause",
"MIT"
] | permissive | johnttaylor/Outcast | 0aba3c25e2f0a78014a99ddfb6fc2733448720dc | 581429021e21bc95d54ec1f20f475f585d4dac47 | refs/heads/master | 2023-06-26T04:05:29.725493 | 2023-02-04T23:24:27 | 2023-02-04T23:24:27 | 31,170,546 | 1 | 0 | BSD-3-Clause | 2021-11-28T17:47:35 | 2015-02-22T16:58:23 | Python | UTF-8 | Python | false | false | 1,606 | py | # Short help
def display_summary():
print("{:<13}{}".format( 'update', "Updates a previously mounted SCM Repository" ))
# DOCOPT command line definition
USAGE = """
Updates a previously mounted repository
===============================================================================
usage: evie [common-opts] ... | [
"john.t.taylor@gmail.com"
] | john.t.taylor@gmail.com |
15be4f1fc37b0f83d56ae396fb053acf6c1717d2 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200413223417.py | a1d80e0be19ba770f23ef4cf0ffc72ce896a451f | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,775 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
def rho_free(x,xp,beta):
"""
Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en un toro infinito.
"""
return (2.*np.pi*beta)... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
85caa8419291efeb43abd34b2036421158256d4c | 89c91db25dc2c97ac6ec75bc71e743a60cda7d19 | /software/glasgow/applet/radio/nrf24l01/__init__.py | 0033bfa574ef7d48dfc5ce195d743990c5dc92e7 | [
"0BSD",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | samlittlewood/glasgow | d76968b7751142c7946c887e4de2dff185d8304a | bdd6a28cfa85b5a42c5999255507720f30a49be1 | refs/heads/master | 2022-06-16T04:43:39.848153 | 2020-02-28T17:32:12 | 2020-02-28T17:32:12 | 241,247,871 | 0 | 0 | NOASSERTION | 2020-02-18T01:45:28 | 2020-02-18T01:45:27 | null | UTF-8 | Python | false | false | 24,555 | py | # Reference: https://infocenter.nordicsemi.com/pdf/nRF24L01P_PS_v1.0.pdf
# Accession: G00044
import math
import asyncio
import logging
import argparse
from nmigen.compat import *
from ....support.logging import *
from ....support.bits import *
from ....arch.nrf24l import *
from ....arch.nrf24l.rf import *
from ...int... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
6b3c3dfc8452c37f757e4b50df72e7167e48c61f | f1aee004e8c56948ee21c47605e5e4536c294dc8 | /venv/Session9.py | d6ae2dcd93bb4ce5fa169680d14c225d99a102bb | [] | no_license | ishantk/GW2019B | a417aaf7ba76e2aa58728325f8239ba8155eade7 | dca3dfe875025520a0743f6749dc001d43c8aae6 | refs/heads/master | 2020-04-28T04:55:30.983663 | 2019-04-19T12:24:28 | 2019-04-19T12:24:28 | 174,999,930 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | """
Object Oriented Programming in Python
Object:
MULTI VALUE CONTAINER
Homogeneous Data Storage Container
Hetrogeneous Data Storage Container
We modularize data in a software as Objects
amazon.in
data ?
OLA/Uber
data ?
User -> ... | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
3c341598bfb2f952e4fe96957908abd089c3b150 | 6e68584f2819351abe628b659c01184f51fec976 | /Centre_College/CSC_339_SP2015/vindiniumAI/pybrain/tools/customxml/networkwriter.py | 13248caa0a3fae26fa89f9b3bb868339c12ce71b | [
"WTFPL"
] | permissive | DanSGraham/code | 0a16a2bfe51cebb62819cd510c7717ae24b12d1b | fc54b6d50360ae12f207385b5d25adf72bfa8121 | refs/heads/master | 2020-03-29T21:09:18.974467 | 2017-06-14T04:04:48 | 2017-06-14T04:04:48 | 36,774,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | __author__ = 'Tom Schaul, tom@idsia.ch'
from inspect import isclass
from handling import XMLHandling
from pybrain.structure.connections.shared import SharedConnection
from pybrain.structure.networks.network import Network
from pybrain.structure.networks.recurrent import RecurrentNetwork
from pybrain.utilities... | [
"dan.s.graham@gmail.com"
] | dan.s.graham@gmail.com |
f1199e543f60965aa63419b4b29d9d53c642c807 | 81d0bfe1262008587ddf5ac12ae034d6922b9747 | /.history/test_20201016160356.py | 399f94e7dc76be25655509501ed0ec45d3d82480 | [] | no_license | elvinyeka/Smart-Mobile | 525fffac14b8c460e85002bbf154bf54b4a341fe | a32f557306ae1bfe3ae01f5a8beef93727cfbc47 | refs/heads/master | 2023-06-09T09:52:18.446572 | 2021-07-06T11:35:34 | 2021-07-06T11:35:34 | 313,988,596 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py |
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'data.sqlite')
db = SQLAlchemy(app)
class human(db.Model):
id = db.Column(db.Integer, ... | [
"elvinyeka@gmail.com"
] | elvinyeka@gmail.com |
de9c9b7997de677fbcf4c66a44a1025276e645f8 | 3e95c88724c7a4bb0fe59e17c169aee3f00e912c | /one/settings.py | 87c1aa00288bac06e205d377b2ae4e0e00478856 | [] | no_license | namraht/app_backend | ccdf96d6957419575e9abe9e4a9b3583c8202b56 | 6ea928a0fb2b0fd01c3cc2d9f70e82a91198d007 | refs/heads/master | 2020-09-27T01:53:35.363935 | 2016-09-07T15:13:40 | 2016-09-07T15:13:40 | 67,616,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """
Django settings for one project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# Bu... | [
"admin"
] | admin |
b8cf8ad619979c7e445d6e6dfcf1f630f719006b | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/test breakpoint fpga 1.prg.py | 3a19bac69ce58b2af113344ab27e9ace365f0705 | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | prg_comment = ""
prg_version = "0.7"
def program(prg, cmd):
prg.add(2000, "TTL Repumper MOT OFF")
prg.add(17000, "TTL Repumper MOT ON")
prg.add(22000, "TTL Repumper MOT OFF")
prg.add(47000, "BREAKPOINT")
prg.add(48000, "NOP")
prg.add(62000, "TTL Repumper MOT ON")
prg.add(65000, "TTL Repumper... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
c9be4cefa7b04bafd26fc048a904462bd89f5115 | fea7c1a500a2f5ff178ac2a05ae7e75f3a068450 | /guild/click_util.py | e8bf52ebd5336057c04f083ea6266b1f6315ccc0 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | wheatdog/guildai | 35926997ca9dd768c65ddaa7b38a6de79b5fca30 | 817cf179d0b6910d3d4fca522045a8139aef6c9e | refs/heads/master | 2021-03-23T06:57:16.910757 | 2020-03-15T09:17:24 | 2020-03-15T09:17:24 | 247,433,137 | 0 | 0 | Apache-2.0 | 2020-03-15T09:05:10 | 2020-03-15T09:05:09 | null | UTF-8 | Python | false | false | 6,405 | py | # Copyright 2017-2020 TensorHub, 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 in writ... | [
"g@rre.tt"
] | g@rre.tt |
5621938a0283d1474db95d37161864dcda9ccb0e | 147d5d23501d4b65549688bf72f9e2e9a765ca01 | /chapter13/list1303_2.py | 93c6b320696e79bc2fc53a6aa23af217d578b1f9 | [] | no_license | chc1129/python_game_development | 41b735f58359bf067c2ac1db9a4d290c81d6fc6d | 3728d36d6436d7f45f72602f5365222ef715ffe4 | refs/heads/master | 2020-07-25T17:46:58.953753 | 2019-10-06T02:56:51 | 2019-10-06T02:56:51 | 208,332,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import tkinter
FNT = ("Times New Roman", 30)
class GameCharacter:
def __init__(self, job, life, imgfile):
self.job = job
self.life = life
self.img = tkinter.PhotoImage(file=imgfile)
def draw(self, x, y):
canvas.create_image(x+200, y+280, image=self.img)
canvas.create_te... | [
"chc1129@gmail.com"
] | chc1129@gmail.com |
c1ce91d780a0262d6f552bbeb69c3f3b8319c7a6 | 6f2860474a0fa4f52878643003516cdf73d11d9e | /py2src/src/pygeneric/__meta__.py | 88f3c39e85e4feb5737d4cd74f6f15087580ea74 | [] | no_license | fabiommendes/pygeneric | 7b055e18e1fd3b6c36d47fd976264762343ed4ab | 864eee6501afc256ab52f0e092f1e4bc627fa340 | refs/heads/master | 2020-05-21T04:32:03.970977 | 2016-09-21T13:28:57 | 2016-09-21T13:28:57 | 43,304,830 | 4 | 0 | null | 2016-08-02T01:46:26 | 2015-09-28T14:10:33 | Python | UTF-8 | Python | false | false | 111 | py | # Automatically created. Please do not edit.
__version__ = u'0.5.4'
__author__ = u'F\\xe1bio Mac\\xeado Mendes' | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
d18d4f693798b8e8441c183c49dee56feabde032 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/UDMCMod/FPythonCode/FUDMCParser_CPP.py | 788883effebd76ac6dbd32379d740cf21bbe2cec | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,865 | py |
import re
import string
import spark
from FUDMCCommon_CPP import McAstNode, stringtodict, MCError
def extract_location_info(text, pos):
linenbr = text[:pos].count("\n")
return "Line Number = " + str(linenbr+1)+"\nLine = " + \
text.split("\n")[linenbr]
class MCExprScanner_1(spark.GenericScanner):... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
48ab7b9c72c21248eb5d8a4c7334d02ba0e55ea2 | a550aece79bda789826b463280b91abffbf2d372 | /books/python-3-oop-packt/Chapter9/9_16_log_delete_warnings_object.py | 4718628bde7a6dc25b3f1f6afdb333173f9f1641 | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 584 | py | import sys
inname, outname = sys.argv[1:3]
class WarningFilter:
def __init__(self, insequence):
self.insequence = insequence
def __iter__(self):
return self
def __next__(self):
l = self.insequence.readline()
while l and 'WARNING' not in l:
l = self.insequence.rea... | [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
f57498b04eb5d5d92b6be6d51b1207a22d3a77e6 | ddc48a84bf1e1010b1253ea6914fc9fb4fdd1499 | /mirocommunity_site/views.py | 80eb734443c31a2d62d20f25cd6c9ddead878451 | [] | no_license | stephenjudge/mirocommunity.org | 44a8b0ab7d20d670844b9195ff1afb180d2df3c5 | 9767707d0cc21c3d2c1270bd1b22b4bc88985e9d | refs/heads/master | 2021-01-16T18:54:27.457643 | 2012-04-28T05:49:27 | 2012-04-28T05:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | from __future__ import with_statement
from django.http import Http404, HttpResponseRedirect
from django.conf import settings
from django.views.generic import FormView
from mirocommunity_site.forms import NAME_TO_COST, SiteCreationForm
from mirocommunity_site.utils.shell import check_output
class SiteCreationView(Fo... | [
"stephen.r.burrows@gmail.com"
] | stephen.r.burrows@gmail.com |
031e2f7f05a7747f61ab01d64e317ad71de61cd5 | f27a837cbae217b604d27a8d6480543bfd03e3cf | /convertor/models.py | 12379780dc1b68bd23ac8a6d10a381bc56d5056e | [] | no_license | maddrum/industria_task | 608fc353fbb81f403e53663f7d2731e8f7609f7a | d92d93aa4db738182add866a6d1f097a0bc63491 | refs/heads/main_task | 2020-04-21T09:35:09.117778 | 2019-02-06T18:16:25 | 2019-02-06T18:16:25 | 169,454,320 | 0 | 0 | null | 2019-02-06T20:18:39 | 2019-02-06T18:24:08 | Python | UTF-8 | Python | false | false | 416 | py | from django.db import models
class Currencies(models.Model):
"""Stores information for currency type and exchange rates to BGN"""
currency_code = models.CharField(max_length=3, unique=True)
exchange_rate = models.DecimalField(max_digits=19, decimal_places=2)
units = models.IntegerField()
created_o... | [
"maddrum9@gmail.com"
] | maddrum9@gmail.com |
f9cf3c1ac0515fea656de68720caf35945d040b1 | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/程序员练级+Never/想研究的/编译原理/lox/语言特性-goodORbad/IMPLICIT VARIABLE DECLARATION.py | 68cde5a22a2a2d9cca068f6c9ec29de8d603b04c | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py |
#IMPLICIT VARIABLE DECLARATION
"""
Lox has distinct syntax for declaring a new variable and assigning to an existing one.
Some languages collapse those to only assignment syntax. Assigning to a non-existent
variable automatically brings it into being. This is called implicit variable declaration
and exists in Python, ... | [
"643472092@qq.com"
] | 643472092@qq.com |
302b4a82f08a8e783bdb57b79c3d95fc4b44b637 | 94c1805df5a09c39159d502f420d19ad54b567fc | /runtime/deps/gyp/test/mac/gyptest-strip.py | a729521e18459b5bcad40c81a18794d040aa2b34 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tmikov/jscomp | 9805a5a4d06520549c57380f0df4a1c0aa0dab56 | 83828441cb38ec96603a6a60be06977d4852940a | refs/heads/develop | 2021-01-19T02:56:35.102659 | 2016-04-12T06:19:30 | 2016-04-12T06:19:30 | 36,981,674 | 237 | 13 | Apache-2.0 | 2018-10-14T09:48:12 | 2015-06-06T13:49:26 | C | UTF-8 | Python | false | false | 1,991 | py | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that stripping works.
"""
import TestGyp
import TestMac
import re
import subprocess
import sys
import time
if sys.platform =... | [
"tmikov@gmail.com"
] | tmikov@gmail.com |
d54f201c8e2429da38ec9fe33d32630210072aa2 | 5a0dfe1326bb166d6dfaf72ce0f89ab06e963e2c | /leetcode/lc46.py | dc10fed90d665bbeb30eadbff38d77ee7b5be0a2 | [] | no_license | JasonXJ/algorithms | 7bf6a03c3e26f917a9f91c53fc7b2c65669f7692 | 488d93280d45ea686d30b0928e96aa5ed5498e6b | refs/heads/master | 2020-12-25T15:17:44.345596 | 2018-08-18T07:20:27 | 2018-08-18T07:20:27 | 67,798,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | class Solution(object):
def permute(self, nums):
rv = []
def inner(current_pos):
if current_pos == len(nums):
rv.append(nums[:])
return
for i in range(current_pos, len(nums)):
nums[current_pos], nums[i] = nums[i], nums[current_p... | [
"lxj2048@gmail.com"
] | lxj2048@gmail.com |
1b1447b2c2e2003210d6eddd4ba397721a0e9241 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-support/google/cloud/support_v2/services/case_attachment_service/__init__.py | 5deef3a43002ca6d33b785b165ded2c5418eaac1 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 797 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
a88c219d8502de660f7b3dee54d42f24c61b4a8f | fbfa6271a072091a962372ff5ca11c3bbc8d35b0 | /paypal_store/views.py | 36e40c60e5ebb3aa02668cdeeab4d9dfd9ef658e | [] | no_license | andrewhstead/we_are_social | 96681ed412cd65b9c82efc40c877173c5bd34a8a | 8b5858cc6278a8397511592d8beb4c843824d1c4 | refs/heads/master | 2021-04-26T23:14:04.443505 | 2018-03-20T21:08:32 | 2018-03-20T21:08:32 | 123,952,133 | 1 | 1 | null | 2018-03-06T02:16:41 | 2018-03-05T17:10:31 | Python | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render
@csrf_exempt
def paypal_return(request):
args = {'post': request.POST, 'get': request.GET}
return render(request, 'paypal/paypal_return.html', args)
def p... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
17a063b381d125444fbbc8c5a7717c929799f779 | 6a185868a6a41384f44334b23fea9079a2a35ded | /programmers/Level 1/[카카오 인턴] 키패드 누르기.py | 027c30da1c06be44597bacbec7cac7504bd7824a | [] | no_license | kimhyeongju/coding_practice | ec096e574877a4d21babdc0162d96a9c75ee5686 | 599b3ecf3100622e165abfc54c0ad90a270ccb51 | refs/heads/master | 2023-03-25T21:34:34.893277 | 2021-03-19T17:49:54 | 2021-03-19T17:49:54 | 296,621,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | """
스마트폰 전화 키패드의 각 칸에 다음과 같이 숫자들이 적혀 있습니다.
1 2 3
4 5 6
7 8 9
* 0 #
이 전화 키패드에서 왼손과 오른손의 엄지손가락만을 이용해서 숫자만을 입력하려고 합니다.
맨 처음 왼손 엄지손가락은 * 키패드에 오른손 엄지손가락은 # 키패드 위치에서 시작하며, 엄지손가락을 사용하는 규칙은 다음과 같습니다.
1. 엄지손가락은 상하좌우 4가지 방향으로만 이동할 수 있으며 키패드 이동 한 칸은 거리로 1에 해당합니다.
2. 왼쪽 열의 3개의 숫자 1, 4, 7을 입력할 때는 왼손 엄지손가락을 사용합니다.
3. 오른쪽 열의 3개의 숫... | [
"hengzhu1994@gmail.com"
] | hengzhu1994@gmail.com |
155c0b0121b93538c15ed10a99f3f87875edadc1 | 0725d2a93c9058113d0127501fa7bbea28b4f8b1 | /venv/Lib/site-packages/tencentcloud/gme/v20180711/models.py | f57fdc02aa9a49efa8f4e0dbcdc17d867a93a768 | [] | no_license | liugngg/liug-001 | 8c9d39fab49b1895c213814dfec4b1bff649671b | 9ae093a3f7e042b29e756620311f0a57ad083f5c | refs/heads/master | 2023-06-06T00:14:52.548147 | 2021-06-25T07:30:26 | 2021-06-25T07:30:26 | 380,157,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,614 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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... | [
"liugngg.gmail.com"
] | liugngg.gmail.com |
8b0a88bfc29d7ec1985047267cc8e8b1cdef2287 | aed18908f6cdf93774aac253273e47d6e3521003 | /runs/"r-no-dropout-maxout height: 20 growth: 60.h5"/two_time_pad.py | fe495a66594e87f7844c41b2606dac5a348cef0f | [] | no_license | matthiasgoergens/TwoTimePad | cbd1e2cb081805baf503b0a4984e74e0508060f8 | 7dc3a276179e3c15b07b1ae2c3c8d31d34bf9a00 | refs/heads/master | 2021-07-03T22:59:06.211897 | 2021-06-13T09:03:33 | 2021-06-13T09:03:33 | 9,916,768 | 0 | 0 | null | 2013-07-04T05:25:17 | 2013-05-07T16:48:56 | Haskell | UTF-8 | Python | false | false | 29,165 | py | # -*- coding: utf-8 -*-
import functools as ft
import itertools as it
import math
import random
import re
import sys
from datetime import datetime
from pprint import pprint
import numpy as np
import tensorflow as tf
# import tensorflow_addons as tfa
from tensorflow.keras.callbacks import ModelCheckpoint, TensorBoard,... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
fa3f90ffe4bfad6434f6964e87b272d2d93809c5 | ba14dedcc99297ac424580d52c276cc2862bcaeb | /___Python/Thomas/pycurs_180625/p02_datenstrukturen/m04_woertebuchinv.py | df433fe78101941704a68bbd1d8fac3191647005 | [
"Apache-2.0"
] | permissive | uvenil/PythonKurs201806 | ac8ddf7255f7c420f5e7c2c1d1f28d4d2c83e410 | 85afa9c9515f5dd8bec0c546f077d8cc39568fe8 | refs/heads/master | 2020-03-22T00:06:04.163119 | 2018-06-30T22:17:14 | 2018-06-30T22:17:14 | 139,224,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Wörterbuch (Dictionary, Hashtabelle, Hashtable, Hashmap, associative Array)
dic_wbde = {"Tisch": "table",
"Stuhl": "chair",
"Schreibtisch": "desk"}
print(dic_wbde)
print("")
# 1. Ansatz
dic_wbed = {}
for wort in dic_wbde:
dic_wbed[(dic_wbde[wort])] = wort
print(dic_wbed)
print("")
... | [
"uvenil@web.de"
] | uvenil@web.de |
e697f41734c9f43348dffac8e05ca0fd53526c68 | 1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5 | /apps/models/db_source/sa_saledelivery.py | 103db76ea27ba4cfb02e9865273e02af493ace41 | [] | no_license | zhanghe06/migration_project | f77776969907740494281ac6d7485f35d4765115 | 0264b292873b211bfeca0d645cc41abc9efe883f | refs/heads/master | 2022-12-12T10:55:43.475939 | 2019-09-29T09:19:13 | 2019-09-29T09:19:13 | 185,584,884 | 0 | 1 | null | 2022-12-08T05:04:58 | 2019-05-08T10:31:57 | Python | UTF-8 | Python | false | false | 6,373 | py | # coding: utf-8
from sqlalchemy import Column, Index, Integer, Numeric, String, TIMESTAMP, Unicode
from sqlalchemy.dialects.mssql.base import UNIQUEIDENTIFIER
from apps.databases.db_source import source_db
Base = source_db.Model
metadata = Base.metadata
def to_dict(self):
return {c.name: getattr(self, c.name, N... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
f0159182a9e342c10c576a73730aecb7a468d6ea | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox/py2rhino/data/gen_py2rhino/Application/send_keystrokes.py | cd815494c46a559e3485c11a18fb905a5aca5aaa | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | send_keystrokes = {
"class": "Application",
"method": "send_keystrokes",
"doc": """
Sends a string of printable characters, including spaces, to Rhino's command line.
""",
"syntax": """
Rhino.SendKeystrokes ([strKeys [, blnAddReturn]])
""",
"params": {
... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
bbc5ca6763e6c0bbe542f270557c8fb51f61b3ce | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_rotten.py | 7b4beb2a0dca9546c368ca1bc1e206fad2c103ff | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py |
#calss header
class _ROTTEN():
def __init__(self,):
self.name = "ROTTEN"
self.definitions = [u'decayed: ', u'very bad: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsondata[o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c6b1ff023bf9d8c3eb6f671ad575614bae342c8e | bb5f4da85db4258f9b2e43df2761e632b1855763 | /python/ods/algorithms.py | 4bf851d77996a8d6d6b28cddad8f5e29ac65ace5 | [
"CC-BY-2.5",
"CC-BY-4.0"
] | permissive | mando20/ods | 7da239bfefc10b23e897d605a23616b542fbf8ac | 8a28923b8fe1ddbbcbe72714614e1ca0eec19153 | refs/heads/master | 2021-01-17T11:45:27.826851 | 2014-01-10T16:30:56 | 2014-01-10T16:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | import random
from utils import new_zero_array, new_array, _new_array
from binaryheap import BinaryHeap
def merge_sort(a):
if len(a) <= 1:
return a
m = len(a)//2
a0 = merge_sort(a[:m])
a1 = merge_sort(a[m:])
merge(a0, a1, a)
return a
def merge(a0, a1, a):
i0 = i1 = 0
for i in r... | [
"morin@scs.carleton.ca"
] | morin@scs.carleton.ca |
a08b4fd10ddbdc2c4b7be69c89e051aa4e82bc9d | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/N/NinaC/obesity_scraper_3.py | 28f61303e93b420f3d5f0dd745f652d09678ee08 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | ###################################################################################
# Twitter API scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Get results f... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
b6718a63606cb7039c095752a4dc4581f5c0c02b | ae10f1a79935ee71eb9418ff347be1969e955d08 | /backend/young_waterfall_28182/wsgi.py | 93118937ed5da1300a31cf63ad8aa4976c36e961 | [] | no_license | crowdbotics-apps/young-waterfall-28182 | 214af2f75e754b5503fbba6efb6ff5aac45653d5 | f58d78f5052d09d4f2d4799dc3a96b9834d29d05 | refs/heads/master | 2023-06-03T11:28:35.801870 | 2021-06-23T04:34:31 | 2021-06-23T04:34:31 | 379,479,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for young_waterfall_28182 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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
19dec605d9f329e026d3c47f435b38fe62442047 | 9ef6ccf1002de965fd18848d93177b6c49a3e2e3 | /problem145.py | 2b2724f6e6ced975ebcd4283852f2e176e5b368f | [] | no_license | noahc66260/ProjectEuler | 8051ef6f020a2620f67dcb070261e3ad08b050d9 | 14b16263cd034b43682c03b7752895ef4d64a5ca | refs/heads/master | 2018-12-28T06:33:11.973682 | 2014-10-04T20:20:31 | 2014-10-04T20:20:31 | 24,800,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | # This question is ripping my cock off. I can code a solution but it's
# intolerably slow to the point that I don't think this is how it should
# be done. I'm leaving it for now.
def reverseInt(n):
listn = list(str(n))
listn.reverse()
return int(''.join(listn))
def everyDigitOdd(n):
listn = list(str(n))
for... | [
"nruderman.s@gmail.com"
] | nruderman.s@gmail.com |
d4e2da1eb34a8cc7d57eac71d01597145266b64c | 186c04fff4c0ca95c12c3f8a117c7c95ce70b2e4 | /spacy/lang/ro/lex_attrs.py | 48027186bdd2bdedb4118739006600ea8ae6f644 | [
"MIT"
] | permissive | IndicoDataSolutions/spaCy | 58c9d4bcc854ab278516c050dee8b2b92f528a8c | 4e28b5acd702691e5ce64cf7a1f9da4af5a271b5 | refs/heads/master | 2023-01-01T05:35:35.393944 | 2022-03-03T19:21:34 | 2022-03-03T19:21:34 | 60,737,647 | 5 | 2 | MIT | 2022-12-22T01:57:03 | 2016-06-08T23:30:42 | Python | UTF-8 | Python | false | false | 1,659 | py | # coding: utf8
from __future__ import unicode_literals
from ...attrs import LIKE_NUM
_num_words = set("""
zero unu doi două trei patru cinci șase șapte opt nouă zece
unsprezece doisprezece douăsprezece treisprezece patrusprezece cincisprezece șaisprezece șaptesprezece optsprezece nouăsprezece
douăzeci treizeci patru... | [
"ines@ines.io"
] | ines@ines.io |
2a38258d1eaa904c331128048d8dd3a176e68480 | 13589d5cd43b03a7941d17b76f5c9662949d32aa | /square_root_of_a_number.py | 0ea22d322784b81163b7b89937c0f4706b8284fe | [] | no_license | Anwesh43/AnAlgorithmADay | 6e97b60e9eb827a37aff972c56811fc85093814c | d8c29e412302ccdc0255c5c5271ba7523a6ef4e6 | refs/heads/master | 2021-01-13T14:57:22.779850 | 2017-07-24T20:37:12 | 2017-07-24T20:37:12 | 76,656,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | def get_square_root(a,b,n):
mid = int((a+b)/2)
square = mid*mid
if square == n:
return mid
if(a == b):
return -1
if square < n:
return get_square_root(mid+1,b,n)
else:
return get_square_root(a,mid-1,n)
def square_root(n):
if n == 1:
return 1
return... | [
"anweshthecool0@gmail.com"
] | anweshthecool0@gmail.com |
41fabc4be0159eea8367bc5b6d7c10512ed32a70 | 4acf49297ca00213522757908c23125679fa729a | /conekta/models/update_product.py | 0058d2e711142fe50b9ee76c3d16df868659b26d | [
"MIT"
] | permissive | conekta/conekta-python | b95c4a913726dfc6b6849c97c2f459c9f143758c | 2fee65f13833fb1232148f3a2606660863e54200 | refs/heads/main | 2023-07-14T05:38:00.598706 | 2023-07-07T16:43:37 | 2023-07-07T16:43:37 | 12,024,074 | 23 | 34 | MIT | 2023-07-06T15:02:30 | 2013-08-10T17:21:30 | Python | UTF-8 | Python | false | false | 2,753 | py | # coding: utf-8
"""
Conekta API
Conekta sdk # noqa: E501
The version of the OpenAPI document: 2.1.0
Contact: engineering@conekta.com
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import annotations
import pprint
import ... | [
"noreply@github.com"
] | conekta.noreply@github.com |
168f9f4ac79d63c92b474b823a2a977e7ff6df79 | 929fc8dd47b91c963c8c2f81d88e3d995a9dfc7c | /src/JiuZhangSuanFa/DFS/135. Combination Sum.py | 2996094440c144bb32a747223b3bf5da643d5026 | [] | no_license | 1325052669/leetcode | fe7571a9201f4ef54089c2e078810dad11205b14 | dca40686c6a280bd394feb8e6e78d40eecf854b9 | refs/heads/master | 2023-04-01T17:53:30.605822 | 2021-04-10T15:17:45 | 2021-04-10T15:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | class Solution:
"""
@param candidates: A list of integers
@param target: An integer
@return: A list of lists of integers
"""
def combinationSum(self, candidates, target):
# write your code here
res = []
self.recur(sorted(candidates), 0, [], target, res)
return r... | [
"js7995@nyu.edu"
] | js7995@nyu.edu |
83208b332cbac60c35ab6568cfa625fed4f2b1a6 | fb095aef915d538a1f3f7041bfdc6dd2a43dbbb4 | /backend/users/migrations/0003_auto_20210325_2057.py | b625f337c3a5547a80bf6f52757d9f7df61fb8f0 | [] | no_license | crowdbotics-apps/ctc-25267 | dfeaa4548dd75ff485bb89257af74e299d97c459 | d52a36da7db4f6e3af45012141815986d4dd13b2 | refs/heads/master | 2023-03-30T03:50:12.898149 | 2021-03-25T21:02:10 | 2021-03-25T21:02:10 | 351,570,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # Generated by Django 2.2.19 on 2021-03-25 20:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0002_auto_20210325_2045"),
]
operations = [
migrations.RemoveField(
model_name="user",
name="group",
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5c6dfb34f7379b83649e430df6930fa9ca50154e | e3a30242cb6481f0bd218c560cf4cfd1da125fc8 | /백준/BFS_DFS/뱀과 사다리 게임.py | 29b7c4ee1f2ce62e03fdb05698c7b77e7f8a6bee | [] | no_license | su-ram/Problem-Solving | 2f7897a00b807c527bf5354655c6f8daf318b72a | dd24808346dee9ba7fd3b4899fd375aa0476f886 | refs/heads/master | 2023-08-27T23:35:46.342362 | 2021-10-29T05:27:24 | 2021-10-29T05:27:24 | 290,809,045 | 0 | 0 | null | 2020-09-21T18:05:36 | 2020-08-27T15:14:09 | Python | UTF-8 | Python | false | false | 753 | py | N, M = map(int, input().split())
jumps = {}
for _ in range(N+M):
s,t = map(int, input().split())
jumps[s] = t
from collections import deque
def BFS(start,d):
que = deque([(start,d)])
visited = [False] * 101
visited[start] = d
while que:
num, d = que.popleft()
for i in range(1... | [
"swamys@naver.com"
] | swamys@naver.com |
9c76ec6f6efe72f06017e95b9beb980cae52a725 | 5220345999e9b07e58ef9e25caf939875c6ac276 | /codalab/apps/web/tests/test_submission_metadata_page.py | 1dd27965bdc3c528b277566629936b4fda4088a8 | [
"Apache-2.0"
] | permissive | quxiaofeng/codalab-competitions | e9859ca8869cff65a35384405ee8fac73b42edc4 | 194c11fb3c832c2e9dd0f3e5fa5ae688144c2751 | refs/heads/master | 2020-06-21T21:59:24.372149 | 2019-07-17T00:26:28 | 2019-07-17T00:26:28 | 197,561,539 | 1 | 0 | NOASSERTION | 2019-07-18T10:01:13 | 2019-07-18T10:01:12 | null | UTF-8 | Python | false | false | 2,468 | py | import datetime
import mock
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import Client
from django.contrib.auth import get_user_model
from apps.web.models import (Competition,
CompetitionParticipant,
Com... | [
"eric@ckcollab.com"
] | eric@ckcollab.com |
7c4c47d7f580edcabef02b12e8296d47569803ac | 1eb8708a20fd234114b3f9f1f6cf9b2244e80eda | /GAN/Vanilla Gan/vanilla_gan_model.py | bab8654ca2939cebb3f2bc1781ea6740910cf295 | [] | no_license | zashin-AI/project | c78c54152431e947a914f861929a1e4e531c1146 | f7b0420aaee41d9923c6ac61d98b4044ee8c4b9b | refs/heads/main | 2023-05-27T12:12:31.660724 | 2021-06-04T06:28:44 | 2021-06-04T06:28:44 | 347,904,652 | 9 | 0 | null | 2021-06-04T03:27:13 | 2021-03-15T09:17:08 | Jupyter Notebook | UTF-8 | Python | false | false | 12,029 | py | import numpy as np
from tensorflow.keras.layers import Dense, LeakyReLU, Dropout, Input
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.initializers import RandomNormal
import numpy as np
import matplotlib.pyplot as plt
from datetime import dateti... | [
"lemontleo0311@gmail.com"
] | lemontleo0311@gmail.com |
8446aaf9b51807b9d0ad27551ec6cbd54b1e739a | 2e51637a93d6f230e63cc5459773660cb131abff | /gdbinit.py | 25a8a42c155a4ccae5e4c82afb46c305c00d3c83 | [] | no_license | Yeuoly/YeuolyDBG | c072dff80d68a7c1f74538e4558fb0c5335e589a | f6b9f73cd271664ec212d2f62da9d7054fbb7ff1 | refs/heads/main | 2023-08-25T09:16:52.227770 | 2021-10-15T09:05:53 | 2021-10-15T09:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import sys
from os import path
directory, file = path.split(__file__)
directory = path.expanduser(directory)
directory = path.abspath(directory)
sys.path.append(directory)
import commands | [
"admin@srmxy.cn"
] | admin@srmxy.cn |
7da2ca60073cf342ae43280021bc2bd68c3abc77 | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/xen_auto_discovery_method.py | 143bbc26b9dbdb9464fee4b4e8794db45443a5e8 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
9f440dd686f237deec1d16761fc5fcaa46658c97 | 1d96db84225301d972f07cad95c2a13f4fbafa84 | /python/RTMinuit_examples/eml_example_2D.py | 31a0f685c468d65c1142949b97007271014e9bb7 | [] | no_license | mattbellis/matts-work-environment | 9eb9b25040dd8fb4a444819b01a80c2d5342b150 | 41988f3c310f497223445f16e2537e8d1a3f71bc | refs/heads/master | 2023-08-23T09:02:37.193619 | 2023-08-09T05:36:32 | 2023-08-09T05:36:32 | 32,194,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,607 | py | import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import scipy.integrate as integrate
import scipy.stats as stats
from fitting_utilities import *
from plotting_utilities import *
import lichen.lichen as lch
#import minuit
import RTMinuit as rtminuit
pi = np.pi
############... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
231ba12d25aa243173c4122fcc9f158f75f9547a | 94b603a26fd0942181d4a3da2f9f830034c74ce0 | /leetcode/weekly177/2_validate_binary_tree.py | 699b72740d475f5fa622a0311b61e778cdf1d9cd | [
"Unlicense"
] | permissive | jan25/code_sorted | 55336e10bb9ee74610ce1ba62617db979ddf8e26 | 2a5af4f8c95a66ccca3223a261362a17be05728f | refs/heads/master | 2023-01-25T00:50:56.846461 | 2022-12-21T17:40:30 | 2022-12-21T17:40:30 | 34,155,896 | 3 | 0 | Unlicense | 2019-02-07T23:07:10 | 2015-04-18T06:54:30 | C++ | UTF-8 | Python | false | false | 536 | py | '''
https://leetcode.com/contest/weekly-contest-177/problems/validate-binary-tree-nodes/
'''
class Solution:
def validateBinaryTreeNodes(self, n: int, leftChild: List[int], rightChild: List[int]) -> bool:
seen = set()
edges = 0
for i in range(n):
l, r = leftChil... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
8078fbe8157a0bdb530c4bfb4e0cab2e36034a7b | a4830a0189c325c35c9021479a5958ec870a2e8b | /tools/migrations/0017_auto_20181218_2219.py | 1d05038d33fdfba2359f84612bc212339dafb392 | [] | no_license | solutionprovider9174/steward | 044c7d299a625108824c854839ac41f51d2ca3fd | fd681593a9d2d339aab0f6f3688412d71cd2ae32 | refs/heads/master | 2022-12-11T06:45:04.544838 | 2020-08-21T02:56:55 | 2020-08-21T02:56:55 | 289,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2018-12-18 22:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tools', '0016_auto_20160803_1844'),
]
operations = [
migrations.AddField(
... | [
"guangchengwang9174@yandex.com"
] | guangchengwang9174@yandex.com |
2da43289348d7e394eb80869ebe8c5ff6de65fd9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4014/codes/1671_1099.py | 31d48710efa6c20b2205809d5e5bfc26fd983e64 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Teste seu código aos poucos. Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo. Teste as diversas possibilidades de saída
a=float(input("a:"))
b=float(input("b:"))
c=float(input("c:"))
print("Entradas:",a,",",b,",",c,)
if(a>=b+c) or (b>=c+a... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
de2e8a67c4fd12f13056514c540d6785e484d56a | 0cc42a58e7fb0571b6702cb2bd56034a632854be | /PlaneLenser/InterpolateLineOfSightTable.py | c0bf3a8669cc0bef01e5b184208cc72ac9816573 | [] | no_license | davidharvey1986/timeDelay | 0b5dab97f8d30e60811e7f2884729f005862e971 | 2a633d6762f97646e93b56fd619dec471942e1fa | refs/heads/master | 2020-12-06T01:09:50.293629 | 2020-08-04T12:57:31 | 2020-08-04T12:57:31 | 232,296,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,559 | py | import os
import sys
import re
import math
import PlaneLenser.ReadLineOfSightPDFTable as ReadLineOfSightPDFTable
import PlaneLenser.ValueBinner as ValueBinner
import numpy as np
import matplotlib.pyplot as plt
def getPathBase(fBase):
return os.path.join("../WesselsCodeOriginal/", "LoS_PDFs", fBase)
def getFilesAn... | [
"davidharvey1986@googlemail.com"
] | davidharvey1986@googlemail.com |
e332307b24e6dc39ad09d4aebd64dc242dcc474d | ec8817e9793028058ca151ae4fae794d36e2278e | /dbn/recurrent_layer.py | 4567d9f212780704da720bcdb4fb997e254fb58c | [] | no_license | shawntan/python-dbn | 61e002daca0ba8225aa8f077608615084d30b75e | 305fec4866015d5f1bc5d2b9d2340dd7e1bfdb53 | refs/heads/master | 2020-05-17T12:26:54.520362 | 2013-09-22T19:52:31 | 2013-09-22T19:52:31 | 8,597,833 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import theano.tensor as T
import numpy as np
import utils as U
import theano
from layers import Sigmoid
NO_UPDATES = theano.OrderedUpdates()
theano_rng = U.theano_rng
class Recurrent(Sigmoid):
def __init__(self,size):
super(Recurrent,self).__init__(size)
self.W = U.create_shared(U.initial_weights(... | [
"shawn@wtf.sg"
] | shawn@wtf.sg |
030dc4614b846e7ea698e64ab2aa8b2416e24993 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/kyu_5_tests/test_directions_reduction.py | 5f19167950d5a79f572e3e2a2215d9aca2cc5f35 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import unittest
from katas.kyu_5.directions_reduction import dir_reduc
class DirectionsReductionTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(dir_reduc(
['NORTH', 'SOUTH', 'SOUTH', 'EAST', 'WEST', 'NORTH', 'WEST']),
['WEST'])
def test_equal_2(self):
... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
8f46e0a017ac12d08d3b3d355f2dd40cfe50e6e1 | 6d0364f7aca2ea76444299d84d467a55b8dfabde | /tools/harness-automation/cases/router_8_2_5.py | 0aeb143608e84be9ba95c693cdf7d0c1e1f5f71e | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | particle-iot/openthread | b862853867a75a591bcb3dae8f70c2ac9c35eaba | 668256290d1c48319b0b96d41559efb48dcc0821 | refs/heads/master | 2020-03-13T13:02:45.358306 | 2019-07-09T11:38:23 | 2019-07-09T11:38:23 | 131,131,221 | 1 | 0 | BSD-3-Clause | 2019-05-19T03:42:57 | 2018-04-26T09:19:12 | C++ | UTF-8 | Python | false | false | 1,875 | py | #!/usr/bin/env python
#
# Copyright (c) 2016, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notic... | [
"jonhui@nestlabs.com"
] | jonhui@nestlabs.com |
237e25b994ad7a73577b74bc4694db3ecfee6896 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/database/data/FunctionDefinitionDBAdapter.pyi | bce92120455f51b6ca00e79db88185994ec64ef8 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 607 | pyi | import java.lang
class FunctionDefinitionDBAdapter(object):
"""
Adapter to access the Function Signature Definition database table.
"""
def __init__(self): ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> java.lang.Class: ...
def hashCode(self) -> int: ...
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
4dbe34c68793776bc3221a8fe6e1b9f5b025504f | f2b3588ff5405c1fd85c2ccefd11f0dba78d4d64 | /aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/SyncCatalogsRequest.py | a5c950908693a01ed4f0aeaab5c3bc451aeacca6 | [
"Apache-2.0"
] | permissive | stefan-pan/aliyun-openapi-python-sdk | 456cc6e82c86bce3095f0420a1fc68efe6125f60 | d598b3a57531fbaa1f3f118a1e50ee528648eb25 | refs/heads/master | 2020-06-26T09:38:31.809193 | 2019-07-29T10:09:01 | 2019-07-29T10:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
76781a2363ba3b276d8ed98d721c78d4fa30da2e | 782b4a365e3a2d6c081ef008c27ae330fa1d5da7 | /nipype/workflows/dmri/__init__.py | d138c9e02e9525028a45b76f676b6c81efe0509f | [
"BSD-3-Clause"
] | permissive | akeshavan/nipype | d8642881ecdc03f812c69b58223b40d30e59be4d | c46b93285b9f3101a7f77ce3697ad074f51576c3 | refs/heads/master | 2021-01-15T18:41:15.441516 | 2016-03-21T19:31:16 | 2016-03-21T19:31:16 | 3,337,048 | 0 | 1 | NOASSERTION | 2019-10-16T03:35:52 | 2012-02-02T17:40:08 | Python | UTF-8 | Python | false | false | 79 | py | from __future__ import absolute_import
from . import camino, mrtrix, fsl, dipy
| [
"bcipolli@ucsd.edu"
] | bcipolli@ucsd.edu |
2cc27a296c9df841e2e2e3851e05d7ef4e66f659 | efd2ec91bb1861f571a9ac6a663b72203eeaf8c1 | /env/lib/python3.6/site-packages/distributed/bokeh/worker.py | e7d04f8d40b2f4352b57be094f7d9686541a6937 | [] | no_license | bopopescu/DjangoFirst | de2cfdf6dcf9d72e211b3374865f4b38dd2465df | d2776f44d15024d6ed03d184e27269dff0c53d2a | refs/heads/master | 2021-10-28T08:48:15.508077 | 2019-04-23T06:29:28 | 2019-04-23T06:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,371 | py | from __future__ import print_function, division, absolute_import
from functools import partial
import logging
import math
import os
from bokeh.layouts import row, column, widgetbox
from bokeh.models import (ColumnDataSource, DataRange1d, HoverTool,
BoxZoomTool, ResetTool, PanTool, WheelZoomT... | [
"satish.kumar@egovernments.org"
] | satish.kumar@egovernments.org |
62a92246a59e59ff2550f7bd3adf80dc11d0cb97 | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/fs/Imager.py | c45cdcf01b8b37c5fbea9b1d30fa8040c2b7c498 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 7,613 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import os.path
import sys
import unicodedata
from .ADFSDir import ADFSDir
from .ADFSFile import ADFSFile
from .ADFSVolume import ADFSVolume
from .MetaDB import MetaDB
from . import DosType
from amitools.fs.block.BootBlock import Bo... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
5ad5a739442c58adebb39086d69b21435ad3cb51 | 8c50265b43add0e91e30245cc7af3c2558c248f5 | /python/mxnet/module/sequential_module.py | 8d563a4def7e76215205ac3f7805588e25f89328 | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"Zlib",
"Apache-2.0",
"BSD-2-Clause",
"Intel"
] | permissive | awslabs/dynamic-training-with-apache-mxnet-on-aws | 6a67f35d7e4b12fa8bba628bd03b2b031924e211 | 1063a979417fee8c820af73860eebd2a4f670380 | refs/heads/master | 2023-08-15T11:22:36.922245 | 2022-07-06T22:44:39 | 2022-07-06T22:44:39 | 157,440,687 | 60 | 19 | Apache-2.0 | 2022-11-25T22:23:19 | 2018-11-13T20:17:09 | Python | UTF-8 | Python | false | false | 17,361 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"vikumar@88e9fe53272d.ant.amazon.com"
] | vikumar@88e9fe53272d.ant.amazon.com |
b2b3c34a0adb938dfa4546d8be279a631088e40e | b088d5dc4321f9f145c7bceb20a0b9479b374c65 | /level1&2/42587.py | adb68fdace5001ff14fec77dddcaf1c5ab6d92af | [] | no_license | heojungeun/codingtestPractice | 55bfc2b13791f5cb3133b0815991a0c696f8482c | 65d668bf6df82967f89d4ec4eb3a1e11de603729 | refs/heads/master | 2022-09-17T00:34:05.887237 | 2020-05-30T06:45:30 | 2020-05-30T06:45:30 | 261,093,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | def solution(priorities, location):
answer = 0
from queue import Queue
q = Queue()
for x in priorities:
q.put(x)
while True:
maxp = max(priorities)
tmp = q.get()
if tmp < maxp:
q.put(tmp)
if location==0:
location = q.qsize()-1
... | [
"heocube@naver.com"
] | heocube@naver.com |
7b3096f8d428b3ad01b37c1e55e4dbeb979e817f | e60bbe26a33a44213893e14e8445ce60248658c7 | /apps/goods/urls.py | 94063f290fdba68c7ad1e6ad4e9e5e57b5e3e188 | [] | no_license | rahzpheon/dailyfresh | 2270d2ff6f2be003be9c6bd16d7b9e1f1f3e2375 | cce53c42f9f42bf32bca52c4b22fa48ea1da5c18 | refs/heads/master | 2021-09-10T00:31:36.511786 | 2018-03-20T11:34:25 | 2018-03-20T11:34:25 | 126,006,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from django.conf.urls import url
from apps.goods.views import IndexView,DetailView,ListView
urlpatterns = [
url(r'^index$', IndexView.as_view(), name='index'), # 首页
url(r'^detail/(?P<sku_id>\d+)$', DetailView.as_view(), name='detail'),
url(r'^list/(?P<type_id>\d+)/(?P<page>\d+)$', ListView.as_view(), name=... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
2bf3622b7d8406fdbaa549b0f7ae22080f44e813 | 417eefbc54e4bda0891e878392f4ddb9a11d462e | /homerun/homerun/wsgi.py | 409a8bb15eea91a9c330820843413203de347b57 | [] | no_license | btimby/django-homerun | c72505e2fe2a1ff6c1371f0b396616b36a8fbd73 | e569f1e2017ea272bbfed9cc6e5487bedf92d62a | refs/heads/master | 2021-01-01T05:43:13.137636 | 2013-10-30T03:49:41 | 2013-10-30T03:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | """
WSGI config for homerun project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` ... | [
"btimby@gmail.com"
] | btimby@gmail.com |
b64c30b120b57eecc71e959c3e8ac7ec33240191 | f8b2690616b4e9591fefcd83451d4d39c7e0eb50 | /src/build/lib/auxil/auxil1.py | 332873e415a5b9ce33f461d1e6358db5fbb72e93 | [
"MIT"
] | permissive | xyt556/EESARDocker | 6f2562b5fab989072bcefd38aa3122f66b168bd9 | ad80af7f89fc19bafeacd96499f73d1941643b70 | refs/heads/master | 2020-11-28T16:14:39.592462 | 2019-12-21T11:17:18 | 2019-12-21T11:17:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,060 | py | #!/usr/bin/env python
#******************************************************************************
# Name: auxil.py
# Purpose: auxiliary functions for processing multispectral imagery
# Usage:
# import auxil
import numpy as np
import math, ctypes
from numpy.ctypeslib import ndpointer
fr... | [
"mort.canty@gmail.com"
] | mort.canty@gmail.com |
5e296b9991e5704a9ab792aeeb02386d8af3a29b | 2ce290176f1f2e5184a77262843cc46f65ac0e96 | /transaction/urls.py | ee15b2c6d922f292b0abb233f729f701caf66da9 | [] | no_license | AnkitAvi11/Expense_Management_System-Django | 33303b9f83ea1447a3de8131ca84ec43ecde5c17 | f7a3c3457349437d1a710a9a0def3a2db582ca0f | refs/heads/master | 2022-11-09T00:01:43.288375 | 2020-06-27T23:56:25 | 2020-06-27T23:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from django.urls import path, re_path
from . import views
urlpatterns = [
path('create-wallet/', views.addWallet, name='postwallet'),
path('addtransaction/', views.addtransaction, name='addtransaction'),
path('wallet-setting/', views.walletSetting, name='wallet-setting'),
path('api/wallet/', views.get... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
70ddad65f3f3e11d19161eaef5b4f7949fe7dff9 | bf227496009b0bedf5a7c558241813caacafd3ad | /config/conf3beaconstest.py | 0e27ca84c99f5770436baadc8a93bda2f1dd3cff | [] | no_license | switchdoclabs/SDL_Pi_BeaconAir | 09d5f4949064797f43876bb1d222c7a69c2f7730 | 65eca60e1be1b3fb94e7c9a45ea38d4ded6602de | refs/heads/main | 2023-02-08T17:36:09.663899 | 2021-01-02T18:12:58 | 2021-01-02T18:12:58 | 326,029,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | #
#
# configuration file - contains customization for exact system
# SDL December 2020
#
serverURL = "http://192.168.1.40"
DEBUG = True
LIGHT_BRIGHTNESS_SENSITIVITY = 2.0
LIGHT_DISTANCE_SENSITIVITY = 2.0
# configuration for house
# list of iBeacons with x,y coordinates. Top left corner of image is 0,0
# list of lis... | [
"you@example.com"
] | you@example.com |
1a58da3a48280a6b25c5ea6593c0fbfec7c81d17 | 1b81f854ddb40c6ed9b60b6a439289e30a094283 | /docs/conf.py | 21fab1207d049d275b629d8374ce052e8acf9bd8 | [
"MIT"
] | permissive | uyjulian/ControlPack | 9705f7815fb574fb162b2679250ee64831a20a9b | 279fea8766f6f9096133528e616c8fd3c15eef38 | refs/heads/master | 2020-12-24T06:02:35.576795 | 2018-04-12T17:09:56 | 2018-04-12T17:09:56 | 21,796,328 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,211 | py | # -*- coding: utf-8 -*-
#
# Control Pack documentation build configuration file, created by
# sphinx-quickstart on Sat Jul 8 17:11:10 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"uyjulian@gmail.com"
] | uyjulian@gmail.com |
0ca3110110a4f65e138e5b1cec94873ec7bd6b44 | 2a46ad4e83dcd903451fb5fba8d04da266dbd49e | /Algorithm/Leetcode/Codes/SearchInRotatedSortedArrayII.py | 93215f2eb511a346d4c4e3e69950494c9eebf457 | [] | no_license | chloeeekim/TIL | e248801508340cb2eb9f3cfddc486b7dd7250386 | c5a94e81aa2f2dfcc626820205ca9feaad069fad | refs/heads/master | 2022-03-02T04:05:24.439271 | 2022-02-22T01:25:14 | 2022-02-22T01:25:14 | 190,150,063 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """
81. Search in Rotated Sorted Array II : https://leetcode.com/problems/search-in-rotated-sorted-array-ii/
정렬된 리스트와 정수 하나가 주어졌을 때, target이 포함되어 있는지 확인하는 문제
- 리스트는 증가하는 방향으로 정렬되어 있지만 rotate 되어 있다
- ex) [0,1,2,4,5,6,7]은 [4,5,6,7,0,1,2]가 될 수 있다
- 리스트 내에 중복이 존재할 수 있다
Example:
- Input : nums = [2,5,6,0,0,1,2], target =... | [
"hiyaku0317@gmail.com"
] | hiyaku0317@gmail.com |
98701e59374e80f74e3d7a6721cfcdf2d65caa58 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/archipack/archipack_fence.py | 7af93df3ff38dfe06e64b84e165da20ecbbf7252 | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 61,964 | py | # -*- coding:utf-8 -*-
# ##### 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; either version 2
# of the License, or (at your option) any later version.
#
# ... | [
"admin@irradiate.net"
] | admin@irradiate.net |
d3641bce1a93d60e3088345bc23dbaa5abf2058f | bcf2b93fd27a3dcdf1168d91bed6efb171740785 | /0x0F-python-object_relational_mapping/5-filter_cities.py | 7e87f2e77770657abbb77d71a05d117db47117f0 | [] | no_license | Relaxforever/holbertonschool-higher_level_programming | c3c4e1dba0ce27d25f86145db9e8fd0cbb4f3630 | 9c2131902414a2fc3a488842071d13a98118d9bd | refs/heads/master | 2020-07-22T22:40:01.259101 | 2020-02-13T16:45:57 | 2020-02-13T16:45:57 | 207,353,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #!/usr/bin/python3
""" module gets a database and prints it in ascending order """
import MySQLdb
import sys
if __name__ == "__main__":
con = MySQLdb.connect(host="localhost",
user=sys.argv[1],
passwd=sys.argv[2],
db=sys.argv[3],
... | [
"869@holbertonschool.com"
] | 869@holbertonschool.com |
b7d65a6f1b73da4c5b8e195d63fbaeb9cefbdcbe | aed18908f6cdf93774aac253273e47d6e3521003 | /runs/"frac: 4 base: 8x46 blowup 2.h5"/two_time_pad.py | 5c97c9bf4eca3bc7c97a9e82bd5eea49ff8f1898 | [] | no_license | matthiasgoergens/TwoTimePad | cbd1e2cb081805baf503b0a4984e74e0508060f8 | 7dc3a276179e3c15b07b1ae2c3c8d31d34bf9a00 | refs/heads/master | 2021-07-03T22:59:06.211897 | 2021-06-13T09:03:33 | 2021-06-13T09:03:33 | 9,916,768 | 0 | 0 | null | 2013-07-04T05:25:17 | 2013-05-07T16:48:56 | Haskell | UTF-8 | Python | false | false | 28,899 | py | # -*- coding: utf-8 -*-
import functools as ft
import itertools as it
import math
import random
import re
import sys
from datetime import datetime
from pprint import pprint
import numpy as np
import tensorflow as tf
# import tensorflow_addons as tfa
from tensorflow.keras.callbacks import ModelCheckpoint, TensorBoard,... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
f5516da0b4aa1dffff41aea7b26e4443c1273604 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2023/minimum_absolute_difference_queries.py | fef40e1d4c315856ad5039eac78d205063336e2b | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 722 | py | """
https://leetcode.com/problems/minimum-absolute-difference-queries/
"""
class Solution:
def minDifference(self, nums: list[int], queries: list[list[int]]) -> list[int]:
N = max(nums)
freqs = [[0] * (N + 1)]
# Canculate frequency of number at each position.
for num in nums:
... | [
"mengyu.jiang@gmail.com"
] | mengyu.jiang@gmail.com |
62f2f0c353540b56735abd364f0f5e4c25014b40 | e582d60b7996faf7b87c6d857613e63581d415b9 | /elliot/evaluation/metrics/coverage/item_coverage/item_coverage.py | f12f049a7ee1f9876e5fc3805d785621fc9d1ffe | [] | no_license | Abdel57Grota/Reenvisioning-the-comparison-between-Neural-Collaborative-Filtering-and-Matrix-Factorization | d6e51c32094550789673846acdf9891557b790c1 | 2a2b0148e881cf8ba45c48ad9d42f52421585284 | refs/heads/main | 2023-09-03T09:47:41.894117 | 2021-11-09T09:17:35 | 2021-11-09T09:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | """
This is the implementation of the Item Coverage metric.
It directly proceeds from a system-wise computation, and it considers all the users at the same time.
"""
__version__ = '0.1'
__author__ = 'Vito Walter Anelli, Claudio Pomo'
__email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it'
from elliot.evalua... | [
"claudio.pomo@poliba.it"
] | claudio.pomo@poliba.it |
1fcb08c0f892047cf02781111c756ce75805456d | c9a5890bd71bba53655d34d83e124756560f0ebf | /algo/algos/polynome-tex5.py | b142327095172797cdc73b5a1e8161d66f8677d0 | [] | no_license | exo7math/cours-exo7 | 34cad929e9b4f54b817e31919eaf627db07c7f5c | 54f435a3de79b20ef6fdaf15d8061c80f776d8a7 | refs/heads/master | 2023-03-19T03:10:46.698777 | 2023-03-17T19:44:30 | 2023-03-17T19:44:30 | 75,659,073 | 42 | 44 | null | 2022-12-01T09:47:42 | 2016-12-05T19:31:40 | TeX | UTF-8 | Python | false | false | 695 | py | def produit_assez_rapide(P,Q):
p = degre(P) ; q = degre(Q)
if (p == 0): return [P[0]*k for k in Q] # Condition initiale: P=cst
if (q == 0): return [Q[0]*k for k in P] # Condition initiale: Q=cst
n = (max(p,q)+1)//2 # demi-degré
P1,P2 = decoupe(P,n) #... | [
"arnaud.bodin@univ-lille.fr"
] | arnaud.bodin@univ-lille.fr |
f8748a1df2af7d334c67a4af542aac4cebe935a1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_191/ch120_2020_03_26_14_47_01_217089.py | 8191535c746926ce39b422f8d00e63594e649a26 | [] | 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 | 1,002 | py | import random
d=100
print(d)
while d>0:
a=int(input('Quantidade: '))
if a>0:
p=input('Aposta(n,p): ')
r=random.randint(0,36)
if p=='n':
f=int(input('Numero de 1 a 36: '))
if d==r:
d=d+35*a
print(d)
else:
... | [
"you@example.com"
] | you@example.com |
ca251ea395432732db15ce548a28aa734c49e10b | 536a0a72dff61e9d147864c5c089f3b5d61d67d9 | /RESOURCES/jobj.tst.py | f7623d3e204bb27488f45480a181b88c2023ea6f | [
"MIT"
] | permissive | ihgazni2/eobj | 37f7bc7221937ba06abd826dfdad22178ef39114 | d5d73759c4b4be9244c08afcb82d470c7f3cf35d | refs/heads/master | 2020-08-01T14:17:29.466564 | 2020-04-16T13:55:02 | 2020-04-16T13:55:02 | 211,020,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | d = {'arr': [1, 2, 3], 'x': {'y': 100, 'z': {'u': 200}}}
o = ele2jobj(d)
arr = [[100],[200,300]]
o = ele2jobj(arr)
del o.x.y
o
d
del o.arr1
>>> d = {'arr': [1, 2, 3], 'x': {'y': 100, 'z': {'u': 200}}}
>>> o = ele2jobj(d)
>>>
>>> del o.arr1
>>> o
{'arr': [1, 3], 'x': {'y': 100, 'z': {'u': 200}}}
>>>
>>> d
{'arr':... | [
"terryinzaghi@163.com"
] | terryinzaghi@163.com |
74f8a388f5a93990fb92298f80362b75c6a6ba0d | f062af64ce156719203b79de9c2502b265af27de | /tensorflow_datasets/text/xtreme_pos/xtreme_pos.py | 6e3826af0db7531363834e55460dcda54965173a | [
"Apache-2.0"
] | permissive | tensorflow/datasets | d0c58f3db7ce06347671558b9e5a41e12e6913ce | 41ae3cf1439711ed2f50f99caa0e6702082e6d37 | refs/heads/master | 2023-08-31T03:23:16.581638 | 2023-08-30T17:25:34 | 2023-08-30T17:29:38 | 148,221,325 | 4,224 | 1,738 | Apache-2.0 | 2023-09-14T14:04:22 | 2018-09-10T21:27:22 | Python | UTF-8 | Python | false | false | 882 | py | # coding=utf-8
# Copyright 2023 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"no-reply@google.com"
] | no-reply@google.com |
25550cee9f8cb64f1c870039d9fa6529f8344b7c | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /supervised_learning/0x01-multiclass_classification/1-main.py | 37606bdf5cda5cae9bf9ec1b565eb6a4538b0a2c | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python3
import numpy as np
oh_encode = __import__('0-one_hot_encode').one_hot_encode
oh_decode = __import__('1-one_hot_decode').one_hot_decode
lib = np.load('../data/MNIST.npz')
Y = lib['Y_train'][:10]
print(Y)
Y_one_hot = oh_encode(Y, 10)
Y_decoded = oh_decode(Y_one_hot)
print(Y_decoded)
Y_decoded ... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
59caa532ad0c9bef6485d2966c66bbdd6e597fa0 | 382df78024f588acea08039a0b0a9e24f297b6a3 | /python/matplotlib/simple_plot.py | 167c0e211fd048c9d5e039704358048c41cd5d4d | [] | no_license | id774/sandbox | c365e013654790bfa3cda137b0a64d009866d19b | aef67399893988628e0a18d53e71e2038992b158 | refs/heads/master | 2023-08-03T05:04:20.111543 | 2023-07-31T14:01:55 | 2023-07-31T14:01:55 | 863,038 | 4 | 1 | null | 2020-03-05T06:18:03 | 2010-08-26T01:05:11 | TeX | UTF-8 | Python | false | false | 280 | py | import matplotlib.pyplot as plt
from numpy.random import randn
x1 = randn(50).cumsum()
x2 = randn(50).cumsum()
x3 = randn(50).cumsum()
x4 = randn(50).cumsum()
plt.figure()
plt.plot(x1, 'k--')
plt.plot(x2, 'r--')
plt.plot(x3, 'g--')
plt.plot(x4, 'b--')
plt.savefig('image.png')
| [
"idnanashi@gmail.com"
] | idnanashi@gmail.com |
583e80f30dcd6488decd5a82c3723edcad5c79c8 | ece829db4a6a28f1732c534952389e13c71cb25b | /Status/migrations/0003_auto_20160723_0103.py | 0efa84676d9ffa4bf41055f2a44c6e16e8a03aee | [] | no_license | huangy10/SportscarStyle | 8d5597cf6839e3705917ad591d96014cb35740ab | 5fdf748b95198cd464d94c51f49be9f52ac3c5c1 | refs/heads/master | 2020-04-04T05:37:03.821637 | 2016-12-01T06:31:17 | 2016-12-01T06:31:17 | 45,738,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('Status', '0002_auto_20160710_0504'),
]
operations = [
migrations.AlterField(
model_name='status',
na... | [
"woody1573@163.com"
] | woody1573@163.com |
989d7a00a4af6cc31dcc792036b62634c53dc479 | 22e78415f5553289ed3cec38567cbe4964861cac | /users/admin.py | 7ec48c94cb9be29e951d19f9cfa4c1ccdb538169 | [] | no_license | Tanmoy-Sarkar/NewspaperApp | 5dbe2dd209b877f6b0c3e2c5ca5f402455229f24 | 35f455d6128df959b2eb2543ada8d7844a711295 | refs/heads/master | 2022-09-11T17:43:39.856907 | 2020-05-26T17:49:16 | 2020-05-26T17:49:16 | 266,339,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
# Register your models here.
from .forms import CustomUserCreationForm,CustomUserChangeForm
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
model = CustomUs... | [
"tanmoy9920@gmail.com"
] | tanmoy9920@gmail.com |
b3ed91795ad00506e232d0da320633942aa33e3d | cfd2e1f12208dad79bc4b899e81ce1f7de84e80c | /demos/scripts/Vogels_et_al_2011.py | a7630891b58b5e31d50993ef1307ababafba6039 | [] | no_license | zhouyanasd/DL-NC | 334adafdea1dd8c4c08c7efef3abc3b623344f0d | 396521096f65b27aa24efb1deda7b215876166b2 | refs/heads/master | 2023-03-22T04:57:19.790975 | 2023-03-14T08:57:01 | 2023-03-14T08:57:01 | 64,385,964 | 41 | 9 | null | 2023-02-15T17:52:34 | 2016-07-28T10:22:45 | Python | UTF-8 | Python | false | false | 3,177 | py | from brian2 import *
# ###########################################
# Defining network model parameters
# ###########################################
NE = 8000 # Number of excitatory cells
NI = NE/4 # Number of inhibitory cells
tau_ampa = 5.0*ms # Glutamatergic synaptic time constant
tau_gaba = 10... | [
"zhouyanasd@gmail.com"
] | zhouyanasd@gmail.com |
b189fd3097759d412550936e3f8253b075baf758 | 0e0f9c948dd2491fe6e19d974f1506eddf558180 | /Leap.py | b5ab02a12b3e921c58031cb9bab18f8764f82e49 | [] | no_license | brianhouse/gesture_learner | e431fc0e7c86dfcbf9b7eb4e500e53c598daedf0 | 471e97d7f6a730c677d24fc758a0d54a3cf4c29b | refs/heads/master | 2021-01-20T11:22:10.125118 | 2016-08-02T21:40:20 | 2016-08-02T21:40:20 | 64,791,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90,752 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_i... | [
"brian.house@gmail.com"
] | brian.house@gmail.com |
ba49d636ae70b941606cbcd0486fba198ea7813c | a5b563bc83fce5a652a01dd3b07550cb53e54ea3 | /ME555_Hw2-master/test_1.py | 8b1978990ab2b231ff0397fbd2ee167686e5d444 | [] | no_license | ljc19800331/HW_Python | d89b38ced5476453f5a0ae98752c7cd34bf351c0 | 08a503b57f48e306bb3898f3c31785144b96e0cb | refs/heads/master | 2020-03-27T06:42:09.504267 | 2018-11-28T21:32:40 | 2018-11-28T21:32:40 | 146,128,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import numpy as np
import matplotlib.pyplot as plt
import time
import random
import Robot_setting
from Robot_setting import *
# Fixing random state for reproducibility
np.random.seed(19680801)
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
area = 100
colors = np.random.rand(N)
plt.xlabel('x') # Set up axe... | [
"maguangshen@gmail.com"
] | maguangshen@gmail.com |
da7cb09c85ed91cfebb4a20d23afab9a4056a379 | 335944885d937316236102a80f76a696b48b51e1 | /src/python/module/nifty/graph/agglo/__init__.py | a458b5bf9440a1fd3e7be5b5ccb409df7f9828ef | [
"MIT"
] | permissive | chaubold/nifty | b33153c3ba2dd7907c1f365b76a31471f9313581 | c351624a7f14278eb241fb730f44bdd275563dec | refs/heads/master | 2021-01-11T17:43:23.443748 | 2017-01-22T12:48:21 | 2017-01-22T12:48:21 | 79,821,703 | 0 | 3 | null | 2017-12-22T10:47:30 | 2017-01-23T16:16:55 | C++ | UTF-8 | Python | false | false | 2,375 | py | from _agglo import *
import numpy
__all__ = []
for key in _agglo.__dict__.keys():
__all__.append(key)
from ...tools import makeDense as __makeDense
def sizeLimitClustering(graph, nodeSizes, minimumNodeSize,
edgeIndicators=None,edgeSizes=None,
sizeRegularizer=0... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
6b494f23ee72c35cb84c954d9b2ac0ec5ff83c57 | e8d9821b53db4bb2a2d68b2a1774116fac22fbef | /python-web-spider-book/10-Cookies/CookiesPool/login/cookies.py | 80562400f5e06ded00316d0fac5b1fadb0ad1a15 | [] | no_license | ArmstrongLLQ/Python_learn | 9ab5197a8bb81a51f7d2896aac2b2f35f13e080d | d7d3c15838ad3a681fabd11c0ba75172989f1e05 | refs/heads/master | 2022-03-25T09:10:51.421073 | 2019-11-25T07:32:50 | 2019-11-25T07:32:50 | 186,932,486 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | # -*- coding: utf-8 -*-
import requests
class WeiboCookies():
def __init__(self, username, password):
self.url = 'https://passport.weibo.cn/signin/login?entry=mweibo&res=wel&wm=3349&r=https://m.weibo.cn/'
self.headers = {
'Referer': 'https://m.weibo.cn/',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) A... | [
"armstrong_lab@163.com"
] | armstrong_lab@163.com |
6147634f636d12f2325bff10dfd21d71f2b1b4b2 | 344dfd891cde88940c86f1d488d426c79c3825ac | /w13/drfdemo/api/models.py | b7ac39ef631541de80f04db083344a48a6fa3c6d | [] | no_license | bobur554396/WT2018Spring | b32b02d4ffdc1598fb41322e97cecc0eeffa92b3 | 6a79748747991aa1e28b359a72ddf3a9b3a9d1d0 | refs/heads/master | 2021-05-11T00:53:05.640173 | 2018-04-13T05:12:33 | 2018-04-13T05:12:33 | 118,312,848 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.db import models
class Todo(models.Model):
title = models.CharField(max_length=100)
created_at = models.DateTimeField(auto_now=True)
def __str__(self):
return self.title
| [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
e5313a06bff498c8ddfd3abf4775b8e6f778f624 | 5db3d51ff9a0bd7647c2315a358cb4ec9299d9d5 | /test_3d.py | 01d4a1ba2680d219e91211207dfa0b7e8a377369 | [] | no_license | bikiranguha/Thesis_project | 866385f51bd476448730c8169eb0b3c1dacba84e | 1a52ba0fed86afb522bda067b8011b6940b4088d | refs/heads/master | 2020-03-31T06:52:16.627848 | 2018-12-28T02:59:33 | 2018-12-28T02:59:33 | 151,997,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.axes3d import Axes3D
import numpy as np
#from pylab import meshgrid
# function to be plotted
def z_func(a, b):
return (a - 3) * (a - 3) + (b - 2) * (b - 2)
x1 = np.arange(15.0, 0, -0.1) # x1 >= 0 according to given conditions
x2 = np.arange(-15.0, 1, 0.1) ... | [
"bikiranguha@gmail.com"
] | bikiranguha@gmail.com |
8e03b65678946acff97df34f7474d624d3b1da0d | 9fbdbc648035372f7f845954d040216789ac0aa8 | /orientation/DS_final/rename.py | 75483ac362542877c709078f6e64746054a38518 | [] | no_license | tmcclintock/redmapper_lensing_tests | 39a5ce06cc0e55c9d8f9970ab0dd96f93ec608d9 | aa07b1a64f4dd5fd830be8e085a2bbac7803a1c7 | refs/heads/master | 2020-04-14T21:29:32.421374 | 2019-09-25T20:48:14 | 2019-09-25T20:48:14 | 164,130,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import os
import numpy as np
h = 0.7
y1zs = np.loadtxt("Y1_meanz.txt")
zs = ["0.2", "0.35", "0.5", "0.65"]
ls = ["20", "30", "45", "60", "10000"]
inpath = "DeltaSigma_same_mass_redshift_distribution_z_%s_%s_lam_%s_%s.dat"
outpath = "DS_MASSSELECTION_l%d_z%d.txt"
#NOTE - I need to add two more blank columns to the o... | [
"tmcclintock89@gmail.com"
] | tmcclintock89@gmail.com |
0b68b6fa781838cf8a90f535420924801ee58f41 | 125bc51efb95f383257e7bdb50ae74e5dc05b7f7 | /src/belajarSubstring.py | 555cb2c2df7ed916e99ce9cbb354c86317602c0a | [] | no_license | frestea09/learn_ch1_python | f9688fffda5f0fa312b82bd25081b986fa0779e9 | 510ea59bf85ec024ebc473db2533e92becaefbf3 | refs/heads/master | 2020-05-26T18:22:31.171688 | 2019-05-26T05:42:08 | 2019-05-26T05:42:08 | 188,334,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from __future__ import print_function
def main():
variablePertama = "Python"
print(variablePertama[0:3])
if __name__ == "__main__":
main() | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
a5953f55326505e1a8e896d042006306a5163ac1 | 0178aa46cbc3366e1d063def92378cfd1f3a9664 | /checkout/webhook_handler.py | 1d6d2caafd9c82221fd360d52bee9ca1de40f629 | [] | no_license | richardthorp/boutique_ado_v1 | dbf40b1ffeb0ad55ebbc62cd9cecbce916fd32d9 | 695542ea594287e367575d4953b207112b25330d | refs/heads/master | 2023-05-30T17:36:01.167308 | 2021-07-01T07:48:30 | 2021-07-01T07:48:30 | 365,285,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | from django.http import HttpResponse
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.conf import settings
from .models import Order, OrderLineItem
from products.models import Product
from profiles.models import UserProfile
import time
import json
class StripeWH... | [
"richardthorp@hotmail.co.uk"
] | richardthorp@hotmail.co.uk |
ca2de8a0859d08c5b215dcfde90799979102b480 | 5c00b0626b4ec2bc428e565c97b4afc355198cc4 | /torchsim/research/research_topics/rt_2_1_2_learning_rate/experiments/ta_classification_accuracy_experiment.py | 482912fea6df3ae4ae505f007f196a9811e0c4e2 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | andreofner/torchsim | 8cff778a324d4f7dc040f11a12d0dc8cd66375b7 | 81d72b82ec96948c26d292d709f18c9c77a17ba4 | refs/heads/master | 2021-10-24T05:25:33.740521 | 2019-03-22T10:20:00 | 2019-03-22T10:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,960 | py | from eval_utils import run_just_model, parse_test_args
from torchsim.research.experiment_templates.task0_train_test_classification_acc_template import \
Task0TrainTestClassificationAccTemplate
from torchsim.research.research_topics.rt_1_1_4_task0_experiments.experiments.experiment_template_params import \
Trai... | [
"jan.sinkora@goodai.com"
] | jan.sinkora@goodai.com |
bfe5e1ba3ae0161458b0aff41aa88c0e55537a4b | 592aa4ed17f6a5a4c77a774d4be0f21d08062546 | /part2/05-sifr/part1/02.py | 2a3c11a2e36728cc495375f6915e5a994cda1687 | [] | no_license | permCoding/algopro20 | 9ce6f2d1006d16b90d70556ba5a50f872f61261d | 5b067d4a49a1e4545429e86a4deddf1d17ab7e24 | refs/heads/master | 2023-04-20T10:20:01.670554 | 2021-05-10T12:51:13 | 2021-05-10T12:51:13 | 294,161,048 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # из строки в список кодов и обратно
line = 'Привед Медвед...'
lst = [ord(smb) for smb in line]
print(lst)
result = [chr(item) for item in lst]
print(''.join(result))
| [
"ttxiom@gmail.com"
] | ttxiom@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.