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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ca9fad8cd78573c8d3ca2e9a76b0d607134371b | ce214c2cbecb3591665b2748c1c777dd83625f96 | /lesson_13/api/routers.py | ff242ade61e4fcebb7697a8a760da6bb173b9707 | [] | no_license | antonplkv/itea_advanced_june | e35af2f10d93d8ffb43664cd0cf7dfd46b969aef | c20e81167bfd87b7e16f340210b246a4cbc1751e | refs/heads/master | 2022-12-04T20:27:21.908624 | 2020-08-19T18:19:49 | 2020-08-19T18:19:49 | 272,512,423 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from flask import Flask
from flask_restful import Api
from .resources import AuthorResource
app = Flask(__name__)
api = Api(app)
api.add_resource(AuthorResource, '/authors', '/authors/<author_id>') | [
"polyakov9.anton9@gmail.com"
] | polyakov9.anton9@gmail.com |
91ff95988bce1d58997328ad6d6def469c878d07 | 452c33c0622ec36e93e6ff6637533a15a067a8a4 | /samples/client/petstore/python-experimental/petstore_api/models/outer_composite.py | f3887c8a3267c6a6532d498e3de2a32c135c4da3 | [
"Apache-2.0"
] | permissive | eric-erki/openapi-generator | 40c4294433bada9f693aca0c32326609e2234f9c | 0ea1ead59e41e4e8a959235dc8234d44447a9658 | refs/heads/master | 2023-01-07T03:33:36.315459 | 2019-09-20T18:13:33 | 2019-09-20T18:13:33 | 209,955,560 | 1 | 3 | Apache-2.0 | 2023-01-04T10:58:25 | 2019-09-21T09:09:49 | Java | UTF-8 | Python | false | false | 4,876 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
9aab50959e6376757d51b3fef3e88483eb1d7494 | 07c3124153a6909f19a21c3c664d8e3f8e0481d0 | /fractals/sierpinski_triangle/sierpinski_triangle.py | aae6e3da8f1aaeec51acdaeab10b98c9d1557216 | [] | no_license | gridl/art-of-turtle-programming | 94ed422a4e75f83e4c3abf7910ed9e5ed8a40aa9 | db6b2c1059bffc9df468691c6ecf1c110b38aafd | refs/heads/master | 2020-03-19T16:20:48.680667 | 2015-12-15T05:46:03 | 2015-12-15T05:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | from turtle import *
import math
tracer(1, 0)
setworldcoordinates(0, 0, 960, 810)
bgcolor(0.1, 0.1, 0.1)
BASE_SIZE = 13
BASE_HEIGHT = BASE_SIZE * math.sin(60 * (math.pi / 180))
START_X = 50
START_Y = 20
def draw_triangle(x, y, color):
penup()
pencolor(color)
goto(x, y) # go to bottom-left corner
pendo... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
dd2581b2b922761111f73de6a66b37bef9ca71ad | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/servicebus/latest/list_disaster_recovery_config_keys.py | 25a135b1c7de1f742920f2d68de3190e3c721078 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,888 | 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
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
d212b119feedd836b1965727e519777fd8b95557 | fea44d5ca4e6c9b2c7950234718a4531d453849e | /sktime/forecasting/tests/test_all_forecasters.py | c528a23d1d8d1d4b7fe5fc87dd17cbf747f4fa26 | [
"BSD-3-Clause"
] | permissive | mlgig/sktime | 288069ab8c9b0743113877032dfca8cf1c2db3fb | 19618df351a27b77e3979efc191e53987dbd99ae | refs/heads/master | 2023-03-07T20:22:48.553615 | 2023-02-19T18:09:12 | 2023-02-19T18:09:12 | 234,604,691 | 1 | 0 | BSD-3-Clause | 2020-01-17T17:50:12 | 2020-01-17T17:50:11 | null | UTF-8 | Python | false | false | 28,833 | py | # -*- coding: utf-8 -*-
"""Tests for BaseForecaster API points.
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""
__author__ = ["mloning", "kejsitake", "fkiraly"]
import numpy as np
import pandas as pd
import pytest
from sktime.datatypes import check_is_mtype
from sktime.datatypes._utiliti... | [
"noreply@github.com"
] | mlgig.noreply@github.com |
2d5ccf17197699d50e0b2fa57a4243eb7ca907aa | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/carbuisness/main_currency_supply.py | ed84e5c37083ff51e2afabd4f2216adcf44c254f | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from scrapy.cmdline import execute
import sys
import os
website = "currency_supply"
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
execute(["scrapy", "crawl", website])
| [
"1316446041@qq.com"
] | 1316446041@qq.com |
e59eaebb53a1dd0de0208e35718b32e92973811d | b7126fb70f72fea0e7bba6fe2fef6925302ef07b | /tceh5_opp/self_work/task1.py | 735da977c22bdb199e6944c42bfec6b0ac104bb8 | [] | no_license | duk1edev/tceh | 79cd909c5a6221a2ca77d342b917462345140faa | 21649d42488883beb58d709f4a9d1a05c75d2900 | refs/heads/master | 2021-07-12T10:20:22.330005 | 2020-04-29T09:24:08 | 2020-04-29T09:24:08 | 239,434,484 | 0 | 0 | null | 2021-03-20T03:38:26 | 2020-02-10T05:25:33 | Python | UTF-8 | Python | false | false | 1,781 | py | # 1. Создать класс корзина у кторого можно выставить разную вмесительность
# для разных обьектов. В обект можн опомещать разные
# 2. Создать класс - пакет в кторый тожно можн опомещать предмет у него тоже есть вместимость
# 3. Любой класс что бы можно было помещать в корзину и в пакет
# 4. Если вместимоть не достаточ... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
35614a4b8e4a335c54fd174d3cf65ff29c823483 | db9ff8accaa4d8d4a96d3f9122c0fdc5e83ea2a5 | /test/test_price_quantity.py | 12635c2d23b1dcacf3ca517e059fcaba37c32bd5 | [] | no_license | agtt/ebay-openapi-inventory | 4754cdc8b6765acdb34f6b8f89b017ccbc6b1d2b | d990c26f16e811431892ac6401c73c4599c2d414 | refs/heads/master | 2023-06-17T10:53:43.204075 | 2021-07-14T18:32:38 | 2021-07-14T18:32:38 | 386,039,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | """
Inventory API
The Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay marketplace. There are also methods in this API that will convert eligible, active eBay listings into the Inventory API model. # noqa: E501
The version of the OpenAPI docum... | [
"csd@hotmail.com.tr"
] | csd@hotmail.com.tr |
bcb87b977ae9f3dda477d957cc6ee78f8f5cdf2e | fbf6fcd3720d1a5f1f01f91c7ecad68f1b296924 | /tools/test_modules.py | 85199d0138cfbbde70f10f93fa006cc06675053a | [
"MIT"
] | permissive | uvavision/DrillDown | 9602ddabd712d14df10e7026db3d7e62e7e4edba | ad0ef773b3af0859e48ea302f4f1d87215b26cef | refs/heads/master | 2022-04-28T21:42:06.366515 | 2022-04-15T12:14:25 | 2022-04-15T12:14:25 | 214,220,415 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 14,358 | py | #!/usr/bin/env python
import _init_paths
import os, sys, cv2, json
import math, PIL, cairo
import numpy as np
import pickle, random
import os.path as osp
from time import time
from config import get_config
from copy import deepcopy
from glob import glob
import matplotlib.pyplot as plt
from vocab import Vocabulary
from... | [
"fuwen.tan@gmail.com"
] | fuwen.tan@gmail.com |
49ad24efef53d23c86760ee96c78f87e3dbe2cf5 | 7200d065030f2daf00a5249e9e4fe569438c78c7 | /scrapers/dizilab_scraper.py | 76713de8e84af6b17220f3eaed0295e7b7a714f8 | [] | no_license | matt2005/salts | c765b037be1a2bb0e486ae9b30eceaf2b7c3bf14 | 5f71bc71e7b0b480f40d948d5568604dd181b6ad | refs/heads/master | 2020-12-31T04:16:45.574380 | 2015-12-07T22:57:31 | 2015-12-07T22:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,957 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"tknorris@gmail.com"
] | tknorris@gmail.com |
5804b448d279b66e3077be6b2016ef4e6230d463 | 46279163a543cd8820bdc38133404d79e787c5d2 | /benchmarks/tensorexpr/reduction.py | bc3e4e158a1750a0c9732c91297461f01ff5126b | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | erwincoumans/pytorch | 31738b65e7b998bfdc28d0e8afa7dadeeda81a08 | ae9f39eb580c4d92157236d64548b055f71cf14b | refs/heads/master | 2023-01-23T10:27:33.628897 | 2020-12-06T01:22:00 | 2020-12-06T01:23:40 | 318,930,000 | 5 | 1 | NOASSERTION | 2020-12-06T01:58:57 | 2020-12-06T01:58:56 | null | UTF-8 | Python | false | false | 5,706 | py | from . import benchmark
class ReduceBench(benchmark.Benchmark):
def __init__(self, mode, device, dtype, case, M, N, K):
super().__init__(mode, device, dtype)
self.case = case
self.M = M
self.N = N
self.K = K
self.inputs = [self.randn(
[M, N, K], device=... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
084d8ca89f293bf5398b5ab07d7076af43a5fb8d | 590a0c3a7254b8dac85ab18072dbf766aca7af93 | /Python-Exercise-100/python-exercise-example07.py | 01777ba168c7f8e9c5ee7615fd7642d9f407aaf6 | [
"MIT"
] | permissive | MiracleWong/PythonPractice | 90c66d29a9cdf0200d3dbac946d05f12dd856e91 | 40aecd84045ad18f6aff95d5b8be8e352ca0a726 | refs/heads/master | 2021-08-15T17:19:51.543013 | 2021-06-15T03:59:51 | 2021-06-15T03:59:51 | 98,256,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# 地址:http://www.runoob.com/python/python-exercise-example7.html
a = [1, 2, 4, 5, 5, 6, 7, 7]
b = a[:]
print(b)
| [
"cfwr1991@126.com"
] | cfwr1991@126.com |
69bef76ac68fc60f87f5f5e549027b0bcfae66f7 | 91a2ecfaf5dc6c917ec2fda31f56291103f68ceb | /tests/protos/test_ctc_loss.py | 6da44120062bdda6381ed74e2c0f8225fffc8ae4 | [
"BSD-3-Clause"
] | permissive | MyrtleSoftware/myrtlespeech | 635d1d16d1bd60fb07a4d30edbf9acb61786c13f | 8522048fd37744ffa06827a0cbd202b839a15453 | refs/heads/master | 2021-07-16T14:55:00.479967 | 2020-03-20T14:33:15 | 2020-03-20T14:33:15 | 192,501,300 | 12 | 1 | NOASSERTION | 2020-03-20T14:33:17 | 2019-06-18T08:44:33 | Python | UTF-8 | Python | false | false | 1,042 | py | from typing import Dict
from typing import Optional
from typing import Tuple
from typing import Union
import hypothesis.strategies as st
from myrtlespeech.protos import ctc_loss_pb2
from tests.protos.utils import all_fields_set
# Fixtures and Strategies -----------------------------------------------------
@st.co... | [
"sam@samgd.com"
] | sam@samgd.com |
6b51b24a86d97f35f69a59c8dbc0e913bf0876c9 | cdf9ba7b329d66a1b664d505332d4a441f6bf075 | /benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_mcf/power.py | ba961d5f8f3483e208416648d0c7e4f2c4795df5 | [
"MIT"
] | permissive | TugberkArkose/MLScheduler | 3247c0bbc11c09261a3bad777f3940a465e5f15a | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | refs/heads/master | 2021-03-27T19:11:44.207818 | 2020-03-19T11:32:08 | 2020-03-19T11:32:08 | 92,518,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,592 | py | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | [
"dn@fabre.ac.upc.es"
] | dn@fabre.ac.upc.es |
c03744b393ec5f98ff295969921ddf3de80aecaf | 9c52998e7d92640b82284e7e85bf69205fc94d73 | /SeleniumLearningFiles/SeleniumLearning01/webdrivertest/web04.py | ec6aa9036031cb6a57f01829bff64e05c5c91ab3 | [] | no_license | github653224/GitProjects_SeleniumLearing | b0c57d27fa48b0cd7475f8d8e8b19c57160e65fc | 818b573a3b0f18def98610e59e3c0c6500a675bc | refs/heads/master | 2021-07-20T05:54:46.392948 | 2017-10-27T12:53:41 | 2017-10-27T12:53:41 | 107,764,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
import time
from random import randint
verify =randint(1000,9999)
print(u"生成的随机数字: %d " %verify)
number=input("请输入随机数字:")
print(number)
number=int(number)
if number ==verif... | [
"944851899@qq.com"
] | 944851899@qq.com |
31bda42177c67668b02106a2e58888a61630ed09 | 99e1a15d8f605be456f17608843c309dd8a3260f | /src/Battle/Attack/Steps/Test/suite.py | a11d3df523d7d71da56074941becf66d934c86c9 | [] | no_license | sgtnourry/Pokemon-Project | e53604096dcba939efca358e4177374bffcf0b38 | 3931eee5fd04e18bb1738a0b27a4c6979dc4db01 | refs/heads/master | 2021-01-17T23:02:25.910738 | 2014-04-12T17:46:27 | 2014-04-12T17:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import unittest
from Battle.Attack.Steps.Test.remove_pp_step_test import suite as remove_pp_step_suite
from Battle.Attack.Steps.Test.handle_miss_effects_step_test import suite as handle_miss_effects_step_suite
from Battle.Attack.Steps.Test.handle_contact_step_test import suite as handle_contact_step_suite
from Battle.... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
6843646e4bfc8dd6d189f4981122d415672c1403 | 8937c4d452c98699610923f76a395a2247f576df | /preprocess/crop.py | 5b05cb13ad998812b4d8e78a1b99878b47e16046 | [] | no_license | mistycheney/MouseBrainAtlas | 812b204af06ed303f3c12d5c81edef50c8d9d1ed | bffbaa1ede9297084e64fc197716e63d5cb54275 | refs/heads/master | 2020-04-11T13:44:09.632311 | 2018-11-20T22:32:15 | 2018-11-20T22:32:15 | 20,377,173 | 3 | 9 | null | 2017-03-15T19:39:27 | 2014-06-01T12:42:08 | Jupyter Notebook | UTF-8 | Python | false | false | 3,884 | py | #! /usr/bin/env python
import os
import argparse
import sys
import time
import numpy as np
from multiprocess import Pool
sys.path.append(os.path.join(os.environ['REPO_DIR'], 'utilities'))
from utilities2015 import *
from metadata import *
from data_manager import *
from learning_utilities import *
parser = argparse... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
04dd25f2e360e6a0b81d6329398e7373d37c3db2 | ff801544b1979442b886d2d1eaf8480e7d6b0d24 | /main.py | 20bae383952351920f5e31df5cc21b3dcc2b56c3 | [] | no_license | BLimmie/OctoGAN | 7d420cd223ea0dd77dd0dfa1827f12fcd32e9dec | 38bb4d76eb8dea22278da2d496b712c171be080f | refs/heads/master | 2021-05-11T02:11:55.498819 | 2018-01-21T17:34:58 | 2018-01-21T17:34:58 | 118,352,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,747 | py | from __future__ import print_function
import argparse
import os
import random
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
i... | [
"brian01.lim@gmail.com"
] | brian01.lim@gmail.com |
41f2df2137a227386f0dece011dcf1d628037fd7 | ad544b38ec09828cda1b1918f407975bc79bf976 | /missioncontrol/mc/mc/views.py | 82f5e002d54b800f164e42ee9229c4612ff2bd76 | [] | no_license | mattvenn/earth-to-mars | 6de13606f3f8087da40e8ed0543a03e0093c25fb | c2b0064ef87c3d095d231587ee3ef48b00360bfd | refs/heads/master | 2021-01-10T07:29:17.557441 | 2016-03-17T16:34:42 | 2016-03-17T16:34:42 | 45,628,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,754 | py | from mc import app
from mc import db
from sqlalchemy.exc import IntegrityError
import datetime
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash, jsonify, make_response, send_file
from contextlib import closing
from flask_admin.contrib.sqla import ModelView
import tim... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
821a36d24596e0ac1a7bce97e1a3d9b9992c271f | 03043b715d2e177dd3ba93078463ce79c33173dc | /NI_DAQmx/models/NI_PXIe_6535.py | ffdfbaabce93ed1ea32f606174fc1da92d542ec7 | [] | no_license | labscript-suite-bitbucket-archive/cavitylab-labscript_devices--forked-from--labscript_suite-labscript_devices | 2efc068eb35ca70e1eecab9c7fec7991fd596c9c | e665d3ee0ce1cfd7fb7cd5c6cc4d783528bc4935 | refs/heads/master | 2020-12-27T02:35:41.710162 | 2019-12-06T20:57:48 | 2019-12-06T20:57:48 | 253,143,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | #####################################################################
# #
# /NI_DAQmx/models/_subclass_template.py #
# #
# Copyright 2018, Christopher Billington... | [
"chrisjbillington@gmail.com"
] | chrisjbillington@gmail.com |
37e0fb4dbe4d99d999a4a4ff25c33d7f504d8fc8 | ab574f7511fa15e5ea50a26f26e3e38f7e33505a | /win_2018/scipy/special/_ufuncs_cxx.py | 65fc513447b7d344b151f7ba228174ebe12f7257 | [] | no_license | zclongpop123/maya_python_packages | 49d6b340512a2580bc8c14ae6281ca3f57017acd | 4dd4a48c41749443ac16053d20aec04e9d2db202 | refs/heads/master | 2021-11-30T01:49:41.846727 | 2021-11-17T01:47:08 | 2021-11-17T01:47:08 | 49,186,909 | 16 | 9 | null | 2017-03-07T00:13:41 | 2016-01-07T06:48:35 | Python | UTF-8 | Python | false | false | 288 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, '_ufuncs_cxx.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"aton.lerin@gmail.com"
] | aton.lerin@gmail.com |
387635873635283c5290831c6f2104f6d7e1fed8 | aeb2f0bb7b01f87a1b6c65b88b216bed47025fe5 | /experiment/ex_025_predict.py | db89c037080c832fffa5c1b6a6ffee69035c39e7 | [] | no_license | kurupical/riiid | 7e68239cd50243fbb734bf433d60ebd7469cb180 | 7bab580ce03d03873748a6afc91092c11871465f | refs/heads/master | 2023-03-30T04:15:54.109815 | 2021-04-04T01:20:33 | 2021-04-04T01:20:33 | 302,828,112 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,041 | py | from datetime import datetime as dt
from feature_engineering.feature_factory import \
FeatureFactoryManager, \
TargetEncoder, \
CountEncoder, \
MeanAggregator, \
TagsSeparator, \
UserLevelEncoder, \
NUniqueEncoder, \
ShiftDiffEncoder
import pandas as pd
import glob
import os
import tqdm
... | [
"kurupical@gmail.com"
] | kurupical@gmail.com |
139a60ffd6e82195e835f691c53c0f317ab5a8d9 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/heatmap/_yperiod.py | 6496c7ed1592b867d1b2a5946e177c084910c381 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 470 | py | import _plotly_utils.basevalidators
class YperiodValidator(_plotly_utils.basevalidators.AnyValidator):
def __init__(self, plotly_name="yperiod", parent_name="heatmap", **kwargs):
super(YperiodValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
e... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
d978aee1a03ddbd4eec8a61a6d7792586dbbeb14 | a25aa09af984d08084a395f9b6df427d3756f11a | /35.Search Insert Position.py | 39611cdd7879d9f73747e131d4d9446fec4691dc | [] | no_license | luyihsien/leetcodepy | 31971e851a4ae77942a5d9e3ff07faea6e504c66 | a54bd09f4b28f106196a6cd8a0f9c056bcd237e6 | refs/heads/master | 2020-05-19T13:21:57.854086 | 2019-10-16T14:23:00 | 2019-10-16T14:23:00 | 185,037,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | ''''
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
'''
class Solution:
def searchInsert(self, nums, target):
if len(nums)==0:
return 0
for i in range(len(nums)):
if nums[i]==target:
return i
for i in range(1,len(nums)... | [
"luyihsien@gmail.com"
] | luyihsien@gmail.com |
713a24a7ccdd51e993b29e4b2f542ce44c4723f6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03448/s790400785.py | 17c0ac19efb39097ef60a9bdde7f5b5bfd5d9764 | [] | 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 | 337 | py | def resolve():
A = int(input())
B = int(input())
C = int(input())
X = int(input())
ans = []
for a in range(A + 1):
for b in range(B + 1):
c = (X - 500 * a - 100 * b) / 50
if c <= C and c >= 0:
ans.append((a, b, c))
print((len(set(ans))))
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
80fc4b38b7dff6b4f630a8e31f713c5c9b512f3c | 53163d4129930426c2d7aa650cb1b638d1347d21 | /lxmert/lxmert/src/tasks/nlvr2_model.py | ef93474403461f18461d1da85fb8877b6f6b5364 | [
"MIT"
] | permissive | fdsig/Transformer-MM-Explainability | 5e4d9d0c927afd0316311259fc318b325d74628e | accc4dd3491d321948e826079ce85f61bb02e0a6 | refs/heads/main | 2023-09-03T01:21:27.188260 | 2021-11-17T23:56:49 | 2021-11-17T23:56:49 | 433,759,755 | 1 | 0 | MIT | 2021-12-01T09:20:31 | 2021-12-01T09:20:31 | null | UTF-8 | Python | false | false | 1,773 | py | # coding=utf-8
# Copyleft 2019 project LXRT.
import torch.nn as nn
from lxrt.modeling import GeLU, BertLayerNorm
from lxrt.entry import LXRTEncoder
from param import args
class NLVR2Model(nn.Module):
def __init__(self):
super().__init__()
self.lxrt_encoder = LXRTEncoder(
args,
... | [
"hilach70@gmail.com"
] | hilach70@gmail.com |
b1b504761ef386bea3c5ec22159ec1973a0ac635 | d4c47276c8fbd15240aa228eda04ee8e338caf02 | /Python/Python Lesson/Second/Lesson9/Sample8.py | 447d9972d35e1c1f96525406233e419f925a3a61 | [] | no_license | developer579/Practice | a745384450172fb327913c130303ab76492096f1 | 54084468af83afcc44530e757800c8c3678147c1 | refs/heads/main | 2023-05-06T01:36:06.222554 | 2021-06-02T07:04:03 | 2021-06-02T07:04:03 | 324,312,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import re
ptr = ["TXT","TXT..",".TXT","..TXT"]
str = ["TXT","TXTT","TXTTT","TTXT","TTTXT"]
for valueptr in ptr:
print("------")
pattern = re.compile(valueptr)
for valuestr in str:
res = pattern.search(valuestr)
if res is not None:
m = "o"
else:
m = "x"
mrs = "(パターン)" + valueptr + "(文字列)" + valuestr +... | [
"69954570+developer579@users.noreply.github.com"
] | 69954570+developer579@users.noreply.github.com |
bfc47b482deb0ccf1f3e645d49665369758987ff | 3a3e823f6b94b7eae8a363b0b51b036d2b0a1669 | /metvae/dataset/biom.py | aa3196a0a38243f360389493a4983f3f36972811 | [] | no_license | mortonjt/metvae | 8a28bbbd72ee79d66992bd31bd82af65b83ea819 | f2f241fdedd2f4c045a088727df1f155b9ce9a20 | refs/heads/main | 2022-12-31T16:24:26.014394 | 2020-10-20T23:38:50 | 2020-10-20T23:38:50 | 305,812,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | import os
import re
import biom
import math
import logging
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
from typing import List
logger = logging.getLogger(__name__)
class BiomDataset(Dataset):
"""Loads a `.biom` file.
Parameters
----------
filename : Path... | [
"jamietmorton@gmail.com"
] | jamietmorton@gmail.com |
6e0ae3e9c859c2ff133011147002083abb1e1ecf | 6dfb7fe44b6c5bfb7feb5a101656e3d3402a621f | /simp_py_examples/course/S1800/t105.py | 14b64f55e86d1ce9d76af5b273b6ada48bd93378 | [
"MIT"
] | permissive | kcfkwok2003/Simp_py | 11d6813fac83ab6309eb8efc22fcd8edde5b19b8 | f75e66da01b45dc8688dda602f8b33d4258f0c31 | refs/heads/master | 2021-05-11T00:36:36.872754 | 2018-12-19T01:41:15 | 2018-12-19T01:41:15 | 118,306,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from simp_py import tft
lcd = tft.tft
lcd.clear()
import time
cnt=10
while cnt >=0:
lcd.text(10,10, 'count: %s ' % cnt)
cnt -=1
time.sleep(1)
| [
"kcfkwok@gmail.com"
] | kcfkwok@gmail.com |
a5da3fc38c2b91b2122f0fd2cb7e5d2e1f764ad9 | 9dc3ae479c1b5c6941681917151fcb0379f9173d | /CanvasFeatureFlag.py | 7a8e37d3b28a61f52fb91ba58b6f1eb53cf1381a | [] | no_license | cthacker-udel/Python-Canvas-API-Wrapper | bf2400b42b644791f45bbda7ed42e2c03a8d97b2 | 0263c591a2b02197529559346558b9be02f592c3 | refs/heads/master | 2023-08-25T12:01:48.417204 | 2021-10-09T10:49:51 | 2021-10-09T10:49:51 | 388,362,237 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from CanvasClient import CanvasClient
class CanvasFeatureFlags(CanvasClient):
def __init__(self):
self.course_id = None
self.account_id = None
self.user_id = None
self.feature_id = None
self.state = None
def generate_queries(self):
body = {}
if self... | [
"cthacker@udel.edu"
] | cthacker@udel.edu |
3d613b080afe7af474f8504d12bf40d8034710ab | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree2_20200615152326.py | 64f23d35b04053fcbead026e6e8a6c7c2d94f816 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Create a node and assign a value to the node
class Node:
def __init__(self,data):
# designate one node as root
self.data = data
# then the two others as child nodes
self.left = None
self.right = None
# A
def printTree(self):
print(self.data)
root = Nod... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
8a8680338eb791a54e04854473d5d7158ca44726 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/pytype/pytype/tools/merge_pyi/test_data/var_annot.comment.py | 8d3907c0a79e522e7a66e1587e8a8ca132b76a38 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fbf532cb3bc3376967d6a665559e5b50273ee6371ee9080fcc2f2d7e3592c2eb
size 156
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
fa634099a27ded13c1952c58524029bb04dfce23 | 41986b7a1b95784f0a6256ae24d5942c70ced4d7 | /prod/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/container/v1alpha1/container_v1alpha1_messages.py | 49c00a4745dfa8067e647185d258367759f8dcfb | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wakabayashi-seiya/terraform_gcp | ed829a5a21d5d19d6663804ee5d5f7f3d23b4ec4 | f757e56779f33c2fabd8a8eed9c51ff0b897a38f | refs/heads/master | 2021-07-07T21:51:35.993317 | 2020-03-11T05:42:57 | 2020-03-11T05:42:57 | 239,411,772 | 0 | 1 | null | 2021-04-30T21:05:04 | 2020-02-10T02:32:04 | Python | UTF-8 | Python | false | false | 175,511 | py | """Generated message classes for container version v1alpha1.
Builds and manages container-based applications, powered by the open source
Kubernetes technology.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py im... | [
"e1517234@soka-u.jp"
] | e1517234@soka-u.jp |
0efae463197cf4b67c08549dc4459158bc1c5d11 | a3c7c11c607800155457ea1f886e2d84eadd9610 | /examples/3_NeuralNetworks/convolutional_network.py | 17aa1d84f64834e38d5523b130d66d3e697d1ee0 | [
"MIT"
] | permissive | 353622088/CapsNet | eddba478143bd092ce27bd49dbb65c63d80824e4 | 04408978dfccd9a6545fc250648fd2f600974a95 | refs/heads/master | 2021-08-28T02:22:56.958370 | 2017-12-11T03:03:52 | 2017-12-11T03:03:52 | 112,295,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | """ Convolutional Neural Network.
Build and train a convolutional neural network with TensorFlow.
This example is using the MNIST database of handwritten digits
(http://yann.lecun.com/exdb/mnist/)
This example is using TensorFlow layers API, see 'convolutional_network_raw'
example for a raw implementation with varia... | [
"chk0125@126.com"
] | chk0125@126.com |
0d35174dbee1362ac380bf5e44b079d867cc538d | 33ccdaa6293162511c4ad74284f69b2bd6451044 | /pyscutils/scvi_utils.py | 047d3b60725774029d64a5f1cef0c6622d33e66e | [
"BSD-3-Clause"
] | permissive | saketkc/pyscutils | f3f9199f0c2e3954dc79369b99f4612acd9cf0c2 | 282a6cc707deaee80ab8ebc5596d25b9e21d6ffb | refs/heads/master | 2023-01-23T02:26:28.599751 | 2020-11-19T00:31:07 | 2020-11-19T00:31:07 | 297,775,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,655 | py | import os
import warnings
warnings.simplefilter("ignore")
import shutil
from typing import Dict, Iterable, List, Tuple
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import proplot
import scanpy as sc
import scvi
import seaborn as sns
import torch
import torch.nn as nn
from adjustText import a... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
88f37dcfa3636c5a91c3546ae84c383167f931e2 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_adobe_cq_social_commons_emailreply_impl_custom_email_client_provider_properties.py | 4d9bc47c42da303a7c969c543512bee62080c310 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 4,134 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.config_node_property_array import ConfigNodePropertyArray # noqa: F401,E501
from openapi... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
ed56edac7dcdd5606246aad436c9d852a3f3f40f | 786f34fc2fea4f764d083b2bb3fd75222dfbbac1 | /jobsPortal/jobsPortal/urls.py | df7cc52aa22d588c3e134c6f19a0b5e4a7a1e052 | [] | no_license | shivendra04/DjangoProjects | 6c4ddc58588c7033afa7a1f5a299e33b1afb3897 | d3a190fd47582190f2ad41d8dc4b30b7841cf679 | refs/heads/master | 2022-12-20T00:01:22.524044 | 2020-09-22T08:05:43 | 2020-09-22T08:05:43 | 297,578,265 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | """jobsPortal URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Class-ba... | [
"52535417+shivendra04@users.noreply.github.com"
] | 52535417+shivendra04@users.noreply.github.com |
83cef915c5831fa22780de720175e98cce80ccc3 | 3a4f14d6638bc0c12c129ed73c6c3543437203df | /src/morphforgeexamples/multicell_simulation/multicell_simulation010.py | 4e246688646bd3831457507719b3611426692cef | [
"BSD-2-Clause"
] | permissive | unidesigner/morphforge | ef04ccb3877f069a0feea72eb1b44c97930dac44 | 510cd86549b2c2fb19296da2d4408ed8091fb962 | refs/heads/master | 2021-01-15T22:34:28.795355 | 2012-04-05T08:55:12 | 2012-04-05T08:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | """[*] Two cells connected with an AMPA synapse"""
| [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
8e4033741ac16a69170a9bfaf0ba7158c207ddc2 | d0cf8b68b68e33900544dc056566511428692b71 | /tests/spoof/gs_feature_elision.py | c2aabeb4d4d1e9b78fab46632764e38d376bfe25 | [
"MIT"
] | permissive | ryanfb/OCRmyPDF | 3f1547c164d3b74b5e6c003bb875e50c292b36a4 | f6a4d8f1f808a1c963c85e498a773ef0439db5ed | refs/heads/master | 2021-01-21T04:25:00.603736 | 2017-08-27T20:53:36 | 2017-08-27T20:53:36 | 101,911,301 | 1 | 0 | null | 2017-08-30T17:44:15 | 2017-08-30T17:44:15 | null | UTF-8 | Python | false | false | 800 | py | #!/usr/bin/env python3
# © 2016 James R. Barlow: github.com/jbarlow83
import sys
import os
from subprocess import check_call
"""Replicate one type of Ghostscript feature elision warning during
PDF/A creation."""
def real_ghostscript(argv):
gs_args = ['gs'] + argv[1:]
os.execvp("gs", gs_args)
return # N... | [
"jim@purplerock.ca"
] | jim@purplerock.ca |
c93c5ccd6c588a6c7f2b024b62acc6badd12163b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HDGiiCmSgJeeu3388_19.py | 09b87a15f58f460743f3b6ef6eaacc88c698ba44 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | """
A fuse melts when a current in an electrical device exceeds the fuse's rating,
breaking the circuit and preventing the heat from building up too much (which
can cause a fire). The ideal fuse to choose is **higher** than the device's
current output, yet **as close as possible** to it as well.
Given a list of _fu... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
448a496d6cf183fe73cf62e90b39b8f5e925a6f8 | cc1d44cf04e5b2b15bb296a434aad4ae4bcfc4be | /python3/qr/zbarlight_test.py | 5944e63c9ba7fb774948ce49dce2fe4de1a416f1 | [] | no_license | ericosur/ericosur-snippet | dda2200546b13fb9b84632d115a0f4ca5e3d5c47 | 0309eeb614612f9a35843e2f45f4080ae03eaa81 | refs/heads/main | 2023-08-08T04:54:05.907435 | 2023-07-25T06:04:01 | 2023-07-25T06:04:01 | 23,057,196 | 2 | 1 | null | 2022-08-31T09:55:19 | 2014-08-18T03:18:52 | Perl | UTF-8 | Python | false | false | 864 | py | #!/usr/bin/env python3
# coding: utf-8
'''
apt-get install libzbar-dev
pip install zbarlight
I do not recomment use this module to decode qrcode.
'''
import sys
from PIL import Image
import common
try:
import zbarlight
except ImportError:
print('need to install zbarligt (python) and libzbar-dev')
sys.exi... | [
"ericosur@gmail.com"
] | ericosur@gmail.com |
ee2c1cb101ed600ef6a59804bd8a60d49f33250a | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/_storage_management_client_async.py | c4106bd382d3bd7e0ec92066dc1895978266f306 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 8,245 | 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"
] | YijunXieMS.noreply@github.com |
77842a6aee9b5ded6310e374e78ec44dfddb45bd | d2cb930ed5df0b1b5f7944e00f6f884bf014803d | /douban/twisted-demo.py | fcf677fc5cecf53c84cde258c7d3baea35271f91 | [] | no_license | sixDegree/python-scrapy-demo | 3cae4298b01edab65449cfe9af56b2fa59f4c07d | b66530e54156be8c7877f1fc4d497fd497b6fdda | refs/heads/master | 2020-06-17T03:16:23.038061 | 2019-07-08T09:25:15 | 2019-07-08T09:25:15 | 195,777,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,184 | py | from twisted.internet import reactor # 事件循环(自动终止条件:所有socket都已移除)
from twisted.internet import defer # defer.Deferred 特殊的socket对象(需手动调用执行,手动移除)
from twisted.internet import task
import treq # 用于发送异步Request,返回Deferred对象
import time
# 延迟机制:
# Deferred 延迟对象,代表的是一个无法立即获取的值
def demo_defer1():
d = defer.Deferred()
... | [
"chenjin.zero@163.com"
] | chenjin.zero@163.com |
c98bf9af78911012a5d580d8fab568dc0dd4d262 | 5aa0e5f32d529c3321c28d37b0a12a8cf69cfea8 | /client/gui_lib/GUIElement.py | 9e1b3576bea5c0ed0b0177d38d061da26e549710 | [] | no_license | sheepsy90/survive | 26495f1ff2d8247fbb9470882f8be9f5272e7f2c | 0eddf637be0eacd34415761b78fc2c9d50bc1528 | refs/heads/master | 2021-01-09T05:55:16.546762 | 2017-02-03T20:15:28 | 2017-02-03T20:15:28 | 80,864,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import pygame
class GUIElement(object):
TEXT = 2
BUTTON = 1
def __init__(self, name, rect):
self.name = name
self.x, self.y, self.width, self.height = rect
self.is_hover = False
self.gui_handler = None
self.focus = False
self.visible = True
self.z_... | [
"robert.kessler@klarna.com"
] | robert.kessler@klarna.com |
d6b7f74c1a8958d8c0d2b441c408b1a559b1d5a0 | 1d21b7bc9205c9c2acd8b8fd8ee75dec93e974d4 | /qa/rpc-tests/p2p-acceptblock.py | db03aff39949a8e3e99ec7b3f0a24f9f5da34678 | [
"MIT"
] | permissive | ZioFabry/LINC2 | 494d12be6034b7f5999960e3f3ed62f154be7ab8 | a2e0e06cf68771a82bb1d4da30e0c914c8589bbe | refs/heads/master | 2020-05-22T18:28:27.590171 | 2019-05-13T19:51:49 | 2019-05-13T19:51:49 | 186,471,965 | 0 | 0 | MIT | 2019-05-13T18:10:28 | 2019-05-13T18:10:27 | null | UTF-8 | Python | false | false | 12,328 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
from... | [
"root@vultr.guest"
] | root@vultr.guest |
8bab37daf96d71aa280e74d681d7515f1291bf03 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/torch/distributions/geometric.py | 1e4b121cd7b4cfcccd548bf86ff634e3392b7ebe | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 2,923 | py | from numbers import Number
import torch
from torch.distributions import constraints
from torch.distributions.distribution import Distribution
from torch.distributions.utils import broadcast_all, probs_to_logits, logits_to_probs, lazy_property, _finfo
from torch.nn.functional import binary_cross_entropy_with_logits
c... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
3387a7b1ab5c092a4be3f73958c4f37a2aec6a5c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02683/s728076842.py | 530d406c4a8a8bf681c980d60d4d26bc44d72770 | [] | 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 | 390 | py | import numpy as np
n,m,x=map(int,input().split())
a=2**64
b=[np.array(list(map(int,input().split())),"i8")for i in range(n)]
for i in range(2**n):
c=bin(i)[2:]
c="0"*(n-len(c))+c
l=np.zeros(m)
q=0
for j in range(n):
if c[j]=="1":
q+=b[j][0]
l+=b[j][1:]
if np.min(l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
59fafc2d56a1ca1d9d3712f7dfda2784a96c910b | 71c331e4b1e00fa3be03b7f711fcb05a793cf2af | /QA-System-master/SpeechToText_test/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/recaptchaenterprise/v1/recaptchaenterprise_v1_client.py | 79510bf7357cd70baba2a7b3f103d23cabd30234 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iofh/QA-System | 568228bb0c0adf9ec23b45cd144d61049e720002 | af4a8f1b5f442ddf4905740ae49ed23d69afb0f6 | refs/heads/master | 2022-11-27T23:04:16.385021 | 2020-08-12T10:11:44 | 2020-08-12T10:11:44 | 286,980,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,467 | py | """Generated client library for recaptchaenterprise version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.recaptchaenterprise.v1 import recaptchaenterprise_v1_messages as messages
class RecaptchaenterpriseV1(base_... | [
"ige-public@hotmail.com"
] | ige-public@hotmail.com |
1b9d741b46cbdeed5b3a3bac485cf1c895171822 | 1d38c549c07f43cc26b7353ef95300b934eeed33 | /setup.py | 9475e9b22ed79c0c28f6d00f6eec5f19bf0269e4 | [] | no_license | pooyagheyami/Adel3 | a6354fbc5aa56a9c38a8b724c8d22bea689380a1 | 29e257e19fd6914de0e60c303871321e457a858b | refs/heads/master | 2022-11-07T21:53:13.958369 | 2020-06-12T13:22:55 | 2020-06-12T13:22:55 | 271,803,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,530 | py |
# ======================================================== #
# File automagically generated by GUI2Exe version 0.5.3
# Copyright: (c) 2007-2012 Andrea Gavana
# ======================================================== #
# Let's start with some default (for me) imports...
from distutils.core import setup
from py2exe.b... | [
"pooyagheyami@gmail.com"
] | pooyagheyami@gmail.com |
6bf0a913bcc4d96db71c5ad8e16ab1214ef394f8 | 51bd1f17a4e9942128b2c0824d397ebb74067e4c | /py_box3/mkm/chemkin/__init__.py | 9f2981ce6f8ee408e5b347aef0ba9261ee2bc6fb | [] | no_license | jonlym/py_box | 3290db8fab2ca97fbd348d02ae4a3319207ccfb0 | ae5187a433ef654d6b96ee98ca7ab742d83d11d9 | refs/heads/master | 2021-01-19T05:42:10.056427 | 2018-12-20T18:44:01 | 2018-12-20T18:44:01 | 87,442,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,054 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 23 14:57:39 2016
@author: Jonathan Lym
"""
from py_box3.constants import T0, convert_unit
from ase.io import read
from py_box3.thermo.thermdat import Thermdat
from py_box3.thermo.thermdats import Thermdats
import numpy as np
class Chemkin(object):
def __init__(self,... | [
"jonathanalym@gmail.com"
] | jonathanalym@gmail.com |
6aaba7d662a21da85d2ba3e6b178f7ecf8d58cd2 | e7b07f173a8bc0d36e046c15df7bbe3d18d49a33 | /parse.py | 9d1894ef9159fb1b51738dbba15b24d5bcb61bc0 | [] | no_license | jcarbaugh/makeitwrk | 82b6e8079b118e8d668b2e6858096a54da33d5a8 | 83801b19c120b4cf728b8342c4933fefe54b54d8 | refs/heads/master | 2020-04-06T04:55:56.785930 | 2011-08-26T19:09:27 | 2011-08-26T19:09:27 | 2,275,931 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | #!/usr/bin/env python
from struct import pack, unpack
import sys
CHUNK_TYPES = {
1: 'TRACK_CHUNK',
2: 'STREAM_CHUNK',
4: 'METER_CHUNK',
5: 'TEMPO_CHUNK',
6: 'SYSEX_CHUNK',
7: 'MEMRGN_CHUNK',
10: 'TIMEBASE_CHUNK',
# variables
3: 'VARS_CHUNK',
26: 'VARS_CHUNK_VAR',
#... | [
"jcarbaugh@gmail.com"
] | jcarbaugh@gmail.com |
602bf5ff185fae424574e01f0d60bafdc9fad426 | 9d032e9864ebda8351e98ee7950c34ce5168b3b6 | /301.py | 10f8978082ea2c4ee7bbac60f631a00e920d68cf | [] | no_license | snpushpi/P_solving | e0daa4809c2a3612ba14d7bff49befa7e0fe252b | 9980f32878a50c6838613d71a8ee02f492c2ce2c | refs/heads/master | 2022-11-30T15:09:47.890519 | 2020-08-16T02:32:49 | 2020-08-16T02:32:49 | 275,273,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | '''
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.
Note: The input string may contain letters other than the parentheses ( and ).
Example 1:
Input: "()())()"
Output: ["()()()", "(())()"]
Example 2:
Input: "(a)())()"
Output: ["(a)()()", "(a(... | [
"55248448+snpushpi@users.noreply.github.com"
] | 55248448+snpushpi@users.noreply.github.com |
0285e95057b21742ade89d9041421eb988eb90fb | d79c152d072edd6631e22f886c8beaafe45aab04 | /nicolock/products/rest_urls.py | d58d9a92a31372b447067ee3dd7508ef1d810182 | [] | no_license | kabroncelli/Nicolock | 764364de8aa146721b2678c14be808a452d7a363 | 4c4343a9117b7eba8cf1daf7241de549b9a1be3b | refs/heads/master | 2020-03-11T11:02:43.074373 | 2018-04-18T17:38:33 | 2018-04-18T17:38:33 | 129,959,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from . import rest_views as views
urlpatterns = [
url(
regex=r'^products/(?P<pk>\d+)/$',
view=views.ProductDetail.as_view(),
name='product-detail'
),
url(
rege... | [
"brennen@lightningkite.com"
] | brennen@lightningkite.com |
d3527c75633bd397f54893cab6262bed50e53879 | d17d65a3ee48b307a46a0b95a05f04131668edbe | /TestSuite/runner.py | 6a172fc2702d50f5b6f0558a2beab1d4f677a319 | [] | no_license | qlcfj001/ui_test | 28fa370a6f912b2ff9a551c681d35a452c57ee02 | 25020af19d84c9c2b1bad02aca89cc881e828bbb | refs/heads/master | 2023-06-15T18:10:02.177702 | 2021-07-15T06:35:10 | 2021-07-15T06:35:10 | 386,012,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from Page.Base import base
from pageobjct.SearcH import Searchpage
from selenium.webdriver.common.by import By
#from TestSuite.Variablelayer.Variable import *
import time
import unittest
leave='成都'
leave_data="2021-07-20"
arrive='北京'
arrive_data='2021-07-30'
aa=Searchpage()
aa.search7(leave='成都',leave_data="2021-07-20"... | [
"you@example.com"
] | you@example.com |
a4d250d72f94be4c124927e70b0c139ad9f85f9d | f8fbf0b0cc919d7d4d7c79532cc5434552d75eb8 | /docs/0.18.1/_static/notebooks/modeling.py | a5bdb272476813045d22aca2f06eddfb47942841 | [] | no_license | adonath/gammapy-docs | ae8571c6aa76d231ac54c93fb3c8968f9f79993b | 32b605d623abdcd2e82c30bcbf07ef30d259783a | refs/heads/main | 2023-02-25T05:24:53.211005 | 2022-10-13T00:09:12 | 2022-10-13T00:11:33 | 550,476,516 | 0 | 0 | null | 2022-10-12T20:45:50 | 2022-10-12T20:45:49 | null | UTF-8 | Python | false | false | 14,807 | py | #!/usr/bin/env python
# coding: utf-8
# # Modeling and fitting
#
#
# ## Prerequisites
#
# - Knowledge of spectral analysis to produce 1D On-Off datasets, [see the following tutorial](spectrum_analysis.ipynb)
# - Reading of pre-computed datasets [see the MWL tutorial](analysis_mwl.ipynb)
# - General knowledge on sta... | [
"axel.donath@mpi-hd.mpg.de"
] | axel.donath@mpi-hd.mpg.de |
06d3b8b17c46a0ae3faf7387123f73c73bea8d78 | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /20200215Python-China/0094. Binary Tree Inorder Traversal.py | 08893a77b8777c433e17edf90f755b8b4b58c958 | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | '''
Given a binary tree, return the inorder traversal of its nodes' values.
Example:
Input: [1,null,2,3]
1
\
2
/
3
Output: [1,3,2]
Follow up: Recursive solution is trivial, could you do it iteratively?
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
552fea4e7e4a404550ffa6236bc4c30f22f33e18 | 3f9f7c73bb2f9da31c586d2b64e2cc94f35239dc | /django-polls/polls/tests/test_models.py | 94b7c24fbee98fcaf5c51ee69dd5ad670600b45b | [
"MIT"
] | permissive | jsterling23/DPY_Refresher | eb57e37d4bbad14143800719668b990b459fb56d | 4646b7ebd79ba853f5ccc172183f41257cc12b60 | refs/heads/master | 2020-03-23T19:11:32.626731 | 2018-07-29T01:17:49 | 2018-07-29T01:17:49 | 141,959,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from django.test import TestCase
import datetime
from django.utils import timezone
from ..models import Question
from django.urls import reverse
class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
# method should return false for future dated questions.
... | [
"jerrypadilla23@gmail.com"
] | jerrypadilla23@gmail.com |
e5fefc6b8e0ec0d00e467d6808038193d92e8aa7 | 683b73e0c95c755a08e019529aed3ff1a8eb30f8 | /machina/apps/forum_moderation/__init__.py | f1911a14dbd6195e896b647fa949fa08a0c6abce | [
"BSD-3-Clause"
] | permissive | DrJackilD/django-machina | b3a7be9da22afd457162e0f5a147a7ed5802ade4 | 76858921f2cd247f3c1faf4dc0d9a85ea99be3e1 | refs/heads/master | 2020-12-26T08:19:09.838794 | 2016-03-11T03:55:25 | 2016-03-11T03:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # -*- coding: utf-8 -*-
# Standard library imports
# Third party imports
# Local application / specific library imports
default_app_config = 'machina.apps.forum_moderation.registry_config.ModerationRegistryConfig'
| [
"morgan.aubert@zoho.com"
] | morgan.aubert@zoho.com |
4ab4fec920df659a95a12694df60fd03dfca6791 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/swig/Examples/test-suite/python/abstract_virtual_runme.py | 2a8411578017fc06324e210386ddd29a61e19eb8 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fce41bedc93abe3933ce0f2546b68f02a08faf0778e211b1ba7b30a7f3909ed8
size 50
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
c7ebc6f32e1358ed20f23dc25b3df7d6a66daf88 | 4aeaca4c58858125e844aad1cd988182201b5120 | /crane/files/timeHistoryParser.py | be957dd91e6668776b4c071a376eeffa2a646763 | [] | no_license | tkarna/crane | f18442a010af0909b7f5af9358cf9080ca1dd1e4 | b8313d0373d8206685d81aadccc425e432c6a010 | refs/heads/master | 2020-05-21T23:39:07.707777 | 2017-11-16T15:58:14 | 2017-11-16T15:58:14 | 53,163,424 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | """
Read SELFE time history (.th) files to a data container.
Jesse Lopez - 2016-04-15
"""
import datetime
import argparse
import numpy as np
from crane.data import timeArray
from crane.data import dataContainer
class thParser(object):
def __init__(self, filename, start_time):
self.filename = filename... | [
"tuomas.karna@gmail.com"
] | tuomas.karna@gmail.com |
075c8636339cb3b08aa5c4c3815994408a005e38 | 853d7bd91f4ba254fba0ff28f2e0a3eb2b74fa48 | /errata_tool/release.py | b5c1211cb9a8c86556c758725ad9297bc11a9fbb | [
"MIT"
] | permissive | smunilla/errata-tool | b07614daeceda4a1bfc18ce59679be0a93bb084f | 91bdfb17f15308b46298210fbb2fe5af786276bc | refs/heads/master | 2020-04-10T00:18:12.471123 | 2018-11-19T17:33:02 | 2018-11-28T15:40:08 | 160,681,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,800 | py | from __future__ import print_function
import sys
from datetime import date
from errata_tool import ErrataConnector
from errata_tool.product import Product
from errata_tool.product_version import ProductVersion
from errata_tool.user import User
class NoReleaseFoundError(Exception):
pass
class MultipleReleasesFou... | [
"kdreyer@redhat.com"
] | kdreyer@redhat.com |
b9470a6364fcb617b3b2bbeb23ef97dce22221d7 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /optin_manager/src/python/openflow/common/utils/formfields.py | adec249dc39015d89a6d299354718c9fd0f8e896 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | '''
Created on Jul 17, 2010
@author: jnaous
'''
from django import forms
from expedient.common.utils import validators
class MACAddressField(forms.CharField):
"""
A MAC Address form field.
"""
default_error_messages = {
'invalid': u'Enter a valid MAC address in "xx:xx:xx:xx:xx:xx" format.... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
22214c4cf02d9139ebf68302682f68b55190d51e | 3a7adfdcf7a5048045c8e95a93369a1796cfd532 | /conftest.py | 377ddc7028f2964dd5cf5621a68dc74e7967e513 | [
"BSD-3-Clause"
] | permissive | theGreenJedi/nixpy | e06025077d5d224a7d051532ebfbd48845339c58 | 40b5ecdaa9b074c7bf73137d1a94cb84fcbae5be | refs/heads/master | 2022-02-01T15:14:22.133157 | 2019-06-03T09:10:57 | 2019-06-03T09:10:57 | 197,896,640 | 1 | 0 | null | 2019-07-20T07:37:03 | 2019-07-20T07:37:02 | null | UTF-8 | Python | false | false | 808 | py | import pytest
import tempfile
from nixio.test.xcompat.compile import maketests
BINDIR = tempfile.mkdtemp(prefix="nixpy-tests-")
def pytest_addoption(parser):
parser.addoption("--nix-compat", action="store_true", default=False,
help=("Run nix compatibility tests "
... | [
"achilleas.k@gmail.com"
] | achilleas.k@gmail.com |
6a337ebcad790f7341970c4a3e71d1686f6229c6 | 333b405c1775475ddfa9ed3f4fa05c06b4c2e3f2 | /cv2/cvbackup/mycv_0.510464.py | c1b80110eb76fc4413a5cbbc9977af4cd86de47d | [] | no_license | daxiongshu/network | b77d5bb73dd353537f7687e61855d982cbd34464 | 842a778d310410ae39e58925257a9e9960ef560a | refs/heads/master | 2020-04-15T16:11:31.101188 | 2016-02-16T01:32:21 | 2016-02-16T01:32:21 | 51,798,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | from xgb_classifier import xgb_classifier
import pandas as pd
import numpy as np
import pickle
from sklearn.ensemble import AdaBoostClassifier,ExtraTreesClassifier,RandomForestRegressor
from sklearn.preprocessing import LabelEncoder
from sklearn.metrics import roc_auc_score, f1_score, log_loss, make_scorer
from sklearn... | [
"aixueer4ever@gmail.com"
] | aixueer4ever@gmail.com |
d39dbb85f0ea8a843010ed2ff417e14430ec8b04 | ae381913c23385f004b82161624097645ba8c4c8 | /Huaxian_eemd/projects/plot_decompositions.py | 8dbd45db6556f91e1ce3f8e7adbb1107c6385152 | [
"MIT"
] | permissive | zjy8006/MonthlyRunoffForecastByAutoReg | aa37910fdc66276d0df9d30af6885209d4a4ebfc | 661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2 | refs/heads/master | 2020-12-12T05:25:48.768993 | 2020-08-20T07:21:12 | 2020-08-20T07:21:12 | 259,588,564 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import pandas as pd
import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from tools.plot_utils import plot_decompositions
signal = pd.read_csv(root_path+'/Huaxian_eemd/data/EEMD_TRAIN.csv')
plot_decompositions(signal)
| [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
613939625c016e2ed72cd4b6885baa6b413b8c7e | 5946112229fe1d9a04b7536f076a656438fcd05b | /dev_env/lib/python3.8/site-packages/pygments/styles/rrt.py | 2b1908794c8703c74074b3c356e1d1022988809b | [] | no_license | Gear-Droid/openCV_study_project | 3b117967eb8a28bb0c90088e1556fbc1d306a98b | 28c9a494680c4a280f87dd0cc87675dfb2262176 | refs/heads/main | 2023-05-14T14:27:42.284265 | 2021-06-05T00:16:09 | 2021-06-05T00:16:09 | 307,807,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
"""
pygments.styles.rrt
~~~~~~~~~~~~~~~~~~~
pygments "rrt" theme, based on Zap and Emacs defaults.
:copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.toke... | [
"Vladi003@yandex.ru"
] | Vladi003@yandex.ru |
4af4c6c67883138cb403bc55c20a57a17f3abf94 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch40_2020_03_25_11_34_14_842288.py | 7b4cd03ca35996a28aee9136ab7f8fc3ef414f7a | [] | 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 | 113 | py | def soma_valores(s):
i=0
y[i]=s[i]
while(i<=len(s)):
y[i+1]+=s[i+1]
i+=1
return y | [
"you@example.com"
] | you@example.com |
1400cc7e36dc1608eda6cf944b667fb37a1ea0b3 | b19dfd6a3ba5d107d110fb936de2e91d1d92bb99 | /venv/lib/python3.7/site-packages/Satchmo-0.9.3-py3.7.egg/shipping/modules/ups/config.py | 5c8e90a363eefc21999a9a0da571173a720a91b8 | [] | no_license | siddhant3030/djangoecommerce | d8f5b21f29d17d2979b073fd9389badafc993b5c | b067cb1155c778fece4634d0a98631a0646dacff | refs/heads/master | 2022-12-13T15:28:39.229377 | 2019-09-28T10:30:02 | 2019-09-28T10:30:02 | 207,240,716 | 2 | 1 | null | 2022-12-11T01:34:25 | 2019-09-09T06:35:36 | Python | UTF-8 | Python | false | false | 3,913 | py | from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from livesettings.values import StringValue,ConfigurationGroup,BooleanValue,DecimalValue,MultipleStringValue
from livesettings.functions import config_register_list,config_get
SHIP_MODULES = config_get('SHIPPING', 'MODULES')
SHIP_MODUL... | [
"ssiddhant3030@gmail.com"
] | ssiddhant3030@gmail.com |
4da4aa68a0cd83d1a57b20435439e06bad9395a2 | fc6f709f916fcd201938157990c77fa9202eefa7 | /model/optimizer.py | 4a9ee5afce8f27d52a2e33ea778b94ad326ffc29 | [
"MIT"
] | permissive | chenchy/StyleSpeech | 441ffd6d71ac0269d205ad66c9536fe00cb5267c | e0e4ad25681f9ecc2a01ba1b87cbe0c59472b792 | refs/heads/main | 2023-05-27T21:39:04.790584 | 2021-06-13T10:32:03 | 2021-06-13T11:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import torch
import numpy as np
class ScheduledOptimMain:
""" A simple wrapper class for learning rate scheduling """
def __init__(self, model, train_config, model_config, current_step):
self._optimizer = torch.optim.Adam(
model.parameters(),
betas=train_config["op... | [
"keonlee9420@gmail.com"
] | keonlee9420@gmail.com |
2512edb155a767f6b7f93f15c00b755dc45ef923 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/toon/DistributedToon.py | d9f2c0b0c6e00991934003b88c5ad0845ba6deeb | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 139,568 | py | from subprocess import Popen
import sys
from panda3d.core import *
from libotp import *
from toontown.toonbase.ToontownGlobals import *
from direct.actor import Actor
from direct.distributed.ClockDelta import *
from direct.interval.IntervalGlobal import *
from otp.otpbase import OTPGlobals
from toontown.toonbase import... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
eb388016f65246c4c31124d34d29159a438dc564 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1927.py | 4cf0fa0be8441db15c31d26e93685b0b19eb0256 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,514 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844903865737822216", "article_info": {"article_id": "6844903865737822216", "user_id": "1380642335503256", "category_id": "6809637767543259144", "tag_ids": [6809640392770715656, 6809640407484334093, 6809640614175604744, 6809640394175971342], "visible_level": ... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
5b8aced9977d9f12adf0d4b703c3e25b1e55c899 | e16911f1fae7bf90f405e055e0f90731ae8c8042 | /etc/st2packgen/files/actions/lib/k8sbase.py | 89df63259b4fbf47136ae2a8cdf29077dfb9461e | [] | no_license | bobhenkel/stackstorm-kubernetes | 87136448434b1a6c821cfeb757f88833ca8ecf02 | 32b8538597bc5290a18cefadbf98fea7f8bb38bd | refs/heads/master | 2021-04-25T22:06:36.392650 | 2017-11-02T04:30:02 | 2017-11-02T04:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from __future__ import absolute_import
from pyswagger.core import BaseClient
from requests import Session, Request
import six
import json
import base64
class Client(BaseClient):
# declare supported schemes here
__schemes__ = set(['http', 'https'])
def __init__(self, config=None, auth=None, send_opt=No... | [
"andy@impulsed.net"
] | andy@impulsed.net |
c06bcf0c5bf8278caf07c0496ba1c817c184ba8d | 3d2e5d1092acccfb73c07d68b6beeffc44b3f776 | /imitation/src/environments/simulation/pybullet_env.py | 10ef9e12e56c2333e0813282dd5bdfe598ed1611 | [] | no_license | MatthijsBiondina/WorldModels | f6cbcfe5349da7119329ef10831810d1b85c9d02 | ab468f1aa978e3aa4e05174db24922085d1e33b1 | refs/heads/master | 2022-12-22T11:54:46.040828 | 2020-09-23T11:41:48 | 2020-09-23T11:41:48 | 248,212,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import gym
import pybulletgym
import numpy as np
from src.environments.general.environment_template import Environment
from src.utils import config as cfg
_ = pybulletgym
PREP_VECTORS = {'InvertedPendulumSwingupPyBulletEnv-v0': np.array([1, 0.2, 1, 1, 0.067], dtype=np.float16)}
def preprocess_observation(obs):
"... | [
"biondina.matthijs@gmail.com"
] | biondina.matthijs@gmail.com |
c8a58abf83afbf6366b65b7dc1ee8f6a5d6ef831 | 24ffbd64e1892ab633ca785e969ccef43f17a9f2 | /picomotor/devices/h2_yr.py | efa1098cd7f197e7875e4fee3720cf40bfa6fb58 | [] | no_license | yesrgang/labrad_tools.srq | e29fcbfc4f5228955de1faddab6a66df52ccdd03 | 0dfbf2609d2f7a7e499167decedb0d9ea3677978 | refs/heads/master | 2021-06-18T19:59:21.448762 | 2021-02-04T22:03:49 | 2021-02-04T22:03:49 | 155,478,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from picomotor.devices.nf8742.device import NF8742
class Motor(NF8742):
socket_address = ('192.168.1.20', 23)
controller_axis = 4
Device = Motor
| [
"yesrgang@gmail.com"
] | yesrgang@gmail.com |
cf26d52e9926a5a057a1fb70657bda084f53ef49 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /egoi-api/models/form.py | 4e4d4d5517af495318cbbc38c7b97704ef21786d | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,120 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
092db6afd0b046dcf1485a91be052fd57d5c502e | a177931c2914cc9820c578add9d57aa6c75084ce | /tips/customHTML/test_genTABHTML.py | cfd92464403354ae73e44a3df5bc666a81d2eb93 | [] | no_license | zhangshoug/others | 45d94f96701362cb077eb994c27295247a6fb712 | 3a8a8366f2598a5e88b44d18d346e81f4eef659e | refs/heads/master | 2022-12-18T22:37:13.505543 | 2020-09-28T08:54:28 | 2020-09-28T08:54:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: test_genTABHTML
Description : tab css style test
Author : pchaos
date: 2019/9/9
-------------------------------------------------
Change Activity:
2019/9/9:
--------------------... | [
"drifthua@gmail.com"
] | drifthua@gmail.com |
6b7ec47b7dfaed08aeefb1d1ec11acaff71addf7 | 447e9ec821dc7505cc9b73fb7abeb220fe2b3a86 | /rvpy/logistic.py | 2d66e011e93fb9f8e4dc0e7ab086276b4445ba04 | [
"MIT"
] | permissive | timbook/rvpy | ecd574f91ed50fd47b6ead8517954f01e33c03a7 | 301fd61df894d4b300176e287bf9e725378c38eb | refs/heads/master | 2020-03-19T04:01:49.283213 | 2018-12-18T19:21:07 | 2018-12-18T19:21:07 | 135,788,512 | 1 | 0 | MIT | 2018-12-18T19:21:08 | 2018-06-02T04:55:39 | Python | UTF-8 | Python | false | false | 3,722 | py | import numpy as np
from math import log, exp
from scipy.stats import logistic, fisk
from . import distribution
class Logistic(distribution.Distribution):
"""
Logistic Distribution using the following parameterization:
f(x | loc, scale) = exp(-z) / (s * (1 + exp(-z))^2)
where z = (x - loc) / scale... | [
"timothykbook@gmail.com"
] | timothykbook@gmail.com |
df016bf13355458c6083ae6c2005a1cebd3ceecb | 7b6313d1c4e0e8a5bf34fc8ac163ad446bc69354 | /datastructure and algorithms/[hackerrank]The Hurdle Race.py | 5bcab2ab43d0415da1bf267cba2ff15bee29380b | [] | no_license | menuka-maharjan/competitive_programming | c6032ae3ddcbc974e0e62744989a2aefa30864b2 | 22d0cea0f96d8bd6dc4d81b146ba20ea627022dd | refs/heads/master | 2023-05-01T05:23:09.641733 | 2021-05-23T16:22:21 | 2021-05-23T16:22:21 | 332,250,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | nk=input().split()
n=int(nk[0])
k=int(nk[1])
l=list(map(int,input().rstrip().split()))
x=max(l)
if((x-k)>=0):
print(x-k)
else:
print(0)
| [
"maharjanmenuka8@gmail.com"
] | maharjanmenuka8@gmail.com |
85596fb3ff870c316d4d7b3553f515d5d673f9b9 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/desktop/kde/autostart/actions.py | 5bd7b2827ebfb6bdfc4093743e2fb7ed2daacc96 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import kde
def setup():
kde.configure()
def build():
kde.make()
def install():
kde.install() | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
677993bbfd1033c8a7be8606b387754616bdceda | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/networkx/algorithms/isomorphism/tests/test_tree_isomorphism.py | 3082365a4bb61f2d8c99fcddb56c72e2af1d0aeb | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,443 | py | import networkx as nx
import random
import time
from networkx.classes.function import is_directed
from networkx.algorithms.isomorphism.tree_isomorphism import (
rooted_tree_isomorphism,
tree_isomorphism,
)
# have this work for graph
# given two trees (either the directed or undirected)
# transfo... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
a3c03bb30d7ab9d2444696500ece8c13bfd13edd | 2fabea234735beefc980b77b213fcb0dfb394980 | /tensorflow_probability/python/math/sparse_test.py | aca018215524f5574b3df657c781c4d51d85533d | [
"Apache-2.0"
] | permissive | tarrou/probability | 0eee452b525a6e6b3c7c98d467468e47f07e861b | d4d80a1c04ad0b3e98758ebc3f7f82887274384d | refs/heads/master | 2020-08-08T11:16:42.441268 | 2019-12-06T17:35:17 | 2019-12-06T17:35:17 | 213,819,828 | 0 | 0 | Apache-2.0 | 2019-10-09T04:20:19 | 2019-10-09T04:20:19 | null | UTF-8 | Python | false | false | 6,549 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f37f65c77fc2cbe630313fe9779572d9243628eb | 96aa2367affe0dff353e1aaac8713ded087c5f68 | /utils/spiderPlot_SA.py | 335ed09082b623795670281ed3731ae77c81e7d3 | [
"Apache-2.0"
] | permissive | NMTHydro/Recharge | 0fcca9a72b631d6c3834c62b84dfb096da6cb210 | bbc1a05add92064acffeffb19f04e370b99a7918 | refs/heads/develop | 2020-05-21T17:39:37.702622 | 2020-04-08T17:10:40 | 2020-04-08T17:10:40 | 60,631,952 | 8 | 1 | null | 2016-10-26T17:01:21 | 2016-06-07T17:13:30 | Python | UTF-8 | Python | false | false | 5,333 | py | # ===============================================================================
# Copyright 2016 dgketchum
#
# 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/licens... | [
"dgketchum@gmail.com"
] | dgketchum@gmail.com |
516e00001cc17c4e8ab48673154d9f69351bbfe1 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_run_request.py | 2f2ed7a707c8b543f090be7f386215b7b75e10ce | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,824 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
1b5849466318aa075976375e01fa22fddd690edc | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/operations/_network_interface_load_balancers_operations.py | e42bd6eccf89e6b11dbf117b8ae8f3bcc1bcf2ca | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 5,600 | 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"
] | YijunXieMS.noreply@github.com |
9070f9ba6596fb792ae2d17601a5a9c0581820c3 | fd8405ac0a5d062907c153f2f2e3569571366539 | /irbisbooks/core/urls.py | 17e44ae4a60722f69bb0d5da5d79b7b2b8dec070 | [] | no_license | ri-gilfanov/irbis-books | aab471833035ae51088bccfb0806b863aaba3468 | 0b2a32013ab7f0c0d167e0864a7cb858e8e75add | refs/heads/master | 2021-01-25T13:19:07.818513 | 2018-03-02T09:47:06 | 2018-03-02T09:47:06 | 121,642,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.book_search, name='book_search'),
path('book_download/', views.book_download, name='book_download'),
] | [
"ri.gilfanov@yandex.ru"
] | ri.gilfanov@yandex.ru |
b103132e0bee93fd37295128ccea5a1e416e708e | 3cdb4faf34d8375d6aee08bcc523adadcb0c46e2 | /web/env/lib/python3.6/site-packages/django/db/models/sql/compiler.py | 27b8cc343b29121d30713bacbde5e9dfc595aef5 | [
"MIT",
"GPL-3.0-only"
] | permissive | rizwansoaib/face-attendence | bc185d4de627ce5adab1cda7da466cb7a5fddcbe | 59300441b52d32f3ecb5095085ef9d448aef63af | refs/heads/master | 2020-04-25T23:47:47.303642 | 2019-09-12T14:26:17 | 2019-09-12T14:26:17 | 173,157,284 | 45 | 12 | MIT | 2020-02-11T23:47:55 | 2019-02-28T17:33:14 | Python | UTF-8 | Python | false | false | 67,037 | py | import collections
import functools
import re
import warnings
from itertools import chain
from django.core.exceptions import EmptyResultSet, FieldError
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import OrderBy, Random, RawSQL, Ref
from django.db.models.query_utils import QueryW... | [
"rizwansoaib@gmail.com"
] | rizwansoaib@gmail.com |
42d0987e6e1898a0e5f60a297e7db42a013fab6d | bcf332d2f6ef6970cfaa480400a112ecee3f16b8 | /stage07-artist2/s1level42.py | c5f34c2ae0814db387a0d43027c8ee7cd714f9b1 | [
"Unlicense"
] | permissive | skilstak/code-dot-org-python | e1907d29f3727060e5064a5eefd68a0f9f4f5c70 | ba127124386ecfdc20bd84592b3c271f8205d748 | refs/heads/master | 2020-04-04T19:34:23.531210 | 2015-07-10T12:39:19 | 2015-07-10T12:39:19 | 26,862,410 | 7 | 4 | null | 2014-11-21T20:28:20 | 2014-11-19T13:24:30 | Python | UTF-8 | Python | false | false | 465 | py | """Stage 7: Puzzle 8 of 11
Here's the solution to the previous puzzle. Can you add just 2 more
lines of code to complete the drawing?
"""
import sys
sys.path.append('..')
import codestudio
artist = codestudio.load('s1level42')
artist.speed = 'faster'
a = artist
for count2 in range(10):
artist.color = artist.ran... | [
"rob@skilstak.com"
] | rob@skilstak.com |
950b22a78a928e4427896cec1ba0d7c4cac4e011 | 6a4bfff7fcd78a0057401652c7f80d9a95a67267 | /painless_redirects/tests/test_models.py | 2f5b98013047caa595a23ef12657abfbbafe3877 | [
"MIT"
] | permissive | benzkji/django-painless-redirects | 25987ff984830be7e45b4d0af9a9cd0046beabe7 | 153721486b214ddd5365b6ac5769129562254dd5 | refs/heads/master | 2023-05-24T14:23:53.783400 | 2020-06-22T10:35:29 | 2020-06-22T10:35:29 | 22,944,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | """Tests for the models of the painless_redirects app."""
from django.test import TestCase
from . import factories
class RedirectModelTestCase(TestCase):
def test_model(self):
obj = factories.RedirectFactory()
self.assertTrue(obj.pk)
def test_redirect_value(self):
obj = factories.Re... | [
"bnzk@bnzk.ch"
] | bnzk@bnzk.ch |
9f99434b0414a1ef779501b64fddd6cde711ca08 | 93022749a35320a0c5d6dad4db476b1e1795e318 | /issm/giaivins.py | 8b3e6e1be28e45ec640be9f57bc01bb251bc69f2 | [
"BSD-3-Clause"
] | permissive | pf4d/issm_python | 78cd88e9ef525bc74e040c1484aaf02e46c97a5b | 6bf36016cb0c55aee9bf3f7cf59694cc5ce77091 | refs/heads/master | 2022-01-17T16:20:20.257966 | 2019-07-10T17:46:31 | 2019-07-10T17:46:31 | 105,887,661 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | from issm.fielddisplay import fielddisplay
from issm.project3d import project3d
from issm.checkfield import checkfield
from issm.WriteData import WriteData
class giaivins(object):
"""
GIA class definition
Usage:
giaivins=giaivins();
"""
def __init__(self): # {{{
self.mantle_viscosity = ... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
fa4c4bebb84eeea7871eaf044e4ec0be599f769c | 3d9506b859cdbf38a21549cd3d64b69ecde7674e | /GoogleCodeJam/2020KickstartRoundB/BusRoute.py | b7cceed2c849cd5b217cc8829a02467223137486 | [] | no_license | bradykim7/Algorithm | 1ae4c6e4e6d72687b660ddf0768a9174cc8d7b8c | 053210a1205f4e62b367f85b65dcb60fcad74008 | refs/heads/master | 2022-06-25T04:46:55.265058 | 2022-06-17T08:08:52 | 2022-06-17T08:08:52 | 233,500,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys;
if __name__=='__main__':
t = int(input());
for i in range(t):
nd = input().split();
n=int(nd[0]); d=int(nd[1]);
ans =d;
x= list(map(int,input().rstrip().split()));
for j in x:
ans -= d % j
print('Case #%d: %d'%(... | [
"bradykim777@gmail.com"
] | bradykim777@gmail.com |
9d55ea5cb4addbc1cc6d2fe4e49086c6505e4551 | a75f9cf4f03b01f8e7cc12d311434beca1b233e5 | /vstools/writers.py | fbfa81a2230924a07bc92e36d66720df61542f97 | [
"Apache-2.0"
] | permissive | libyal/vstools | 3169dbf62be79eb309f9d23a06e068cb3bd1ed81 | f251133b39131735576baad2077bc47821e9b99b | refs/heads/main | 2023-04-13T06:54:29.549207 | 2023-04-10T10:41:06 | 2023-04-10T10:41:06 | 95,857,124 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75,608 | py | # -*- coding: utf-8 -*-
"""Project and solution file writer classes."""
import abc
import re
from vstools import definitions
class FileWriter(object):
"""File writer."""
def __init__(self, encoding='utf-8', end_of_line='\r\n'):
"""Initializes a file writer.
Args:
encoding (str): encoding.
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
5b98146395ad29c6511925bbc47a3402f1251fa2 | 1e168ced1a4bdb53967021e082b98027aea9d38a | /1.알고리즘정리/정렬/삽입정렬.py | 6e0f94afc79ed7d33b51a468d14c6182e85e3d68 | [] | no_license | vvspearlvvs/CodingTest | 3ebf921308570ac11eb87e6660048ccfcaf90ce4 | fc61b71d955f73ef8710f792d008bc671614ef7a | refs/heads/main | 2023-07-13T15:57:11.312519 | 2021-08-25T02:15:28 | 2021-08-25T02:15:28 | 354,232,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #삽입정렬
arr = [7, 5, 9, 0, 3, 1, 6, 2, 4, 8]
for i in range(len(arr)):
for j in range(i,0,-1):
if arr[j]<arr[j-1]: #한칸씩 왼쪽으로 이동
arr[j],arr[j-1]=arr[j-1],arr[j]
else:
break
print(arr)
print("최종")
print(arr)
| [
"gg66477@gmail.com"
] | gg66477@gmail.com |
8b0bcb3eb0687fab864e824994d9b70939870f5d | 5bcee9248d0bdebb134c61b4d0a3f3113337a569 | /lesson_0902/01_lists.py | 816ff09874e0073dca2b2f3d1f0fd9d842bcbb7b | [] | no_license | 100ballovby/6V_Lesson | c2edbc652ea2ebec07eeed60060c16ae4b4792e4 | 4b6dfda323a628558bd63bd5569960004fc335dd | refs/heads/master | 2023-05-08T07:49:14.569854 | 2021-05-25T06:40:53 | 2021-05-25T06:40:53 | 330,888,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | '''
Список - упорядоченная структура данных, заключенная в квадратные
скобочки. Элементы разделены между собой запятой.
Чтобы создать список, необходимо придумать ему имя, поставить знак принадлежности (=)
и открыть квадратные скобки.
список = [1, 26, 15, 5.6, 'привет, Андрей']
'''
cars = ['audi', 'mercedes', 'toyota'... | [
"greatraksin@icloud.com"
] | greatraksin@icloud.com |
b6683e488f292d0548f63346115c9b555ac19d7a | b7c1e5d140c3c41e86f206047145f7f296fed53a | /Textbook/Chapter 5/pandasSeriesVsDataFrame.py | e8417f1cc0a8b2c5317aff757d4ee250887236df | [
"MIT"
] | permissive | jlcatonjr/Learn-Python-for-Stats-and-Econ | c2fbe29b324e70ceb832beafdd42d0accb37d9f9 | 194671592937562e08c92e0ef5f4793d4911701c | refs/heads/master | 2023-05-11T17:17:05.934290 | 2023-05-10T20:12:10 | 2023-05-10T20:12:10 | 148,912,065 | 22 | 21 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | #pandasSeriesVsDataFrame.py
import numpy as np
import pandas as pd
dataDict = {"range":np.arange(10)}
dataSeries = pd.Series(dataDict)
print(dataSeries)
print(dataSeries["range"])
dataDF=pd.DataFrame(dataDict)
print(dataDF)
print(dataDF["range"])
print(dataDF["range"][5:9])
#print(dataDF.loc[5:9]) | [
"jlcatonjr@gmail.com"
] | jlcatonjr@gmail.com |
7baa26a26fc7ed616e1f4cfa37d283d39e72ebf3 | bbdd7f44884844cd0f7332d63945852dc2b53083 | /mypy_drf_plugin/transformers/fields.py | f4f8a10b2f9cc833f0b0e6cedc3fe13340f2fdf9 | [
"MIT"
] | permissive | private-forks/djangorestframework-stubs | e258e1dfc2af80fdf93322338ea3ce5452087e2d | 18427718c913f3d23ef7a4636c8205df42999cf2 | refs/heads/master | 2020-04-25T09:11:04.067894 | 2019-02-24T22:25:03 | 2019-02-24T22:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | from mypy.nodes import TypeInfo, Var
from mypy.plugin import FunctionContext
from mypy.types import AnyType, Instance, Type, TypeOfAny
from mypy_django_plugin import helpers
def get_private_descriptor_type(type_info: TypeInfo, private_field_name: str, is_nullable: bool) -> Type:
if not type_info.has_readable_memb... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
e02299e147fabe086c8864cff41d59b0059baa48 | 4da0c8906c9cd671e3a4bee3a6ee801a353e3d9a | /Water/Water/urls.py | 8ce00454b8099894f86046e7d4be2dfd650f7cf9 | [] | no_license | avpakh/GVK | 2a5a699caa8a986a3fd0dadbe2160fc9da5bf193 | ac8b8d8ad5cd5ef8485e98cd532a29cd420e0cae | refs/heads/master | 2020-06-13T10:35:36.663668 | 2017-01-06T09:01:42 | 2017-01-06T09:01:42 | 75,392,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | """Water URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"aliaksandr.pakhomau@gmail.com"
] | aliaksandr.pakhomau@gmail.com |
64acd726fc80f2bd6451b0e36ae4cde1f625e944 | 8c2de4da068ba3ed3ce1adf0a113877385b7783c | /hyperion/torch/trainers/xvector_trainer.py | 190b2a30b1c2f28d38d0c6999040ce4ae6a76f9f | [
"Apache-2.0"
] | permissive | hyperion-ml/hyperion | a024c718c4552ba3a03aae2c2ca1b8674eaebc76 | c4c9eee0acab1ba572843373245da12d00dfffaa | refs/heads/master | 2023-08-28T22:28:37.624139 | 2022-03-25T16:28:08 | 2022-03-25T16:28:08 | 175,275,679 | 55 | 20 | Apache-2.0 | 2023-09-13T15:35:46 | 2019-03-12T18:40:19 | Python | UTF-8 | Python | false | false | 5,015 | py | """
Copyright 2019 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
import os
from collections import OrderedDict as ODict
import logging
import torch
import torch.nn as nn
from ..utils import MetricAcc
from .torch_trainer import TorchTrainer
class X... | [
"jesus.antonio.villalba@gmail.com"
] | jesus.antonio.villalba@gmail.com |
f352ec7987f6f9addb4cc8a333cc19463e602697 | 5332fef91e044555e605bb37cbef7c4afeaaadb0 | /hy-data-analysis-with-python-2020/part02-e06_file_count/test/test_file_count.py | c7d3f00f44cd8f760c403784983ad6ec08d26a70 | [] | no_license | nopomi/hy-data-analysis-python-2019 | f3baa96bbe9b6ee7f0b3e6f6b8b0f3adfc3b6cc8 | 464685cb377cfdeee890a008fbfbd9ed6e3bcfd0 | refs/heads/master | 2021-07-10T16:16:56.592448 | 2020-08-16T18:27:38 | 2020-08-16T18:27:38 | 185,044,621 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | #!/usr/bin/env python3
import sys
import unittest
from unittest.mock import patch
from itertools import repeat
from tmc import points
from tmc.utils import load, get_out
module_name="src.file_count"
file_count = load(module_name, "file_count")
main = load(module_name, "main")
class FileCount(unittest.TestCase):
... | [
"miska.noponen@gmail.com"
] | miska.noponen@gmail.com |
0340fad6844580f9a0ff3797769971efcc2f644a | 52a4d869976a97498bdf56a8d0ff92cac138a136 | /Bioinformatics Textbook Track/Chapter 1/rosalind_ba1d.py | 4e6d4b0953bb2d76fa147c0368a4f8c3ded360aa | [] | no_license | aakibinesar/Rosalind | d726369a787d848cc378976b886189978a60a3a5 | 375bbdbfb16bf11b2f980701bbd0ba74a1605cdb | refs/heads/master | 2022-08-18T09:36:00.941080 | 2020-05-24T18:49:38 | 2020-05-24T18:49:38 | 264,722,651 | 0 | 0 | null | 2020-05-17T17:51:03 | 2020-05-17T17:40:59 | null | UTF-8 | Python | false | false | 747 | py | def occurrences(genome, sub):
"""
:param genome: genome for processing
:param sub: pattern for which we find indexes of occurnces
:return: list of indexes
"""
start = 0
indexes = []
while True:
start = genome.find(sub, start)
if start > 0:
indexes.append(start... | [
"noreply@github.com"
] | aakibinesar.noreply@github.com |
f1c755702c61d3a4c3f5e88391da6a3096250b2f | 5399dd4580ea3f528753bc8b52a981743d62f8bb | /keras/keras36_hist3_wine.py | 6844fef8e2c4a5ad39b62167985de24abdf45314 | [] | no_license | iwillbeaprogramer/Study | 3ac7c118ffe3981d78b4ad263cb62432eae13970 | 3bfe571da5bbfc545b994e5878e217f9306bde14 | refs/heads/main | 2023-05-07T16:31:05.564973 | 2021-05-27T14:50:00 | 2021-05-27T14:50:00 | 324,044,441 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from sklearn.datasets import load_wine
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler,OneHotEncoder
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.callbacks import EarlyStopping
import matplotlib.pyplot ... | [
"wisixicidi@gmail.com"
] | wisixicidi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.