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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c0178929fd4005d98fe61e1074cf3955fcf9ffe | 1e8142725aa06844713d18fa38c6779aff8f8171 | /tndata_backend/notifications/management/commands/send_messages.py | 126720bd6e731a8e1e09c03aa6f4803ed19f3759 | [
"MIT"
] | permissive | tndatacommons/tndata_backend | 8f4db3e5cf5272901c9087a85e21d7560240bb3b | 3d22179c581ab3da18900483930d5ecc0a5fca73 | refs/heads/master | 2020-12-03T07:53:17.339769 | 2017-03-27T06:18:58 | 2017-03-27T06:18:58 | 68,407,220 | 1 | 2 | null | 2017-03-27T06:18:59 | 2016-09-16T18:59:16 | Python | UTF-8 | Python | false | false | 1,680 | py | import logging
import waffle
from django.core.management.base import BaseCommand
from notifications.models import GCMMessage
logger = logging.getLogger(__name__)
class Command(BaseCommand):
help = 'Sends messages to GCM'
def handle(self, *args, **options):
# NOTE: IF this switch is active, we rely... | [
"brad@bradmontgomery.net"
] | brad@bradmontgomery.net |
315bfa2a08b2be3f8c366d311c6c9bf8462187fb | cefb431aa55a266758961575263989e097e1958f | /pytoolkit/lgb.py | f9bccab4f0a7fbcf6fe7fce158d59c6b65d5dcea | [
"MIT"
] | permissive | templeblock/pytoolkit | 4ab062a780fc1f113ff473ea8370031833659bfe | 1bf26c9386442ead9c674765fc0aeb21674da0e6 | refs/heads/master | 2021-07-04T20:09:01.329749 | 2020-11-17T14:34:14 | 2020-11-17T14:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | """LightGBM関連。"""
from __future__ import annotations
import logging
import typing
import numpy as np
import pandas as pd
if typing.TYPE_CHECKING:
import lightgbm as lgb
logger = logging.getLogger(__name__)
def cv(
feats_train: typing.Union[pd.DataFrame, np.ndarray],
y_train: np.ndarray,
folds,
... | [
"mark@aur.ll.to"
] | mark@aur.ll.to |
0f209a5df1066373bbb435a96e31ba302fe93386 | 5275e109f3351715d58ef43ee50dad24f4e05d98 | /Environment.py | ced6cf3b4afdca64937c2a932547e860680673d1 | [] | no_license | harshitalpha/MarkovDecisionProcess-and-RL | 15ac768b1863135b09fa79bc6458cbf57ebab9b3 | ce8cbcdd61239d41729e711d51c2e27bce0ede5f | refs/heads/main | 2023-01-08T19:31:14.606006 | 2020-11-12T06:06:44 | 2020-11-12T06:06:44 | 308,220,894 | 2 | 2 | null | 2020-11-12T06:06:45 | 2020-10-29T04:50:38 | Python | UTF-8 | Python | false | false | 6,505 | py | '''
Our Project: Given a network with vertices and edges. Design the MDP to nevigate through the network.
Solve this through Reinforcement learning
Team:
Harshit Singhal- 18UCC159
Arpit Dangi- 18UCC003
Prerak Mathur- 18UCC149
Explanation:
First of all we need to design an Stocastic Graph network.... | [
"harshitsinghal1103@gmail.com"
] | harshitsinghal1103@gmail.com |
b93634cd95f2f90247b6b18addbcba44ceb0b13d | 000c243b4c30bd089867f73ca1bcfede1c3ef801 | /catkin_ws/build/atomic_configure/view_frames | b7c6fa88aea2cb305595b3a2f9f8dbc20005426a | [] | no_license | dangkhoa1210/SLAM-AND-NAVIGATION-FOR-MOBILE-ROBOT-OUTDOOR-INDOOR- | b4d9bf2757d839d9766d512c2272731300320925 | 7273ea9e966353440d3993dcba112bc0a2262b98 | refs/heads/master | 2023-07-15T14:07:17.123812 | 2021-09-02T10:12:30 | 2021-09-02T10:12:30 | 402,361,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/khoa/catkin_ws/src/geometry/tf/scripts/groovy_compatibility/view_frames'
with open(python_script... | [
"dangkhoaphamdang1210@gmail.com"
] | dangkhoaphamdang1210@gmail.com | |
d725931336d3513cfea7da1720c72a191ddc1b2f | 9497432cd07d17be15853544197853d1ae7ae472 | /decryption files/decoding/a1z26dec.py | af26deff2f5d402d9a5b5c94e2ecb2b5f666b65e | [] | no_license | SeresAdrian/Crypto-Project | e99be9c2bf9155e1a54be4419d5626633fd2b333 | 4c2fd709f667bdfa71bc5fadd9b47a1c79f59c6a | refs/heads/master | 2022-07-25T13:54:46.704949 | 2020-05-18T19:40:42 | 2020-05-18T19:40:42 | 265,021,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import os
def A1Z26_decrypt(cistring):
# Decrypt string by converting each number to a letter
string = "" # Placeholder variable
data = cistring.split() # Split string at " "
for char in data: # Loop through each character
if int(char) == 27:
string += ' '
else:
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
89bb585e4a1b7631a6663d3c9a6125b802a81093 | a31de016611f3b4efc7a576e7113cad1a738419b | /tkEntryWidgets_Kreditzinsrechnung.py | c316a44fce08d1220c3ed033b20ea4da2e5cebfd | [] | no_license | Ing-Josef-Klotzner/python | 9d4044d632672fff966b28ab80e1ef77763c78f5 | 3913729d7d6e1b7ac72b46db7b06ca0c58c8a608 | refs/heads/master | 2022-12-09T01:40:52.275592 | 2022-12-01T22:46:43 | 2022-12-01T22:46:43 | 189,040,355 | 0 | 0 | null | 2022-12-01T19:52:37 | 2019-05-28T14:05:16 | Python | UTF-8 | Python | false | false | 3,181 | py | #!/usr/bin/python
# tkEntryWidgets_Kreditzinsrechnung
# -*- coding: iso-8859-15 -*-
from sys import version_info
if version_info.major == 3:
from tkinter import * # python 3.2
elif version_info.major == 2:
from Tkinter import * # python 2.7
else:
print ("what the hell you are running? :D")
fields = ('... | [
"noreply@github.com"
] | Ing-Josef-Klotzner.noreply@github.com |
cbbc424eb03f14fc17dd38d70f6e5b6fc38ca563 | c4fa1ebcdd413c4ab3f0979ee3beead8a8809870 | /providers/et/edu/addis_ababa/apps.py | 68caf295917067024ef3586005783b78dffd836f | [] | no_license | terroni/SHARE | e47f291db7cf100d29a7904fe820e75d29db1472 | a5631f441da1288722c68785b86128c854cbe7c1 | refs/heads/develop | 2020-12-03T02:29:47.381341 | 2016-07-11T19:40:27 | 2016-07-11T19:40:27 | 63,097,148 | 1 | 0 | null | 2016-07-11T19:45:51 | 2016-07-11T19:45:50 | null | UTF-8 | Python | false | false | 332 | py | from share.provider import OAIProviderAppConfig
class AppConfig(OAIProviderAppConfig):
name = 'providers.et.edu.addis_ababa'
version = '0.0.1'
title = 'addis_ababa'
long_title = 'Addis Ababa University Institutional Repository'
home_page = 'http://etd.aau.edu.et'
url = 'http://etd.aau.edu.et/o... | [
"icereval@gmail.com"
] | icereval@gmail.com |
abf600f45642962aeee40c7afbd9dbb3b27ba6fa | b00024473d54cc4a234d9861efd5b6d6b1a14b3e | /Configuration/python/ProgressIndicator.py | ab4dd9fe33dbfb58710debc83d08825799036fd9 | [] | no_license | zacharypollock/OSUT3Analysis | a0b3f9356211bd805f9b8449029927a7348fd7b2 | 469d4f5353e4d2b9e66c20d328809272546f207b | refs/heads/master | 2020-03-21T18:30:55.911777 | 2018-06-27T17:23:31 | 2018-06-27T17:23:31 | 138,896,421 | 0 | 0 | null | 2018-06-27T14:56:15 | 2018-06-27T14:56:14 | null | UTF-8 | Python | false | false | 2,607 | py | #!/usr/bin/env python
import sys, time
# define some macros with meaningful names for the ANSI color codes
# https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
A_BLACK = "\033[30m"
A_RED = "\033[31m"
A_GREEN = "\033[32m"
A_YELLOW = "\033[33m"
A_BLUE = "\033... | [
"ahart@cern.ch"
] | ahart@cern.ch |
26f02c1ac64b7e58aaa6072351dc8ccebd5ab206 | ba4ad8a778c69640c9cca8e5dcaeb40d4a10fa10 | /python/numpy/disks.py | 92b49df26e191f5dfc15ba26a3cbf8354b9dae19 | [] | no_license | tangentstorm/tangentlabs | 390ac60618bd913b567d20933dab70b84aac7151 | 137adbba6e7c35f8bb54b0786ada6c8c2ff6bc72 | refs/heads/master | 2023-08-31T20:36:53.127938 | 2023-08-18T01:30:10 | 2023-08-18T01:30:10 | 7,815,356 | 33 | 22 | null | 2015-06-06T12:15:35 | 2013-01-25T07:03:01 | Visual Basic | UTF-8 | Python | false | false | 1,060 | py | # -*- coding: utf-8 -*-
"""
colliding disks
"""
import numpy as np
import numpy.random as nr
n = 10 # number of discs
w = 100 # width
h = 100 # height
r = 1 # radius
# create n random x,y pairs
x = nr.random(n) * w
y = nr.random(n) * h
# loop indices for all pairs in range(n)
i, j = np.indices((n, n))
# calcula... | [
"michal.wallace@gmail.com"
] | michal.wallace@gmail.com |
3c8cb533cfdc026ebb4610859584dc1ecd4175b3 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/path_integral_naive_sampling_20200417192030.py | 4dae6ac026dd1124ca9f76a8b9eae8e5ca4ffb6b | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,865 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 202004151200
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una ... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
113387eed08fc701c1d069ccb4f24bb1f828821d | 154eff4c874be997e4092615d684bb0bbdb4a1d2 | /orders/migrations/0006_auto_20190714_1733.py | 7dd152c1334b948964a7b0a24fafe881d0cdd62c | [] | no_license | kopuskopecik/kitap_guncel | 6e759433271fa9a6b0668b2bd7c442ad03fbcd85 | 9dd4f660c7a67d2964dea90ab3c12b50f4c13e9a | refs/heads/master | 2022-12-03T10:18:48.092643 | 2019-07-14T23:10:32 | 2019-07-14T23:10:32 | 196,891,587 | 0 | 0 | null | 2022-11-22T02:23:57 | 2019-07-14T23:02:57 | Python | UTF-8 | Python | false | false | 2,744 | py | # Generated by Django 2.0 on 2019-07-14 14:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orders', '0005_order_kargo_tipi'),
]
operations = [
migrations.AlterField(
model_name='order',
... | [
"you@example.com"
] | you@example.com |
bf0dcb94720a52713be7ef1416572ddda204a281 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/scheduler/v20140801preview/job_collection.py | f4a1693e37781b9ece428d0f3e8b45147942cc6e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,007 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
fbf93851495ae0288c2fdcfcab0e43f403f44e5d | 70922de165319283d640821fd42ea1806da402c0 | /math/0x05-advanced_linear_algebra/1-minor.py | e482819594807f9585666c46bd28ba522bc439a5 | [] | no_license | ikki2530/holbertonschool-machine_learning | bdd8152d575a99281e2cce105cf87442ec07f2fb | 0b56aa0e92d65d4a5832cc994769834fbcfbe0ac | refs/heads/main | 2023-07-07T00:49:03.675328 | 2021-08-11T10:27:56 | 2021-08-11T10:27:56 | 317,352,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | #!/usr/bin/env python3
"""
Calculates the minor matrix of a matrix.
"""
def determinant(matrix):
"""
Calculates the determinant of a matrix.
- matrix is a list of lists whose determinant should be calculated.
Returns: the determinant of matrix
"""
n = len(matrix)
if n == 1 and len(matrix[0... | [
"dagomez2530@gmail.com"
] | dagomez2530@gmail.com |
a0c507e6ec43ef97d360e3517b46d1e9b8024a0c | 318a3e867a27c5b9b2db40730994ef1204c408c7 | /script/__main__.py | 30d1cbc0dfcbf21f9a354dd9eb4e0e55002cf406 | [] | no_license | mouday/gushiwen-py | dd9861cdca8a9a15fd4c2b0dfa32fe0130c4bcc9 | c978cc795c3164ce0be8f1746a277be913027330 | refs/heads/main | 2023-03-19T23:26:49.546496 | 2021-03-15T09:46:22 | 2021-03-15T09:46:22 | 347,906,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import fire
from .generator import gen
def create_tables():
from gushiwen.model import db, tables
db.create_tables(tables)
def drop_tables():
from gushiwen.model import db, tables
db.drop_tables(tables)
if __name__ == '__main__':
fire.Fire()
| [
"1940607002@qq.com"
] | 1940607002@qq.com |
123194f8fbad50fde2a2e6db8ef730f2182279c7 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqpt/ingrunkbytes1mo.py | 9e41f75e9aebd79bd155ef30071560e8a6d7fb1b | [] | 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 | 21,263 | 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 |
2177086f5785f05a766c19621aa8f776ef166f13 | 558e356d3725c210b18944fa445d30adc03ca301 | /python/perspective/perspective/core/psp.py | b89b6cd18cce2da0c91d906aef3ff46737fcd0cb | [
"Apache-2.0"
] | permissive | willium/perspective | dc034cfa8cb5fa9f1f65c9a4be8e81e450d2d7ff | 2ed64db54d46c8d0a4b770ffc12ee5bc3b053f41 | refs/heads/master | 2020-07-29T03:26:40.734247 | 2019-09-17T20:08:46 | 2019-09-17T20:08:46 | 209,651,655 | 0 | 0 | Apache-2.0 | 2019-09-19T21:28:41 | 2019-09-19T21:28:40 | null | UTF-8 | Python | false | false | 1,638 | py | # *****************************************************************************
#
# Copyright (c) 2019, the Perspective Authors.
#
# This file is part of the Perspective library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps
fr... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
1f27b979d3bfd48ee6827e0b3f99635189206354 | a9b1c650689467a285bf49cf8ac80c3c85e3cc0a | /sara/main.py | 130b32164e4e4f10357fda2c323fec7f3c11b70f | [] | no_license | kwarwp/kesha | 4653c1383b7b1f08ea035c3ee3bdf1e62b3dddd8 | f563d6280875ec4752f2a40cc832f27bc37c659c | refs/heads/master | 2021-06-02T02:26:44.487585 | 2020-07-24T23:31:16 | 2020-07-24T23:31:16 | 131,900,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,560 | py | # kesha.sara.main.py
#3ª tentativa do Simetric 3D
#Autor: Hortencia
from _spy.vitollino.main import Cena, Elemento, Texto, STYLE
from browser import html, document, alert, doc
#doc["glowscript"] <= html.H1('XXXXXXXXX -------------- XXXXXXXXXXX')
from _spy.vpython.main import *
doc['pydiv'].html=''
_gs=Glow('pydiv')
sce... | [
"38007182+kwarwp@users.noreply.github.com"
] | 38007182+kwarwp@users.noreply.github.com |
ec297e58376448aca8e90739dccda6d0f3cf2d7c | 9b4fe9c2693abc6ecc614088665cbf855971deaf | /206.reverse-linked-list.py | 4285b383cce23860f5781673ccfd1cbb0bf4b48a | [
"MIT"
] | permissive | windard/leeeeee | e795be2b9dcabfc9f32fe25794878e591a6fb2c8 | 0dd67edca4e0b0323cb5a7239f02ea46383cd15a | refs/heads/master | 2022-08-12T19:51:26.748317 | 2022-08-07T16:01:30 | 2022-08-07T16:01:30 | 222,122,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | #
# @lc app=leetcode id=206 lang=python
#
# [206] Reverse Linked List
#
# https://leetcode.com/problems/reverse-linked-list/description/
#
# algorithms
# Easy (52.80%)
# Likes: 2333
# Dislikes: 63
# Total Accepted: 594.7K
# Total Submissions: 1.1M
# Testcase Example: '[1,2,3,4,5]'
#
# Reverse a singly linked lis... | [
"windard@qq.com"
] | windard@qq.com |
16369a423d501dc8dcbdad07f95da62ce6cbb943 | 1b33ddf275c3c4234fce79a82ceac0ed2e044436 | /dashrisk/dr_grid_2.py | 6f2cf7bbc44a8d5db147737a09e55da082ba2c2f | [] | no_license | bgithub1/dashrisk | e479fb3e0de6adf8c83c56a08f182cbcd3ca8c2d | 7651f38de9a26c0dbf204f2f8352e2bddb6019c9 | refs/heads/master | 2023-07-28T10:54:06.327406 | 2023-05-02T15:49:52 | 2023-05-02T15:49:52 | 169,174,753 | 2 | 1 | null | 2023-07-06T21:26:05 | 2019-02-05T01:15:24 | Python | UTF-8 | Python | false | false | 15,315 | py | '''
Created on Mar 5, 2019
@author: bperlman1
'''
import sys
if not './' in sys.path:
sys.path.append('./')
if not '../' in sys.path:
sys.path.append('../')
import pandas as pd
import dash
import dash_html_components as html
# from dashrisk import dash_grid_2 as dg2
from dashrisk import dgrid as dg2
from da... | [
"bperlman1@gmail.com"
] | bperlman1@gmail.com |
e9d6001898d213814a8698155f5d6b4d9f5ef7d3 | 31fb7c74b94e46a325e6b05501c6972a401cf423 | /PYTHON/BASIC_PYTHON/수업내용/04/04-015.py | 59ae5fa4f5bc7a6b1da7682dc6a9b7c32c1d31ff | [] | no_license | superf2t/TIL | f2dacc30d6b89f3717c0190ac449730ef341f6a4 | cadaaf952c44474bed9b8af71e70754f3dbf86fa | refs/heads/master | 2022-04-10T13:55:24.019310 | 2019-12-12T11:15:31 | 2019-12-12T11:15:31 | 268,215,746 | 1 | 0 | null | 2020-05-31T05:32:46 | 2020-05-31T05:32:46 | null | UTF-8 | Python | false | false | 347 | py | #04-015.py
def printL(a):
print(len(a), a)
printL('AB C\n\nAB\r\rAB\r\n'.splitlines())
printL('AB C\n\nAB\r\rAB\r\n'.splitlines(keepends=True))
printL('AB C\n\nAB\r\rAB\r\n'.split('\n'))
printL('A\n'.split('\n'))
printL('A\n'.splitlines())
print(len('ABC'), 'ABC'.splitlines('\n'))
print(''.split('\... | [
"noreply@github.com"
] | superf2t.noreply@github.com |
ca88b8b9c31c30cf0b598c8ceb2e429df02dbb2a | e2576a0ab388f4048a06f05b3c3d70910ecf4610 | /trinitee/urls.py | 5fdd412d250c1fdcc67fa3e327e518874114f57d | [
"BSD-3-Clause"
] | permissive | chaosk/trinitee | 70bc8cdb5cd8e65674e47f5c31e198f11eb77322 | 30190c7e8ff2164c1127e26e733e0b65a9cd1f57 | refs/heads/master | 2016-09-02T03:45:48.800525 | 2011-12-08T01:09:05 | 2011-12-08T01:09:05 | 691,855 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from django.conf.urls.defaults import patterns, url, include, handler404, handler500
from django.contrib import admin
import settings
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'django.views.generic.simple.direct_to_template',
{'template': 'home.html'}, name='home'),
(r'^accounts/', include('usere... | [
"ksocha@ksocha.com"
] | ksocha@ksocha.com |
f83ad4df78ccd12da56052756fb9acdead43c29b | ca95f68ee60eec86bbe5a67ee9a81a2ee31665af | /site/settings.py | f21b64af461fc2806ad95e2570501316ae632060 | [] | no_license | Hawk94/base_django | 342baf2154982421385877eb54bd639741ad289b | 470d1b1a088466ed4d4b062b6265d04b6a404b30 | refs/heads/master | 2021-01-20T00:04:18.439685 | 2017-04-22T13:36:05 | 2017-04-22T13:36:05 | 89,072,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | """
Django settings for site project.
Generated by 'django-admin startproject' using Django 1.9.12.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
from... | [
"x99tom.miller@gmail.com"
] | x99tom.miller@gmail.com |
510fe5139a44cbcd892c1f7247fea27361b70921 | 287338c043ed86f1218d8a361bdd159f2c309f11 | /tests/list/extend.py | 67db6e62978911df408378fcc7344f99622b10ae | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | dusty-phillips/pyjaco | cb90f7b3f5b1bce793b71ef26907a0c98ac0f260 | 066895ae38d1828498e529c1875cb88df6cbc54d | refs/heads/devel | 2021-05-28T18:16:31.031882 | 2012-03-18T21:15:10 | 2012-03-18T21:35:02 | 3,058,134 | 3 | 0 | MIT | 2020-01-01T09:19:12 | 2011-12-27T18:18:31 | Python | UTF-8 | Python | false | false | 115 | py |
list1 = [1,2,'f',44]
list2 = ['a',99,77]
list3 = list1[:]
list3.extend(list2)
for item in list3:
print item
| [
"ondrej@certik.cz"
] | ondrej@certik.cz |
a785bea58bd3f13139af14a5967c37c00fcef4b9 | 61e535da4aae12ad20dd4294dda71d1f5c568ea4 | /Dictionaries.py | 3a37b7d26eac753264295da111c55939e5c5a493 | [] | no_license | IshaanBAgrawal/Day-9 | f5cd62463a31d75bb2ec84f8ad41eed2c38e5e28 | ea6c55bc89e276f52d9908e97d3a5c9f19e86002 | refs/heads/master | 2023-07-01T21:03:55.292546 | 2021-08-05T15:38:15 | 2021-08-05T15:38:15 | 393,095,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # using dictionaries
programming_dictionary = {
"Bug": "An error in a program that prevents the program from running as expected.",
"Function": "A piece of code that you can easily call over and over again.",
}
# print(programming_dictionary)
# print(programming_dictionary["Bug"])
# adding an item in a dictionary
... | [
"agrawalishaan115@gmail.com"
] | agrawalishaan115@gmail.com |
848af8f872f687e45d1f1e51298b6cce84b05dc7 | 0fce260d9c73e2966dd12025b01bf1763666c3b1 | /mandelbrot/api/urls.py | a84e706d5a550e67eb080351e86fdc6e9761d237 | [] | no_license | paultag/mandelbrot | 0b15810969413a0afebe3220cf9965aa4f5027d8 | 60880cdb6f020ff9ec765e393311a11d03d8d678 | refs/heads/master | 2021-01-19T03:04:01.743770 | 2016-06-07T00:15:37 | 2016-06-07T00:15:37 | 45,364,430 | 4 | 3 | null | 2016-04-11T03:13:54 | 2015-11-02T00:59:07 | CSS | UTF-8 | Python | false | false | 375 | py | from django.conf.urls import url
import mandelbrot.api.views
urlpatterns = [
url(r'^expert/(?P<id>.*)/$', mandelbrot.api.views.ExpertView.as_view()),
url(r'^experts/$', mandelbrot.api.views.ExpertsView.as_view()),
url(r'^project/(?P<id>.*)/$', mandelbrot.api.views.ProjectView.as_view()),
url(r'^projec... | [
"tag@pault.ag"
] | tag@pault.ag |
584c9e5c51a9c93de956de756d503c96ffa835d2 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/contradiction/medical_claims/token_tagging/intersection_search/text_align_helper.py | 85cfbd3ffb3b7a27cc4938fefe0ae5dd5b913f03 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 3,194 | py | from collections import defaultdict
from typing import List, Dict
import spacy
from bert_api.segmented_instance.segmented_text import SegmentedText, get_word_level_segmented_text_from_str, \
seg_to_text
from contradiction.medical_claims.token_tagging.problem_loader import AlamriProblem, load_alamri_problem
from d... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
1250a16a17beaed174b88be786ac18922065caab | 01dd174a3a7d26226564711e32711f137513663f | /pyscf/fci/direct_spin1_symm.py | 4c6a6deb646a897b784e47754f62c0d8a7fb3acf | [
"Apache-2.0"
] | permissive | cherishyli/pyscf | 00cb09c873edc8890be8501414678cdfa54b177e | 468a4bfc4ce067eb7dab6f9289d71122b219609e | refs/heads/master | 2020-04-18T11:40:00.398066 | 2019-01-24T23:07:36 | 2019-01-24T23:07:36 | 167,508,739 | 1 | 0 | Apache-2.0 | 2019-01-25T08:00:12 | 2019-01-25T08:00:12 | null | UTF-8 | Python | false | false | 17,401 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
98fcf3908436cb0eca83c78e7105be5cede916aa | 5e2284bff015e6b03e4ea346572b29aaaf79c7c2 | /recorded_failures/aoc2020/day_14_docking_data/regex_pattern_broken.py | ac712ebfaad2912809a6322f76440a5706899bd6 | [
"MIT"
] | permissive | LaurenDebruyn/aocdbc | bbfd7d832f9761ba5b8fb527151157742b2e4890 | b857e8deff87373039636c12a170c0086b19f04c | refs/heads/main | 2023-06-11T23:02:09.825705 | 2021-07-05T09:26:23 | 2021-07-05T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,733 | py | import re
from typing import List, Mapping, MutableMapping
from icontract import require, ensure, DBC
# crosshair: on
MASK_RE = re.compile(r'^mask = (?P<mask>[01X]{36})\Z')
class Mask(DBC):
@require(lambda clearing: 0 <= clearing <= 2 ** 36 - 1)
@require(lambda setting: 0 <= setting <= 2 ** 36 - 1)
def... | [
"noreply@github.com"
] | LaurenDebruyn.noreply@github.com |
e83d2515ac4d9dc2c1d568ee9c943088aaf81cc1 | e7a902dc805718dcc1ed7b696350dcea6df730ea | /ppsproject/testapp/migrations/0011_score.py | f17bc0ecfe2173fe66daf69346c9c437312d7a8e | [] | no_license | satyanarayanamethuku/satyanarayanafinal | 5df5dbf0c62e1f0e270068d6af6c8a72f9c5e10d | b38c99e3af4f6887ca0d38334ddc9358428db794 | refs/heads/master | 2020-08-01T02:59:47.950252 | 2019-09-25T12:23:28 | 2019-09-25T12:23:28 | 210,838,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 2.2.4 on 2019-08-27 10:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('testapp', '0010_question'),
]
operations = [
migrations.CreateModel(
name='Score',
fields=[
('id', m... | [
"sam@example.com"
] | sam@example.com |
4f1ac4959854ed931712ca7fcfddf4674f485d99 | 46b897d9d18c2808ec3f7e183be8d4d69af084b9 | /brdt/Data.py | 81a42ced63a256276fa565d7b2ba23d10f19285e | [
"MIT"
] | permissive | ericchen12377/BRDT-Python | 38a220c36a0a5fc962007447545f5917f6bb7cea | 0517780d05443cb77ce339db1854c298b87681e3 | refs/heads/master | 2022-11-22T07:25:18.830432 | 2020-07-20T02:40:52 | 2020-07-20T02:40:52 | 271,925,163 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | import Risk
import Cost
import Optimal
import numpy as np
import pandas as pd
class Data:
def __init__(self, name, pi, cost_fix, cost_var, sales_volume, cost_warranty, cost_reliability_growth):
''' Constructor for this class. '''
# assign the name of distribution
self.name = name
sel... | [
"suiyaochen@mail.usf.edu"
] | suiyaochen@mail.usf.edu |
40b1d9da74a54de3705e0aa009f94117ee0ddf54 | 5040b19be795a30c1f83dfe89316ce711489199f | /Exercises/exp14.py | b13823f5c318f491a4c1154136afa2f14bd532e3 | [] | no_license | maj3r1819/LPTHW | cb8c30d27c0749449aa59f94190bded3e362b1c5 | 274077483b05d0092f488aa58968a9ea466c25c6 | refs/heads/master | 2020-06-02T09:25:02.139504 | 2019-06-13T10:54:11 | 2019-06-13T10:54:11 | 191,113,469 | 0 | 0 | null | 2019-06-10T07:05:23 | 2019-06-10T06:52:27 | null | UTF-8 | Python | false | false | 495 | py | from sys import argv
script=argv
user_name='Sagar'
prompt='>'
print("Hi %s, Im the %s script"%(user_name,script))
print("Id like to ask you a few questions.")
print("Do you likeme %s?"%user_name)
likes=input(prompt)
print("Where do you live %s?"%user_name)
lives=input(prompt)
print("what kind of computer do u have?")
c... | [
"major1819@gmail.com"
] | major1819@gmail.com |
c93570017d495ae9922886b349bb4728bfd43e31 | de33d07019f4be4439de4f07585a0906215ef562 | /216. 组合总和 III.py | c46e10b24407486a0d281d363807385c0a03bfa0 | [] | 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 | 1,416 | py | """
[216. 组合总和 III](https://leetcode-cn.com/problems/combination-sum-iii/)
找出所有相加之和为 n 的 k 个数的组合。组合中只允许含有 1 - 9 的正整数,并且每种组合中不存在重复的数字。
说明:
所有数字都是正整数。
解集不能包含重复的组合。
示例 1:
输入: k = 3, n = 7
输出: [[1,2,4]]
示例 2:
输入: k = 3, n = 9
输出: [[1,2,6], [1,3,5], [2,3,4]]
***
使用回溯方法:
1.确定回溯的弹出条件,列表的值相等,数量也为k
2.回溯中的循环,由于不能有重复,需要一个索引参... | [
"Qinpeng96@users.noreply.github.com"
] | Qinpeng96@users.noreply.github.com |
44f5c44997071d787ffce75b5c8a9978bef2bdaa | beb63f9fe91fc8aa0ae277cb9dfa0e21e19a1565 | /prep/dia05/parser.py | 516a92e1d4339896609a8c0d830fe6c1dbf3a100 | [
"BSD-3-Clause"
] | permissive | pliba/garoa2018 | fa0f2519127287364f8ec90bd719ecb4106b07af | 8ba5d392b5d16223f93566bd46c26546669e9668 | refs/heads/master | 2020-04-07T20:50:36.858439 | 2019-01-12T02:08:18 | 2019-01-12T02:08:18 | 158,705,268 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import errors
def tokenize(source):
spaced = source.replace('(', ' ( ').replace(')', ' ) ')
return spaced.split()
def parse(tokens):
head = tokens.pop(0)
if head == '(':
ast = []
while tokens and tokens[0] != ")":
ast.append(parse(tokens))
if not tokens:
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
5eb6d1f17e2d704b5bbce4b9e5a16fcd91750ada | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_05/alien2.py | ea9704deef6559b76d88d8fca8d5605be6c539c3 | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | alien_color = 'yellow'
if alien_color == 'green':
print("You have won 5 points because of hitting!")
else:
print("You have won 10 points!")
| [
"darmi19@163.com"
] | darmi19@163.com |
4cf7e50a8f7229d729a09a6322cc28b476debb78 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/tools/build_info/gen_build_info.py | 456a52cd7f5db30b86c2412c5fd7dc7d98225c50 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 3,524 | py | # Lint as: python3
# Copyright 2017 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 ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d69042081870bd019a8dae83d420e8fc140f3d86 | 4aa272bf45f520e636de00f549bde2f29eaa4bf6 | /example/blocks/comments/__init__.py | f8c2a811abdf3899b9e685fc92550a0ee47f292e | [
"BSD-3-Clause"
] | permissive | IIKovalenko/bempy | d38b25861b3bcfce62986896f3ae50b94113d2d6 | ad87982d17c2d14c344d9e3d91a48c37dfb72535 | refs/heads/master | 2020-06-02T15:06:49.164740 | 2015-03-19T12:08:32 | 2015-03-19T12:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.http import HttpResponseRedirect
from bempy import block, ImmediateResponse
from bempy import b
_comments = []
@block()
def comments(request):
if request.method == 'POST':
_comments.append(request.POST['comment_text'])
raise ImmediateResponse(HttpResponseRedirect('.'))
else:
... | [
"svetlyak.40wt@gmail.com"
] | svetlyak.40wt@gmail.com |
346a05244bfe80ea061ad67b2b3460665b8bdbb7 | 8bccc05fcb3cfc6ed93991927a514a96f53f7ec0 | /old_version/candidate_selection/tensorflow_models/components/graph_encoders/gcn_message_passer.py | c6431b5d6672a58e3c7fe4c07b2e06cb487a1e8d | [
"MIT"
] | permissive | afcarl/QuestionAnsweringGCN | 54101c38549405d65ef22e38fed9e5bd58122ada | e9c1987b40a553f0619fa796f692c8880de32846 | refs/heads/master | 2020-03-20T10:35:55.729170 | 2018-06-07T11:45:12 | 2018-06-07T11:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,116 | py | import tensorflow as tf
import numpy as np
from candidate_selection.tensorflow_models.components.abstract_component import AbstractComponent
from candidate_selection.tensorflow_models.components.graph_encoders.gcn_features.external_batch_features import \
ExternalBatchFeatures
from candidate_selection.tensorflow_m... | [
"michael.sejr@gmail.com"
] | michael.sejr@gmail.com |
0f2e17fc287416836e44fd2647a6856ae96c1771 | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/openpyxl/reader/strings.py | b0fd8b94c1ff111098d667e40c5892aca22300bd | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 565 | py | # Copyright (c) 2010-2021 openpyxl
from openpyxl.cell.text import Text
from openpyxl.xml.functions import iterparse
from openpyxl.xml.constants import SHEET_MAIN_NS
def read_string_table(xml_source):
"""Read in all shared strings in the table"""
strings = []
STRING_TAG = '{%s}si' % SHEET_MAIN_NS
f... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
e598ca3cd6a60bc6e91c017508477697ed9c94b0 | 5633afdce5fb2209f130bb0cd2c478a35bd75957 | /174-conv_filter_visualization.py | ff3498610c5d6c655cbc24274d8091d82117d938 | [] | no_license | weiyinfu/learnKeras | 36a68e7f9966bf2ac53bb4767b3754864fe6087d | c011005bf760053e9085a0171702e54d19cafebc | refs/heads/master | 2023-03-06T18:06:32.811186 | 2021-02-22T06:05:57 | 2021-02-22T06:05:57 | 147,919,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | '''
CNN可视化,可视化的原理如下:
正常的反向传播传到输入层就终止了,而CNN可视化会继续传播,也就是会对输入的图片做一些更改。当每层损失为0之后,对输入图片的更改就停止了。
Visualization of the filters of VGG16, via gradient ascent in input space.
This script can run on CPU in a few minutes.
Results example: http://i.imgur.com/4nj4KjN.jpg
'''
import time
import numpy as np
from keras import bac... | [
"weiyinfu.weiyinfu@bytedance.com"
] | weiyinfu.weiyinfu@bytedance.com |
9f276ddac34abb532a594e7c1bbb5fdf47262bf6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2859.py | 7993365ceb5c7100db025642a1c299e5e4852858 | [] | 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 | 1,047 | py | import math;
def is_palindrome(s):
str(s);
if s == '':
result = True;
else:
if (ord(s[0]) - ord(s[len(s)-1])) == 0:
return is_palindrome(s[1:len(s)-1]);
else:
result = False;
return result;
def checksquare(n):
checkd = str(n).split('.');
if len(checkd[1]) == 1:
return int(n)
else:
return False;... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
853720f65c59f82b737389c44a08daa8970e8222 | 31b02ba77928b20a9d1c9783a4b3a6333d851089 | /TODO_APP/TODO/models.py | 02627420fc60d1b5227cdfa0257497d24600c5d1 | [] | no_license | sreebash/TODO_APP | 81741bc47861355d279aebbe5a5dd6e2eec5283f | 05b75233efeb25a8feeb2bcab1951089b11794c9 | refs/heads/master | 2020-03-13T16:25:28.300067 | 2018-04-26T18:50:57 | 2018-04-26T18:50:57 | 131,197,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
title = models.CharField(max_length=150)
description = models.TextField()
def __str__(self):
return self.title
| [
"sreebashdas.1@gmail.com"
] | sreebashdas.1@gmail.com |
0561976776ced144d1ca2b080eee492b866c5563 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/Lbr/br-66_MD_NVT_rerun/set_4.py | bdf391458300c9699e66ab2bd126cea4925b882c | [] | 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 | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/Lbr/MD_NVT_rerun/ti_one-step/br_66/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_4.in'
temp_pbs = filesdir + 'temp_4.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]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
0770c2d6c88833c0cab921f8e9eb124bd7deccff | 41ecedd90ce62b248161aa3588c9075291948d5c | /test/parameterized/parameterized/sanity.py | e8bc7328a4168d3c88913d5817ac52681b3ca0fd | [
"Apache-2.0"
] | permissive | MaxFedotov/clickhouse-odbc | 49e63dd1179a75b316b3c7571b83e39045fd38be | f5446f7b5565644bc9ea2b55ed34250c9b7d394d | refs/heads/master | 2020-09-30T22:07:38.226260 | 2019-12-11T15:36:46 | 2019-12-11T15:36:46 | 227,384,815 | 0 | 0 | Apache-2.0 | 2019-12-11T14:27:06 | 2019-12-11T14:27:05 | null | UTF-8 | Python | false | false | 3,878 | py | #!/usr/bin/env python3
import datetime
import decimal
from testflows.core import TestScenario, Given, When, Then
from testflows.core import TE, MAN
from utils import PyODBCConnection
@TestScenario
def sanity():
"""clickhouse-odbc driver sanity suite to check support of parameterized
queries using pyodbc conne... | [
"vzakaznikov@protonmail.com"
] | vzakaznikov@protonmail.com |
fa81faaa10199ee068f79418e3ede6ab624ddf11 | 9f2c8c6b9c7caac464193fa9a995dc7244f3aac5 | /Exercicios Curso Em Video Mundo 3/Exe_095.py | 4e453bbee09b4e9bdee2e8ccdbb85b5fa40e1b07 | [
"MIT"
] | permissive | JorgeTranin/Python_Curso_Em_Video | a5c1a119e30aa08663d5b3e3d86625fb852ccbe8 | be74c9301aafc055bdf883be649cb8b7716617e3 | refs/heads/master | 2021-06-13T23:29:36.184378 | 2020-04-10T00:49:25 | 2020-04-10T00:49:25 | 254,464,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | '''
Exercício Python 095: Aprimore o desafio 93 para que ele funcione
com vários jogadores, incluindo um sistema de visualização de
detalhes do aproveitamento de cada jogador.
'''
ficha = {}
gols = []
time = list()
while True:
ficha['nome'] = str(input('Digite o nome do jogador: '))
resp = int(input(f'Quanta... | [
"antoniotraninjorge@gmail.com"
] | antoniotraninjorge@gmail.com |
8fb245829432a9aed23ac5a23bc91323008773e8 | 0a9c7079723ef6776324fa5a37fe0ce2868fd54f | /project_management_portal/tests/storages/.~c9_invoke_KLAAcr.py | 1e105d55eb2b3f1bf0a88a1eb63bc6d1f6b1e3d9 | [] | no_license | mohan277/project_management_portal | 9e6b4ab4cce09bb61a742de212332f69663781eb | ce91c912731c7bba7674c1a00385862bad7a437b | refs/heads/master | 2023-06-20T15:06:56.251028 | 2021-07-22T17:03:00 | 2021-07-22T17:03:00 | 269,610,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | import pytest
from freezegun import freeze_time
from project_management_portal.models import (
User,
Project,
State,
Transition,
Workflow
)
@pytest.fixture
def create_users():
user_objs = User.objects.bulk_create([
User(username='mohana', name='user_1', is_admin=True, profile_pic='prof... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
287dc03b8c57fdd53f11683d1d737d876cd44ab4 | 078dae83a6c8a3166c42e1ede5bdfe5ad4bac1ee | /test/encoders/test_rnn_encoder_streaming_chunkwise.py | 6f4fb11a22d16d2825b6bf2af7d66904717f3840 | [
"Apache-2.0"
] | permissive | Cescfangs/neural_sp | 639cf511305528c0e380dbaa6eb1c0328c637290 | 2c12d25d2078d3dacdb80c5c367c2e90feba7b6c | refs/heads/master | 2022-11-10T06:59:04.865251 | 2020-07-08T06:51:59 | 2020-07-08T06:51:59 | 278,049,049 | 0 | 0 | Apache-2.0 | 2020-07-08T09:38:27 | 2020-07-08T09:38:26 | null | UTF-8 | Python | false | false | 6,755 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""Test for chunkwise encoding in streaming RNN encoder."""
import importlib
import math
import numpy as np
import pytest
import torch
from neural_sp.models.torch_utils import np2tensor
from neural_sp.models.torch_utils import pad_list
def make_args(**kwargs):
ar... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
fed91a3eb5be6c2c3ee7dffcd32322cbfbde65b1 | cf286e79c3c7637d74bfb07754d3d729d141b406 | /find_number_cellphone.py | 1c59d58b2ecdf67b761d36285b3d0518a837ca00 | [] | no_license | BerilBBJ/fpython | 9653e4f562662c8480e9658187bfd3bbbe0b3650 | 192a3c5d81c25ad945a564ea6c179de3ce682fa9 | refs/heads/master | 2023-08-22T02:03:58.083071 | 2021-10-04T10:19:02 | 2021-10-04T10:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | from phonenumbers import geocoder, carrier, parse, timezone, phonenumberutil
class Cellphone:
def __init__(self, nro_cellphone, lang_cellphone):
self.nro_cellphone = nro_cellphone
self.lang_cellphone = lang_cellphone
self.ch_number = self.getChNumber()
def getChNumber(self):
r... | [
"zicadopv@gmail.com"
] | zicadopv@gmail.com |
89ea69b05c1e687b729f6a0b83b025b68ab5e6d0 | 71d3632c19ada5585223d4800f681718af0e1f87 | /python/baekjoon/1001.py | 9ec9b264b44a120e035f9305ee4cf5644c15d168 | [] | no_license | hyunwoo-song/TOT | 640433b909913098699ff517698e71a1b8661cff | 76a8c18af942d9ed3d636fcec35001ae70b6b8d2 | refs/heads/master | 2023-01-05T08:11:38.858134 | 2019-08-14T08:53:23 | 2019-08-14T08:53:23 | 162,208,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # 두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.
a, b = map(int, (input().split()))
print(a-b)
| [
"gerrar486@gmail.com"
] | gerrar486@gmail.com |
70b8a2c0bf26e769160b847970013d5d0d0acde6 | 26e3d85a3b61219e13f794289ff2b70baa248f14 | /material/admin/apps.py | b99cc71ed6f1314b2f6afbedbd2aa3b9c6d462d4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | viewflow/django-material | ac8dd10daa8352440845c767b07cafc7f7d09216 | 31b1ce5f6fecc10ba4c9babe4219fb7be97dbf93 | refs/heads/master | 2023-08-15T23:32:58.330321 | 2023-04-12T06:12:07 | 2023-04-12T06:12:40 | 29,337,344 | 2,818 | 570 | BSD-3-Clause | 2023-03-04T02:28:50 | 2015-01-16T07:17:33 | CSS | UTF-8 | Python | false | false | 840 | py | from django.apps import AppConfig
from django.contrib import admin
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from ..compat import _
from ..frontend.apps import ModuleMixin
from ..frontend.urlconf import ModuleURLResolver
class MaterialAdminConfig(ModuleMixin, AppConfig):
... | [
"kmmbvnr@gmail.com"
] | kmmbvnr@gmail.com |
247c1c1c3e29f4600368c0f070570c6c1455133a | 83f2d141c4435844ecece4d0ef3c0b4499b962a5 | /Chapter19/Stacked_LSTM_regression_Batch_Memory.py | 73fee4af61977faba21a93baa57963aa2078072f | [] | no_license | Willianan/DeepLearning-Keras | 0a667a2a5d3cac74567832dee3ae442cabecc83f | 501297ac42953af2795530607a778caad571d80e | refs/heads/master | 2020-05-04T06:38:55.259472 | 2019-04-15T12:38:43 | 2019-04-15T12:38:43 | 179,010,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | # -*- coding:utf-8 -*-
"""
@Author:Charles Van
@E-mail: williananjhon@hotmail.com
@Time:2019/4/10 10:16
@Project:DeepLearning-Keras
@Filename:Stacked_LSTM_regression_Batch_Memory.py
"""
import numpy as np
from matplotlib import pyplot as plt
from pandas import read_csv
import math
from keras.models impor... | [
"noreply@github.com"
] | Willianan.noreply@github.com |
2b7d588b3058bc4f59fcbe212a6c019d95a7d875 | 85dd582c0710a3ce3a24ae4bdb0ae2ea4ad918ff | /12_OOP/robot.py | c827e7a53c526cbe68c8a79469bf8b659fb52f8e | [] | no_license | frclasso/A_Byte_of_Python | 695a42408ff1d3e14bf27aa60d36405bc171c50d | a2c94909844ca4700f29a1a9aa15196641d23a99 | refs/heads/master | 2020-03-26T16:55:17.238641 | 2018-10-11T21:24:54 | 2018-10-11T21:24:54 | 145,131,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | #!/usr/bin/env python3
class Robot:
"""Represents a robot, with a name"""
# A class variable, counting the number of robots
population = 0
def __init__(self, name):
'Initializate the data'
self.name = name
print('Initializing {}'.format(self.name))
# When this person ... | [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br |
d5b62dfa8288f2e79705dd321ccc9693623473dd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_cotyledon.py | 4c00ab957ae435ba8d9e590753821edf7d469586 | [
"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 | 413 | py |
#calss header
class _COTYLEDON():
def __init__(self,):
self.name = "COTYLEDON"
self.definitions = [u'a type of leaf that is part of the developing plant inside a seed and either stores food or grows from the seed to produce food']
self.parents = []
self.childen = []
self.properties = []
self.jsondata =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
55023320ae69396f733cd67fc27833e555bc9bbe | e3bdb7844f634efd89109079d22cade713c4899d | /test/test_merchant.py | 74a473a0f11ec01df123506c7ca9d4f0dc87fca0 | [] | no_license | pc-coholic/Python | 5170c27da09b066c353e09539e404961f7ad50b7 | b7251c31339b579f71fb7ee9db05be51e9e43361 | refs/heads/master | 2023-04-19T02:42:02.914726 | 2021-04-26T16:07:37 | 2021-04-26T16:07:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
40b7c2892d19cfe3e62e6afe9e9fd57871fb9c3b | 5fc5cfc38656a48b4d1aeb6c9a3a9d9d615467c5 | /bangazon/bangazon_ultra/migrations/0002_load_initial_data.py | 181409b604eba483bc7e88f2c051054fa78e419c | [] | no_license | PythonPonies/bangazon-api | c546463732b9a5144c573059140c48e7d2faca8a | 87afb651b57b62248f4f79868a3bb4042d5a25f2 | refs/heads/master | 2021-01-11T17:39:30.316984 | 2017-03-07T22:02:39 | 2017-03-07T22:02:39 | 79,816,545 | 0 | 0 | null | 2017-03-07T22:02:40 | 2017-01-23T15:21:30 | Python | UTF-8 | Python | false | false | 4,180 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-26 16:08
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import migrations, models
def load_orders(apps, schema_editor):
'''load_orders loads initial seed data for Order table on makemigrations'''
... | [
"zoe.leblanc@vanderbilt.edu"
] | zoe.leblanc@vanderbilt.edu |
a8fe41680f7fde709b7f83568b67f1b8c61b77ba | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /8_heap/经典题/贪心优先队列/带时间顺序的模拟/2534. 通过门的时间.py | a9d023d37c9e5c2ca517899df658447ad26b30ac | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # 2534. 通过门的时间
# n 个人,按从 0 到 n - 1 编号。现在有一扇门,每个人只能通过门进入或离开一次,耗时一秒。
# 给你一个 非递减顺序 排列的整数数组 arrival ,数组长度为 n ,其中 arrival[i] 是第 i 个人到达门前的时间。
# 另给你一个长度为 n 的数组 state ,其中 state[i] 是 0 则表示第 i 个人希望进入这扇门,是 1 则表示 TA 想要离开这扇门。
# 如果 同时 有两个或更多人想要使用这扇门,则必须遵循以下规则:
# 如果前一秒 没有 使用门,那么想要 离开 的人会先离开。
# 如果前一秒使用门 进入 ,那么想要 进入 的人会先进入。
# ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
69cbfa6953a20be75df88b4e7225088a0819f9c2 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/pandas/io/formats/style.py | 98349fe1e4792e92197754fbebf75a0aebba14ff | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 47,229 | py | """
Module for applying conditional formatting to
DataFrames and Series.
"""
from collections import defaultdict
from contextlib import contextmanager
import copy
from functools import partial
from itertools import product
from uuid import uuid1
import numpy as np
from pandas._config import get_option
from pandas.c... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
266cbe8bbd99723705fc6e304ed265c943c1866d | 25fa5fdc9f67738332bd6f95a1e4f038cd286890 | /이것이 코딩테스트다/ch03_그리디/1이 될 때까지 교재방식2.py | f5c1c43de0072be65454584fa0d7ffa9ff9a307a | [] | no_license | mandos1995/online_judge | b0cfd56e3391495f22b9832895cddcea70334349 | 9b90bffdcbfb5369e8dd5dafbb07f8e9e7050617 | refs/heads/main | 2023-08-02T19:29:03.716295 | 2021-10-04T15:10:34 | 2021-10-04T15:10:34 | 329,517,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | n, k = map(int, input().split())
result = 0
while True:
# (N == K 로 나누어떨어지는 수)가 될 때까지 1씩 빼기
target = (n // k) * k
result += (n - target)
n = target
# N이 K보다 작을 때(더 이상 나눌 수 없을 때) 반복문 탈출
if n < k:
break
# K로 나누기
result += 1
n //= k
# 마지막으로 남은 수에 대하여 1씩 빼기
result += (n - 1)
pr... | [
"mandos19950620@gmail.com"
] | mandos19950620@gmail.com |
1aa391e496451045aeea2929352fe559c23b93cc | 7135a9ea9eacdfb12d080daeb830ee784a86c50d | /bridgestyle/test/qgistogeostyler.py | 40664e9396692936a3e2fa596c5cef947dd35b3d | [
"MIT"
] | permissive | pvgenuchten/bridge-style | a58a3671f6fc0495b63dd8d31bf82eb0313c23c2 | d0eca30509dbe392a08db69779a85a85127dd2a4 | refs/heads/master | 2021-01-08T18:33:22.258808 | 2020-02-11T13:24:31 | 2020-02-11T13:24:31 | 242,108,405 | 0 | 0 | MIT | 2020-02-21T10:01:30 | 2020-02-21T10:01:29 | null | UTF-8 | Python | false | false | 2,992 | py | import os
import unittest
import json
from bridgestyle import qgis
from qgis.core import QgsRasterLayer, QgsVectorLayer
class QgisToStylerTest(unittest.TestCase):
pass
_layers = {}
def load_layer(file):
if file not in _layers:
name = os.path.basename(file)
layer = QgsRasterLayer(file,... | [
"volayaf@gmail.com"
] | volayaf@gmail.com |
e0c7658b2647698ae9a194666b421c6c941e57b4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/1041.py | 26a037eb250ff29c27f9086ac80d248238d6fe31 | [] | 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 | 1,044 | py |
def sign(x):
if x > 0:
return 1
elif x < 0:
return -1
else:
return 0
def solve(sequence):
last_robot = sequence[0][0]
last_robot_time = 0
time = 0
pos = [1,1]
for r,k in sequence:
if last_robot != r:
# account for the actions of the previous robot.
pos[r] += min(last_robot_time, abs(k - pos[r])... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8b54d2afefc86886030afd4fe28f46e3b04ee8de | dbb32a7d5b96a94533b27a6ccf2474c660a863b7 | /containers/master/sources/utils/master/registry/registered/users.py | 2036ac90e5c3a6e8eb3a6260c3049018378500e5 | [] | no_license | ankurhcu/FogBus2 | 772e8346c5e01e2aa8a02da9ef91fd696dd587a7 | 2cefabdd1d131fc8e9015ca31d414665e6014a69 | refs/heads/main | 2023-08-07T15:33:54.039724 | 2021-09-21T05:02:49 | 2021-09-21T05:02:49 | 410,610,212 | 1 | 0 | null | 2021-09-26T16:57:23 | 2021-09-26T16:57:22 | null | UTF-8 | Python | false | false | 427 | py | from typing import Union
from .base import Registered
from ..roles import User
UserKey = Union[User, str]
class RegisteredUsers(Registered):
pass
def __setitem__(self, key, user: User):
return self._setitem(key=key, component=user)
def __contains__(self, userOrStr: UserKey):
return sel... | [
"plocircle@live.com"
] | plocircle@live.com |
2179eb04d1204f5305b3f6b37362c03752b5be4f | 3037d662d6e6a742cb3eea2c4ab74212b29d926e | /arcade/examples/sprite_enemies_in_platformer.py | 3dab974f2a34a503d32eb8f06233bfbdda0f8ce1 | [
"MIT"
] | permissive | haddadabdelaziz/arcade | 92680240a0511159ea0c29bf75a62aed193559cf | ac4c0777d546d865c1a67b0f600643651493e0c6 | refs/heads/master | 2020-04-04T03:52:21.958568 | 2018-10-27T22:07:22 | 2018-10-27T22:07:22 | 155,729,172 | 1 | 0 | NOASSERTION | 2018-11-01T14:39:04 | 2018-11-01T14:39:03 | null | UTF-8 | Python | false | false | 6,167 | py | """
Show how to do enemies in a platformer
Artwork from: http://kenney.nl
Tiled available from: http://www.mapeditor.org/
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.sprite_enemies_in_platformer
"""
import arcade
import os
SPRITE_SCALING = 0.5
SP... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
667c7f96695b4ffe3ac84ee493cc68c637e593fe | 8853462a79608b7e5b7af94dbfa6c0a63c1f6b6a | /CustomEnvs/Gym envs/2. Crawler/Quadruped_12/Quadruped_12/envs/__init__.py | 9629f175c36b64f4727f2fe55380632dbc0b29e6 | [] | no_license | Ashish017/CASNET | eaae2552f8d56413f756c7d3839cd6f548a6e1ef | 73ec542c4c3fa1f97686796f0c385c71cad3e8d5 | refs/heads/master | 2023-02-06T06:53:27.362356 | 2020-12-27T04:43:34 | 2020-12-27T04:43:34 | 270,657,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from Quadruped_12.envs.Quadruped_12 import Quadruped_v12 | [
"ashishmalik7017@gmail.com"
] | ashishmalik7017@gmail.com |
400b1cc4c99f3e209a7aeafd26935df4318f3388 | 7aaba74baf83bac318fd8ce9438c2136e69b8291 | /code/if-only.py | e17df91bda18ac8d94954503f1f00dbc4d3e00fb | [
"MIT"
] | permissive | masomaster/graded-reader | 5b500d621e1d387af09b691e0793d2bae5f4b247 | be46f84053fd32fe36fab814deca762098c2a6d8 | refs/heads/master | 2023-04-18T04:32:06.494378 | 2020-05-18T07:27:58 | 2020-05-18T07:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | #!/usr/bin/env python
"""
Output a list of the top ten targets whose second least frequent item is
most frequent overall.
The input file should consist of lines of <target> <item> separated by
whitespace.
"""
from __future__ import print_function
## load file
import sys
FILENAME = sys.argv[1]
# target_item_list:... | [
"jtauber@jtauber.com"
] | jtauber@jtauber.com |
7a3ba600b866146dc6f9ca0d32ba729560e4e421 | 1b7d6afc818e908636940776636d095652ff2df2 | /utils.py | 4e50a8387ad7ee973aa1dcac754ae2815ff8f31b | [] | no_license | wangwei19951118/My_neural_network | 07f92a9f91e22da1ea966ace6e96da54d65d1981 | ae0d1fee79ad860df39a11d9e23ba85a9f2cdb8f | refs/heads/master | 2020-04-08T15:25:11.855437 | 2018-02-15T03:38:01 | 2018-02-15T03:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | import io
import urllib.request as url_request
from PIL import Image
import numpy as np
def log(info):
print("Log : " + str( info))
#提示信息
def prompt(info):
print(" ---" + info + "--- ")
def error_msg(info):
print("Error : " + str( info))
def warn_msg(info):
print("Warning : " + str( info))
'''
传入参数... | [
"lee_jiazh@163.com"
] | lee_jiazh@163.com |
5550afb50c298ebea1375e21640f10922d60afad | bdeb3959b71da2825492d7d5f82881f79e9d2585 | /MetaData/scripts/data_responsibilities.py | f63afcd7e1b8812117a91c3206d12bd25a0afe68 | [] | no_license | tsarangi/FinalStateAnalysis | 5ddd0e5aec0eba76ec63caf65779ba1403322cd5 | 00f74e6295bf8d429494d2ce43689d1535b1b581 | refs/heads/master | 2021-01-15T18:31:13.206224 | 2012-09-14T09:06:35 | 2012-09-14T09:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #!/usr/bin/env python
'''
Print out the size and number of events for each sample, and a summary for each
responible.
Author: Evan K. Friis, UW Madison
'''
from FinalStateAnalysis.MetaData.datadefs import datadefs
from FinalStateAnalysis.MetaData.datatools import query_das
people = {}
for dataset in sorted(datad... | [
"evan.friis@cern.ch"
] | evan.friis@cern.ch |
d8f8e5a9f32be027e3b07c5fa42ea0534a08c083 | 6a41dd36ddd3e501b62ff253b40bf9bbbaa722c2 | /간단한 파이썬 프로그램/sum.py | 9c4108a27e08fb9f26c89a4a453eaf81de57973a | [] | no_license | skysamer/first_python | 9ba79b194d838e0cdeab6f2e7a4207d71c73ed63 | 638622f51434eda65ef3300e3ce5db3a2a79db2a | refs/heads/master | 2023-02-03T08:21:23.370285 | 2020-12-27T13:39:20 | 2020-12-27T13:39:20 | 307,953,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | s=0
for x in range(1,10+1):
s=s+x
print("x:", x, "sum:", s)
| [
"skyslayer123@naver.com"
] | skyslayer123@naver.com |
c43435817e5aee4bb5dbba88322e2fa4520641cb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s883266922.py | 7d59be839f4885b6905c82aa80007b400656ffb4 | [] | 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 | 301 | py | n,m=map(int,input().split())
A=[input() for _ in range(n)]
B=[input() for _ in range(m)]
ok=0
for i in range(n-m+1):
for k in range(n-m+1):
if B[0]==A[i][k:k+m]:
for j in range(i,i+m):
if B[j-i]!=A[j][k:k+m]:
break
else:
ok=1
print("Yes" if ok==1 else "No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
885a6b1cb0deaaa69f8c3820796f63ebfe6db560 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickangle.py | 4f997ff41727d06d5eddcb892d43f50319d5921c | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 426 | py | import _plotly_utils.basevalidators
class TickangleValidator(_plotly_utils.basevalidators.AngleValidator):
def __init__(
self, plotly_name="tickangle", parent_name="layout.scene.zaxis", **kwargs
):
super(TickangleValidator, self).__init__(
plotly_name=plotly_name,
paren... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
ecb8e372fd88bf911aeec96a37ef071d7ec13bcc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch76_2020_04_13_11_28_59_617639.py | 8c1130ec87f99393e37968f85ec904ee855799e8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def aniversariantes_de_setembro(dicionario):
listanomes=list(dicionario.keys())
listavalores=list(dicionario.values())
dic_novo={}
print(listavalores)
| [
"you@example.com"
] | you@example.com |
499a2d65941173c60788bb8b5e0c5665368ee03b | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_ZYCJ/ZX_CJXW_ZYCJ_ZGZQW_JG.py | 7a4e26f293195345834c1793e6460861cc349a3b | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_ZYCJ_ZGZQW_JG", mongo_collection="ZX_CJXW_ZYCJ")
data_list = main_mongo.main()
for data in data_list:
re_data = data... | [
"499413642@qq.com"
] | 499413642@qq.com |
ee50466b140f2bbe362ab6903b9ab71286f41bac | 4ad0dddd7a6e29b31d5780bf6dec6ebad776cf73 | /SimCalorimetry/HcalSimAlgos/test/sipmnonlinearityanalyzer_cfg.py | 8744c166a7d077886c32dc0acd138a2e8b9e937e | [
"Apache-2.0"
] | permissive | llechner/cmssw | 95dcd6ae0ced5546853778c6ebdf0dd224030215 | 419d33be023f9f2a4c56ef4b851552d2d228600a | refs/heads/master | 2020-08-26T20:20:28.940065 | 2018-10-18T09:24:51 | 2018-10-18T09:24:51 | 131,112,577 | 0 | 0 | Apache-2.0 | 2019-10-23T17:59:17 | 2018-04-26T06:51:19 | C++ | UTF-8 | Python | false | false | 2,867 | py | import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.VarParsing import VarParsing
options = VarParsing()
options.register ("pixels" , 27370, VarParsing.multiplicity.singleton, VarParsing.varType.int)
options.register ("npeMin" , 1000, VarParsing.multiplicity.singleton, VarParsing.varType... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
387f6da9733641d7f6c5d7ee14b0411270a91f47 | 8cc862aa51d3fec95d094dc4bd3151e1155d240a | /pythonProject/class/using_class.py | fa8343d3834bd64cd587f925ae153bbd9f4d6128 | [] | no_license | activehuahua/python | bcbf3a2190025e2315399bfd0c725f598211632b | cc36a93c01c53f856426ccf2724848142524d9c0 | refs/heads/master | 2023-04-14T10:23:21.590765 | 2019-08-12T06:52:15 | 2019-08-12T06:52:15 | 160,277,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | class Student:
def __init__(self,name, score):
self.__name=name
self.__score=score
def print_score(self):
print('%s %s '%(self.__name,self.__score))
def get_grade(self):
if self.__score >= 90:
return 'A'
elif self.__score >= 60:
return 'B'
... | [
"zhaojianghua@pretang.com"
] | zhaojianghua@pretang.com |
fd0481528d76c37b2c42f64959d280d409325c2d | b7e6cdf094baaee9d6e5034c2355641fbf9138d7 | /122. 买卖股票的最佳时机 II.py | c8bfb42dfe97324b3ab1ba78fe4bd8754ae0bdbf | [] | no_license | heshibo1994/leetcode-python-2 | 04296c66cd6d1fe58880062aeafdbe9d474b7d2e | 3ea32f03bd453743b9b81de9871fad7ac67ced90 | refs/heads/master | 2020-05-23T21:49:01.367969 | 2019-09-30T03:31:27 | 2019-09-30T03:31:27 | 186,961,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
#
# 设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易(多次买卖一支股票)。
#
# 注意:你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
#
# 示例 1:
#
# 输入: [7,1,5,3,6,4]
# 输出: 7
# 解释: 在第 2 天(股票价格 = 1)的时候买入,在第 3 天(股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5-1 = 4 。
# 随后,在第 4 天(股票价格 = 3)的时候买入,在第 5 天(股票价格 = 6)的时候卖出, 这笔交易所能获得利润 = 6-3 = 3 。
#
# ... | [
"csuheshibo@163.com"
] | csuheshibo@163.com |
4afa6a3d6509b2a9af6910a7b3cb89d3a5d7d644 | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/arjuna-vishwamitra-abhimanyu/educative/3-heap-related/top-largest-elements/11_rearrange_string_k_distance_apart.py | ad59a156ea1be7bd4a973e298f6e0793bf7147b2 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from imports import *
def rearrange_characters_k_distance_apart(str, K):
max_heap = []
queue = deque()
freq_counter = Counter(str)
for k, v in freq_counter.items():
heappush(max_heap, (-v, k))
res = []
while max_heap:
f, item = heappop(max_heap)
res.append(f)
... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
d303db6aa12cdbe2c3cf12d65ee8f8d6aca46902 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Practice_Previous_Anything/31.py | 36f8219a5086306e2730ba3b619fe5e6a4fa4615 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from numpy import *
li = array([1, 2, 3, 4])
print(li)
print("---")
li1 = li
print("---")
li = li + 2
print(li)
print(li1)
print("---")
li1 += 3
print(li)
print(li1) | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
4fcb90e3ab192ec35d37973e2995780179bb2650 | 0f30dbffc77960edf69fa18c78c6d1a1658bb3dc | /imate/logdet/__init__.py | e2a581803777825161bc998ec605cb6679ae8702 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ameli/imate | 859c5ed35540cc44058cd908ce44485487acd041 | de867f131a4cda7d60a68bf0558e896fae89d776 | refs/heads/main | 2023-08-29T07:03:53.512434 | 2023-08-15T23:39:30 | 2023-08-15T23:39:30 | 308,965,310 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileType: SOURCE
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the license found in the LICENSE.txt file in the root directory
# of this source ... | [
"sia.sunrise@gmail.com"
] | sia.sunrise@gmail.com |
4eba344949851b832fd13f416587c99ab9c35659 | c7663e4eab4a91ceee5eda855d6e58064f35680f | /jackdaw/dbmodel/__init__.py | 410bb9673d0552c659fc6c42ab309c4703749603 | [] | no_license | Blue-infosec/jackdaw | 1f3d87b8532cee58c7b924106e77ff8097a56358 | 5fd487d5a9833756c7abc691c2f30d6179107e57 | refs/heads/master | 2021-01-09T17:06:34.568292 | 2020-02-08T21:49:02 | 2020-02-08T21:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,871 | py | import datetime
import logging
from sqlalchemy.engine import Engine
from sqlalchemy import event
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Boolean, ForeignKey, Table, Enum
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy impo... | [
"info@skelsec.com"
] | info@skelsec.com |
0fdb941ed895d71b4bdbad22fb10aa209c1d9003 | 6edd6a95bdd84d8ecc5da7eb6635061319aa1e2c | /scripts/prepare_config.py | a8dc5bbcc17e258988ba7c2ffd40bcbaae2c907c | [
"Apache-2.0"
] | permissive | Sondro/segmentation | c7104755e500f5baa0dbdc1ac2745b2d1bb4c55f | eab56ff369e9989c78466b3095896c1b150574af | refs/heads/master | 2023-04-10T16:21:51.872227 | 2019-10-20T17:25:57 | 2019-10-20T17:25:57 | 216,481,482 | 0 | 0 | Apache-2.0 | 2023-04-03T23:46:57 | 2019-10-21T05:04:18 | null | UTF-8 | Python | false | false | 2,148 | py | #!/usr/bin/env python
# usage:
# python scripts/prepare_config.py \
# --in-template=./configs/templates/binary.yml \
# --out-config=./configs/config.yml \
# --expdir=./src \
# --dataset-path=./data \
# --num-workers=4 \
# --batch-size=64 \
# --image-size=256
import json
import argparse
from... | [
"scitator@gmail.com"
] | scitator@gmail.com |
2baa0fccdd11875914f83e79064f1f02ac3b9bcf | 71c8e39d9d849a2e4ec94ff8c3f0120d9da47686 | /python/fancontrol/model/state.py | 367150c76f3fd5dee3615c5916445ecd155ca206 | [
"MIT"
] | permissive | joshcol9232/AL-FanControl | d588ba3e619037d02a53b5d82a0b8cd2dec51a5b | ea01a3318bf07deeb78df5eab99e7cef3bf8fcc2 | refs/heads/master | 2023-05-31T22:04:14.712753 | 2021-06-09T18:09:16 | 2021-06-09T18:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
class State(object):
"""
Describe the current state of the observed and influenced system.
"""
_headrooms = [None, None, None, None, None, None, None, None]
_pwms = [169, None, None, None,... | [
"bengt.lueers@gmail.com"
] | bengt.lueers@gmail.com |
4857118685bb26f301df3169a186f86bb12b216d | f6c6085c34ac6e1b494ff039cd0173b47cc9c6c4 | /byceps/services/user_badge/models/awarding.py | e307897c1941f3172d347c0f9674d778704a0be6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FakoorCo/byceps | 971042f598a12c00465b0c3a714f4ac7dbdc9d5b | 11290b154b83f5ac3a9530fb6cd752b3d7a3989b | refs/heads/main | 2023-01-23T18:53:59.930267 | 2020-11-30T01:09:20 | 2020-11-30T01:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | """
byceps.services.user_badge.models.awarding
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from datetime import datetime
from ....database import db, generate_uuid
from ....typing import UserID
from ..transfer.model... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
05f915c721a088dcf438b4b446bd99afbcdc8e67 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/jmysite/model/create_page_request_wrapper.py | fe06c7c33e112e47c4a3336bfbd6e258d4d57d8d | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,549 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
9e9d6088eefd3d036dbe20f038658ff3eefa32f9 | 821edbb97508442d4d7027f8793828ba5c54ef8f | /scripts/segmentations_to_unet_input.py | a93b8bb0975bbba549ed96e9743e746b60bb9dc4 | [] | no_license | JIC-Image-Analysis/deep_pavement | 2e9e3789abff1be2f6f6cc0ae3d217c1a9ea8ad1 | d32c4c66bd10a782bbb01edef939cb6ab7bf15f7 | refs/heads/master | 2020-03-22T09:58:40.587490 | 2019-03-01T12:28:49 | 2019-03-01T12:28:49 | 139,872,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | import os
import click
import dtoolcore
import numpy as np
from imageio import imread, imsave
from dtoolbioimage import Image
from dtoolbioimage.segment import Segmentation
from dtool_utils.derived_dataset import DerivedDataSet
from parameters import Parameters
DILATION_SIZE = 2
from skimage.segmentation import ... | [
"mhartley@cantab.net"
] | mhartley@cantab.net |
fbe6230b347ac3769cd32e20580d3c5c76c5ae4b | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/126.py | 7c6362a4880d561a9eeeb325597433a4329dfa60 | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # time: O(N+L) length of word, N word
# space: O(N+L)
from collections import defaultdict
def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
words = defaultdict(lambda:set())
for word in wordList:
for i in range(len(word)):
key = word[:i]+'*'+word[i+... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
2015fd4ba0df8aecad0dc718893eead44a92fd28 | 3a8057d469a533b13a5a0961a48bfde1b31411cd | /NowCoder_problem_2/NC23-划分链表.py | a9d2015f5293a744a43a75d0a26fe6fd160c11a2 | [] | no_license | XMK233/Leetcode-Journey | 41b5aa6a47db56b008e94d75029f3dffd24a4695 | 4012c16ccedeebc7852fda707a2399ecb0b5b60a | refs/heads/master | 2022-04-26T13:08:32.470174 | 2022-03-07T14:09:29 | 2022-03-07T14:09:29 | 126,415,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | class ListNode:
def __init__(self, x):
self.val = x
self.next = None
n1 = ListNode(1)
n2 = ListNode(4)
n3 = ListNode(3)
n4 = ListNode(2)
n5 = ListNode(5)
n6 = ListNode(2)
n1.next = n2
n2.next = n3
n3.next = n4
n4.next = n5
n5.next = n6
class Solution:
def partition(self , head: ListNode, x: i... | [
"clxfxmk@qq.com"
] | clxfxmk@qq.com |
a7d0cf444c037cecc6183814605f26dca405ab20 | 3e37d1cad3ee9c3321bd1b44299bdc67f0dda275 | /test.py | 7bb8e32777d55e578cf07f48a5669ed11c9ce80e | [] | no_license | hbradlow/delaunay | 328cfc3e55e8b462f2f12f52b4b2b2dea2d7777f | 99d54f6fb965674e5f5955b7f80473941eb03f47 | refs/heads/master | 2016-09-05T18:26:29.396354 | 2013-05-03T09:10:25 | 2013-05-03T09:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | from gui import Visualizer, Point2D, Line2D, Box2D, add_line, Polygon2D
import Tkinter as tk
from structures import *
from dt import Triangulation
import threading
from parse import load_node
lock = threading.Lock()
#initial setup
vertices = load_node("spiral.node")
min_x = min(vertices,key=lambda v: v.x).x
min_y =... | [
"hbradlow@berkeley.edu"
] | hbradlow@berkeley.edu |
a3627c2b2746c58962cda16eedfffdb5f80c228f | 13ba35a1b41f56a6791f65ff06aa6a7c6a34b60a | /tests/app/admin.py | adeca49962dc0d677c21898f15a7812c77ab7637 | [
"BSD-3-Clause"
] | permissive | dldevinc/django-spectrum | ea60b63feec313c87efc19effe31d455b243c99e | 66e69ace7d508219eb69aee3b1ed421df2bf3013 | refs/heads/main | 2023-09-04T04:52:48.530659 | 2023-08-18T05:40:23 | 2023-08-18T05:40:23 | 166,020,131 | 3 | 0 | BSD-3-Clause | 2023-08-18T05:15:10 | 2019-01-16T10:22:37 | Python | UTF-8 | Python | false | false | 211 | py | from django.contrib import admin
from .models import Example
@admin.register(Example)
class ExampleAdmin(admin.ModelAdmin):
list_display = ('pk', '__str__', 'color')
list_display_links = ('__str__', )
| [
"pix666@ya.ru"
] | pix666@ya.ru |
5841e697980ece97751e5ce95e02498f1c6f8eaf | d2df591c50458f88b3ebef4e5f9c65fa8ba42688 | /Algorithm-Study/programmers/level_1/basic_str.py | fcb07897f4cfc8665eabdf2edddd4780de1199d6 | [] | no_license | JuHyang/today-I-learned | 16eba628b3e9e8c99cb3ca6bcdf1d49f9f496f94 | 6a262bc7a88612aa22fcb5119d4d182bacb22b49 | refs/heads/main | 2022-02-10T16:37:36.793196 | 2022-01-28T01:06:02 | 2022-01-28T01:06:02 | 222,265,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | def solution(s):
length = len (s)
if length != 4 and length != 6 :
return False
try :
temp = int (s)
return True
except :
return False
| [
"kkss2889@naver.com"
] | kkss2889@naver.com |
0e42eef6a7f8c08396223bb21e71828603af9e16 | d195bb29dbe6c6914eca0334395b1ee28c0d2bc2 | /backend/frontend_24886/wsgi.py | 022300cccb94ebbec985403a02eccdbfc1ad43da | [] | no_license | crowdbotics-apps/frontend-24886 | 1938e755d9a18ba1c13929aabcef2bb681c57893 | 051d80a61998b42587f7db27b9795d2f632f2d70 | refs/heads/master | 2023-03-20T11:52:40.403376 | 2021-03-06T16:27:11 | 2021-03-06T16:27:11 | 345,139,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for frontend_24886 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
260f16ee5c71eba76d98b55e29fbf84c1bd40df6 | 326c6ad82d59bb7509c02c76695ea9035993da70 | /lib/modules/powershell/privesc/powerup/service_stager.py | a1c5721f248f2a616a7a745ba71d585457ae9ff6 | [
"BSD-3-Clause"
] | permissive | Arvanaghi/Empire | 0c08bd7ddfba9be10e96bb0834b8ce3bc829059b | fd168ebf8acb1c2ee59d56f2c393ebd7a297603e | refs/heads/master | 2021-01-20T14:15:34.864581 | 2017-08-05T17:51:44 | 2017-08-05T17:51:44 | 99,435,848 | 2 | 0 | null | 2017-08-05T16:50:16 | 2017-08-05T16:50:16 | null | UTF-8 | Python | false | false | 4,429 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-ServiceAbuse',
'Author': ['@harmj0y'],
'Description': ("Modifies a target service to execute an Empire stager."),
'Background' : True,
... | [
"will@harmj0y.net"
] | will@harmj0y.net |
fbbf021e8ae10b682bb26ba5556517c1b5c2e5f0 | 69fc63e957b95277620fc9dfb9ba4697360af219 | /web/project/settings/base.py | 5127178da6d14d5183f5822f7944919881ad2a1c | [] | no_license | x4rMa/docker-nginx-postgresql-wagtail | 8b09a4e4f65d1e0acd0c1131e11a6b48b8293155 | 275c4e0565b6c944f4f48d3bc6e4e871f8f70fb3 | refs/heads/master | 2021-01-17T18:12:34.828984 | 2016-05-12T12:34:16 | 2016-05-12T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
# Build path... | [
"mpdevilleres@gmail.com"
] | mpdevilleres@gmail.com |
fe37b02fddfd0fa36b93e154b6edbe07ffd7271c | 142512ab97ef4bc256200fc2f77927ac3e1e5bb2 | /backend/home/migrations/0001_load_initial_data.py | 3b929edc73674bb83098294528711c57280e6fa5 | [] | no_license | crowdbotics-apps/lingering-shadow-29149 | 05bb89f07c453bc60610336c2eda0e522c87e395 | 9bad7dc0a249aedcaec9b49a2f0696d773a4accf | refs/heads/master | 2023-06-25T02:00:24.835596 | 2021-07-25T13:04:55 | 2021-07-25T13:04:55 | 389,348,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "lingering-shadow-29149.botics.co"
site_params = {
"name": "Lingering Shadow",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
01f9ec483eb6520d53664d82c8e5c3f6e26f4e8e | e5a044708032b853f1cdf8906da63502716fd410 | /test/test_payment_card_disbursement_transaction.py | 507013ce2b713e9fe0c5490dfb0ca92d0217a917 | [] | no_license | GBSEcom/Python | 4b93bab80476051fc99f379f018ac9fa109a8a6a | 5fa37dba8d0c3853686fdc726f863743376060c9 | refs/heads/master | 2021-12-04T12:55:29.605843 | 2021-11-19T22:01:03 | 2021-11-19T22:01:03 | 136,058,345 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
9eba373b49351ceca33e4b5aa71401583e1c4ac8 | 8f555e0796a7e9922a02a479df9a1b9886bc44e2 | /pixelTool/PixelTool.roboFontExt/lib/PixelTool.py | d3be2c2c00b6d629b7ee02798fbb8c4fc6fd15b5 | [
"MIT"
] | permissive | sannorozco/RoboFontExtensions | ab06c497aa8931a0484e5ebb8fb994cfa3998c43 | 6df1a0ecfa7bfff7f99624f4dc62871d3c66b21b | refs/heads/master | 2021-01-18T08:43:40.564424 | 2012-03-13T14:15:49 | 2012-03-13T14:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,202 | py | from AppKit import *
from math import floor
import vanilla
import os
from mojo.events import BaseEventTool, installTool
from mojo.roboFont import CreateCursor
from mojo.extensions import getExtensionDefault, setExtensionDefault, ExtensionBundle
from lib.tools.notifications import PostNotification
from lib.tools impo... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
4be20b30150f86b6dd66394072ec04c1da324e78 | 97a331e6cdeb3424a1897fe08dd6d54623534b22 | /supervised_learning/0x06-keras/1-input.py | 7435f8c5953bbd4c0c38d610316b56422167782e | [] | no_license | dalexach/holbertonschool-machine_learning | 2fa324f49da5ea27aecc4dff6d87b60b33b76cb3 | fc2cec306961f7ca2448965ddd3a2f656bbe10c7 | refs/heads/master | 2023-02-03T03:49:46.149072 | 2020-12-22T15:57:41 | 2020-12-22T15:57:41 | 255,250,596 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | #!/usr/bin/env python3
"""
Buiding a model with Keras using Input
"""
import tensorflow.keras as K
def build_model(nx, layers, activations, lambtha, keep_prob):
"""
Function that builds a neural network with the Keras library
Arguments:
- nx is the number of input features to the network
- lay... | [
"dalexach@gmail.com"
] | dalexach@gmail.com |
3bb3e4085df825bbb1fd41f0991f0324e9b0744e | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /045_functions/008_built_in_functions/partial/examples/001_Partial Functions in Python.py | 165e42ce348d2b367eeeaf615beb68f37da626d1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,138 | py | from functools import *
from operator import *
# We can write partial functional application in python through functools library. Below is a simple example of partial
# function from the functools library with the add function from the operator library.
add(1, 2)
# 3
add1 = partial(add, 4)
add1(6)
# 10
add1(10)
# 14
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b4620644fa4c4d4972265a46ae3e584811652950 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374658142/HTT_24Jul_newTES_manzoni_Nom_Jobs/Job_190/run_cfg.py | 66808113e9fd42bdc97e9c8abe581b47b932a157 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,049 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_C... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
8983e065a06777024eb3f3016b63debd622eb487 | 9c09a8340ba71304b52bedf42dc797823e03c8fb | /backend/manage.py | 03fa88d6cf724043b22af32b45aa8b4396bde44f | [] | no_license | crowdbotics-apps/gaas-23745 | 7a3b9e3f0d5b76b495121d0dee4912d9dcc21aac | 7c1ea2900be555618367473924f68b70747e21c3 | refs/heads/master | 2023-02-25T23:50:06.238254 | 2021-01-12T21:25:47 | 2021-01-12T21:25:47 | 328,232,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | 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', 'gaas_23745.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3f1d9b4369ba5aa0ed1bb63fb887a5b9cc70a53d | 0e91f5736ae29f376361f47e7a6622fd9d18bd3f | /django/orm/manytomany/models.py | 9dd92dbde86b0214bad0537facb58e018299ba20 | [] | no_license | choo0618/TIL-c9 | 8027927655b10ad95677d769ecb990924bf2086c | b54c00c54751ec9f40f7a89fba3d06277d68c9e0 | refs/heads/master | 2020-04-17T17:17:59.960427 | 2019-05-09T06:25:32 | 2019-05-09T06:25:32 | 166,777,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | from django.db import models
# 병원에 오는 사람들을 기록하는 시스템을 만드려고 한다.
# 필수적인 모델은 환자와 의사이다.
# 어떠한 관계로 표현할 수 있을까?
class Doctor(models.Model):
name = models.TextField()
# patients = models.ManytoManyField(Patient, through='Reservation') # 둘중하나만
class Patient(models.Model):
name = models.TextField()
doctors = mo... | [
"choo0618@naver.com"
] | choo0618@naver.com |
a17c1031051ed000c752ab14e0f4d8dc5c89b0e1 | d40eb2bc3381313ebe6505a896e342d206797a0d | /bin/pypistats | 2baad33d864be30ddf5cb8c9a6b600b835783270 | [] | no_license | brutasse/dotfiles | 9f234f37c39a8253c5b958c6428d70d6797f1e1d | 2dec2d799c2b7000c726ad92b4231b7904c51712 | refs/heads/master | 2023-08-31T14:17:41.246813 | 2023-08-16T18:39:48 | 2023-08-16T18:39:48 | 2,085,346 | 6 | 3 | null | 2018-10-23T13:16:23 | 2011-07-21T19:39:53 | Python | UTF-8 | Python | false | false | 4,179 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Calculates the total number of downloads that a particular PyPI package has
received across all versions tracked by PyPI
"""
from datetime import datetime
import locale
import sys
import xmlrpclib
locale.setlocale(locale.LC_ALL, '')
class PyPIDownloadAggregator(obj... | [
"buburno@gmail.com"
] | buburno@gmail.com | |
042dd4cea30fd22b7fce051d63158bbf4e8d56ef | 50fbbfb10484aaa49a254148f8f62d1b0210e417 | /02_48488_wsd_max.py | 67324d36caf6e17aea2000cec285e99d70d15de2 | [] | no_license | caonlp/wsd_bert_pytorch_version | 4f3132910b4a7c4b2b0208fbb75d9db84412da1a | 127cec619f22f3e0ea7117ef5bdc1ce0ac7a45d5 | refs/heads/main | 2023-03-16T17:38:52.687036 | 2021-03-04T06:39:05 | 2021-03-04T06:39:05 | 344,374,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | import torch
from torch.utils.data import Dataset, DataLoader, TensorDataset
from torch.autograd import Variable
import numpy as np
import codecs
from torch import nn
from torch import optim
import torch.nn.functional as F
def load_wsd_train_x():
wsd_train_x = codecs.open('48488_train_data', mode = 'r', ... | [
"noreply@github.com"
] | caonlp.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.