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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d03891b6a172e60f351328357b1bf374a6f93ce9 | 7db2df5f69e18fa585f891d32bbfd880970f6593 | /mechanoia-scraping/workers/url_fetch_head.py | 0a170673c090593d0ebd1f76362288068546bfd9 | [] | no_license | mcptr/mechanoia | 0a56e0f3b0af134d2728cdc258b78c9b42906a3f | 59a6648c65b5af81de91b4c0329245cc152f02e5 | refs/heads/master | 2020-03-08T05:44:30.395382 | 2018-04-07T05:31:09 | 2018-04-07T05:31:09 | 127,937,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | #!/usr/bin/env python
import sys
import scraping.scraper
redis = scraping.get_redis_connection()
scraper = scraping.scraper.URLFetchHEAD(
[
scraping.config.rabbit_url,
scraping.mq.ScrapingExchange,
scraping.mq.ScrapingExchange.queues.url_filtered,
],
[
scraping.config.rabb... | [
"dev@metaceptron.com"
] | dev@metaceptron.com |
35aea87771f661c030048bdf972c6d619a463500 | a16b0c6431cf763830a86b77abced4ccc9325804 | /tensorflow/python/keras/distribute/minimize_loss_test.py | 3b20fb9e226c9db161abd85eca120eaacac17fb1 | [
"Apache-2.0"
] | permissive | foss-for-synopsys-dwc-arc-processors/tensorflow | 9812f077051973dafc66868e5ffaff05b42aa9f4 | 30d46c800e467e05e58415cf789c61d4582d2c0c | refs/heads/master | 2021-08-06T20:32:46.890206 | 2021-02-17T19:00:09 | 2021-02-17T19:00:09 | 206,022,279 | 2 | 1 | Apache-2.0 | 2020-06-09T12:18:11 | 2019-09-03T08:01:41 | C++ | UTF-8 | Python | false | false | 23,362 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
6f1d7a3b079f282fc695a117c319c181fc6e7e3f | aa99c064c1214dc0e88384055e715f0db89ca541 | /migrations/versions/0f38d7a36f21_.py | a1b76d203994d2328b81ed6733262c5fbb8c6496 | [
"MIT"
] | permissive | sartography/cr-connect-workflow | 2624abfe91136e47c0c92482e28bf405752e7cb4 | 8755bc8b291f763e7f0630582c2816dc03d3321a | refs/heads/dev | 2023-06-22T23:01:52.004441 | 2023-06-07T19:29:41 | 2023-06-07T19:29:41 | 221,730,216 | 6 | 4 | MIT | 2023-05-02T22:15:45 | 2019-11-14T15:34:05 | Python | UTF-8 | Python | false | false | 1,700 | py | """empty message
Revision ID: 0f38d7a36f21
Revises: 476f8a4933ba
Create Date: 2020-04-21 15:42:46.430272
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0f38d7a36f21'
down_revision = '476f8a4933ba'
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"daniel.h.funk@gmail.com"
] | daniel.h.funk@gmail.com |
d652a49c48b557ae95086ab4d78f5bb5b3f07655 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/devel/lib/python2.7/dist-packages/vector_map_msgs/msg/_RoadPoleArray.py | 17490d67364c8fc44cdc709abd46a890b8e50bf9 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | /home/myr907/autoware.ai/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_RoadPoleArray.py | [
"907097904@qq.com"
] | 907097904@qq.com |
a6ccee9d5f580cafd910069afe26ecdb02a1bffa | 94e06376dc265c7bf1a2e51acb9714d02b21503a | /爬虫项目/58house/venv/Scripts/easy_install-script.py | e0e88efd2c3e9cc214a9db1029c4283d9ef46a2b | [] | no_license | zhangquanliang/python | 4b2db32bed4e4746c8c49c309563f456dc41c6be | f45ef96e385b1cd6c5dfb53bf81042d953a9ec46 | refs/heads/master | 2021-04-26T23:30:12.217397 | 2019-03-20T06:18:14 | 2019-03-20T06:18:14 | 124,005,916 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!D:\Flask\58house\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[... | [
"1007228376@qq.com"
] | 1007228376@qq.com |
2538aa987da4789473eda95d672af48ebdeab279 | a4544bdfb0415368793639b5818259265150507b | /paper2remarkable/providers/html.py | 3e32539c7b59758b31c2fdc36526d4629d927c38 | [
"MIT"
] | permissive | piatikantrop/paper2remarkable | 87ab57d519e2b5106261bb19c1b6ad29cb2023a7 | 7f6ed4358125fe66f796acc8aea8a5031dd2965c | refs/heads/master | 2023-01-31T22:47:00.323277 | 2020-12-08T20:41:13 | 2020-12-08T20:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,949 | py | # -*- coding: utf-8 -*-
"""Provider for HTML documents
This provider is a little bit special, in that it isn't simply pulling an
academic paper from a site, but instead aims to pull a HTML article.
Author: G.J.J. van den Burg
License: See LICENSE file.
Copyright: 2020, G.J.J. van den Burg
"""
import html2text
imp... | [
"gertjanvandenburg@gmail.com"
] | gertjanvandenburg@gmail.com |
6f8e1a6332c954429e5d5af6bc475e3bbef5793a | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/diagnostic/migrations/0153_merge_20190211_0207.py | a42d9b956d13cbcd5df0f92942992cb347430a5b | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Generated by Django 2.0.5 on 2019-02-10 20:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('diagnostic', '0152_auto_20190206_1602'),
('diagnostic', '0152_auto_20190207_1307'),
]
operations = [
]
| [
"shashanks@policybazaar.com"
] | shashanks@policybazaar.com |
5a15949a13e717de364c150bb934988aecb0c0cd | 8a8b0267c4db8847a898ac73ccb6e78e1744e24c | /SQL/MySQL/curs2/magazin.py | 03a35c1eb21feadf91c035919af5eff77fc1f3a4 | [] | no_license | entirelymagic/Link_Academy | 41ba890df6793924d186ea94dc8d13b0636c6679 | 844c39ff1281fae8406cd1a0dc06afd357f0bef3 | refs/heads/master | 2023-06-07T03:17:00.527924 | 2021-07-03T09:59:25 | 2021-07-03T09:59:25 | 314,755,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import config
# creating database_cursor to perform SQL operation
# make connection to database
con = config.connect()
# open cursor
db_cursor = con.cursor(dictionary=True)
# executing cursor with execute method and pass SQL query
db_cursor.execute("CREATE DATABASE IF NOT EXISTS magazin2")
# get list of all databases
... | [
"entirelymagic@gmail.com"
] | entirelymagic@gmail.com |
cde5d74e3387b258ffec4ab944329f5e3d7311dd | b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1 | /vmraid/core/doctype/communication/test_communication.py | 8f9926dac8e50b40a6f5b3398ded5d6f0e43c41d | [
"MIT"
] | permissive | vmraid/vmraid | a52868c57b1999a8d648441eb9cd05815204345d | 3c2e2a952003ba7ea2cf13673b9e79e127f4166e | refs/heads/main | 2022-07-29T18:59:28.585133 | 2022-04-22T08:02:52 | 2022-04-22T08:02:52 | 372,473,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,343 | py | # Copyright (c) 2015, VMRaid and Contributors
# License: MIT. See LICENSE
import unittest
from urllib.parse import quote
import vmraid
from vmraid.core.doctype.communication.communication import get_emails
from vmraid.email.doctype.email_queue.email_queue import EmailQueue
test_records = vmraid.get_test_records("Comm... | [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
87cc2a37979266641047d315d735e5c4064776bd | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /know_first_government.py | 57778bc3f1e1a7b2be3f7b1859e8667efa0e594d | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#! /usr/bin/env python
def other_day(str_arg):
able_part_and_week(str_arg)
print('world')
def able_part_and_week(str_arg):
print(str_arg)
if __name__ == '__main__':
other_day('look_problem_under_case')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
2a03e5e4193deb2e283b28d1e8cf59d98a59dcb1 | 5a281cb78335e06c631181720546f6876005d4e5 | /karbor-1.3.0/karbor/services/protection/checkpoint.py | 003f9af8786563642dd7bc660c523a46aa818a15 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 16,596 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
22b46f60518c1e13d079fb0df61265a8634a7630 | c80d12c35b40b98702de632e89413db64171bca0 | /tests/integration_test/test_owlvey_gateway.py | 509add3801ca0ecb8a077c541859363cfb4683a4 | [
"Apache-2.0"
] | permissive | owlvey/owlvey_falcon_monkeys | 03e5d4179ac330bc76cd7bb39c6839c816cc99a5 | 3f1e1b6cc1748dcc68e1fec5ec7a8316a8480797 | refs/heads/master | 2020-09-10T07:59:28.630364 | 2019-11-15T03:16:45 | 2019-11-15T03:16:45 | 221,693,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py |
import unittest
from app.gateways.OwlveyGateway import OwlveyGateway
class TestOwlveyGateway(unittest.TestCase):
def setUp(self):
self.owlvey = OwlveyGateway()
def test_generate_token(self):
self.owlvey.generate_token()
self.assertTrue(self.owlvey.token)
def test_open_connecti... | [
"gcvalderrama@hotmail.com"
] | gcvalderrama@hotmail.com |
20aef52cb9645e90c860c63ded6816c9ed22c806 | 0add7f986090cbfbcad00eff1c1347b8bb371e5c | /tensorflow_probability/python/distributions/generalized_pareto_test.py | 70b71fc0a96b22f00217ca789cdbecd8e8f160d2 | [
"Apache-2.0"
] | permissive | gabloa/probability | 27582cf4f74bf3207f760031cbc006ea2f463fcf | ae45f6447d0dc87a4eb41885276de7321e5df416 | refs/heads/master | 2020-11-28T13:00:22.134493 | 2019-12-23T19:20:46 | 2019-12-23T19:21:35 | 229,821,989 | 0 | 0 | Apache-2.0 | 2019-12-23T20:58:17 | 2019-12-23T20:58:16 | null | UTF-8 | Python | false | false | 12,928 | 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 |
9a2dcc59673e90f337c68457d7341a10bc329950 | c75a63372df0d83faf767d32e2a2b88a1e9f8b06 | /Intro_CodeSignal/06_Rains of Reason/25_arrayReplace.py | 9a82ba012b8b8b6c5334d3d8d4fb6ca64db997e3 | [] | no_license | anatulea/codesignal_challenges | 0d740e33ab87b922fb8a1c5557b1395dd948ec11 | bf35f6808c7479ec54d8242d09486213a8f44f65 | refs/heads/master | 2023-04-01T13:26:51.139522 | 2021-03-27T03:28:55 | 2021-03-27T03:28:55 | 305,017,241 | 1 | 0 | null | 2021-03-27T03:28:55 | 2020-10-18T03:51:10 | Python | UTF-8 | Python | false | false | 629 | py | '''
Given an array of integers, replace all the occurrences of elemToReplace with substitutionElem.
Example
For inputArray = [1, 2, 1], elemToReplace = 1, and substitutionElem = 3, the output should be
arrayReplace(inputArray, elemToReplace, substitutionElem) = [3, 2, 3].
'''
def arrayReplace(inputArray, elemToReplac... | [
"anatulea14@gmail.com"
] | anatulea14@gmail.com |
42c4237259f2fa8ce5a5d6617aa3299ed4dc99e3 | 6e10140ec08e7581f31154a5d569cfc7fd682e04 | /ptsemseg/models/MV1_3.py | a9c83fc88e44cf6ff6538f37bb0a472ca5ea1f2d | [] | no_license | Spritea/pytorch-semseg-dvs-two-titan | 578d6f8518e7d50e03d7c8ac3695df2d892de255 | c481ac7b907bed38e3e08248552f8e69d8327c6d | refs/heads/master | 2021-10-25T08:33:28.658918 | 2019-04-03T02:16:30 | 2019-04-03T02:16:30 | 178,819,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,585 | py | import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import torch
from torch.nn import functional as F
__all__ = ['MV1_ResNet', 'MV1_ResNet18', 'MV1_ResNet34', 'MV1_ResNet50', 'MV1_ResNet101',
'MV1_ResNet152']
models_urls = {
'101_voc': 'https://cloudstor.aarnet.edu.au/plus/s/Owmttk9bdPROwc6... | [
"461158649@qq.com"
] | 461158649@qq.com |
d905b1144fdcd87dac2da8f18664ae2586cd54a3 | e3cbeb7d465732605529442a0e3390874ba15b06 | /gate_api/models/futures_initial_order.py | 33a980a45a0430d6cbe301cca04e08766fc5b317 | [] | no_license | zzprice/gateapi-python | 97d152b9761b946d3941e7b00fbd2138c9bb3547 | 42ffacad340a2a27583abe48b1f68cf043bbdd3d | refs/heads/master | 2023-08-30T00:53:44.729087 | 2021-11-01T06:27:57 | 2021-11-01T06:27:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,945 | py | # coding: utf-8
"""
Gate API v4
Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
Contact: support@mail.gate.io
Gen... | [
"revilwang@gmail.com"
] | revilwang@gmail.com |
763bebff7b7dd38c3d35ea7620dd9a3513ea0f6b | 48a1156c4226a22be2cf271149be263adf9e5aef | /setup.py | a496693166a694ef48a1f61be1f5921534db37f0 | [
"MIT"
] | permissive | yacoma/auth-boilerplate | 945edb1174ab6009780a50a51ec2389bc12845a3 | 26c86f3b12edc7074a2fd78322e6005fdb1029cb | refs/heads/master | 2021-01-12T01:18:33.584773 | 2020-05-07T15:00:01 | 2020-05-07T15:00:01 | 78,362,662 | 6 | 1 | null | 2017-01-30T20:46:05 | 2017-01-08T18:36:46 | JavaScript | UTF-8 | Python | false | false | 1,448 | py | from setuptools import setup, find_packages
name = "auth-boilerplate"
description = "Authentication boilerplate based on Morepath and Overmind"
version = "2.0.0-dev0"
setup(
name=name,
version=version,
description=description,
author="Henri Hulski",
author_email="henri@yacoma.it",
license="MI... | [
"henri.hulski@gazeta.pl"
] | henri.hulski@gazeta.pl |
aef4025934e0512cb88366283c36845acfd58b87 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/plugins/action/fetch.py | fbaf9926c54991d19270421de7581bd3fc908485 | [
"MIT"
] | 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 | 10,628 | py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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) an... | [
"sifang@cisco.com"
] | sifang@cisco.com |
f4eb21ae521ed04a66951686638f1a537d7241ba | 3aaaa1d0a54f520f33a2938d445abe9dee83a273 | /basics.py | a17c365e7c96d0620b5562118fafccbadacfbfc3 | [] | no_license | fapers/python-beginners-example | 0fe54ec411a285df91f288b65caef88caf8b9eab | 0c881b6b5cb10e5c92e09bc3e12cb207918cf719 | refs/heads/main | 2023-07-16T10:26:36.531778 | 2021-08-17T00:46:17 | 2021-08-17T00:46:17 | 396,909,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | address = ['Flat Floor Street', '18', 'New York']
pins = {'Mike':1234, 'Joe':1111, 'Jack':2222}
print(address[0], address[1])
pin = int(input("Entre com seu pin: "))
def find_in_file(f):
myfile = open('.\sample.txt')
fruits = myfile.read()
myfile.close()
fruits = fruits.splitlines()
print(fruits)... | [
"fpsmoc@yahoo.com.br"
] | fpsmoc@yahoo.com.br |
f091f26211672c459b608d142e605af502804b23 | 360ae1188ad79e71ccc72da0b9ae709bda678f91 | /ryu/tests/unit/packet/test_mpls.py | e3f9bccf54427f9dbe5b4b49ba094b19de80f7cf | [
"Apache-2.0"
] | permissive | faucetsdn/ryu | 47b3523e7ccb381f3bdf2877a3f9f01cb1876054 | d6cda4f427ff8de82b94c58aa826824a106014c2 | refs/heads/master | 2023-09-05T06:37:21.991029 | 2022-06-09T23:09:40 | 2022-06-09T23:09:40 | 2,945,007 | 385 | 215 | Apache-2.0 | 2022-11-13T10:50:25 | 2011-12-09T03:43:50 | Python | UTF-8 | Python | false | false | 2,574 | py | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
6f536782c7728edb682cb84b939a649478710f73 | 772242d1354ae3864cfd82c77ce08893a2a3837c | /2-parcafilosu/aa_parcafilosu/oem_urls.py | 45354507b767011d26e420c1c8337ed3821daa9a | [] | no_license | codenotespy/SCRAPY_PROJECTS | 7f1a1839a4461c76b838fb2c3cd70f6b945ee98f | c3c965fca86758510b2980d40929c0da989d4f68 | refs/heads/main | 2023-06-11T08:29:03.505349 | 2021-06-29T03:18:39 | 2021-06-29T03:18:39 | 381,224,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | import psycopg2
import os
# To go previous folder to import variables.py
import sys
sys.path.append('../')
from variables import *
connection = psycopg2.connect(
host="localhost",
user="postgres",
database="SCRAPY_DB",
password="yolo12",
)
cursor = connection.cursor()
if os.path.exists("../aa_par... | [
"aydinugur8@hotmail.com"
] | aydinugur8@hotmail.com |
59ced503483a1efef6cc276dee492a67cde2d38d | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/MadGraphModels/python/models/iDM/__init__.py | 68a02d6533706460cb388fb8a31e3027c3619413 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
import write_param_card
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_lorentz = lorentz.all_lorentz
all_parameters = parameters.all_para... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b7d5cc60ac2beb08eb012085ed24c7f24067f18b | c6798f99a91222bf2e2826eb210fdf2365b130f5 | /xsdata/formats/dataclass/serializers/__init__.py | 147de103482434f8d811d6d0e638e38991eca4c8 | [
"MIT"
] | permissive | nimish/xsdata | a0b8a52ee4e91f80cd1f4421fef6287c8ad5cf11 | 7afe2781b66982428cc1731f53c065086acd35c1 | refs/heads/master | 2022-06-25T07:38:01.447762 | 2020-05-02T17:20:35 | 2020-05-02T17:20:35 | 261,937,663 | 0 | 0 | MIT | 2020-05-07T03:13:09 | 2020-05-07T03:13:09 | null | UTF-8 | Python | false | false | 351 | py | from xsdata.formats.dataclass.serializers.json import DictFactory
from xsdata.formats.dataclass.serializers.json import DictSerializer
from xsdata.formats.dataclass.serializers.json import JsonSerializer
from xsdata.formats.dataclass.serializers.xml import XmlSerializer
__all__ = ["JsonSerializer", "DictSerializer", "... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
409e614d609833a941610f5b07082b88f345d582 | 43bcbd6af4b632b4b6f18c30454456e12ed69fb0 | /analytic_account_automation_inventory/models/stock_picking.py | de9d4437308096f0cf95332021f36cf13ee69b27 | [] | no_license | sm2x/mas | 02ab6bf41924bf1987231f3c6e57a1958e7b7684 | 8dab55afc9277bd9d82479cb17222bba3034a7f0 | refs/heads/main | 2023-05-13T20:13:46.594682 | 2021-06-03T11:28:30 | 2021-06-03T11:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class Picking(models.Model):
_inherit = 'stock.picking'
analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account',help='analytic_account_automation_inventory')
analytic_tag_ids = fields.Many2many('account.anal... | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
f67a551525c5083a7f180ba409d89f524c7fadbd | 53a83642c01a8828e3d7bd0b18e33c3b694c2b84 | /Python/GeeksforGeeks/occurence-of-an-integer-in-a-linked-list.py | abad1e1f3e792b2e608d0ef702e9c72db207885e | [] | no_license | anantkaushik/Competitive_Programming | 1dcd60a28b5b951c23024d6090942be081ad249f | 6dba38fd7aa4e71b5196d01d64e81f9336d08b13 | refs/heads/master | 2022-03-06T15:36:23.797340 | 2022-02-21T12:00:37 | 2022-02-21T12:00:37 | 82,700,948 | 271 | 95 | null | 2020-10-27T17:34:39 | 2017-02-21T16:18:16 | Python | UTF-8 | Python | false | false | 2,377 | py | """
Problem Link: https://practice.geeksforgeeks.org/problems/occurence-of-an-integer-in-a-linked-list/1
Given a singly linked list and a key, count number of occurrences of given key in linked list.
For example, if given linked list is 1->2->1->2->1->3->1 and given key is 1, then output should be 4.
Input:
You have... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
a108107ccf326727f3b6fd6bbf2d69737946ca48 | 3caa6e43e3da18858a719c51dc9c63eb11014035 | /build/LawnMowerRobot/hrp/am_planning/catkin_generated/pkg.installspace.context.pc.py | bbbed0fe1cc1775c0f199f1c0cc4ad7463c7313e | [] | no_license | rh-chen/catkin_ws | 2ab5050340e7e62f818681d1c86b222f2b867ce9 | 102203a9c5b870862d5c4fcf465f3bf88247a007 | refs/heads/master | 2020-06-03T10:28:31.749952 | 2016-06-02T21:43:10 | 2016-06-02T21:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/agneev/catkin_ws/install/include".split(';') if "/home/agneev/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;nav_msgs;roscpp;std_msgs;sensor_msgs;am_driver;tf;me... | [
"agneev@kth.se"
] | agneev@kth.se |
b144f526dd2bb56ee7c829e5ed87a048b8293a16 | 7ecd851e8d10b84a96fa8b3f1ccd4dc9458da7a3 | /dotfiles/local/bin/dotfiles-force-copy | 1b03d839c6f8f954a3153815c471d0942d6a8f25 | [
"Apache-2.0"
] | permissive | PQYPLZXHGF/boss-docker-base-gtk3-deps | c45908c1b26139466d16ab683b31fd94bc21efa5 | 71a511d7eb52fa07055af7d15d073af2d64c1f32 | refs/heads/master | 2021-01-22T21:22:10.791741 | 2017-08-13T01:29:30 | 2017-08-13T01:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | #!/usr/bin/env python3
#
# Copyright © 2016 Samuel Holland <samuel@sholland.org>
# See LICENSE in the project directory for license terms.
# vim: expandtab:sts=4:sw=4:ts=8:tw=100
#
# source: https://github.com/smaeul/dotfiles/blob/master/local/bin/dotfiles
import os, subprocess
dotfiles = os.getenv('XDG_CONFIG_HOME'... | [
"malcolm@adobe.com"
] | malcolm@adobe.com | |
fd4331eee8c5be73194531a20713cdab768ee1f2 | be58aafa586b7f5c7b12971d48298062e5f15d04 | /venv/bin/pip3 | 522a500d9748cd44e4c1ffe584e3386b433a4472 | [] | no_license | jimy1824/EdTechWorxweb | ac6c6339a3754982891760233b0dd4e5bcc84973 | da8430b25c000e79075bfc003d48abc7dea6baf7 | refs/heads/master | 2020-04-06T20:45:06.928696 | 2018-11-15T22:49:47 | 2018-11-15T22:49:47 | 157,782,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | #!/home/jamshaid/PycharmProjects/EdTechWorx/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"jamshaid1824@gmail.com"
] | jamshaid1824@gmail.com | |
9d7610591e4b424568d1e8b441a7ffe730e74a46 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-2364.py | 24f9f9e03a9d1d72281decdc594d40fe729bb0ce | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,001 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2b81bf4a1323e59de71837f0b4651644905e5f59 | 1f98469f52d0fdcf5dafc974b520724ffa180ba8 | /d3rlpy/algos/torch/plas_impl.py | 15a9d65093a999cf080b7b7f316959ef8f1be48e | [
"MIT"
] | permissive | rainwangphy/d3rlpy | a35cf6b0a8a8fa6926721c109436f2957bba9ed6 | f7c7e8e77282500e3d5602dc220b3efdcb901425 | refs/heads/master | 2023-08-23T05:45:44.069809 | 2021-11-03T14:52:48 | 2021-11-03T14:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,106 | py | import copy
from typing import Optional, Sequence
import numpy as np
import torch
from torch.optim import Optimizer
from ...gpu import Device
from ...models.builders import (
create_conditional_vae,
create_deterministic_policy,
create_deterministic_residual_policy,
)
from ...models.encoders import Encoder... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
e14dc1cad19abf26058161d877234b118e3d84ab | 4fe1dc7170d2d44e2c9988c71b08f66d469ee4b8 | /Unit8/ej8.13.py | 004a5d78b803060f9bd9226659705ca1156b8bae | [] | no_license | ftorresi/PythonLearning | 53c0689a6f3e7e219a6314a673a318b25cda82d1 | f2aeb5f81d9090a5a5aa69a8d1203688e9f01adf | refs/heads/master | 2023-01-12T00:40:05.806774 | 2020-11-13T14:33:08 | 2020-11-13T14:33:08 | 267,460,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,129 | py | ###Exercise 8.12 such that the computer and the player can
###use a different number of dice. Let the computer choose a random number of dice
###between 2 and 20. I guess the number of dice is changed on each game, not on each throw, but IDK
import random
import sys
class Dice(object):
def __init__(self, n=1):
... | [
"noreply@github.com"
] | ftorresi.noreply@github.com |
1e681055ccbe06e026ec14f28b949bed0816c065 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02622/s921620202.py | 3cd85645b2550f042212be262500662d079aa28b | [] | 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 | 211 | py | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(1000000)
from collections import deque
S =input()
T =input()
l = len(S)
count = 0
for i in range(l):
if S[i] != T[i]:
count += 1
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
96a20a572c81102e2b8d189d75e6019ce0cb2732 | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM14/CDPSM/Unbalanced/IEC61968/AssetModels/DistributionWindingTest.py | a00d558e2e9957c144683540a5c48ae305f13acf | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 3,018 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
980073f711ca119a21522f6c709d431723850a46 | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Science for Everyone Track/09-Data Manipulation with Pandas/02- Aggregating Data/02-Summarizing dates.py | 28e63371e6fab9cece10eb804eea50bd1adda8cc | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | '''
Summarizing dates
Summary statistics can also be calculated on date columns which have values with the data type datetime64. Some summary statistics — like mean — don't make a ton of sense on dates, but others are super helpful, for example minimum and maximum, which allow you to see what time range your data cov... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
2b9bc05a67c0126595e8ff836ba58f516a47cf0a | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/374_guess_number_higher_or_lower.py | 5ecf8d9e7f75c15184d4ee71aacf5213f2838a72 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # The guess API is already defined for you.
# @param num, your guess
# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
# def guess(num):
class Solution(object):
def guessNumber(self, n):
"""Binary search.
Running time: O(nlogn)
"""
l, r = 0, n
... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
c60025a49de36869e34cf6933d294a5d5302c3f8 | f0a4ba1f1f941092e68e4b1ef9cff0d3852199ef | /파이썬챌린지/5.for루프/41.이름숫자입력조건부.py | df1aa45fc850f9d25674a91e8813d15afa55c10b | [] | no_license | lsb530/Algorithm-Python | d41ddd3ca7675f6a69d322a4646d75801f0022b2 | a48c6df50567c9943b5d7218f874a5c0a85fcc6d | refs/heads/master | 2023-06-18T04:36:09.221769 | 2021-06-28T16:49:35 | 2021-06-28T16:49:35 | 367,775,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | name = input("Enter your name: ")
num = int(input("Enter how many repeat do you want?: "))
if num < 10:
for i in range(num):
print(name)
else:
print("Too high")
| [
"lsb530@naver.com"
] | lsb530@naver.com |
e902444b43ba6a0612e3369d7380e3214e9142ba | e3d7ed30dd190a4cf78cc413b6d9ec394393c96a | /app/tests/conftest.py | a3439b4d0d5643bf048bc946357b15bf54adbee6 | [
"Apache-2.0"
] | permissive | hunanuniversity/grand-challenge.org | 339c387954532c638a5417afc60f97537875c093 | 30a000a8e016f007a750510c798a7c688d53a124 | refs/heads/master | 2020-04-18T18:40:15.081553 | 2019-01-16T07:33:20 | 2019-01-16T07:33:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,201 | py | import os
import zipfile
from collections import namedtuple
from pathlib import Path
from subprocess import call
from typing import NamedTuple
import docker
import pytest
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.exceptions import ObjectDoesNotExist
from grandchall... | [
"jamesmeakin@gmail.com"
] | jamesmeakin@gmail.com |
0fe3a3e42f2216623c7f1b7097f1ab7dc63660bc | 1de80df969bd7677f5681934a212b74d0a0d5832 | /ZigZagConversion.py | b936269eda9a84fb35cdc36f49055321249f527d | [] | no_license | Rediet8abere/leetcode | dac340643f584a5fdf59b67d15ae1dabfbaa8e19 | f887396af8cd3ac288f77491b2f443c582033b17 | refs/heads/master | 2021-04-23T09:02:56.015987 | 2020-05-26T03:33:40 | 2020-05-26T03:33:40 | 249,915,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | def convert(s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
# if len(s) == 1 or numRows <= 1:
# return s
#
# interval = 2*numRows - 2
# zigZag = []
# index = 0
# for i in range(numRows):
# st... | [
"redietaberegesesse@gmail.com"
] | redietaberegesesse@gmail.com |
f5bd41ba817142093e5ce2344ae8ff9639ed35f9 | 29c3595a4e1f8de9382650610aee5a13e2a135f6 | /venv/Lib/site-packages/django/contrib/postgres/forms/ranges.py | 5a20975eb4e1606115043b10e7053ef913f280c6 | [
"MIT"
] | permissive | zoelesv/Smathchat | 1515fa56fbb0ad47e1859f6bf931b772446ea261 | 5cee0a8c4180a3108538b4e4ce945a18726595a6 | refs/heads/main | 2023-08-04T14:47:21.185149 | 2023-08-02T15:53:20 | 2023-08-02T15:53:20 | 364,627,392 | 9 | 1 | MIT | 2023-08-02T15:53:21 | 2021-05-05T15:42:47 | Python | UTF-8 | Python | false | false | 3,344 | py | from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
from django import forms
from django.core import exceptions
from django.forms.widgets import HiddenInput, MultiWidget
from django.utils.translation import gettext_lazy as _
__all__ = [
'BaseRangeField', 'IntegerRangeField', 'DecimalRangeField',
... | [
"ZoomLee@users.noreply.github.com"
] | ZoomLee@users.noreply.github.com |
562f3ce75fc4799b449906ab2d534937751c37ac | e378276081fe9355e64794e4f808ea6ff75e8813 | /fisher/app/web/auth.py | 5c36edff8bbb26c06b32fe14f44dafe85f372208 | [] | no_license | Heartfilia/GIT_HOME | 0a7203d7c5e1d98d610505b4bbdecdb25213b638 | 7d1073c2579e7bb500343ee4c40586c6d15e9bf8 | refs/heads/master | 2022-12-14T00:07:21.723341 | 2020-04-02T09:12:14 | 2020-04-02T09:12:14 | 214,625,140 | 0 | 0 | null | 2022-12-08T03:57:23 | 2019-10-12T10:09:40 | CSS | UTF-8 | Python | false | false | 2,545 | py | from flask import render_template, request, redirect, url_for, flash
from . import web
from ..froms.auth import RegisterForm, LoginForm, EmailForm, ResetPasswordForm
from ..models.base import db
from ..models.user import User
from flask_login import login_user, logout_user
@web.route('/register', methods=['GET', 'PO... | [
"lodge6410@vip.qq.com"
] | lodge6410@vip.qq.com |
7bb82b7eff6cc2e95182528f28eea4a2eedba2c3 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/Summer20UL18/TTWH_TuneCP5_13TeV-madgraph-pythia8_cff.py | 629f18afe85403b395fe23372a2bb26b4c3f3ba6 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 2,297 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer20UL... | [
"hiltbran@umn.edu"
] | hiltbran@umn.edu |
0b52e9f3bf870123b0e38cb661e84498b024df8c | 853dad68ab11aafdaa33afa684a8eecd9b28f41b | /PythonAppiumProject/PythonTraining/AppiumDay2/nativeapptest.py | a7d660562860e0ec76bff9ad4460d768f98b9667 | [] | no_license | samir711/webdriverpythonappium | 47ac24e3f50bdeaa5f96796e45d1ddb0090da2bc | 2dd65e44b51d33e351f352f6e5c9528e5a771b19 | refs/heads/master | 2020-04-05T21:06:28.226938 | 2018-12-06T05:41:56 | 2018-12-06T05:41:56 | 157,207,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import unittest
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from appium import webdriver
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '8.0'
desired_caps['browserName']='Chrome'
# desired_cap... | [
"samirdoc1@gmail.com"
] | samirdoc1@gmail.com |
2d468da361533f40cd25571d77b7d3633c0e53ff | 85d90c0bd78b8bb37f8dfd2e8a93b5f43a34e100 | /scripts/make_movies/movie_batch_courtship.py | 7c64a866eb0dbba07707aa723ccef40ae8387176 | [] | no_license | tsizemo2/flymad | 61a85b1bb9eda9692e1ba0ca2545d7cf4da7f562 | 2c484df1244549da52f49ffedc894d435c809d34 | refs/heads/master | 2022-04-27T18:29:46.953644 | 2015-04-09T09:54:08 | 2015-04-09T09:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | #!/usr/bin/env python
import time
import os.path
import glob
import tempfile
import shutil
import pprint
import itertools
import argparse
import sh
import roslib; roslib.load_manifest('flymad')
import flymad.filename_regexes as filename_regexes
import courtship_compositor
def make_movie(wide,zoom,bag,imagepath,file... | [
"john.stowers@gmail.com"
] | john.stowers@gmail.com |
023a301d40c709a9aaee3c5169da68329eb46da9 | 08410b85471ef2346b1ac19fe2b42b0c7c74c559 | /HaroldHelper.py | ec4bc7a925c36bd4950a72bfb90a7b42f1e9a7de | [] | no_license | tingard/FCtrlA | a9441cd18cbe793867992db9bfed093dc9710b55 | 0063be78672663c3d27dd6ca1092195d8e7717a8 | refs/heads/master | 2021-01-11T04:10:56.556658 | 2017-12-07T11:05:18 | 2017-12-07T11:05:18 | 71,234,918 | 1 | 1 | null | 2018-01-01T14:50:14 | 2016-10-18T10:03:32 | Python | UTF-8 | Python | false | false | 3,177 | py | # HaroldHelper.py
"""
This file contains a series of helper functions which can be used to trigger and configure FatController.py runs
"""
import os
import sys
import json
import subprocess
import time
loc = os.path.dirname(os.path.abspath(__file__))
template_job = """#$ -S /bin/bash
#$ -cwd
#$ -j y
... | [
"tklingard@gmail.com"
] | tklingard@gmail.com |
1cb93770c84290c2d83649df9468220fe27ed61d | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/autograph/operators/exceptions.py | 95c35130c6071216019fb129a3eb87dcb9152660 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ad9c43c60aa7fcf4618cf2b586e2dde327487c3be53da211bd3aca891f0eb93c
size 3309
| [
"github@cuba12345"
] | github@cuba12345 |
0c56de505cb32f150804279e6425a94050b5a8bf | cf4a5ee7230a6b8f7340432d5584bf6f5f0832ee | /pyramid_autodoc/utils.py | ad7fddd08e971ac80d7950320bbab621ed50a0e9 | [
"MIT"
] | permissive | KaboomFox/pyramid_autodoc | 6b785b1db85baf013c928acde4592f587c31f39a | 7a20fdade9378bc047e8ce8095e1213d3ca39e08 | refs/heads/master | 2021-01-17T22:08:47.254001 | 2015-02-14T01:03:00 | 2015-02-14T01:03:00 | 34,022,800 | 1 | 0 | null | 2015-04-15T22:58:59 | 2015-04-15T22:58:58 | null | UTF-8 | Python | false | false | 6,365 | py | from pyramid.static import static_view
from pyramid.interfaces import (
IRouteRequest,
IViewClassifier,
IView,
)
from pyramid.config import not_
from pyramid.compat import string_types
from zope.interface import Interface
ANY_KEY = '*'
UNKNOWN_KEY = '<unknown>'
def _get_pattern(route):
pattern = rou... | [
"sontek@gmail.com"
] | sontek@gmail.com |
4b7de44eda68c89ba5e1524b62b8e6a0e7adf6d2 | f2e8e352a0034ade7483ea153d388f432a6fe23b | /TensorFlow_Learning/tensorflow_Seq2Seq_1.0.py | 62b8400940d0ab27d375315feed249671eba0b82 | [] | no_license | Jamming24/RecommendSystem | 5afef39ec1a4529fa3d03d10aaf66e6aeae40f0b | 96f41a042384e4c3ae06e2d320dabf8914d68745 | refs/heads/master | 2020-03-16T07:46:35.915701 | 2019-09-03T07:03:12 | 2019-09-03T07:03:12 | 132,583,180 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,819 | py | # -*- coding: utf-8 -*-
import random
import math
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def do_generate_x_y(isTrain, batch_size, seqlen):
batch_x = []
batch_y = []
for _ in range(batch_size):
offset_rand = random.random() * 2 * math.pi
freq_rand = (ra... | [
"gaojiaming24@163.com"
] | gaojiaming24@163.com |
b582d08ae56a5d3c9cccb54cd4a3e4d1453c1157 | 881096b7d03ac0c23f2873e587925565fa674a0e | /unique_binary_search_trees.py | 9e417b5974b5a7fac2e49246f358dc1666b83df7 | [] | no_license | cloudaice/leetcode | fe20187a33d8869dc3d210e1b61d0e70caa46478 | 21b63b32083146417553f17dc0fbb5ad90c00cda | refs/heads/master | 2021-03-12T20:29:18.220630 | 2015-04-14T15:14:06 | 2015-04-14T15:14:06 | 31,368,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
class Solution:
def __init__(self):
self.m = {}
# @return an integer
def numTrees(self, n):
if n <= 1:
return 1
s = 0
for i in range(0, n):
a = self.m[i] if i in self.m else self.numTrees(i)
self.m[i] = a
... | [
"cloudaice@163.com"
] | cloudaice@163.com |
0ca6926eec8a1712f700a447409f1bafff4ef4eb | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/4497119/snippet.py | 3224c676a8eb073778a4b9e0e09f7c26b1d0aaec | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 2,782 | py | import itertools
import functools
import fnmatch
import os
from StringIO import StringIO
import yaml
from yaml.parser import ParserError
import voluptuous as V
# env: {match: []}
TopSchema = V.Schema({unicode: {unicode: []}})
# id: {module: [{param: value}]}
StateSchema = V.Schema({unicode: {unicode: [{unicode: obje... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
f8e931d988feecae5bcb533acb7e535bb98593b2 | ae720e373acd2783e3479f5c82ffa0970f620075 | /service-mgmt-client/sm-client/sm_client/common/http.py | 986994b0d0ba7d42f432435cbc5b6d22ff893285 | [
"Apache-2.0"
] | permissive | MarioCarrilloA/stx-ha | 43d0f9a6635ba738afc87af2fc7baed8bd2ed971 | 24cd0141ae63ed21bfc9bbacbab6f9f73a71bd2d | refs/heads/master | 2020-03-31T10:19:36.400837 | 2018-10-05T22:57:11 | 2018-10-05T22:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,346 | py | # Copyright 2012 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
c2e5dc2791b6d70a8595865e385ae08f5f4408af | d49ca13b5543c37005ccdbed3088c9704b2e7e9c | /graphgallery/functional/attr_matrix/attr_transform.py | 08c6f0e2bd35a4cc434501d51fd242967cf6759f | [
"MIT"
] | permissive | future1111/GraphGallery | 21d7675b624906cf4ef9ee0928e6fc083173b7b3 | 240c2b13841a45689e676e85cfb9ad6d67a4f610 | refs/heads/master | 2023-02-04T22:23:09.741952 | 2020-12-16T02:24:02 | 2020-12-16T02:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | import numpy as np
import scipy.sparse as sp
from sklearn import preprocessing
from typing import Union
import graphgallery as gg
from ..transforms import Transform
from ..decorators import multiple
from ..get_transform import Transformers
__all__ = ['augment_attr', 'normalize_attr', 'NormalizeAttr']
def augment_a... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
b7c4061960e63dec170e0aa2ebc7a9e67bc0249b | c43b7424da81a5e83683caf28170cb0d829efb36 | /bcbio/pipeline/region.py | 520482a782adb6dd638ea298a5e6264e99ccd98e | [
"MIT"
] | permissive | johnstantongeddes/bcbio-nextgen | f25ffa3c5661c82dd6670e1044698b266a5cac1e | e46fcaa416a41e5859922a1fdcd8fe807897616c | refs/heads/master | 2021-01-15T17:28:04.469831 | 2014-07-17T15:14:13 | 2014-07-17T15:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,963 | py | """Provide analysis of input files by chromosomal regions.
Handle splitting and analysis of files from chromosomal subsets separated by
no-read regions.
"""
import collections
import os
from bcbio import utils
from bcbio.distributed.split import parallel_split_combine
def get_max_counts(samples):
"""Retrieve the... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
bb5fb53299ad882866018e132a5690776b30eb4f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_13842.py | 81eb32389f18cc68eb3b12fe99175255a6381e38 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | # Usage of %d does not output an integer
%d
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c2b2c46bc25da9a17f8346a8fc36dae916b470f3 | 7f446cbc9cfeff35ddca053e924612b6b8febb0d | /.pycharm_helpers/python_stubs/-533200126/itertools.py | 6f14f44f0a4b9d9c23a33c5c5380a268fe1ca950 | [] | no_license | theskyareblue/testdemo | 2832f9d643a0b2905b8fb38f78f02f60959f34a2 | 833afe4ea8dd92ebaed5fd40f1ad6ce4a1206604 | refs/heads/master | 2023-04-09T07:40:27.638892 | 2019-06-21T03:34:32 | 2019-06-21T03:34:32 | 192,511,828 | 1 | 0 | null | 2023-03-16T16:19:55 | 2019-06-18T09:46:52 | Python | UTF-8 | Python | false | false | 22,997 | py | # encoding: utf-8
# module itertools
# from /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so
# by generator 1.145
"""
Functional tools for creating and using iterators.
Infinite iterators:
count([n]) --> n, n+1, n+2, ...
cycle(p) --> p0, p1, ... plast, p0, p1, ...
repeat(elem [,n]) --> elem, elem, elem, ... endless... | [
"234315653@qq.com"
] | 234315653@qq.com |
66b28944e3302e9e044c32c92d14060383a3ef7e | fed1e0cb9384fd5701915e1044624411e371547b | /server/config.py | 22296de4cc7b02aedd88b4962a87be7e424d60c3 | [
"MIT"
] | permissive | Claudiocfls/ftp | ac6a3ea9f8348c07fd5debc846f20c35e77bdee2 | 1c53498a48a4723241267a8285a67592e59613d0 | refs/heads/master | 2020-07-19T09:19:07.948851 | 2019-09-18T12:03:27 | 2019-09-18T12:03:27 | 206,418,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | BASEDIR = '/home/claudio/workspace/ces-35/lab1/ftp/server/public' | [
"claudiosilva.cfls@gmail.com"
] | claudiosilva.cfls@gmail.com |
ea6e4d6c891476db9f1b3bb7aaf3aeafc4e69255 | 20e755304a38b629de1d131f78b25fb2332694c1 | /flask_unchained/bundles/security/commands/roles.py | fda4d903a875da1ba0c54a6036e43dd087b6cf25 | [
"MIT"
] | permissive | gnyers/flask-unchained | 8fe93d25ee4450c7172fa77dafb470a55cb3dbb1 | 95ffa9f4e30116b7e37450f6455d4fceb219f359 | refs/heads/master | 2020-04-01T02:24:56.185651 | 2018-10-10T00:32:40 | 2018-10-10T00:32:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | from flask_unchained import unchained
from flask_unchained.cli import cli, click
from flask_unchained.commands.utils import print_table
from .utils import _query_to_role
from ..services import RoleManager
role_manager: RoleManager = unchained.get_service_local_proxy('role_manager')
@cli.group()
def roles():
"""... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
a5a2d5787bef9e0b8185bd1175381904f37a8142 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/v20210101/list_web_app_connection_strings.py | 61001f28112242886a106bd4e1b7fe533d718d67 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,758 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
c33e3b8846d7e09efab0e53ad3f919f45ef6d12e | afa9fcd0f2443515ba89e96ed4eb9416e9d11847 | /python/GafferSceneUI/SceneContextVariablesUI.py | 6b36975240f985f2887117b78231d7e577e6eca8 | [
"BSD-3-Clause"
] | permissive | dneg/gaffer | 6eb12b3ab3cde00afdf170c456969a38f5968237 | e87cb50f55a048cd7f6d5dcdfe6f95e38db2c5b6 | refs/heads/master | 2021-01-16T18:13:33.456876 | 2013-09-24T17:23:58 | 2013-09-24T17:23:58 | 13,094,917 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
743009e92363fcc68865198c6d90e04a81a1b76a | d371f058e53b1ab37cf891c14af8acfbe1d0d498 | /backend/manage.py | c1b32ea867ef94329896ec92f99d8e7badf17fd9 | [] | no_license | crowdbotics-apps/test-components-rn-11250 | fdd69818907d2d70265055da53625a9d99e301bb | 63ddfc25d066beb23cbe74c1a3adea7a04891865 | refs/heads/master | 2023-02-04T10:51:00.114982 | 2019-12-11T17:33:10 | 2019-12-11T17:33:10 | 227,411,781 | 0 | 0 | null | 2023-01-24T00:56:00 | 2019-12-11T16:31:51 | JavaScript | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_components_rn_11250.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4a73b5a4380005f23870eeee2c42e37e6ce3323e | 6390a7f030cc6b2ff61237e41360af2d270e1efb | /tests/strings/string_format_d.py | 32601aaa4c6ab80bd601a1833e7d254c09cfcdcc | [
"MIT"
] | permissive | davidkellis/py2rb | b999ca4c3b9316d19ac42c6d57fbbc158ee35700 | 4518a1549cfacc25a1ea3c736bca3de15a123878 | refs/heads/master | 2023-06-22T05:32:16.209823 | 2021-07-05T01:55:53 | 2021-07-05T01:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py |
a = 1.123456
b = 10
c = -30
d = 34
e = 123.456
f = 19892122
# form 0
s = "b=%d" % b
print(s)
# form 1
s = "b,c,d=%d+%d+%d" % (b,c,d)
print(s)
# form 2
s = "b=%(b)0d and c=%(c)d and d=%(d)d" % { 'b':b,'c':c,'d':d }
print(s)
# width,flags
s = "e=%020d e=%+d e=%20d e=%-20d (e=%- 20d)" % (e,e,e,e,e)
print(s)
| [
"naitoh@gmail.com"
] | naitoh@gmail.com |
f3dd3fcf36b585b167dae3e526e5b1aee56e69af | 9ce18ec07889cf7a7590bbbc51a38713449d9ca0 | /dino/db/manager/__init__.py | f5aca9011916befd637e3c40931c5323be8a15ed | [
"Apache-2.0"
] | permissive | Xlzman/dino | 66e38dd8c839a02f17ee19198e5cc7cc388d0b5b | 3a6cbf45525a2733e47ea1dcbb52fd49d3264e3c | refs/heads/master | 2021-06-10T14:42:24.315979 | 2017-02-28T04:50:38 | 2017-02-28T04:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"oscar.eriks@gmail.com"
] | oscar.eriks@gmail.com |
dde1ec9147975e5576444bb867a5027f07b77387 | 4e44c4bbe274b0a8ccca274f29c4140dfad16d5e | /Push2_MIDI_Scripts/decompiled 10.0.3b2 scripts/pushbase/grid_resolution.py | a07663a3eb9cb5bde494ad21be5c17c5e7d3fbc6 | [] | no_license | intergalacticfm/Push2_MIDI_Scripts | b48841e46b7a322f2673259d1b4131d2216f7db6 | a074e2337b2e5d2e5d2128777dd1424f35580ae1 | refs/heads/master | 2021-06-24T15:54:28.660376 | 2020-10-27T11:53:57 | 2020-10-27T11:53:57 | 137,673,221 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # uncompyle6 version 3.0.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.13 (default, Jan 19 2017, 14:48:08)
# [GCC 6.3.0 20170118]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\grid_resolution.py
# Compiled at: 2018-06-05 08:04:22
from __fu... | [
"ratsnake.cbs@gmail.com"
] | ratsnake.cbs@gmail.com |
7dedbc4a34e2e9470052682ad10eb1faeef54773 | ae575a6207acf1bae6252aac20f7934c87e55e44 | /wechat_django/rest_framework/views.py | ce78ca65c50d7a0f868db700085c1f898f48b989 | [
"MIT"
] | permissive | Xavier-Lam/wechat-django | 57c28c189f7e443dc94a7a8393d8597f4610bb34 | 526e2d9d261fde8279314cf30fb70dbeb439d943 | refs/heads/master | 2023-08-17T02:25:46.025887 | 2023-08-15T02:05:49 | 2023-08-15T02:05:49 | 171,990,883 | 185 | 62 | MIT | 2023-08-15T02:05:50 | 2019-02-22T03:51:44 | Python | UTF-8 | Python | false | false | 3,599 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import PermissionDenied
from django.views import View
class APIView(View):
"""
A minimum implementation for drf APIView with permission and
authentication
"""
def permission_denied(self, request, message=... | [
"13599838712@hotmail.com"
] | 13599838712@hotmail.com |
c52bd0fe1eb5f2a7b91448447310e7bfd18c18df | 739e19aea52a747a818ccaa1e941f11328ca9783 | /DataVisual/numericalAnalysis/Newton.py | 9460d71689cd995d7a6ee3383300ea7a994c8ade | [] | no_license | MoCuishle28/python-practice | d12edb4866361f55354da53875475f05c209254c | cc557fcdd3fec2cb67efeb1f875b4d7d9d85b5b4 | refs/heads/master | 2020-03-28T03:52:36.060049 | 2019-01-19T11:53:15 | 2019-01-19T11:53:15 | 147,677,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | import matplotlib.pyplot as plt
import numpy as np
lx = [0,10,20,30,40,50,60,70,80,90,100,110,120]
ly = [5,1,7.5,3,4.5,8.8,15.5,6.5,-5,-10,-2,4.5,7]
# 以下为牛顿插值多项式
print("--------------------------------------Newton-----------------------------------------")
def f(list_x,list_y):
if len(list_x) == 2:
return ... | [
"20164706@s.hlju.edu.cn"
] | 20164706@s.hlju.edu.cn |
593682896a6e4d134bbbd038928f7809a97f8ce7 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnvarchi.py | e562bf1090ddf607786595dde9fce9194f18c32d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 62 | py | ii = [('RoscTTI2.py', 1), ('SoutRD.py', 4), ('RoscTTI.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
226997d659a9ab3531fd07828bd414d66d572cef | 7dfe9854a1d5e4a7b37c8d8ecbd99469f984cfe1 | /altimeter/aws/resource/ec2/instance.py | fa4f53a511d4fb7be9ab4ea6c7fa8cde47e6d1da | [
"MIT",
"Python-2.0"
] | permissive | jparten/altimeter | 92c9d21dcaec144f29f22030b6722a2baf0678ed | 956cf7f7c2fe443751b8da393a764f8a7bb82348 | refs/heads/master | 2020-11-26T19:01:55.641606 | 2019-12-20T16:46:32 | 2019-12-20T16:46:32 | 229,180,153 | 0 | 0 | MIT | 2019-12-20T03:06:35 | 2019-12-20T03:06:34 | null | UTF-8 | Python | false | false | 2,981 | py | """Resource for EC2Instances"""
from typing import Type
from botocore.client import BaseClient
from altimeter.aws.resource.resource_spec import ListFromAWSResult
from altimeter.aws.resource.ec2 import EC2ResourceSpec
from altimeter.aws.resource.ec2.image import EC2ImageResourceSpec
from altimeter.aws.resource.ec2.sec... | [
"jmichaelchuck@tableau.com"
] | jmichaelchuck@tableau.com |
8848547ecbfb191da1db9e14e5efae9f6d6b3f37 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L63/63-67_MD_NVT_rerun/set_1ns_equi_1_m.py | 97324eb116fb26210b250cfc0d70e585f7634f46 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L63/MD_NVT_rerun/ti_one-step/63_67/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_1_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
67639de0ef99e053dbed8c4e75659d47d0cbcd9c | 4935e2ef7994222178f950319f9f8d3e2adfa543 | /evaluate-division.py | 0ad10ec703e3a70ff69cb2816287a83b871a1c27 | [] | no_license | shaheming/leecode | e853b59469b97ca97a5b4ecd80497b3dac3fb10f | a8b59573dc201438ebd5a5ab64e9ac61255a4abd | refs/heads/master | 2021-07-03T03:57:22.718410 | 2019-04-06T18:19:53 | 2019-04-06T18:19:53 | 140,241,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | import collections
class Solution:
def calcEquation(self, equations, values, queries):
"""
:type equations: List[List[str]]
:type values: List[float]
:type queries: List[List[str]]
:rtype: List[float]
"""
# 1 exit invalid variable(not exits in Equations) -1... | [
"shmsand@gmail.com"
] | shmsand@gmail.com |
9adae4d3b59ef7c133d86b21556ff4abb73c996c | 85445cb7d017e97385f9977e7dc3f9d7428c03ed | /credentials.py | 6baff5a066646d0301f3d5332105f89db8715274 | [
"MIT"
] | permissive | nyagajr/password-locker | 1b12534a74f22250a1a6ffd5edef2474f4086bb2 | 8385ad52db442c28ed1826aebf8a84b96b2d7d8a | refs/heads/master | 2020-04-18T13:23:57.134259 | 2019-01-29T10:12:14 | 2019-01-29T10:12:14 | 167,560,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #CLASS CREDENTIALS
class Credentials:
"""
Class that generates new instances of credentials.
"""
credentials_list = []
def save_credential(self):
'''
save_credential method saves credentials objects into credentials_list
'''
Credentials.credentials_list.append(sel... | [
"muchokijnrbenson@gmail.com"
] | muchokijnrbenson@gmail.com |
3d262a18b721272d7ce10f2da62f623edd41baa0 | a5a4cee972e487512275c34f308251e6cc38c2fa | /tests/task/vasp/VaspConvergeEncut/test_task_vasp_converg_encut.py | 0098fe121c9b76be8904c6c9b4146c4693241a6f | [
"MIT"
] | permissive | eragasa/pypospack | 4f54983b33dcd2dce5b602bc243ea8ef22fee86b | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | refs/heads/master | 2021-06-16T09:24:11.633693 | 2019-12-06T16:54:02 | 2019-12-06T16:54:02 | 99,282,824 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import pytest
structure_filename = 'MgO_NaCl_prim.vasp'
xc = 'GGA'
full_auto=True
incar_dict = {}
incar_dict['ismear'] = 0
incar_dict['sigma'] = 0.05
incar_dict['ispin'] = 1
slurm_dict = {}
slurm_dict['email'] = 'eragasa@ufl.edu'
slurm_dict['qos'] = 'phillpot'
slurm_dict['ntasks'] = 16
slurm_dict['time'] = "1:00:00... | [
"eragasa@ufl.edu"
] | eragasa@ufl.edu |
a693db0efae2b90aa9f165b340e19c6a39b40b04 | d0f8ec284ad35ad32ed4082e5ae78be4c0918484 | /pycheribuild/projects/cross/cheri_exercises.py | b1b55ab78bec90939aaad9dfc9e572a4a18e59b0 | [
"BSD-2-Clause"
] | permissive | tupipa/cheribuild | a2a3311710772f21ef02411023a023e3104e0aa5 | 396b1ae9e7651bf6628141c3cab10fd968e299e0 | refs/heads/master | 2023-01-29T09:17:26.821790 | 2020-12-10T11:12:19 | 2020-12-10T11:16:25 | 271,748,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,476 | py | #
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2020 Alex Richardson
#
# This work was supported by Innovate UK project 105694, "Digital Security by
# Design (DSbD) Technology Platform Prototype".
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided t... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
94226f6cc8cde5f58996be9d81601f94835ec8d5 | 84dda46ae0d9267b7b6b7f3097c82e7116877695 | /tests/dill_test2.py | 05542382b16b31fcfa8b6006f8a5eeca9a45c578 | [
"BSD-3-Clause"
] | permissive | niallrobinson/dill | 811298a0c119c648397a49606a262d963b6aac6b | e42a73b7b8461f450089a7cfdb1845000e317c1f | refs/heads/master | 2021-01-20T05:09:01.382201 | 2013-09-10T00:46:13 | 2013-09-10T00:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | #!/usr/bin/env python
"""
demonstrate dill's ability to pickle different python types
"""
import dill as pickle
#pickle._trace(True)
#import pickle
typelist = []
# testing types
_none = None; typelist.append(_none)
_type = type; typelist.append(_type)
_bool = bool(1); typelist.append(_bool)
_int = int(1); typelist.a... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
9429468c41b1d98f30621f5541a04c56dcafcbc9 | 9bb16f8fbf9f562f1171a3bbff8318a47113823b | /abc109/abc109_d/main.py | 5f1181cbb077cabf186c733a397c6151e68109b8 | [] | no_license | kyamashiro/atcoder | 83ab0a880e014c167b6e9fe9457e6972901353fc | 999a7852b70b0a022a4d64ba40d4048ee4cc0c9c | refs/heads/master | 2022-06-01T03:01:39.143632 | 2022-05-22T05:38:42 | 2022-05-22T05:38:42 | 464,391,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python3
# from typing import *
# def solve(a: str, b: str, c: List[str], d: List[List[str]]) -> Tuple[int, List[int], List[int], List[int], List[int]]:
def solve(a, b, c, d):
pass # TODO: edit here
# generated by oj-template v4.8.1 (https://github.com/online-judge-tools/template-generator)
def m... | [
"kyamashiro73@gmail.com"
] | kyamashiro73@gmail.com |
411cbcca159acd2260b7b0300aaa44a85163f8e3 | 9cbd523cdedc727f62c887612e8ae2c25c909964 | /tests/fill_value_to_google.py | 2b9368534698a4a944fdcba1c3c7850121ad8558 | [] | no_license | louiscklaw/QA_test_scripts | 8a71d0bed99fae3b0dac4cd9414b3e34dcf5beed | 58b73594332053272d8dce2c812c93297259c782 | refs/heads/master | 2023-01-27T15:48:29.477848 | 2020-12-06T10:05:19 | 2020-12-06T10:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | import os,sys
import gspread
from datetime import datetime
from pprint import pprint
import json
import string
from time import sleep
import pytz
TXT_RESULT_NOT_FOUND='ASK LOUIS'
REPORT_JSON_FILEPATH='./.report.json'
WORKBOOK_TO_FILL="[result] E-Order Smoke Test Plan"
SHEET_TO_FILL='Test Case'
gc = gspread.service_ac... | [
"louiscklaw@gmail.com"
] | louiscklaw@gmail.com |
30cc1656c9e1a6e5e0b71c3fbb36199cc1da2cc4 | 1566af780ae7342760609d194bc50512777c9a44 | /pyNastran/op2/op2_interface/random_results.py | 67beb2415f0e7481db96a805b21e393b17d66c52 | [] | no_license | JamesdeanP/pyNastran | 61bb43127601a2f1ba09166bfca1783e989afbe3 | c7a9a72c6b4d1778ef2f72c5f6f67e5df4b0233e | refs/heads/master | 2020-09-24T04:50:33.559676 | 2019-11-29T22:27:23 | 2019-11-29T22:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,172 | py | class RandomObjects:
prefix = ''
postfix = ''
def __init__(self):
self.displacements = {}
self.velocities = {}
self.accelerations = {}
self.load_vectors = {}
self.spc_forces = {}
self.mpc_forces = {}
self.crod_force = {}
self.conrod_force = {}... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
cf85043687222710bc9c26505628b976aaab5155 | b54f9c803a1b52ecb35c9fa60513215c96d7bc88 | /src/master/__init__.py | 936a03d20eb2c69b0e7248de923e17fc71b24937 | [
"MIT"
] | permissive | liudyboy/Draco | 37ed42ec847b650a43eae6530aa7bde2f2c7398a | 582616dfa420cb8587440507b2eeed28077c30e4 | refs/heads/master | 2020-04-06T18:43:43.323897 | 2018-08-20T21:48:38 | 2018-08-20T21:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from . import baseline_master, rep_master, cyclic_master, utils
__all__ = ['baseline_master', 'rep_master', 'cyclic_master', 'utils'] | [
"hongyiwang@cs.wisc.edu"
] | hongyiwang@cs.wisc.edu |
ec54be45a1591f9634fa8bf3b3e21bad9bc17f6c | 4df126d17b97fa53ab42607cf82a680d9a32c2fe | /python/itreed/magic.py | abce1421e2111f9c7ee15fbd3cbe1b48602f0e65 | [] | no_license | jaredly/itreed | e6a74483da49e830ed342aa6c516c3ef30ad436a | f6785cbcf8e20649800665ee3c26350a95c33ce6 | refs/heads/master | 2016-09-10T12:28:37.567208 | 2015-04-26T04:19:34 | 2015-04-26T04:19:34 | 23,746,478 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | #!/usr/bin/env python
from __future__ import print_function
from IPython.core.magic import (Magics, magics_class, line_magic,
cell_magic, line_cell_magic)
import json
import ast
@magics_class
class MyMagics(Magics):
def __init__(self, *a, **k):
Magics.__init__(self, *a, **... | [
"jared@jaredforsyth.com"
] | jared@jaredforsyth.com |
c8bdf96496da4a662e016ec3a72ddc2d3a1d9471 | 2e6b730415da08eb66d13688b6b96a51db2f6144 | /backend/stock/apps.py | 03d69ba4fcb8091e72802d88931d36625f568806 | [
"MIT"
] | permissive | VirajParab/stock | fc7edae85f96fe0068cade2331de7a8c0e6db841 | ef62642f36da1e8bd74288b728d3efee486b6f16 | refs/heads/master | 2023-08-25T09:39:14.406743 | 2021-10-20T16:15:33 | 2021-10-20T16:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # rock_n_roll/apps.py
from django.apps import AppConfig
class StockConfig(AppConfig):
name = 'stock'
verbose_name = "MyStock application"
def ready(self):
import stock.signals
| [
"feng_xia41103@hotmail.com"
] | feng_xia41103@hotmail.com |
7c74eaaf33009a726d63b13587d885df2fd4076e | ab1287568346bfbac9c383d67793d19f2a415971 | /medium/11_container_with_most_water.py | 68c44879def80edb0ef76418720b38c58d7ef376 | [] | no_license | richwandell/lc_python | 6080e9d0967e853695ff5619d94c512e9908fb68 | 772824ef40cb0011713dba489d40c62b3577db14 | refs/heads/master | 2021-11-18T19:43:42.217991 | 2021-10-03T17:47:17 | 2021-10-03T17:47:17 | 238,301,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from typing import List
class Solution:
def maxArea(self, height: List[int]) -> int:
l, r = 0, len(height) - 1
m = -1
while l < r:
w = abs(l - r)
h = min(height[l], height[r])
a = w * h
m = max(m, a)
if height[l] > height[r]:
... | [
"richwandell@gmail.com"
] | richwandell@gmail.com |
a8aa779958357e2f213a0b497357ec2beccdba7d | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/input/ch5_code/src/scoring/SumOfPairsWeightLookup.py | 0b8a7a1790c64ce293344d381a183ac93a0e92d7 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | from itertools import combinations
from typing import Tuple, Optional
from scoring.WeightLookup import WeightLookup, ELEM, TableWeightLookup
# MARKDOWN
class SumOfPairsWeightLookup(WeightLookup):
def __init__(self, backing_2d_lookup: WeightLookup):
self.backing_wl = backing_2d_lookup
def lookup(self... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
c38a59f5affff37b7311aa46681442e06dd0ee17 | 82fd5509f3d39ad3dcf2b55a03ebd5c201eb6817 | /Topic Wise/Array/negativeElementsToOneSide.py | 23c625d3cd95a0c6ab0f2758c6f5ed2def437123 | [] | no_license | simba28/daily-codes | c26491a1597eb5af565a4e76291fd8a42a9605f0 | 8ac943e0c24a3ade1a24c8f00c3a6a3b0ffb388d | refs/heads/master | 2023-06-17T13:20:37.695778 | 2021-07-15T05:24:36 | 2021-07-15T05:24:36 | 331,525,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # https://www.geeksforgeeks.org/move-negative-numbers-beginning-positive-end-constant-extra-space/
class Solution:
def rearrange(self, arr):
n = len(arr)
left = 0
right = n-1
while left <= right:
if arr[left] < 0 and arr[right] < 0:
left += 1
... | [
"sudh2810@gmail.com"
] | sudh2810@gmail.com |
fb50ef0fbf5c9001ae962a234c98aedb5a0e98cf | e4d02bb7fc1552ef54d35110547807f2c5de58a9 | /XKT/DKVMN/Module/module.py | 87e1cf1624cecc09d0d53381fae5b799ecea2a54 | [
"MIT"
] | permissive | littlepotato1994/XKT | f4e741e0a306d49a39df71b52b5318adbd8b0520 | ba53c5e18c6b0cc463cfce7d9f28bbac0823972c | refs/heads/master | 2023-01-05T12:53:41.473990 | 2020-11-09T13:22:44 | 2020-11-09T13:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,095 | py | # coding: utf-8
# Copyright @tongshiwei
from __future__ import absolute_import
import os
import mxnet as mx
from longling.ML.MxnetHelper.glue import module
from .configuration import Configuration
from .sym import get_net, fit_f, eval_f
__all__ = ["Module"]
class Module(module.Module):
"""
模块模板
train ... | [
"tongsw@mail.ustc.edu.cn"
] | tongsw@mail.ustc.edu.cn |
9bdfd51dec4543baeccfd9abc2dfdd46b82fb8e1 | 9d961bd6a590cc96db0c1f9c72d84e3a66636edf | /baekjoon/[백준]2293_동전 1.py | f1cffab3b3fa3b9019b433199a9ee5bfe5962b08 | [] | no_license | 0equal2/Python_Programming | bae65338929e8e1a88247b8d23de805caa026702 | 2ac1d0262320220f49cbdb45e787e55e994d0b0f | refs/heads/master | 2023-05-14T22:13:41.583214 | 2021-06-09T03:04:51 | 2021-06-09T03:04:51 | 304,628,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | ###백준 #2293
###동전 1
#1. 동전의 가지수 , 가치의 합 : n, k
n,k=map(int,input().split())
#2. 동전의 가치
coin=[]
for i in range(n):
coin.append(int(input()))
#3.
dp=[0 for x in range(k+1)]
dp[0]=1
for i in coin:
for j in range(1,k+1):
if j-i>=0:
dp[j]+=dp[j-i]
print(dp[k])
| [
"duddms0115@gmail.com"
] | duddms0115@gmail.com |
9fab9f7025ca917d49ddb907cc07b75c84bcb6f7 | 0ec0cfd8981348faf0b53d9cfaa0f28ee67cfd36 | /tests/allen/models/target_sentiment/in_context_test.py | c65700b35b16826c033885c8723d2480fb505bba | [
"Apache-2.0"
] | permissive | apmoore1/target-extraction | e79bb665fe272cbb7ae40ef18c5598859e928fcd | 4139ecdc432411fcc4ed2723f4165e7dae93544d | refs/heads/master | 2021-07-16T13:23:14.108057 | 2020-06-18T14:22:53 | 2020-06-18T14:22:53 | 184,380,862 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | import copy
from pathlib import Path
import tempfile
from allennlp.common.testing import ModelTestCase
from allennlp.common.params import Params
from allennlp.data import Batch
from allennlp.data.vocabulary import Vocabulary
from allennlp.models import Model
from allennlp.nn import InitializerApplicator, Initializer
f... | [
"andrew.p.moore94@gmail.com"
] | andrew.p.moore94@gmail.com |
81a6b387c3ed73e1f53c873c89acd7f780207aad | 3b173adfb62b88b82e2f7e73805bb6716744a186 | /home/views.py | 0369eb30118ff38a72fd4b8995213463ed0f84b4 | [] | no_license | crowdbotics-apps/wes-dev-2080 | 2c5d8d77c03ccc17b03af72a09efc60d9d0b5e7d | 5f3ad9ee9c9c4677320987ff7190ac7315d1f11d | refs/heads/master | 2022-04-10T12:06:11.697328 | 2020-03-20T10:20:49 | 2020-03-20T10:20:49 | 248,724,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from django.views.generic import CreateView, UpdateView, DetailView, ListView
from django.shortcuts import render
from .models import CustomText, Testtt, Testing, HomePage, Test
def home(request):
packages = [
{
"name": "django-allauth",
"url": "https://pypi.org/project/django-alla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9bc97b85fee2df70782b06440e43a10a80c88fb5 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming Fundamentals Python/Mid Exams/01 national court.py | 3314d95609cf013b6e0b149f1c10112ad892f12f | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | first_employee_capacity = int(input())
second_employee_capacity = int(input())
third_employee_capacity = int(input())
total_people = int(input())
mutual_capacity = first_employee_capacity + second_employee_capacity + third_employee_capacity
work_hours = 0
stay_hours = 0
while total_people > 0:
total_people -= mu... | [
"radka_valkova@abv.bg"
] | radka_valkova@abv.bg |
10040aec321bb21319a072078d222fc230ccecd8 | cba51405abe4748c0fc8b22588893a058d90a4cf | /InvenTree/barcode/plugins/inventree_barcode.py | 821cdc9c88f4d14d41c9e2d988589d916d625135 | [
"MIT"
] | permissive | fritzlim/InvenTree | e4a88c9b9ad4f77072d145ed119b3627f6d99cdd | daab81fa2cf6f3ce1760e31d8cd94951c6dffdd2 | refs/heads/master | 2022-11-18T22:56:46.338919 | 2020-07-21T23:19:43 | 2020-07-21T23:19:43 | 283,114,987 | 1 | 0 | MIT | 2020-07-28T05:57:37 | 2020-07-28T05:57:36 | null | UTF-8 | Python | false | false | 3,127 | py | """
The InvenTreeBarcodePlugin validates barcodes generated by InvenTree itself.
It can be used as a template for developing third-party barcode plugins.
The data format is very simple, and maps directly to database objects,
via the "id" parameter.
Parsing an InvenTree barcode simply involves validating that the
refe... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
f66860963ed4b27ef41a5778930f6d0f6b3c77b6 | fd48fba90bb227017ac2da9786d59f9b9130aaf0 | /digsby/src/plugins/digsby_branding/urls.py | 1d33c7bac91ff1ca785c348fcfa226edd9d29718 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | niterain/digsby | bb05b959c66b957237be68cd8576e3a7c0f7c693 | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | refs/heads/master | 2021-01-18T10:07:10.244382 | 2013-11-03T02:48:25 | 2013-11-03T02:48:25 | 5,991,568 | 1 | 0 | null | 2013-11-03T02:48:26 | 2012-09-28T02:24:50 | Python | UTF-8 | Python | false | false | 100 | py | def iac_url(*a, **k):
return "http://bit.ly/GetDigsby"
def iac_code(*a, **k):
return 'iac'
| [
"mdougherty@tagged.com"
] | mdougherty@tagged.com |
80e987f2c8f51b07fe3e68451f74418a10691e25 | 453ca12d912f6498720152342085636ba00c28a1 | /interview_cake/queue_with_2_stacks.py | c9acb9c26832fd64cdbe83eeac91f8055c87a4f6 | [] | no_license | yanbinkang/problem-bank | f9aa65d83a32b830754a353b6de0bb7861a37ec0 | bf9cdf9ec680c9cdca1357a978c3097d19e634ae | refs/heads/master | 2020-06-28T03:36:49.401092 | 2019-05-20T15:13:48 | 2019-05-20T15:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | class Stack:
def __init__(self):
self.items = []
def push(self, item):
self.items.append(item)
def pop(self):
if not self.items:
return None
return self.items.pop()
def size(self):
return len(self.items)
def is_empty(self):
return self.... | [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
769993e457dc37106a452b68aeb94c7b9a44072a | be91cb59678cec9813d225f1f26e4b38f09dc53b | /application/migrations/0002_auto_20180403_2058.py | a1a5f4df140c25675e4802f02b8066c9f0e33ee7 | [] | no_license | rudiq4/imperia | 17c5af805c1d0d73bff4dbabf6241af04592affd | 5ab834577f4c010b706b6a5fe1abb929fd75d7c1 | refs/heads/master | 2020-03-13T16:43:30.251206 | 2018-07-31T11:16:54 | 2018-07-31T11:16:54 | 130,113,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-03 17:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('application', '0001_initial'),
]
operations = [
migrations.RenameModel(
... | [
"rudikvovan@gmail.com"
] | rudikvovan@gmail.com |
2c50aa3eb7504a0ad5623043121a1ac72a04c587 | a21535dc3587094d8b9b02a247ffc7c0d405b8cf | /0x01-python-if_else_loops_functions/7-islower.py | 5d31a7ee8219a17e848842d353d5999f133cb85d | [] | no_license | itsmuriuki/alx-higher_level_programming | 2abef0333f72452ed058f7277c748cc4465f0f60 | a7b112a786efc9370e25296f781b5bdda2dc5d4b | refs/heads/main | 2023-08-23T04:02:08.594530 | 2021-10-14T08:46:51 | 2021-10-14T08:46:51 | 363,470,392 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #!/usr/bin/python3
def islower(c):
letter = ord(c)
if letter >= 97 and letter <= 123:
return True
else:
return False
| [
"grdmuriuki@gmail.com"
] | grdmuriuki@gmail.com |
74cef6b5adb6f5a3468d9ec9c3ee49b888b9953a | 0d5b71c0fb697baac232fb3c66729214518b7477 | /models/baseline-2-c2-2015-06-17-11-42/training.py | 5ea415b4509922d97de4bb49185799cd5f3a3a41 | [
"MIT"
] | permissive | linuxfor/hwr-experiments | e2109cba85f176361e0b87fca3cd5fcb3386bdf3 | 95d816afc446a36ab882f15a0a45592e810dbde2 | refs/heads/master | 2021-01-21T20:16:40.873808 | 2016-04-20T05:10:57 | 2016-04-20T05:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | #!/usr/bin/env python
"""Train this model with supervised layer-wise pretraining."""
import os
import shutil
import json
import logging
import sys
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
level=logging.DEBUG,
stream=sys.stdout)
# Make model with on... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
976ae604142503565a45b360bd9c344dc34136ac | 61d434953d55af170c4abb023686256509a4bffc | /restapi/schemas/comments/CommentSchema.py | 293047edbab1d63d10e780c199882694f7fff85f | [] | no_license | mentimun-mentah/tridatu-backend | c6e471bc08c010ebc5b3fcdf5ef5bac0c33758de | 32cf22c24327b228cba57782ffd4740906e8e7d8 | refs/heads/master | 2023-03-14T13:32:31.264593 | 2021-03-09T13:30:12 | 2021-03-09T13:30:12 | 302,246,645 | 4 | 1 | null | 2021-03-09T13:30:13 | 2020-10-08T06:04:50 | Python | UTF-8 | Python | false | false | 916 | py | from pydantic import BaseModel, constr, validator
from typing import Literal, List, Optional
from datetime import datetime
class CommentSchema(BaseModel):
class Config:
min_anystr_length = 1
anystr_strip_whitespace = True
class CommentCreate(CommentSchema):
message: constr(strict=True, min_len... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
7777239ed1592b2563fe50ef8faf305008db376a | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3entryhist.py | 46349bacb784eccb6d4f97e2a16051dfc646d2ea | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 10,869 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
46efa9d19baaacfe7a4b8eef46ef234fdaa2c261 | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/final_3level/feedback_fair/job62.py | 3b86ef2f2652866af524ccef88bdd6e10cfd4d8a | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,644 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
9fbcf02fa95513574366a973dca56ac0a95d6ee7 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /ipagnn/lib/figure_utils.py | 8e5fbd3cdd6db43c934b2efdc5903679a95c54f4 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 3,399 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d68bbba8c78a1114675b06e9b309dda9d36c4791 | 98810fbf90a42028915a88bfac9fb8cb8681008e | /azure-devops/azext_devops/devops_sdk/v6_0/file_container/__init__.py | bcd8e50fe3dc64f5bf1e7308957718d69c171f97 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"PSF-2.0",
"PostgreSQL",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"C... | permissive | Azure/azure-devops-cli-extension | ba87357a8243e1318f100791fc32acbb59448d05 | bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b | refs/heads/master | 2023-08-29T10:56:54.228674 | 2023-07-17T04:37:06 | 2023-07-17T04:37:06 | 107,708,057 | 419 | 208 | MIT | 2023-08-02T02:10:10 | 2017-10-20T17:39:11 | Python | UTF-8 | Python | false | false | 722 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
1c1de3f5912a993b21da7bd44f848de029a6fe3b | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/CBS-VAPGROUP-MIB.py | 5d43d70e15c3750d46918bd48b90aa333e136c64 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,361 | py | #
# PySNMP MIB module CBS-VAPGROUP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CBS-VAPGROUP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:47:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
185bb6c324bbdab3cc3bc24e8de9ef11c5a88101 | 456433ac78b70cb8ae076ae166a85e349f181d7f | /systems/KURSSKLAD/REPORTS/WARESPRDATESALE/waresprdatesale.py | 6c60f230b71b8686fa134f43e936f846159fce32 | [] | no_license | shybkoi/WMS-Demo | 854c1679b121c68323445b60f3992959f922be8d | 2525559c4f56654acfbc21b41b3f5e40387b89e0 | refs/heads/master | 2021-01-23T01:51:20.074825 | 2017-03-23T11:51:18 | 2017-03-23T11:51:18 | 85,937,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | # -*- coding: cp1251 -*- #
from systems.KURSSKLAD.ksprav import KSprav
#from systems.KURSSKLAD.taskInfo import TaskInfo
from systems.KURSSKLAD.REPORTS.WARESPRDATESALE.templates.index import index
#class SkladService(WHCommon,TaskInfo):
class WaresPrDateSale(KSprav):
def index(self, id_system=None):
... | [
"s.shybkoi@gmail.com"
] | s.shybkoi@gmail.com |
98b6c0bb6f4a5df148211ddc08f057653657cde3 | 23ef81cb94356fd321c07f06dab2877e04131b4d | /duobao_tester/views.py | f8fc071ea13a310466122265fa1f7f2ef5bd0b18 | [] | no_license | dongshaohui/one_dolor | 0c688787d8cee42957bec087b74b5ea353cc80fc | 13dea458568152a3913c6f70ecd9a7e1f6e9514e | refs/heads/master | 2020-07-03T03:12:22.409542 | 2016-11-21T08:15:06 | 2016-11-21T08:15:06 | 74,202,604 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | #coding=utf-8
import hashlib
import json
# from lxml import etree
from django.utils.encoding import smart_str
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def validate(request):
WEIXIN_TOKEN = 'juye_one_dolor... | [
"405989455@qq.com"
] | 405989455@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.