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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78d39f3503b02a900c32efb5731a2adf789d5630 | e823da70edf54bb2d50f9add9e88ed11fa377059 | /core_composer_app/menus.py | 57459f473600d6c6a4dafa86c068f98adde95c5a | [
"LicenseRef-scancode-public-domain"
] | permissive | cdcs-repos/core_composer_app | ea9f6d4e528e70c5495664c9ddcd891a84514393 | 4811cde8d3f47ec035028b186ea35476f3302d23 | refs/heads/master | 2020-04-22T17:36:30.828595 | 2018-11-28T17:45:39 | 2018-11-30T16:02:42 | 170,547,455 | 0 | 0 | NOASSERTION | 2019-02-13T17:13:09 | 2019-02-13T17:13:08 | null | UTF-8 | Python | false | false | 474 | py | """ Add Composer in main menu
"""
from django.core.urlresolvers import reverse
from menu import Menu, MenuItem
Menu.add_item(
"main", MenuItem("Composer", reverse("core_composer_index"))
)
types_children = (
MenuItem("Type List", reverse("admin:core_composer_app_types"), icon="list"),
MenuItem("Upload Ne... | [
"guillaume.sousa@nist.gov"
] | guillaume.sousa@nist.gov |
76feade2decf6b4ac3baa9d2762d0de01f4eccab | 7f24cc54e8a926663acfc33f88d4fb17768b829d | /python/326_Power_of_Three.py | 0f903eccaf56f6d8e08b7c5382d91bcef3b3dc98 | [] | no_license | Moby5/myleetcode | 7395327d40ec931c4d396225b0f4a5faf0cbc645 | b5e09f24e8e96454dc99e20281e853fb9fcc85ed | refs/heads/master | 2021-01-21T11:39:36.519799 | 2018-11-09T02:12:21 | 2018-11-09T02:12:21 | 91,751,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | #!/usr/bin/env python
# coding=utf-8
# Date: 2018-08-10
"""
https://leetcode.com/problems/power-of-three/description/
326. Power of Three
Given an integer, write a function to determine if it is a power of three.
Example 1:
Input: 27
Output: true
Example 2:
Input: 0
Output: false
Example 3:
Input: 9
Output: true
... | [
"moby5@foxmail.com"
] | moby5@foxmail.com |
d26336f4dd5687a72b2bbade1f95630ca8d9573f | c3c31ce9a8822ac0352475934f5b3fbdacac62a1 | /ssseg/modules/models/deeplabv3plus/aspp.py | a4286123eb01d1cd8dd197c7a7b3f76585d02341 | [
"MIT"
] | permissive | guofenggitlearning/sssegmentation | 1e51b5b14bff3b5ad0d469ac98d711adb79cef11 | 7a405b1a4949606deae067223ebd68cceec6b225 | refs/heads/main | 2023-08-28T03:26:39.204259 | 2021-11-03T00:51:30 | 2021-11-03T00:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | '''
Function:
Implementation of Depthwise Separable Atrous Spatial Pyramid Pooling (ASPP)
Author:
Zhenchao Jin
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
from ...backbones import BuildActivation, DepthwiseSeparableConv2d, BuildNormalization
'''Depthwise Separable ASPP'''
class Dept... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
739c69ca0a40cff540ecec1f6ebeed08c1abdc09 | 29c3595a4e1f8de9382650610aee5a13e2a135f6 | /venv/Lib/site-packages/twisted/internet/test/test_error.py | ea72cb6012383f5e939c0287c0acdd1a065b35ad | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 1,090 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.internet.error}
"""
from twisted.trial.unittest import SynchronousTestCase
from twisted.internet import error
class ConnectionAbortedTests(SynchronousTestCase):
"""
Tests for the L{twisted.internet.error.Connect... | [
"ZoomLee@users.noreply.github.com"
] | ZoomLee@users.noreply.github.com |
8e32d5ed8b29872b38c17ab6a3dcc76b9d4f01ab | 8254a2b180fdacdaf1fa8a0314c3fa37c4cd0632 | /High Performance Topology Optimization/FENICS_LINTEST/1_MakePlot.py | 5db2d09f2986c34934c86c894c6d47b414572943 | [
"MIT"
] | permissive | gyani91/High-Performance-Computing | 544f9db73e86f729b7e7d33df6a7191d9c2af975 | d0522750395f945fb5ad92e49a3d2aedd7877b03 | refs/heads/master | 2018-11-24T22:44:32.455871 | 2018-10-03T13:52:05 | 2018-10-03T13:52:05 | 116,239,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,626 | py | # A 165 LINE TOPOLOGY OPTIMIZATION CODE BY NIELS AAGE AND VILLADS EGEDE JOHANSEN, JANUARY 2013
#Edited by Ezekiel Barnett, May 2018
from __future__ import division
import numpy as np
from scipy.sparse import coo_matrix
from scipy.sparse.linalg import spsolve, lgmres, spilu, LinearOperator
from scipy import linalg as LA... | [
"noreply@github.com"
] | gyani91.noreply@github.com |
f19a74f5303ce4d02513646529e22d0b7a64e54a | 6759612fd72da5c530aae2acebd8aa08ddbbb6b6 | /tests/languages/ruby_test.py | bcaf0986cadbdf290c6ebb331420e352bb0cde96 | [
"MIT"
] | permissive | javabrett/pre-commit | 55571cb4a17b4faf07b9746b3c0a26537fe47e49 | 185a288645d900c35f248dc1ca189c5085da21e1 | refs/heads/master | 2020-04-29T11:03:38.672722 | 2019-03-16T03:45:51 | 2019-03-16T03:45:51 | 176,083,685 | 0 | 0 | MIT | 2019-03-17T10:03:24 | 2019-03-17T10:03:24 | null | UTF-8 | Python | false | false | 1,286 | py | from __future__ import unicode_literals
import os.path
import pipes
from pre_commit.languages.ruby import _install_rbenv
from pre_commit.prefix import Prefix
from pre_commit.util import cmd_output
from testing.util import xfailif_windows_no_ruby
@xfailif_windows_no_ruby
def test_install_rbenv(tempdir_factory):
... | [
"asottile@umich.edu"
] | asottile@umich.edu |
7b9a475362d8770f0899d0a697c9f325da9f4602 | 5875ae7e5940c5def6192463fe2135e400402305 | /model/report/xsjj_model.py | 8378b2a347a64a4946a1faf6eee1f1c81ec69011 | [] | no_license | majiajue/stockout | 5dd6f7cf75ccc595e19c704867b919dcdc98d12c | 08e6d61fca0f31dd772c5bfa645964f08bff8df0 | refs/heads/master | 2021-05-17T20:58:23.020589 | 2019-10-08T07:25:33 | 2019-10-08T07:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | __author__ = 'kittaaron'
from sqlalchemy import Column, Integer, BigInteger, String, DECIMAL
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class xsjj_model(Base):
__tablename__ = 'xsjj'
id = Column(Integer, primary_key=True)
# 股票代码
code = Column(String)
# 股票名称... | [
"liuhuiyu@qiandongdong.cn"
] | liuhuiyu@qiandongdong.cn |
d730234a74ba3e20075e0baba19e23085c1c4185 | 4fe8ca45a0ac74ab72e265ef242c137a4ca29351 | /examples/migrations/versions/716aeea75914_initial_migration.py | 0727728a106a094b3e2cb9cc0522014994a7e034 | [] | no_license | carlhinderer/flask-intro | 2bfe90e98d4f01b2a233abefd5154dc57ca2dcb4 | fb4b943210eb937748001ad287f877269425f751 | refs/heads/master | 2022-11-30T18:18:05.481681 | 2020-08-10T20:02:43 | 2020-08-10T20:02:43 | 268,655,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | """Initial migration
Revision ID: 716aeea75914
Revises:
Create Date: 2020-06-06 22:18:58.312841
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '716aeea75914'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
a44f154cb643f40a64c729e7db6bd2d02aff5c3a | 2da798f1b31c6482d8f47bce394d78ccfae9d279 | /raw_data_processing/GSE131776/merged/rules/secondary_analysis.smk | 5bc9a33befa7bacb20d2d69b81d1b090c76b5c8f | [] | no_license | mariafiruleva/sc_athero_itmo_master | 47378083201e0dbad327b98291bbf4e65d5d3cc5 | e3c8c1b55d61b551957da13d109c8dfb56aa3173 | refs/heads/main | 2023-05-20T11:49:23.202549 | 2021-06-07T16:26:15 | 2021-06-07T16:26:15 | 373,524,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | smk | rule run_analysis:
"""
Run Seurat processing using count matrix from the get_count_matrix rule.
"""
input: ['/mnt/tank/scratch/mfiruleva/scn/data/GSE131776/SRS4824181/counts.RData', '/mnt/tank/scratch/mfiruleva/scn/data/GSE131776/SRS4824182/counts.RData', '/mnt/tank/scratch/mfiruleva/scn/data/GSE131776/... | [
"mmfiruleva@gmail.com"
] | mmfiruleva@gmail.com |
a086baa3b0654a4df189c81b5d0a7348ca3baa04 | d2f73136a16271b55df98416500aa3e5080b36cf | /util/world.py | ce053a7a0c043d4f990efd8cda23499c6c0d2d66 | [] | no_license | pculor/lambda-mud | 414c6f5be70b4b675b321f5941c99737d35436de | 01ded8154e6ebb8383a14a46167797c845c32703 | refs/heads/master | 2022-12-17T06:52:11.061351 | 2020-03-10T09:48:12 | 2020-03-10T09:48:12 | 245,099,356 | 0 | 0 | null | 2022-12-08T03:47:14 | 2020-03-05T07:43:36 | Python | UTF-8 | Python | false | false | 15,559 | py | from adventure.models import Room
import random
room_titles = [
"Outside Cave Entrance",
"Plain Garden Thicket",
"Puny Sumac Thicket",
"Gorgeous Forest",
"Mighty Woods",
"Prairie Beaver Covert",
"Tundra Hummingbird Grove",
"Nottingfair Woods",
"Ridgenora Thicket",
"Hillpar Grove... | [
"pascalulor@yahoo.com"
] | pascalulor@yahoo.com |
50d038aebb974280803f1132a6ac105549842616 | bae75bf1de75fb1b76e19b0d32c778e566de570a | /smodels-database/8TeV/CMS/CMS-PAS-SUS-13-016-eff/validation/T1ttttoff_2EqMassAx_EqMassBy.py | 5720da504c5ac1a9a15daa643d56372dc85431e8 | [] | no_license | andlessa/RDM | 78ae5cbadda1875c24e1bb726096b05c61627249 | ac6b242871894fee492e089d378806c2c2e7aad8 | refs/heads/master | 2023-08-16T00:47:14.415434 | 2021-09-21T20:54:25 | 2021-09-21T20:54:25 | 228,639,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,037 | py | validationData = [{'efficiency': 0.00023630348059573556, 'kfactor': 1.0, 'signal': 0.00046211716848668446, 'axes': [1310.58458935, 1083.04779399], 'dataset': 'sr0', 'UL': 0.211, 'slhafile': 'T1ttttoff_1310_1083_1310_1083.slha', 'condition': 0.0, 'CLs': 0.018846588767433059}, {'efficiency': 0.0003374289197348756, 'kfact... | [
"lessa.a.p@gmail.com"
] | lessa.a.p@gmail.com |
9aea8acc60ed3ab65f59dbf3ef7cd1be3979f463 | 01873ed0717eadae3e6bd13a9218b7dab61ee1ed | /BEB_515_S21_Coupling_Length/S01-introduction.py | 3168222e26521ec32d2369bd6a9e516a4df96154 | [] | no_license | sernst/tracksim-analysis | d08e0e1cd1413cc88639c01bb8ce05542f602910 | 267e9a691327dbfafc36e2f8e8f0fab721a8f159 | refs/heads/master | 2020-04-03T22:37:07.012750 | 2017-02-09T14:20:39 | 2017-02-09T14:20:39 | 59,768,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | import cauldron as cd
from cauldron import plotting
cd.shared.trackway_name = 'BEB 515 S21'
cd.display.markdown(
"""
# {{ name }}
A comparative investigation of gait simulation trials on the {{ name }}
trackway using coupling lengths to determine the efficacy of each possible
solution. The follow... | [
"swernst@gmail.com"
] | swernst@gmail.com |
c1c3f79a55d420640c6cd9b08300eb9e0df4c047 | 5fe194b477ba8af8acc846db2dfc961ad2a57013 | /build/usb_cam-develop/catkin_generated/pkg.installspace.context.pc.py | b03c9201393d2dc452733a97f59c146c8d86b3a7 | [] | no_license | robotanica/ExcavatorROS | 6a129e302f0a288d198e3f720a78610e6333f7d3 | db0bdf0f9988ebf910f832e22f46f679e936cdcb | refs/heads/master | 2023-03-17T23:49:58.762691 | 2017-09-29T16:31:33 | 2017-09-29T16:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/filippos/ros_ws/install/include".split(';') if "/home/filippos/ros_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lusb_cam".s... | [
"filippos.sotiropoulos@gmail.com"
] | filippos.sotiropoulos@gmail.com |
bca3080a50d7bf3c2127431997fcbf30faecf103 | 7b408fde64237a163079584fb9a591707c95ced3 | /fideparser/report.py | 5f06dd74f95f5dbf224a5241d78157a2fd9a0cb7 | [] | no_license | erral/fideparser | fe9c2c350c72b1f38e79789e82361bb8cb0efa7f | 69e914c59598540f579d08a1c20be7bca1c3cc59 | refs/heads/master | 2021-01-22T06:45:22.275677 | 2020-01-20T06:50:17 | 2020-01-20T06:50:17 | 7,460,257 | 7 | 1 | null | 2019-01-10T08:58:16 | 2013-01-05T21:32:12 | HTML | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
class InvalidReportException(Exception):
pass
class Report(object):
""" Extract data from the tournament report"""
def __init__(self, link):
self.link = link
self._extract_data()
def _extract_data(self):
... | [
"mlarreategi@codesyntax.com"
] | mlarreategi@codesyntax.com |
cd208692e157f838bad033af11ff7229577c3db9 | 7e16835a0a47c36bc12e9b0ca8990ab57304914e | /flask_security_bundle/routes.py | 45d8bbd1f63852563c401c9b1d51d31a92517f8e | [
"MIT"
] | permissive | briancappello/flask-security-bundle | b3436152277d4e7886933cf026d8c2e843998c1c | d9b97a4408c2001a0d29f5c55a4540a4917abd24 | refs/heads/master | 2021-04-15T11:37:20.085204 | 2018-08-24T22:12:01 | 2018-08-24T22:12:01 | 126,606,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | from flask_unchained import controller, get, post, prefix, resource
from flask_security_bundle import SecurityController, UserResource
routes = lambda: [
controller('/', SecurityController),
# normally all these api endpoint renames wouldn't be necessary, but we
# need it here to not conflict with the HT... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
bfc016845d950b9c32f8546cbba2ad1636a50362 | 0a42ad28dc0b88768f27c247d2662d8fce9115fd | /product/frontend_views.py | 758679ecfcb2c8d64f5c2e1ffb84e8bb5d04e6b4 | [] | no_license | mdaraban/web2print | 1237a8dd0abc75e169880ba981fcac7cc05769fb | 1c19493a583adf5fad7e7151c9f2eca3242eac3a | refs/heads/master | 2020-12-11T04:00:52.070746 | 2015-08-08T15:53:39 | 2015-08-08T15:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.http import HttpResponse
from product_category.models import ProductCategory
from product_subcategory.models import ProductSubcategory
from cart_product.for... | [
"doctorkovac@gmail.com"
] | doctorkovac@gmail.com |
c360edb68e1a262b77d4a9c7d586268686ca819d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02705/s657055578.py | fc8088878c9e43da0c1c0deb56885a3c8aabfe23 | [] | 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 | 31 | py | R = int(input())
print(R*6.283) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
af8fb2d315c4f77c475cf3334e63f9315a41c434 | e32675d2eb7c5452172108431c6226f976942e3c | /app/scripts/convert_images_to_video.py | 08775709a2968e63e4988e5d1ef2dfdd112feb95 | [] | no_license | iver56/demo-style | dd28be4f098ca0fd6e9fc5655a54bd6e6b4c3543 | 9101a058aeab46bf177a0057837b5922594d0d18 | refs/heads/master | 2021-06-29T02:34:23.963120 | 2019-06-29T11:05:14 | 2019-06-29T11:08:11 | 141,328,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | import argparse
import os
import subprocess
from pathlib import Path
from app.settings import STYLIZED_IMAGE_DIR, TMP_DIR
from app.utils.image import get_image_file_paths
if __name__ == "__main__":
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument(
"--input-path",
dest="input_pat... | [
"iver56@hotmail.com"
] | iver56@hotmail.com |
90b7fc79da70285b8e7652a14f11fff5ac16fd62 | 874ee23b7cc087c730eb0a2fdc88d67e977144d5 | /dictionary.py | 563819c43407cc77c4e6a5f61bad02907de24e99 | [] | no_license | modcomlearning/python_oct | 106d23e248738b17f77b13383a717f3507a987a5 | 5f54f1c451c75d196ad8f112ebb5f42dfb90439e | refs/heads/master | 2023-09-02T09:20:41.398633 | 2021-11-03T13:33:03 | 2021-11-03T13:33:03 | 419,256,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | thisdict ={"brand":"Ford",
"model":"Mustang",
"year":1964}
print(thisdict)
print("++++++++++++++=")
thislist = ["apple","banana","cherry"]
print(thislist)
print("===========================")
thistuple = ("apple","banana","cherry")
print(thistuple)
print(type(thistuple)) | [
"modcomlearning@gmail.com"
] | modcomlearning@gmail.com |
1a44f49d0f493c18eca5bd1d0cecdf2c382dff63 | 87a4fd12425a507e757da6e1bef4c68ee42a16e5 | /gemd/entity/value/integer_value.py | e63fd4f2e6afea70eec60ff6004ec33e6216127b | [
"Apache-2.0"
] | permissive | lkubie/gemd-python | 8e548355ee40dba8cb5e961dac464202e005ed78 | 1f98fb471060bbba312b86474a5bf6818f317fe1 | refs/heads/master | 2023-04-14T22:34:13.898549 | 2020-06-17T21:08:38 | 2020-06-17T21:08:38 | 273,071,479 | 0 | 0 | Apache-2.0 | 2020-06-17T20:25:39 | 2020-06-17T20:25:38 | null | UTF-8 | Python | false | false | 208 | py | """Base class for integer values."""
from gemd.entity.value.base_value import BaseValue
class IntegerValue(BaseValue):
"""A base class for values that correspond to a distribution over the integers."""
| [
"maxhutch@gmail.com"
] | maxhutch@gmail.com |
d820c5b80b35a06fc5c68f6ec34db5ed4fda2ae6 | 3644bdadac4e1ae516a2f5fce08d3a3876744b4b | /k Sum.py | 6a8dbfee10b4288fbe02882919ce19436e256121 | [
"Apache-2.0"
] | permissive | lancezlin/LintCode | 9b300bd4a47bf9e0db45c503a9d5f4fbda8f1a7f | 1263a9bef5fd172703d7a537744a39f8436f710a | refs/heads/master | 2020-05-31T00:09:26.758483 | 2015-07-12T12:34:27 | 2015-07-12T12:34:27 | 39,527,112 | 1 | 0 | null | 2015-07-22T19:53:16 | 2015-07-22T19:53:15 | Python | UTF-8 | Python | false | false | 2,838 | py | """
Given n distinct positive integers, integer k (k <= n) and a number target.
Find k numbers where sum is target. Calculate how many solutions there are?
Example
Given [1,2,3,4], k=2, target=5. There are 2 solutions:
[1,4] and [2,3], return 2.
"""
__author__ = 'Danyang'
class Solution:
def kSum(self, A, k, t... | [
"zhangdanyangg@gmail.com"
] | zhangdanyangg@gmail.com |
e5ebcda822c191dc4652e68d6bb55b69a192539a | e401ee9a7c770edae4a6dc833baca69ca286ce89 | /tsvector_field/apps.py | 79b8ae3c1a1a2b4ce968e20ebf352a74e564bbe6 | [
"BSD-3-Clause"
] | permissive | damoti/django-tsvector-field | 232b181c8679d8676ab9df07426789f1d67a09cc | 77d3ffe4ce0f52f65f313a97549d24bd906a0cfb | refs/heads/master | 2023-03-15T19:27:58.471049 | 2022-12-10T13:54:49 | 2022-12-10T13:54:49 | 76,378,613 | 75 | 14 | BSD-3-Clause | 2023-03-09T11:23:23 | 2016-12-13T16:41:37 | Python | UTF-8 | Python | false | false | 1,343 | py | from django.apps import AppConfig
class TextSearchVectorConfig(AppConfig):
name = 'tsvector_field'
def ready(self):
"""
This supports two use cases for using tsvector_field:
1. Configure your Django project to use tsvecotr_field's DatabaseSchemaEditor
directly by creating... | [
"lex@damoti.com"
] | lex@damoti.com |
ff29db5de60961b9ba3e420d747308c2ad666b1f | b98e9e5ec77b65bf307b87ea1129d3d778a915af | /python/1157_wordstudy.py | b4f94fd36d8a34e1afb9e3635fbcf2806e609148 | [] | no_license | KimYeong-su/Baekjoon | 8ea5e5fab711d05c0f273e68a849750fdcdbae4b | 0e56b2cfdf67c0e6ffbbe3119e2ab944d418f919 | refs/heads/master | 2021-07-08T11:25:00.019106 | 2021-04-21T12:47:49 | 2021-04-21T12:47:49 | 239,902,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | s = list(input())
result = []
for i in s:
if 96<ord(i)<123:
result.append(ord(i)-32)
else:
result.append(ord(i))
n = len(set(result))
counting = [0 for _ in range(26)]
for i in range(len(s)):
counting[result[i]-65] += 1
cnt=0
for i in counting:
if max(counting) == i:
cnt += 1... | [
"suwon0521@naver.com"
] | suwon0521@naver.com |
c74715dde127c22b4fc9d9b7c234d4ae0f1649f1 | 94f180b4b0b0a699d6948fd5e1216d16d6735edc | /source-code/Race Car 818.py | fc548073f732541d3bff239d3c74d6043b61c7a0 | [
"MIT"
] | permissive | ttungl/Coding-Interview-Challenge | 7093b7f8da0c03abaf2f61340384cdc15c7a31e7 | d80c3e15468d50b42ee53fcc73e9326c6c816495 | refs/heads/master | 2021-09-15T05:25:27.192040 | 2018-05-26T19:02:33 | 2018-05-26T19:02:33 | 115,586,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | # 818. Race Car
# ttungl@gmail.com
# Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negative positions.)
# Your car drives automatically according to a sequence of instructions A (accelerate) and R (reverse).
# When you get an instruction "A", your car does the following... | [
"noreply@github.com"
] | ttungl.noreply@github.com |
ab4b94cd800b0f89c4d0577a6a17a987fe21200e | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_each13.py | fb57a72705d44874cf4ba121e757895da1468779 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from xcp2k.inputsection import InputSection
class _each13(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Pint = None
self.Metady... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8b14c01fe671717f96b9b06c1fea166095283e41 | d58fba8e533556220dd0bf3612c215de299921e5 | /lyman/workflows/__init__.py | 5e7aac3f60b8718cfca43494f3038e6591a72cf5 | [
"BSD-3-Clause"
] | permissive | sgagnon/lyman | 1fa814af33e62677cc4c94bda9fb24dbd6438687 | f2ca8c7e40a4f090e5ed8aaf47f87b71a0bc2cff | refs/heads/master | 2020-04-05T22:52:43.965901 | 2018-09-15T21:45:34 | 2018-09-15T21:45:34 | 12,715,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from preproc import create_preprocessing_workflow
from model import create_timeseries_model_workflow
from registration import create_reg_workflow, spaces
from fixedfx import create_ffx_workflow
from mixedfx import create_volume_mixedfx_workflow
from surfols import create_surface_ols_workflow
from anatwarp import create... | [
"mwaskom@stanford.edu"
] | mwaskom@stanford.edu |
eb083f2665016f47d836c2c33f5466f9228eaf25 | d59567a10b8b0a5cc4f1cfa199537ebbe1ddfee3 | /prepare_text_for_perplexity_eval.py | 0a5aa06b73946961db1921527acc54eb1085b8b5 | [] | no_license | h1-the-swan/cse517_hw1 | 40cf2bbfec38954c9f19eb7bc2ae645dbcd8f991 | d8cbbfe1bd642d8393cd8856a886c3d6ce95175c | refs/heads/master | 2021-01-10T11:00:34.779364 | 2016-01-20T20:59:16 | 2016-01-20T20:59:16 | 49,286,693 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import argparse, sys, codecs, time
parser = argparse.ArgumentParser(description='prepare text to alternately query and observe for the language model')
parser.add_argument('-f', '--fname', type=str, help='filename to be used as input')
parser.add_argument('-o', '--outf', type=str, help='filename to be used as output (i... | [
"jason.portenoy@gmail.com"
] | jason.portenoy@gmail.com |
6587afe5bd7ef137cbbefbeb1f8765fe0f0f9343 | fdbe1bedf30ed70314f133a786a00962b5d476c8 | /Chapter1/fib3.py | c14ab80b524aada20bf597d57be5a2564d5f0bfd | [] | no_license | vlad-bezden/ClassicComputerScienceProblemsInPython | 5f73bd1ba6f14f489dd03af7caa364c044bc0046 | 2b0611014fea6dfb17da3910011e2f9eda8ea386 | refs/heads/master | 2020-04-21T01:04:53.635478 | 2020-01-27T13:27:26 | 2020-01-27T13:27:26 | 169,213,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import unittest
from typing import Dict
memo: Dict[int, int] = {0: 0, 1: 1}
def fib(n: int) -> int:
if n not in memo:
memo[n] = fib(n - 1) + fib(n - 2)
return memo[n]
class Test(unittest.TestCase):
def test_1(self):
self.assertEqual(fib(1), 1)
def test_2(self):
self.assertE... | [
"vlad.bezden@gmail.com"
] | vlad.bezden@gmail.com |
fb6c03402a60148c9ed299bc09ff94715493f8c0 | ba5b6a82e7e98461d22f6234fef1c97f41812097 | /chap12.py | 7cfc3909e4b8be3687535ae52748f0fa1ad808ab | [
"MIT",
"CC-BY-NC-4.0"
] | permissive | TralahM/ModSimPy | f3e01b63498e89437b347fa9324d2a0cecacaa58 | dc996b6ff8797d9a646d0176a8b5057a4a6ba443 | refs/heads/master | 2023-05-24T20:32:29.047618 | 2023-05-22T15:18:28 | 2023-05-22T15:18:28 | 183,823,049 | 2 | 0 | MIT | 2023-09-10T17:47:43 | 2019-04-27T21:25:48 | HTML | UTF-8 | Python | false | false | 147 | py | from modsim import *
def calc_total_infected(results, system):
s_0 = results.s[0]
s_end = results.s[system.t_end]
return s_0 - s_end
| [
"downey@allendowney.com"
] | downey@allendowney.com |
0ad4faba9d5930b0bf18cadb2109ec527535f645 | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/battle_results/components/vehicles.py | 986aa6ad5a6bfb818530d00bcf3329b1aface67a | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,512 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_results/components/vehicles.py
from constants import DEATH_REASON_ALIVE
from gui.Scaleform.locale.BATTLE_RESULTS import BATTLE_RESULTS
from gui.Scaleform.locale.RANKED_BATTLES import RANKED_BATTLES
from gui.Scaleform.genC... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
8b83a54fe42cb417bf36865414c3ab9b18563b01 | b424c3262c9eacf8dd4230019eba7e05a9b95461 | /.history/ndn_hello_sender_20200530232544.py | 6fbccdc12678c5890d7b8c3d3e26933648a00627 | [] | no_license | leonerii/aer_tp | 30e47f29bcda69512718a6279a7cad32e9a01b14 | d8f46b188b5be9f315dd155ed147880ce7dce169 | refs/heads/master | 2022-09-30T03:27:24.375971 | 2020-06-04T14:23:16 | 2020-06-04T14:23:16 | 245,219,806 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | from threading import Thread, RLock
from time import sleep
from json import dumps
from uuid import uuid4
import socket
class NDN_HelloSender(Thread):
def __init__(self, lock, hello_interval, cs, localhost, mcast_addr, mcast_port):
Thread.__init__(self)
self.lock = lock
self.hello... | [
"aseie@Adrianos-MBP.lan"
] | aseie@Adrianos-MBP.lan |
bec21f21b7942d8126555dd13c953686957cc8bb | 52d9daeefbae6a1c6346e61f22122184b1beef20 | /02576.py | 677e088f151875a717434368400bb15ecf91e68a | [] | no_license | chiseungii/baekjoon | 4034947f63c515bdebc24c3f48247a7f00319ab3 | 6d0fb79292ef4927ab6343f6b82ea63609f560b5 | refs/heads/master | 2021-06-13T14:50:17.762402 | 2021-05-26T16:00:41 | 2021-05-26T16:00:41 | 188,278,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | min_n = 100; sum = 0
for i in range(7):
a = int(input())
if a % 2:
sum += a
min_n = min(min_n, a)
if sum == 0:
print(-1)
else:
print(sum, min_n, sep='\n')
| [
"noreply@github.com"
] | chiseungii.noreply@github.com |
99b0dc9c0073faa64e473f7f68893a95a2015b2d | fced25b055ec68ee522bd156c3be5902172beb55 | /Libraries/vdom_debug.py | 6d12c30e234a42be3a9dfa09dbb8ac9c73514433 | [] | no_license | EAC-Technology/eApp-Builder | 3cff5576139b78fc507406e31a4b5201eab436b7 | c3bbadde24330fb2dff4aa2c32cc6b11e044fbc9 | refs/heads/master | 2021-08-16T23:56:54.241674 | 2017-11-20T14:15:10 | 2017-11-20T14:15:10 | 111,399,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import sys, traceback
import cProfile, StringIO, pstats
from datetime import datetime, timedelta
def _pre(*args):
args = map(str, args)
text = ' '.join(args)
text = text.replace('<', '<').replace('>', '>')
return '<pre style="white-space: pre-wrap;">\n{0}\n</pre>'.format(text)
def p(*args, **kwargs):
s =... | [
"alain.abraham@web-atrio.com"
] | alain.abraham@web-atrio.com |
8502b3c88353e3ff6d3ffe9b7b8bbd94a7c7c220 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/PropertyFile.pyi | 01fbfa613b037e3dde1570e18e53c8ff4603fd10 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,894 | pyi | import java.io
import java.lang
class PropertyFile(object):
"""
Class that represents a file of property names and values. The file
extension used is PROPERTY_EXT.
"""
PROPERTY_EXT: unicode = u'.prp'
def __init__(self, dir: java.io.File, storageName: unicode, parentPath: unicode, name: un... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
d592b22c2fee470a493585c8832a68fe69bcddcf | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /programming/misc/libiodbc/actions.py | b74aa6ae061207a63f2229a85d2903054c7a5ef4 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def set... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
2e8d407076e1b4361caecd017207c10c13ac87af | 97b4ab165b11ff9e2f6ea7f73c85d9d29232d18b | /wsdb/tests/test_catalogues.py | c06c6d4498d62a0a9344ec6834712ed48a03bbef | [] | no_license | evertrol/goto-wsdb | 434f2d84350a2af13da6edef6ddbf5a2f2754fde | ceb20395c825af208dfd969788c9a49c25e1604a | refs/heads/master | 2021-07-07T09:30:34.945565 | 2017-09-06T10:30:29 | 2017-09-06T10:30:29 | 105,730,055 | 0 | 0 | null | 2017-10-04T04:01:11 | 2017-10-04T04:01:11 | null | UTF-8 | Python | false | false | 865 | py | import unittest
from wsdb import WSDB
class TestWSDBClient(unittest.TestCase):
def setUp(self):
self.client = WSDB()
def tearDown(self):
self.client.close()
class TestWSDBCatalogues(TestWSDBClient):
def test_catalogue_name_retrieval(self):
"""
Retrieve the catalogues... | [
"andycasey@gmail.com"
] | andycasey@gmail.com |
6bbe58790382dd8d81677567ee98cf3eaa4a6bf5 | 4478cf6f346594399588572db11dcf1b6dc65d75 | /mpi/scatter.py | 96b95589b64d6de31f334871bbfb018cc8c796cb | [
"0BSD"
] | permissive | mand35/scatter | bf358a6754c12046575b1b7fbf4d7512805b1b3f | e4f30149f5c9f1e2cbb3b91812becf24adf4990d | refs/heads/master | 2020-03-29T08:22:33.005492 | 2019-08-26T20:56:13 | 2019-08-26T20:56:13 | 149,707,600 | 0 | 0 | null | 2018-09-21T03:58:39 | 2018-09-21T03:58:38 | null | UTF-8 | Python | false | false | 4,252 | py | import argparse
import numpy
import scipy.special
from numpy import cos, sin, pi
import math
import saveVtk
import wave
import math
from mpi4py import MPI
parser = argparse.ArgumentParser(description='Compute field scattered by an obstacle.')
parser.add_argument('-lambda', dest='lmbda', type=float, default=0.5, help='... | [
"alexander@gokliya.net"
] | alexander@gokliya.net |
74c407d65f27bb4769e85f19a94c587e2cc92a25 | 747f759311d404af31c0f80029e88098193f6269 | /addons/olap/cube/warehouse.py | a37f845ee58b61c28098b0c341572628bbe2d8b4 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | /home/openerp/production/extra-addons/olap/cube/warehouse.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
5337ebf31fb7e76be67b2a099e8e18f5d66fb19c | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_20/models/array_connection_path_get_response.py | 1a468b88e1e42a93c716e4c9f463b411008a1c53 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 5,585 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.20
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
3874683d9a36ba63c50a08a2b0c685ee20184a65 | de33d07019f4be4439de4f07585a0906215ef562 | /25.K个一组翻转链表.py | fd1cd6982c2d1ee030b8ce9646781a722786522b | [] | no_license | Qinpeng96/leetcode | defbf7873fc07ed42fd34bb0c3e3282ff41ed266 | e1dfd95c5bf09ffcd42934c1aca21a10337c3e7e | refs/heads/master | 2021-07-13T10:53:32.109431 | 2020-08-19T09:33:36 | 2020-08-19T09:33:36 | 196,947,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # -*- coding: utf-8 -*-
"""
给你一个链表,每 k 个节点一组进行翻转,请你返回翻转后的链表。
k 是一个正整数,它的值小于或等于链表的长度。
如果节点总数不是 k 的整数倍,那么请将最后剩余的节点保持原有顺序。
示例 :
给定这个链表:1->2->3->4->5
当 k = 2 时,应当返回: 2->1->4->3->5
当 k = 3 时,应当返回: 3->2->1->4->5
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/reverse-nodes-in-k-group
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注... | [
"Qinpeng96@users.noreply.github.com"
] | Qinpeng96@users.noreply.github.com |
47c9974b1614360438f9304f6303dd5c4f5a79d8 | 460b4ec7a8e9332567bae637797c3cf29619d651 | /experiments/breakout_dqn.py | 77a34e16977ddd17574c904d9790e747ac0e7e59 | [] | no_license | agajews/tfbrain-v2 | e1a79d805007913afb91dd60c73bdf64beba4122 | 86f595bf61d41f70af2bcc6ac3cd6abd6aa0615f | refs/heads/master | 2021-01-13T09:10:02.249595 | 2016-09-26T13:04:02 | 2016-09-26T13:04:02 | 69,250,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | import tfbrain as tb
from tasks.rl import AtariTask
import tensorflow as tf
def train():
task = AtariTask()
task.build()
sess = tf.InteractiveSession()
net = tb.ly.InputLayer((None,) + task.get_state_shape(), sess,
name='state')
net = tb.ly.Conv2DLayer(net, (8, 8), 32,... | [
"agajews@gmail.com"
] | agajews@gmail.com |
d6a9a08c3db8e6d3f070ef74cf0bb733382b6aea | 263a6f8fcb4ec323eab1e05a842cbb29463369c2 | /microsetta_public_api/api/tests/implementation_tests/test_plotting.py | 0fcc10db60c880f8285f28b00edd0a405e62c3d3 | [
"BSD-3-Clause"
] | permissive | wasade/microsetta-public-api | dac0bd53bce0a6f96faf5aaf1d133109d2c50aca | cdbaa18103bbb2e49927a35ad956e079ad445f53 | refs/heads/master | 2023-04-19T08:50:05.262146 | 2020-07-23T17:11:19 | 2020-07-23T17:11:19 | 282,011,485 | 0 | 0 | BSD-3-Clause | 2020-07-23T17:12:03 | 2020-07-23T17:12:03 | null | UTF-8 | Python | false | false | 2,227 | py | from microsetta_public_api.repo._alpha_repo import AlphaRepo
from unittest.mock import patch
import pandas as pd
from microsetta_public_api.api.plotting import plot_alpha_filtered
from microsetta_public_api.utils.testing import MockedJsonifyTestCase
class AlphaPlottingTestCase(MockedJsonifyTestCase):
jsonify_to_... | [
"garmstrong@colgate.edu"
] | garmstrong@colgate.edu |
aa6a9be27f960fc36f21361d7cfa223d9ee0ff0e | b66457c060a99dc5786c9adbbfb920398e98a870 | /venv/lib/python3.7/site-packages/sqlalchemy_utils/types/color.py | 161b2854858eab988ca66bc3d4d80d9f2501d3a7 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | joeybaba/incubator-superset | 38349d9ad93caf365fc02d256b75bb0a9b7f04f8 | fc6fc042b4acbc564b69011532a92cf88d21a609 | refs/heads/master | 2022-12-16T15:15:48.830165 | 2020-09-21T09:34:25 | 2020-09-21T09:34:25 | 267,489,424 | 0 | 0 | Apache-2.0 | 2020-05-28T04:02:52 | 2020-05-28T04:02:51 | null | UTF-8 | Python | false | false | 2,120 | py | import six
from sqlalchemy import types
from ..exceptions import ImproperlyConfigured
from .scalar_coercible import ScalarCoercible
colour = None
try:
import colour
python_colour_type = colour.Color
except ImportError:
python_colour_type = None
class ColorType(types.TypeDecorator, ScalarCoercible):
... | [
"scau2017@163.com"
] | scau2017@163.com |
6f8d3771862b0537d1f8487136e9b4080b19d570 | 4f0385a90230c0fe808e8672bb5b8abcceb43783 | /函数模块库/difflib 模块.py | 30d59a4ec6c05b4d66be31a30b835d5ed6578683 | [] | no_license | lincappu/pycharmlearningproject | 4084dab7adde01db9fa82a12769a67e8b26b3382 | b501523e417b61373688ba12f11b384166baf489 | refs/heads/master | 2023-07-10T05:21:15.163393 | 2023-06-29T14:02:35 | 2023-06-29T14:02:35 | 113,925,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,382 | py | # !/usr/bin/env python3
# _*_coding:utf-8_*_
# __author__:FLS
import difflib
# tex1 = """tex1:
# this is a test for difflib ,just try to get difference of the log
# 现在试试功能是否可行 好呀
# goodtest
# 那么试试吧好人
"""
# tex1_lines = tex1.splitlines()
# tex2 =
# this is a test for difflib ,just try to get difference of the log
# 现在... | [
"lincappu@163.com"
] | lincappu@163.com |
29b034b4a302b8fe74dd929d0ca3888ff6136fc0 | 51ea2be2a164e90a6f6c327ccedc95b5492a5329 | /hackerrank/Python Language Proficiency/Text_Alignment.py | 0265c30092a58b5e95a68dd2c67efc1dfb4dc121 | [
"MIT"
] | permissive | hanzohasashi33/Competetive_programming | 081c30d248d54cdf488d36d1c965b0f184296562 | b609972ada1c7177f182665e998beaa0c1eba514 | refs/heads/master | 2021-06-30T07:21:12.625721 | 2021-02-01T12:54:56 | 2021-02-01T12:54:56 | 216,160,136 | 22 | 23 | MIT | 2022-05-30T16:13:36 | 2019-10-19T06:28:39 | C++ | UTF-8 | Python | false | false | 712 | py | #Replace all ______ with rjust, ljust or center.
thickness = int(input()) #This must be an odd number
c = 'H'
#Top Cone
for i in range(thickness):
print((c*i).rjust(thickness-1)+c+(c*i).ljust(thickness-1))
#Top Pillars
for i in range(thickness+1):
print((c*thickness).center(thickness*2)+(c*thickness).center... | [
"noreply@github.com"
] | hanzohasashi33.noreply@github.com |
842860c2766f607324ee607c45729cdaed9f5e3a | ac47074bcf749273941ab01213bb6d1f59c40c99 | /project/fund/fund_benchmark/fund_stock_predited/fund_regress_stock_weight_predicted.py | fe6b30fbad6072acba5fb814641ddc560ec098d5 | [] | no_license | xuzhihua95/quant | c5561e2b08370610f58662f2871f1f1490681be2 | c7e312c70d5f400b7e777d2ff4c9f6f223eabfee | refs/heads/master | 2020-05-19T17:04:08.796981 | 2019-04-24T02:50:29 | 2019-04-24T02:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,839 | py | import os
import pandas as pd
import cvxpy as cvx
import numpy as np
from datetime import datetime
from quant.data.data import Data
from quant.fund.fund import Fund
from quant.stock.date import Date
from quant.stock.index import Index
from quant.stock.stock import Stock
from quant.source.backtest import BackTest
from ... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
f5be9d814c96c3e02d12e93ea6c31af11eccc93f | 9b57429efa72dbfa2ead9ae8d98a148475264aef | /dataservice/zmq/UPcomputer_part/TCP_receive_0mq_PUB/TCP_multi_threadingreceive.py | ea424d55dc1007d32980c5972d562c19b3cd3d55 | [] | no_license | Scottars/nis_website | 7d78b1ab8647ebf17bc2b020660a56ac6f6a039f | 2025e428dd65dba06c95738233978604ee011570 | refs/heads/master | 2022-03-07T19:04:15.565128 | 2021-01-19T16:03:50 | 2021-01-19T16:03:50 | 218,421,853 | 0 | 0 | null | 2022-03-02T06:49:57 | 2019-10-30T01:58:29 | JavaScript | UTF-8 | Python | false | false | 4,528 | py | import threading
import zmq
import time
import socket
import datetime
def zmq_recv(context,url):
socket = context.socket(zmq.SUB)
# socket = context.socket(zmq.REP)
socket.connect(url)
socket.setsockopt(zmq.SUBSCRIBE,''.encode('utf-8')) # 接收所有消息
zhanbao=0
buzhanbao=0
start_time = time.cl... | [
"ScottarSEEE@hust.edu.cn"
] | ScottarSEEE@hust.edu.cn |
42ad29896d896014a8013d1c56e1ab2ee6e94598 | 294d2aa791fbf8f2d2f693bf9ff83271c736bd6a | /www/src/Lib/test/test_iterlen.py | 9101f6c884695c4e190961178f3da5c4a69f2ae8 | [
"BSD-3-Clause"
] | permissive | SungBeom/BBAM_Brython | 5394d18efbe1b45811ab5892e08863bec66c3c2a | 107036ad20a94af1d43e5ce5bd7c73e6a470d687 | refs/heads/master | 2022-11-09T23:06:23.418179 | 2018-07-31T09:34:21 | 2018-07-31T09:34:21 | 142,992,916 | 1 | 1 | BSD-3-Clause | 2022-10-15T05:28:53 | 2018-07-31T09:30:50 | Python | UTF-8 | Python | false | false | 7,578 | py | """ Test Iterator Length Transparency
Some functions or methods which accept general iterable arguments have
optional, more efficient code paths if they know how many items to expect.
For instance, map(func, iterable), will pre-allocate the exact amount of
space required whenever the iterable can report its length.
T... | [
"psb_94@naver.com"
] | psb_94@naver.com |
028ac8063d3d9ce8135fef1dd1b41f6352208a6d | eee85a1ee54fa54e74b93bf3af8391c3f0c80b2a | /basic/easypython/example08-04-01.py | 9c22a4aa9894bc2659dc1130b952b520e6287942 | [] | no_license | ryu-0406/study-python | 8712a6e235e1ca92bb3c00ad053c8298f691108c | da10d5913de32569b2ba4bc98d9919a78e85d22a | refs/heads/master | 2022-12-14T22:43:45.236184 | 2020-09-13T03:55:36 | 2020-09-13T03:55:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # クラスのインポート
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
import reportlab.lib.units as unit
import reportlab.lib.pagesizes as pagesizes
# フォントの登録
pdfmetrics.registerFont(UnicodeCIDFont("HeiseiKakuGo-W5"))
# PDFを作る
pdf = canvas.Canva... | [
"yoshi-da0406@outlook.jp"
] | yoshi-da0406@outlook.jp |
fcd0ebb2c09f52e7fa69e395c557d7c298f7687c | b347bc4b850dee4a8a9a171b563a3f31230ce1c7 | /sktime/regression/dummy/__init__.py | bb3f2a75abe3caac01d8d430d9b3388ac30fbb5e | [
"BSD-3-Clause"
] | permissive | sktime/sktime | 5963962df338c5931a2f9f1794d1203c50ddc27e | 70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f | refs/heads/main | 2023-08-22T18:20:08.022950 | 2023-08-22T15:24:39 | 2023-08-22T15:24:39 | 156,401,841 | 1,117 | 268 | BSD-3-Clause | 2023-09-14T20:44:21 | 2018-11-06T15:08:24 | Python | UTF-8 | Python | false | false | 118 | py | """Dummy regressor."""
__all__ = [
"DummyRegressor",
]
from sktime.regression.dummy._dummy import DummyRegressor
| [
"noreply@github.com"
] | sktime.noreply@github.com |
ebe9a55f450a1d9d7b9db7e7cadf439416928912 | e0d776ec6d324e8630d463a1be81f81ccd3a51a9 | /places/urls.py | 0c49d3e6574319b6a8c8bf27374d9769767a25ac | [
"MIT"
] | permissive | moshthepitt/shulezote | 9b3c8c6d5c53e2b497977fd6900e500e09315c41 | e903a208948ab5294183e2a8c2dac9360a184654 | refs/heads/master | 2021-07-03T11:17:19.274106 | 2019-08-04T09:49:59 | 2019-08-04T09:49:59 | 32,628,463 | 2 | 1 | MIT | 2021-06-10T19:47:39 | 2015-03-21T10:35:34 | Python | UTF-8 | Python | false | false | 1,343 | py | from django.conf.urls import patterns, url
from django.views.decorators.cache import cache_page
from places.views import CountyView, ProvinceView, DistrictView, DivisionView
from places.views import LocationView, SubLocationView, SchoolZoneView, ConstituencyView
urlpatterns = patterns('',
url(r'^county/(?P<slug>[... | [
"kelvin@jayanoris.com"
] | kelvin@jayanoris.com |
97854f6045c89e6a2284e98a2745df07a5266cba | 2b3440dcc10bc3d5758eac775a46a3a77ca455dc | /lib/models/_deprecated/lightnet/mobile.py | d2185d68b8e9f48431c71675d48aa196570fdd6d | [] | no_license | vsingh-group/f1-opt | 5c433f825aeb64fa6caa93c209acc6b0b3752159 | 1fc9e8223f3b008521fb08b4cc84f1edcf253c63 | refs/heads/master | 2023-02-04T04:29:07.441145 | 2019-12-04T19:51:37 | 2019-12-04T19:51:37 | 322,929,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,316 | py | from lib.models.lightnet.inplace_abn.iabn import InPlaceABN
import torch.nn as nn
class InvertedResidual(nn.Module):
def __init__(self, inp, oup, stride, dilate, expand_ratio):
"""
InvertedResidual: Core block of the MobileNetV2
:param inp: (int) Number of the input channels
:pa... | [
"abhay.venkatesh@gmail.com"
] | abhay.venkatesh@gmail.com |
7cc237fb9c5839c9011dce4820b950907eb07db2 | 0a3bd0fc84263bd65559cf95b19a6752743f7f64 | /src/guis/make_png_grb | ddca3f2255dd5ae25e63ca7002f47beeee732ae4 | [] | no_license | shohei/fabmodules_jp | b38487e5e64599fe8f3de2c404c1f730e81c616c | 67dc16709bb9eff12b63532e83a13aa410f76311 | refs/heads/master | 2016-09-06T16:25:46.636267 | 2014-08-21T06:49:37 | 2014-08-21T06:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# make_png_grb
# .png to .grb GUI wrapper
#
# Neil Gershenfeld
# CBA MIT 11/23/12
#
# (c) Massachusetts Institute of Technology 2012
# Permission granted for experimental and personal use;
# license for commercial sale available from MIT.
#
# imports
#
import wx,sys
from... | [
"shoaok@gmail.com"
] | shoaok@gmail.com | |
eb20fe6073e31dc0af7851673d92d5f8c6797bea | 83c24afafce1c1758c820a45e164ae01022ee76b | /scripts/sgMaya/sgWidget/name_replace_dag_nodes.py | d9471ae7196d84b65732c6806d57d62714c3278c | [] | no_license | kimsung9k/sgMaya | 53b3d4d4fa8f6a6a5596ce2f40cbe04ba97bfacb | 6c24c640a6fe997ba44e2bd9618425540e89e569 | refs/heads/master | 2020-03-17T17:32:35.294425 | 2018-05-17T09:41:58 | 2018-05-17T09:41:58 | 133,792,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | import maya.cmds as cmds
import maya.OpenMaya as om
class ReplaceNameUIInfo:
_winName = 'sgui_replaceName'
_title = "Widget - Name Replace Dag Node"
_width = 300
_height = 50
class ReplaceName:
def __init__(self, targetStr, replaceStr, target... | [
"kimsung9k@naver.com"
] | kimsung9k@naver.com |
e947c0dff62fa641a71626fbe296fb71b5288b86 | db80135575b1a11a851d78b164a266b9a5523ff6 | /test/terra/backends/aer_simulator/test_save_statevector.py | d5353dc49c0eb783b572233ca9f160ce1e688587 | [
"Apache-2.0"
] | permissive | Qiskit/qiskit-aer | c4d21f9965a7fc0b15c85a1d7f9567f21a3089fc | f9a6691269397f41db6934927d344e0f8076feea | refs/heads/main | 2023-09-02T08:50:39.927625 | 2023-08-31T06:02:16 | 2023-08-31T06:02:16 | 162,182,953 | 416 | 401 | Apache-2.0 | 2023-09-14T01:24:26 | 2018-12-17T19:58:16 | C++ | UTF-8 | Python | false | false | 7,340 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | Qiskit.noreply@github.com |
1854ee639bc7e871ecfbfb7bb7408758ab932440 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2425.py | acb5fc0c340de04e1dce73c393c1d8cd43ee5294 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | T = int( input() )
for Ti in range( 1, T+1 ):
C, F, X = [ float(v) for v in input().split() ]
Fn = 0
Fs = 0
Fp = 2
prevs = X/Fp
curs = prevs
while curs <= prevs:
prevs = curs
Fs += C/Fp
Fn += 1
Fp += F
curs = Fs + X/Fp
#prin... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d525b9adc3a0a8d75b1ef6dbd1168997d002dd44 | 442f1ae48ccb788d2b6905d60e4d37394b299e3a | /kats/tests/models/test_sarima_model.py | db8124aac177543d709046542ebcd945a279bef2 | [
"MIT"
] | permissive | etalverd/Kats | 5f42536bcb8d3de3fe1475736fd19e492ab70b53 | 1decc641b813312b2159f10a0c71ae830c893234 | refs/heads/main | 2023-08-02T18:23:25.106317 | 2021-10-07T05:47:05 | 2021-10-07T05:48:03 | 415,657,091 | 1 | 1 | MIT | 2021-10-10T17:41:29 | 2021-10-10T17:41:28 | null | UTF-8 | Python | false | false | 6,312 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest import TestCase
from kats.consts import TimeSeriesData
from kats.data.utils import load_data, load_air_passengers... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
905e4ba30ded1141d54658cb3af0244a1d0bd577 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/past/utils/__init__.py | 5747d9b3c3e91c5104508696ed054881c46c7821 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,637 | py | """
Various non-built-in utility functions and definitions for Py2
compatibility in Py3.
For example:
>>> # The old_div() function behaves like Python 2's / operator
>>> # without "from __future__ import division"
>>> from past.utils import old_div
>>> old_div(3, 2) # like 3/2 in Py2
0
>>> ... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
60b3a7b59e5f57fdd071daf7b4e93fce0a68b6bf | 77a37559730c9228c6ae9c530dc80b8488080c23 | /build/hector_quadrotor/hector_quadrotor_model/catkin_generated/pkg.installspace.context.pc.py | 4a6090ab8a59353a06de34c99f822f546ebdeb07 | [] | no_license | tdtce/quadrotor | f01e889ef1252ef5e28fc146521a057ead6fa62e | 64677c9c0c461f5bc7ef73b922d5cd912c2e6783 | refs/heads/master | 2020-03-10T17:06:53.133096 | 2018-05-19T16:42:21 | 2018-05-19T16:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/anton/Documents/catkin_ws/install/include;/usr/include".split(';') if "/home/anton/Documents/catkin_ws/install/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;hector_u... | [
"fantaa499@gmail.com"
] | fantaa499@gmail.com |
c915bfcaa543aed9b0dba295ba8e95e2c9507b64 | 5ee5853eb335fcf575d4344366ef9b4bce03570d | /p059m/generate_matrix.py | cac048a9d7ab278f1f9417d5fcb027626bc1557f | [
"MIT"
] | permissive | l33tdaima/l33tdaima | 15463fb2f8d61286a4a3a7bacaaee2ab1f7c4f43 | f35305c618b383a79d05074d891cf0f7acabd88f | refs/heads/main | 2023-07-20T21:52:26.330301 | 2023-07-19T02:30:22 | 2023-07-19T02:30:22 | 99,509,451 | 1 | 0 | MIT | 2018-10-31T15:10:49 | 2017-08-06T19:44:29 | JavaScript | UTF-8 | Python | false | false | 1,659 | py | from typing import List
class Solution:
def generateMatrixV1(self, n: int) -> List[List[int]]:
matrix = [[0] * n for _ in range(0, n)]
istart, jstart, v = 0, 0, 1
for level in range(n, 0, -2):
i, j = istart, jstart
while j < jstart + level - 1:
matri... | [
"l33tdaima@github.com"
] | l33tdaima@github.com |
eea8cdaf43f673271f0a1030f9e92e1f6efeff25 | 4505ae4b6fee0e32d799f22c32b18f79884daef4 | /src/keras/tests/keras/activations_test.py | 7ffed910ae3fc0eca7e1f26f015aa6295fb5d1d3 | [
"Apache-2.0",
"MIT"
] | permissive | lu791019/iii_HA_Image_Recognition_DL | 5cde9c2d0c06f8fe3fb69991b27fda87d42450e1 | d5f56d62af6d3aac1c216ca4ff309db08a8c9072 | refs/heads/master | 2020-08-03T06:56:05.345175 | 2019-09-29T13:20:24 | 2019-09-29T13:20:24 | 211,660,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,183 | py | import pytest
import numpy as np
from numpy.testing import assert_allclose
from keras import backend as K
from keras import activations
from keras.layers.core import Dense
def get_standard_values():
"""A set of floats used for testing the activations.
"""
return np.array([[0, 0.1, 0.5, 0.9,... | [
"noreply@github.com"
] | lu791019.noreply@github.com |
31a9837b1ceb91c8c6dd593c3f8a9955df863788 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/api_lib/eventarc/locations.py | 0c061e37ace3cc5958883d980555b2582de273e4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,295 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3fbda5ab17bb09fdc016d0baa92ad07a110f70d3 | c105797a5b6f5aca0b892ccdadbb2697f80fb3ab | /python_base/base10/base10_7/test_base10_7_3.py | 0759806ac16479fd4c78f6cde391aa60e4402098 | [] | no_license | jj1165922611/SET_hogwarts | 6f987c4672bac88b021069c2f947ab5030c84982 | fbc8d7363af0a4ac732d603e2bead51c91b3f1f7 | refs/heads/master | 2023-01-31T19:41:27.525245 | 2020-12-15T13:43:45 | 2020-12-15T13:43:45 | 258,734,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | #!/usr/bin/env python
# -*-coding: utf-8 -*-
# @Time : 2020-05-24
# @Author : Joey Jiang
# @File : test_base10_7_3.py
# @Software : PyCharm
# @Description: 多窗口处理与网页frame
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By
class TestWindow:
def setup(s... | [
"1165922611@qq.com"
] | 1165922611@qq.com |
949afb97a95b3b09be549f579cfc1cd4cd462381 | aa28417be8935d6fa369fcb526174f9e1e30479a | /playstation/practice/500-2.py | d9c95253ce9fc5e409c7eee512a57b687ec55b38 | [] | no_license | YYN117/Demo | d6fca95ed8a1a433ef06f1f3fc2e768414e863cb | 40690040a7422fd5d8f03a0d68f20f1be5d4a836 | refs/heads/master | 2020-04-14T12:29:30.129709 | 2019-01-02T13:31:10 | 2019-01-02T13:31:10 | 163,841,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | class Solution:
def findWords(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
key1 = 'qwertyuiop'
key2 = 'asdfghjkl'
key3 = 'zxcvbnm'
ans = []
for word in words:
a = set(word.lower())
if a.issubset(key1) o... | [
"41251061+YYN117@users.noreply.github.com"
] | 41251061+YYN117@users.noreply.github.com |
f02a50c3bc90a61907fd7420863ecfd4eaeefbc7 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004371.py | 31f825b367a7d9a73d0daf04f8d90b318488b1f2 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
9860b2ac994e3caf90ba568f15693e9a21296b16 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_120626.54+663352.5/sdB_sdssj_120626.54+663352.5_lc.py | 6bd2a4145ac3ddf55d9c3be9bb3f8d29584f171f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[181.610583,66.564583], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_120626.54+663352.5/sdB_sdssj_120626.54+663352.5_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
9a5a149a43331e9fc9c40795acad8248d841833a | 7605393f484839e11ad937f8c980c41b25c7a991 | /pulllist/migrations/0004_pulllist_comics.py | dedaa94a127a3baf8159045088891ca9c926d9c7 | [] | no_license | gchartier/compendia-backend | 8ded699e54249865b7582697f50971012ed91c61 | 55fb5c9b3a7766adb944125ded00a6b023ac0965 | refs/heads/master | 2022-12-19T05:58:42.512729 | 2020-09-15T18:27:00 | 2020-09-15T18:27:00 | 295,802,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # Generated by Django 2.2.4 on 2019-11-09 22:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comic', '0005_comic_is_standard_issue'),
('pulllist', '0003_auto_20191109_1757'),
]
operations = [
migrations.AddField(... | [
"gabriel.d.chartier@gmail.com"
] | gabriel.d.chartier@gmail.com |
16d10b3410c0318102f6d3b8cc5789390fc427e9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_zillion.py | 4ff8de69778ed89f562d7ce511bfd137b56402d0 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py |
#calss header
class _ZILLION():
def __init__(self,):
self.name = "ZILLION"
self.definitions = [u'an extremely large, but not an exact, number: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.j... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d24866798f14850856dedb62f54a25455158a641 | 117c776d4ed9066ec50f296c0fd861638c3e2672 | /tests/test_rectangle_2d.py | a533407fd7ef4c11b13a11ba0651a74b1eaf2004 | [
"MIT"
] | permissive | Nachtfeuer/concept-py | 4eb37a5769b73ab88c1d2876e661d42cb38ce1ac | 64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f | refs/heads/master | 2023-01-09T07:21:37.426887 | 2017-06-26T03:13:26 | 2017-06-26T03:13:26 | 37,335,908 | 2 | 0 | MIT | 2022-12-26T20:27:39 | 2015-06-12T17:44:55 | Python | UTF-8 | Python | false | false | 3,595 | py | """
=======
License
=======
Copyright (c) 2017 Thomas Lehmann
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 u... | [
"thomas.lehmann.private@gmail.com"
] | thomas.lehmann.private@gmail.com |
0a34d44f7db26f28aebd4cad4cd43ebc3d1c7365 | 10e5b1b2e42a2ff6ec998ed900071e8b5da2e74e | /array/0120_triangle/0120_triangle.py | e0dc728f66299bf022c442ddc904c0cc61858535 | [] | no_license | zdyxry/LeetCode | 1f71092d687316de1901156b74fbc03588f0b0a5 | b149d1e8a83b0dfc724bd9dc129a1cad407dd91f | refs/heads/master | 2023-01-29T11:59:14.162531 | 2023-01-26T03:20:23 | 2023-01-26T03:20:23 | 178,754,208 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | class Solution(object):
def minimumTotal(self, triangle):
n = len(triangle)
if n == 0:
return None
if n == 1:
return triangle[0][0]
for i in range(1, n):
triangle[i][0] += triangle[i-1][0]
triangle[i][-1] += triangle[i-1][-1]
... | [
"zdyxry@gmail.com"
] | zdyxry@gmail.com |
525d876e4f2b2d2fcf0fcd8c11188d0017dd4ca6 | 58bb41c238c3f20774d9e3b3dc131d7a5f1c95b6 | /thonny/plugins/circuitpython/__init__.py | d8bda73864515736228d23a3cdfb01b4f4978d36 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | leafdown/thonny | 25a66e9ed3d6da744f901410211d0aeeba69542b | 5e553e407950db87b5c26fe5cadb59cf3e3b8684 | refs/heads/master | 2020-06-16T17:19:10.207583 | 2019-07-07T07:09:13 | 2019-07-07T07:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | import os.path
import tkinter as tk
from tkinter import ttk
from thonny.plugins.micropython import (
MicroPythonProxy,
MicroPythonConfigPage,
add_micropython_backend,
)
from thonny import get_workbench
from thonny.ui_utils import create_url_label, show_dialog, askopenfilename
import threading
f... | [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
a7963897aba24009069a78bbaf95331028b79d6f | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/apimanagement/v20190101/api_issue.py | b552f9531ec3f877cebea9437b28eb12120cdd8c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,509 | 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"
] | vivimouret29.noreply@github.com |
08e7c054ec0b709b6930b517927d6692b8c137d3 | a2dce63dc04f484d1457073610343378656a1ffd | /fase4.py | 0922f5691360f1d99a6d2de9f89eb10f484a064d | [] | no_license | analaura09/pythongame | 5ece67047095160cdbc56ae3bb14920c787d8d02 | 54c83cf731a384fdb04bc4c3ed0bcf109b03d5ed | refs/heads/main | 2023-03-29T00:35:35.713616 | 2021-03-21T17:53:28 | 2021-03-21T17:53:28 | 348,432,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | while True:
print('=====================================')
print('=== BEM VINDO A FASE 4 DO MUNDO 1 ===')
print('=== OS DESAFIOS DESSE MUNDO SAO ===')
print('1. Deixando tudo pronto \n2. Resposta ao usuario')
opçao = int(input('qual desafio você escolhe(digite o numero 1 ou 2)?'))
if opçao == 1:... | [
"pereira.laura@escolar.ifrn.edu.br"
] | pereira.laura@escolar.ifrn.edu.br |
e1fd03a75d25dafe027c1745e561c9854279a582 | 021f764e87acc90b79eabaaf03976ef5221b169c | /sms/tests/factories.py | f751f047c792c5170eaf1c38ccd02b4c32f8380f | [] | no_license | dedayoa/yeastar-sms-bridge | 3fc0ca6fc5cb978d6c7a0ee8f8f954516bd097b1 | 30a407abea78d108eed8d669084ccb4ff2e31dfd | refs/heads/master | 2023-06-11T13:48:18.231804 | 2021-06-28T06:39:24 | 2021-06-28T06:39:24 | 368,727,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import factory
from phonenumber_field.phonenumber import phonenumbers
from gateway.tests.factories import SpanFactory
from userapp.tests.factories import UserFactory
from django.utils import timezone
from ..helpers import next_time
class SMSMessageFactory(factory.django.DjangoModelFactory):
text = "This is a test... | [
"dedayoa@gmail.com"
] | dedayoa@gmail.com |
6abbf52d4179b064958b938182b310dea69676ce | 10b5a703c0166b55331513d2a9aead687032e804 | /leetcode523.py | bc339b53a2eeb7f4b3d3d8c49fc345d3e904e8f6 | [] | no_license | jack456054/leetcode | f2d623d5683098b2038322ee3eef81dc020f6fb1 | 24f0075909f8620513f6f21c9ad3dc299dee8967 | refs/heads/master | 2022-11-12T18:01:52.832206 | 2022-11-10T07:24:39 | 2022-11-10T07:24:39 | 125,793,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution:
def checkSubarraySum(self, nums: List[int], k: int) -> bool:
s: int = nums[0] % k
sum_list: List[int] = [nums[0] % k]
for n in nums[1:]:
s += n
s = s % k
if s == 0:
return True
sum_list.append(s)
sum_list... | [
"jack456054@hotmail.com"
] | jack456054@hotmail.com |
541d15236bd14cec657277927f7a3dad198ac293 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/TAVVE-MIB.py | b85d507e3f260f4211bfd98a9a75d4ee07f45334 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 65,497 | py | #
# PySNMP MIB module TAVVE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TAVVE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:15:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
56d2acf49f773bfec9d7688dabce0eae644c4717 | ad0e853db635edc578d58891b90f8e45a72a724f | /python/ray/tests/test_gcs_pubsub.py | d720f20ff6a8c500b96b31c8e077b213295f79e1 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ericl/ray | 8c93fc713af3b753215d4fe6221278700936e2db | e9a1c6d814fb1a81033809f56695030d651388f5 | refs/heads/master | 2023-08-31T11:53:23.584855 | 2023-06-07T21:04:28 | 2023-06-07T21:04:28 | 91,077,004 | 2 | 4 | Apache-2.0 | 2023-01-11T17:19:10 | 2017-05-12T09:51:04 | Python | UTF-8 | Python | false | false | 7,036 | py | import asyncio
import sys
import threading
import re
import ray
from ray._private.gcs_pubsub import (
GcsAioPublisher,
GcsAioErrorSubscriber,
GcsAioLogSubscriber,
GcsAioResourceUsageSubscriber,
)
from ray.core.generated.gcs_pb2 import ErrorTableData
import pytest
def test_publish_and_subscribe_error_... | [
"noreply@github.com"
] | ericl.noreply@github.com |
8f5b85a1c1afd95bd3f354e0fec9f661b22174ed | 0e2a26906c684084ab1ab945a8acce3aa1f52fd6 | /douyinspider/test4.py | 07de18d855f463eb684d90beb15a9ac29bc57538 | [
"Apache-2.0"
] | permissive | bingwin/pythonThreeSpider | f866c4e36c209e76bf6faa71ea424790571bdd67 | 0e120350402f690158c89b7431f243cb462ae12f | refs/heads/master | 2020-07-04T16:30:19.319150 | 2019-04-25T08:25:49 | 2019-04-25T08:25:49 | 202,339,718 | 1 | 1 | Apache-2.0 | 2019-08-14T11:47:57 | 2019-08-14T11:47:57 | null | UTF-8 | Python | false | false | 869 | py | import time
import requests
def main():
'''
入口函数
:return:
'''
ts = str(time.time())
# 入口url(热门列表url)
url = 'https://aweme.snssdk.com/aweme/v1/hot/search/list/?detail_list=0&ts=' + ts + '&js_sdk_version=1.2.2&app_type=normal&manifest_version_code=350&_rticket=1543976807872&ac=wifi&device_id=6... | [
"m15038960016@163.com"
] | m15038960016@163.com |
74745fba8bc8128ca51e3d158983e86c646e5ea5 | 021c96f56992bfb58da4973a3b0067ca3298585c | /branch/sqlgen2/useless/base/defaults.py | 0ddce1fd790ea8489b76b18ef430a6b926c11603 | [] | no_license | BackupTheBerlios/useless-svn | 3818ec28f74be9ad4b43f7261ebbe50c4efea3d7 | a38ecbb06063d09bf50c284e9fd3f7d9c0e5f3a1 | refs/heads/master | 2021-01-25T10:30:05.919994 | 2012-11-13T20:25:26 | 2012-11-13T20:25:26 | 40,749,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | """
Some default variables that can be used in many programs.
"""
DELIMITERS = {
'pipeq' : ['|=-', '-=|'],
'braces' : ['{', '}'],
'brackets' : ['[', ']'],
'parens' : ['(', ')'],
'backbrace' : ['[{', '}]'],
'tiefight' : ['|-(', ')-|'],
'curses' : ['*&^%^$#-@', '@-#$^%^&*'],
'colonial' : ... | [
"umeboshi@70758ab2-d2f7-0310-a994-9f7f813c4004"
] | umeboshi@70758ab2-d2f7-0310-a994-9f7f813c4004 |
1a9eb722f513021126d61cfe05a6dca70e214245 | b9360389f3345c550250a1bd5a5fe58bd7410a71 | /wlct/migrations/0018_tournamentteam_place.py | 714a592cd86157b410004bdde5de6f27d44ae925 | [] | no_license | JustinR17/wzclot | d6f4bd8b46240abbeaa51837c1de1f3115554f17 | 4fa29666eb72aafee28bf57898fecc679fb3d4bb | refs/heads/master | 2023-02-07T22:43:13.827383 | 2021-12-30T22:34:39 | 2021-12-30T22:34:39 | 241,187,417 | 0 | 0 | null | 2020-02-17T19:14:01 | 2020-02-17T19:14:00 | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.1.4 on 2019-05-22 20:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wlct', '0017_auto_20190521_1525'),
]
operations = [
migrations.AddField(
model_name='tournamentteam',
name='place',
... | [
"brendanflynn@outlook.com"
] | brendanflynn@outlook.com |
a9d65a63d81efc7ed3d0b8b114caa9c8d6b7018d | 0dc70961312cfc88e8156a1a5043b3096b377d47 | /leetcode6/shortestWordDistance.py | ddf5476975fa8ad0160d3a2e7612825488985804 | [] | no_license | lizyang95/leetcode | 881217bf446caa533c5dbc98638db85e2831fc8b | 16e8a7935811fa71ce71998da8549e29ba68f847 | refs/heads/master | 2020-03-21T11:43:05.910036 | 2018-09-28T15:25:42 | 2018-09-28T15:25:42 | 138,518,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class Solution(object):
def shortestWordDistance(self, words, word1, word2):
"""
:type words: List[str]
:type word1: str
:type word2: str
:rtype: int
"""
out = float('inf')
if word1 == word2:
last = -float('inf')
for i, w in enu... | [
"yy4@cs.cmu.edu"
] | yy4@cs.cmu.edu |
fdaf5821eac7056d363a218a361b73ec54856a15 | 1d981bcfff967ae43059e2683aca10aadaec6016 | /Assignment 1/DataTypes/answer31.py | 0444208bd38dde96ee0bb017d01ab7579f70b5e9 | [] | no_license | anupjungkarki/IWAcademy-Assignment | ea3b9bb4bce30e71ab0242da18c8e7dd8aad8cb1 | e2f48edbac5606962fa3c314095e0da19cb1dcbf | refs/heads/master | 2023-01-28T20:06:25.067748 | 2020-12-14T10:02:30 | 2020-12-14T10:02:30 | 316,900,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | # Write a Python program to iterate over dictionaries using for loops.
dict_data = {
'name': 'example',
'address': 'kathmandu',
'age': 22,
'phone': '9842123523'
}
for key, value in dict_data.items():
print(key, '=', value)
| [
"anupkarki2012@gmail.com"
] | anupkarki2012@gmail.com |
bdebeb3fc220e856a7c23f44ce727fe5b27d0ea5 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/fortyPercent/rank_1jtg_L.py | c70dc3c9771a7129f0fe4cda101fbdc084637fe4 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
c423a54b56a17e3de97af88e11df52d15a310d26 | 3435505aa0b760eddf175a9a8f62119952020380 | /wienerschnitzelgemeinschaft/src/Christof/augmentation_tests.py | d659f982d1e1a604644b60a0600fdb53632afb14 | [
"MIT"
] | permissive | CellProfiling/HPA-competition-solutions | 2cc365b2be086eec382136856ebcf790d4eaabb9 | 547d53aaca148fdb5f4585526ad7364dfa47967d | refs/heads/master | 2022-12-16T16:58:15.578281 | 2020-07-09T23:04:55 | 2020-07-09T23:04:55 | 223,605,040 | 61 | 25 | MIT | 2022-11-22T04:37:30 | 2019-11-23T14:49:57 | Jupyter Notebook | UTF-8 | Python | false | false | 674 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
import albumentations as A
import pandas as pd
def augment_and_show(aug, image):
image = aug(image=image)['image']
plt.figure(figsize=(10, 10))
plt.imshow(image)
data = pd.read_csv('Christof/assets/train.csv').sample(frac=0.5)
fn = '4a32... | [
"noreply@github.com"
] | CellProfiling.noreply@github.com |
a979dae5cc4fd0aecc361dd5522fa450a2223889 | 930309163b930559929323647b8d82238724f392 | /abc206_d.py | d975ddd15b9540ab09640adf7bd2dd9eeac61827 | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py |
import collections
import sys; sys.setrecursionlimit(10**9)
class UnionFind:
def __init__(self, n):
self.n = n
self.parents = [-1] * n
self.has_cycles = [0] * n
def find(self, x):
if self.parents[x] < 0:
return x
else:
# 積極的aggregation
... | [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
b232c54efaa25b2a10d4c3589118f29941010f56 | 840f1abbf7311430ee6e8180995f79548281f1aa | /Problems/The sum of numbers in a range/task.py | f23592557b7df184806cacbee513d338d8cda18d | [] | no_license | madanaman/smartcalculator | 8f31f1bff4734e92f503591bdbb7d14438bc0a9c | b97050c76c603cec7aa8ca580b5a49e8b43518ca | refs/heads/master | 2022-11-02T10:48:55.260424 | 2020-06-10T20:14:27 | 2020-06-10T20:14:27 | 269,350,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def range_sum(numbers, a, b):
counter = 0
for num in numbers:
if int(num) in range(int(a), int(b)+1):
counter += int(num)
return counter
numbers = input().split()
a = input().split()
print(range_sum(numbers, a[0], a[1])) | [
"madan.aman@gmail.com"
] | madan.aman@gmail.com |
25607221542a1fc7e30a01676e5c18d2b055e7a6 | ec7ecc5abbdd03fb55f24e89dbbdfa23ebd7b60f | /check the array can be sorted with single swap.py | f0016733b5e70614e08151a83425a2b6b835962e | [] | no_license | poojithayadavalli/codekata | cd290e009cf3e2f504c99dd4f6de9171f217c6be | 1885c45a277cf1023e483bd77edf0c6edf8d95f3 | refs/heads/master | 2020-07-18T14:06:17.190229 | 2020-05-30T09:00:29 | 2020-05-30T09:00:29 | 206,259,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | n=int(input())
s=[int(x) for x in input().split()]
l=sorted(s)
for i in range(n):
if(l[i]!=s[i]):
s[i],s[i+1]=s[i+1],s[i]
if l==s:
print(i)
flag=False
break
else:
print("-1")
flag=True
break
else:
flag=True
i... | [
"poojithareddyyadavalli@gmail.com"
] | poojithareddyyadavalli@gmail.com |
131721cdbc05686c42db1b4fa40f8c8162afdedd | 71432ba87fa21f6b99dd552e40282ebacadbb8e6 | /app/__init__.py | 6d6606386ed3d0649c4a1ded4ac5ef30b3a9fc23 | [
"MIT"
] | permissive | peninah-njeri/News-highlights | cc8ca0f683868dd73089128d8c25fbd76e8e0f1e | 650e7553426a21bbb5c7a4eb3774b98fd9ad7342 | refs/heads/master | 2021-06-25T09:31:11.898555 | 2019-10-15T06:35:03 | 2019-10-15T06:35:03 | 214,854,638 | 0 | 0 | null | 2021-03-20T01:49:47 | 2019-10-13T16:31:52 | Python | UTF-8 | Python | false | false | 375 | py | from flask import Flask
from .config import DevConfig
from flask_bootstrap import Bootstrap
# Initializing application
app = Flask(__name__, instance_relative_config=True)
# Setting up configuration
app.config.from_object(DevConfig)
app.config.from_pyfile('config.py')
# Initializing flasks extentions
bootstrap = Boo... | [
"peninahgathuru@gmail.com"
] | peninahgathuru@gmail.com |
1c7bc1187fa46bd83d130e0b6f204392e1fe4ec9 | 282e8da3d47aef9d1146acc9bc0c241cfdd28267 | /bifasico_v2/utils/others_utils.py | b8b60c84f323cb4c00c42808f72a5f0cc593a6fc | [] | no_license | jpra2/mad_monofasico_vfinal | 0341c45e5cb9304b25a464e0ece97573dd6c3143 | dce98ee51b6984d5fcc442d785c5304ec2f11e3a | refs/heads/master | 2020-06-11T09:05:26.971246 | 2019-07-02T17:21:16 | 2019-07-02T17:21:16 | 193,911,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,072 | py | import numpy as np
# from math import pi, sqrt
from pymoab import core, types, rng, topo_util, skinner
import time
# import pyximport; pyximport.install()
import os
# from PyTrilinos import Epetra, AztecOO, EpetraExt # , Amesos
# import math
# import os
# import shutil
# import random
import sys
# import configparser
... | [
"jprandrade2@gmail.com"
] | jprandrade2@gmail.com |
103bf4562b70054cdb21698265d9d4285b831935 | 5027fe1a0a95f3391566b53fa8c29a2c29e4f04c | /script/script/python/ttime1.py | bf6880ca0649f1e0236e8a74a2a02faedf55ac0d | [] | no_license | chelroot/script | 5e79e9609fb602ef63ee33e36262e4d3a79ea28f | e1f915b3b8e834417fdb07d2b6894e22674071e1 | refs/heads/master | 2020-03-29T01:18:55.090645 | 2017-12-14T15:02:13 | 2017-12-14T15:02:13 | 94,638,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import datetime,time
a=datetime.datetime.now().hour
if a>=17:
print ('Запись включена')
if a >= 20:
print ('Запись выключена')
if 17 <= a < 20:
print ('Запись выключена')
else:
cam.camon
print ('Запись включена')
print(a) | [
"you@example.com"
] | you@example.com |
af1b2f7980d73d2b3458905e7a8af8441c3b0b7d | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/synthetics/GetAPITest.py | ac670f67241ef286c3b3799c6e8939b6f6effc58 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 393 | py | """
Get an API test returns "OK" response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = SyntheticsApi(api_client)
response = api_instance... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
694b2362c8dc810da9172786e847a6993c56640c | 2fa102b20ea99d796cc3677c9305f1a80be18e6b | /cf_1462_C.py | faa5224282a6e04f1bfc64c5802ae9e1e57b1de5 | [] | no_license | pronob1010/Codeforces_Solve | e5186b2379230790459328964d291f6b40a4bb07 | 457b92879a04f30aa0003626ead865b0583edeb2 | refs/heads/master | 2023-03-12T11:38:31.114189 | 2021-03-03T05:49:17 | 2021-03-03T05:49:17 | 302,124,730 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py |
p = int(input())
for i in range(p):
n = int(input())
s=[]
x=9
if n>45 or n<0:
print(-1)
elif n==0:
print(0)
else:
while n>0:
if x<=n:
s.append(x)
n-=x
x-=1
else:
x-=1
s.sort()... | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
7d4c3303f5e09f85df3909c0d6379c32913826d4 | 4dba7af7a5d14034a029e6acc6632fdfcd33fd76 | /django-propject/schoolfeemanagement/fee/migrations/0005_auto_20180215_1915.py | 3eadf6073b9f2f74f87740e1960721d078b863e6 | [] | no_license | sambapython/batch42 | 08c7c4247e5189ea5f71ceb91d39731312f412da | 0afee04d81d01d1921e94890a88f8b104461faad | refs/heads/master | 2021-05-03T22:21:48.562809 | 2018-03-11T04:27:12 | 2018-03-11T04:27:12 | 120,392,120 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-02-15 13:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fee', '0004_auto_20180215_1914'),
]
operations = [... | [
"sambapython@gmail.com"
] | sambapython@gmail.com |
565710d0ba226a3143742845721b2536de10b2c7 | 06d22372857c913e2374ebf2ede3d1542b353d14 | /restapi/myapi/views.py | 6cb60d8422d204032f4d16a2e404926b5cb55df6 | [] | no_license | Princekrampah/RESTAPIDjango | b59e5d641370ff6b5455381778ad900ea6195064 | f20d4a7545d9875aceb07d4a9a77eb0a62516f80 | refs/heads/master | 2022-12-02T10:28:42.779905 | 2020-08-18T16:06:19 | 2020-08-18T16:06:19 | 288,499,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from django.shortcuts import render
from .models import Employee, Occupation
from .serializers import EmployeeSerializer
from rest_framework.response import Response
from rest_framework import status
from rest_framework import generics
# Create your views here.
class EmployeeListCreatView(generics.ListCreateAPIView)... | [
"jsksprince@gmail.com"
] | jsksprince@gmail.com |
b9f1d98f8e3e31dc63ae602f5943ff9ecca3419e | ea00b1130fa190f53f37e5292c633e82ee244072 | /dble/resnet.py | 56e2972e3e680e11bff98a7b3545c9f73c1f21c8 | [
"Apache-2.0"
] | permissive | JamesTurntz/google-research | 369db87e205d60fbfa24c89f72e393e328dd732a | 8042f113c824a2430182ef084b3f79d6d21c6580 | refs/heads/master | 2020-09-25T19:06:33.824643 | 2019-12-05T09:54:25 | 2019-12-05T09:54:25 | 226,068,978 | 0 | 0 | Apache-2.0 | 2019-12-05T09:50:57 | 2019-12-05T09:50:56 | null | UTF-8 | Python | false | false | 23,284 | py | # coding=utf-8
# Copyright 2019 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 |
bb3a14f03656bf2301a2d292b30e52f027107619 | a9b31181ad6f695a2809018167a52a6d9847c0df | /Chap03-funcoes/biblioteca_math2.py | c3131eba5ba9ef6324444176d0f091b48a5eb59c | [] | no_license | frclasso/Aprendendo_computacao_com_Python | 21cdecdebcdbafad35a48d8425d06e4ec2ba1259 | 40276f396c90d25b301e15e855942a607efd895b | refs/heads/master | 2020-03-12T17:38:04.886153 | 2018-10-11T14:17:13 | 2018-10-11T14:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #!/usr/bin/env python3
import math
decibel = math.log10(17.0)
angulo = 1.5
altura = math.sin(angulo)
print(altura)
print()
raiz = math.sqrt(2 ) / 2.0
print(raiz) | [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br |
94956ba8e92f5bd42f61e006f38767e4cc113915 | 42225e7f6fe779c08036d7807344452945d2aaf7 | /sdk/yapily/models/authorisation_embedded_request_response.py | 406c006738c585aa3b916fd320d0a838f9811d49 | [
"MIT"
] | permissive | alexdicodi/yapily-sdk-python | 90c6a3602b8ecf894884876411bf9f9006894743 | 06aab5d95284e8fc66786b6f2b99bea7a54f4086 | refs/heads/master | 2023-06-02T17:35:12.639303 | 2021-06-21T16:52:18 | 2021-06-21T16:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,947 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
The version of the OpenAPI document: 0.0.358
Generated by: https://openapi-generator.tech
"""
import pprint
impor... | [
"systems@yapily.com"
] | systems@yapily.com |
b7b1eaa63966bbbe936b9d9809517415a1c4e85f | 280cbe6bbca1cbd5180f9833e3407f3391a3654b | /src/utils.py | f1aaea1f5eba17e8fd33148b8b0d9f3278ad3c61 | [] | no_license | Louis-Saglio/gengine | f70376c1b4b75515b1eefa6b1b9f0e79fc1b8ecf | eb96bbd53ac267d0fab88e4fc29c765a97bbb6c9 | refs/heads/master | 2021-09-05T14:12:58.508618 | 2018-01-28T16:47:49 | 2018-01-28T16:47:49 | 112,613,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | def print_float(nbr: float, length, fill_end=True):
nbr = round(nbr, length-(len(str(int(nbr)))+1))
assert len(str(nbr)) <= length, f"{len(str(nbr))} n'est pas inférieur ou égal à {length}"
nbr_splited = str(nbr).split('.')
if fill_end and len(nbr_splited) > 1:
nbr_splited[1] += '0' * (length - ... | [
"louis.saglio@sfr.fr"
] | louis.saglio@sfr.fr |
e1c4580cffa5ba13e40777c5f9afa5afc94b0edd | b1b4dc2c530b56a9abbc6b144c3ca3f5a6d11e70 | /twisted_/db.py | 71eecdcb62107943c68a541e8cb9def8c747994d | [] | no_license | BorisovDima/_ex | d38cff25575bfc6d1906940d40091fb6946cd829 | 6c14d661b8e051f8ec385cb09997da1fa781431a | refs/heads/master | 2020-05-07T18:13:38.304305 | 2019-08-23T10:59:09 | 2019-08-23T10:59:09 | 180,757,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from twisted.internet import reactor
from twisted.enterprise import adbapi
from twisted.internet.task import deferLater
import os, sys
db = adbapi.ConnectionPool("sqlite3", 'test.db', check_same_thread=False)
def test():
"""
New thread = run_in_executor
"""
db.runQuery('CREATE TABLE IF NOT EXISTS test... | [
"you@example.com"
] | you@example.com |
b2b739a83cc3bd2e9acf729fce5ad3054814fc08 | 787115a00d0669308455284a428c9d997a5185ae | /tpRigToolkit/tools/interpolateit/core/consts.py | 81a8fe9ba5ec27f8c587954f9cea69bcf2b25bee | [
"MIT"
] | permissive | tpRigToolkit/tpRigToolkit-tools-interpolateit | 08a3b0a269a59d23d6437b174fe38e4fcb3a1251 | 3d27436671e3474a8abed7357b45fac0e33b3d98 | refs/heads/master | 2023-03-25T17:35:00.838964 | 2021-03-21T00:26:31 | 2021-03-21T00:26:31 | 293,055,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains constant definitions for tpRigToolkit-tools-interpolateit
"""
from __future__ import print_function, division, absolute_import
TOOL_ID = 'tpRigToolkit-tools-interpolateit'
START_KEY = 'start'
END_KEY = 'end'
CACHE_KEY = 'cache'
NODE_KEY = 'node... | [
"tpovedatd@gmail.com"
] | tpovedatd@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.