blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2011bd335f06239f1071ddd091443dcdbbc2baf | 087a0cfe910992bbf1913a1cc8ddb47eae53c81d | /browsercompat/bcauth/oauth2p/urls.py | fe6f542748de5c4cb6208b609ed0d0a39c453f85 | [] | no_license | WeilerWebServices/MDN-Web-Docs | a1e4716ce85ee6a7548819bcb19e78f6d1c14dfa | bc092964153b03381aaff74a4d80f43a2b2dec19 | refs/heads/master | 2023-01-29T17:47:06.730214 | 2020-12-09T05:53:29 | 2020-12-09T05:53:29 | 259,744,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | """
Overrides for oauth2_provider.urls.
Same as default, but uses our AuthorizationView.
"""
from __future__ import absolute_import
from django.conf.urls import url
from oauth2_provider import views
from .views import MyAuthorizationView
urlpatterns = (
url(r'^authorize/$', MyAuthorizationView.as_view(), name='a... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
d0ec0186ae9afc856f78b53b6439831f4865b158 | 4ea43f3f79ad483d83238d88572feb822f451372 | /philo/migrations/0004_auto__del_field_attribute_json_value.py | 2cfc222a490142fcde0e59222b460dd47760eab8 | [
"ISC"
] | permissive | kgodey/philo | c8c433d44b2f31121f13bd0ee101605be11fe9da | c19bf577d44606d2b284e6058d633f4a174b61cc | refs/heads/master | 2020-12-29T02:54:11.746966 | 2011-05-24T21:57:47 | 2011-05-24T21:57:47 | 686,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,789 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Attribute.json_value'
db.delete_column('philo_attribute', 'json_value')
def backwa... | [
"stephen.r.burrows@gmail.com"
] | stephen.r.burrows@gmail.com |
e57a2eac0d5aae324db2f1f3da2271d06bba059e | 44f216cc3bb4771c8186349013ff0ed1abc98ea6 | /torchgen/shape_functions/gen_jit_shape_functions.py | d25539d3fa2cd35023e6989e6bb93576a1c69ef5 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | eiphy/pytorch | a8fc21a3c0552b392ed8c3a1d69f7ed8660c56ac | 104f0bf09ec7609d1c5626a7d7953ade4f8c9007 | refs/heads/master | 2022-05-23T02:10:13.158924 | 2022-05-07T21:26:00 | 2022-05-07T21:26:00 | 244,914,898 | 2 | 0 | NOASSERTION | 2020-03-04T14:00:53 | 2020-03-04T14:00:53 | null | UTF-8 | Python | false | false | 3,366 | py | #!/usr/bin/env python3
import os
from pathlib import Path
from torch.jit._shape_functions import shape_compute_graph_mapping
SHAPE_HEADER = r"""
/**
* @generated
* This is an auto-generated file. Please do not modify it by hand.
* To re-generate, please run:
* cd ~/pytorch && python
* torchgen/shape_functions/ge... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
f16e57b0781c6ce1aaf648186b412f2f16a75ec9 | 92963d596f263b04d244fe87d1cad149961c7e39 | /caffe2_tutorial/Basics/test_caffe2.py | fadd2f155da66095dbc4383b8de459a6739f61a8 | [] | no_license | zchen0211/ml_system | 1d993c6f481d269013c4193bbe6de2d178f0b3fb | 7a74656eb8fab559890513ee318cf726654ff44a | refs/heads/master | 2021-01-20T05:19:10.393493 | 2019-03-08T22:45:53 | 2019-03-08T22:45:53 | 101,426,846 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | from caffe2.python import workspace, model_helper
import numpy as np
import glog as log
# Create random tensor of three dimensions
x = np.random.rand(4, 3, 2)
print(x)
print(x.shape)
workspace.FeedBlob("my_x", x)
x2 = workspace.FetchBlob("my_x")
print(x2)
### Nets and Operators
# Create the input data
data = np.ran... | [
"chenzhuoyuan07@gmail.com"
] | chenzhuoyuan07@gmail.com |
a5267614375d4244c70ef9d22e43775759ce616f | b2abec1469351de38a37b6189fd365be71ac1a5c | /v2/api/assets/user_preferences.py | 9bdefa24e0677c120d05de4c4a0e13925375780f | [] | no_license | stainedart/kdm-manager | 49804eb258ebc22a7679dad8e1e704c997694747 | 3b73fc037be3b2b63c0baf4280e379bdf4e7cb75 | refs/heads/master | 2020-03-07T02:28:49.893626 | 2018-03-25T14:24:47 | 2018-03-25T14:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | preferences_dict = {
"beta": {
"type": "General",
"desc": "Enable beta features of the Manager?",
"affirmative": "Enable",
"negative": "Disable",
"patron_level": 2,
},
"preserve_sessions": {
"type": "General",
"desc": "Preserve Sessions?",
"aff... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
b4901ff780580eb8733db95e8de4824e965fd50e | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /nox_mesh_4_loop_repro_debug_verbose/interreplay_20_l_5/replay_config.py | 81a227dc97ef5fe3361b91f64be4cda59ae66e9f | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./nox_... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
eb26b4d645ca9ad3766a6fcd1e53b646322b4db4 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/sklearn/base.py | 10620bcf6f59c053e9249cfa67230a2ee5e90210 | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2b7638a252b70d507fafc022659ee844b25e7e5cf54b0595420920b4a8c42ce7
size 22906
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
408a09caa0f100dcf5c20e1fdf23a5e47ce33265 | e940e2d5e0696b9f1385962100796c3d990c33d1 | /chapter 3/exercise_3.14.py | fa55234e74e6fed3a7a23a112f1e030b0ee30fb6 | [] | no_license | sfwarnock/python_programming | a84b6c3d18f55e59d50e5299cedd102c265dfc6b | aa45be8984cd80094f685d4fc4d0b9aca9e9eefb | refs/heads/master | 2021-04-12T03:16:49.267143 | 2018-08-06T12:24:00 | 2018-08-06T12:24:00 | 125,944,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 19
@author: Scott Warnock
"""
# Exercise 3.14
#
# Write a program that finds the average of a series of numbers entered by the user.
# First prompt the user for how many numbers are to be entered..
print("This program averages numbers entered by the user... | [
"noreply@github.com"
] | sfwarnock.noreply@github.com |
94f25a94f89bd31421515bc201727e6530947fab | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/417 Pacific Atlantic Water Flow.py | e749a8f4525325e00fb1e9c945f5d40b2aff4e87 | [] | 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 | 4,163 | py | #!/usr/bin/python3
"""
Given an m x n matrix of non-negative integers representing the height of each
nit cell in a continent, the "Pacific ocean" touches the left and top edges of
the matrix and the "Atlantic ocean" touches the right and bottom edges.
Water can only flow in four directions (up, down, left, or right) ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3fd0f6ad32c23a1851c4dde901c0d66727e175e1 | e776e45ae9f78765fb11e3e8cf5c87a0a1b9f0da | /OLD/tests/test-websockets.py | a3a2ab909c839346c259af6dd028fc9718d30345 | [
"MIT"
] | permissive | mvandepanne/seamless | 5100b9994b84c83d82815b572b2ee4e1f61931d6 | 1dc9108176cca2d7e2fe57eb1695aec6d39df456 | refs/heads/master | 2020-04-17T10:06:14.829539 | 2019-01-15T19:31:36 | 2019-01-15T19:31:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | import seamless
from seamless import context, cell, reactor, transformer
from seamless.lib.filelink import link
ctx = context()
ctx.server = reactor({"socket": {"pin": "output", "dtype": "int"}})
ctx.servercode = ctx.server.code_start.cell()
link(ctx.servercode, ".", "test-websockets_pycell.py")
ctx.server.code_update... | [
"sjdv1982@gmail.com"
] | sjdv1982@gmail.com |
5e91a4dab811e752ac55b1c8c0f67c5649ab163e | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/prompt_toolkit/output/color_depth.py | a6166bacafb2941014a2080438fc330df92d394d | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 1,387 | py | import os
from enum import Enum
from typing import Optional
__all__ = [
"ColorDepth",
]
class ColorDepth(str, Enum):
"""
Possible color depth values for the output.
"""
value: str
#: One color only.
DEPTH_1_BIT = "DEPTH_1_BIT"
#: ANSI Colors.
DEPTH_4_BIT = "DEPTH_4_BIT"
#:... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
91ffadc0956fd77e0b62bd670aa556229fd3ab4a | e33199ecbe80ef7205473bf1ad584bbffd1a24a5 | /test.py | a3fa8b56983b7216b2f94532745867fe0510f4da | [] | no_license | zhangjiulong/Seq2Seq_Chatbot_QA | cba49143df1a20910f687fa7c48b10a99a7127c3 | 0c3ea305615ee572d2b8a4bef654a3182709107a | refs/heads/master | 2021-01-11T01:31:13.841357 | 2016-10-10T15:57:40 | 2016-10-10T15:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | #!/usr/bin/env python3
__author__ = 'qhduan@memect.co'
import sys
import math
import time
import random
import numpy as np
from sklearn.utils import shuffle
import tensorflow as tf
from tqdm import tqdm
import data_util
tf.device(data_util.test_device)
encoder_inputs = [tf.placeholder(tf.int32, [None], name='enco... | [
"mail@qhduan.com"
] | mail@qhduan.com |
ce8b2390d1ca1c2670dca353c0dfdebe4586f810 | 9ba439d691359a6296e182e0b8cea30b89f95530 | /modules/processing/parsers/malwareconfig/Ursnif.py | cb18b7eb4ad29f561d173ce2fb771cb482dcf475 | [] | no_license | naxonez/CAPE | ffed1b8c54199ac149dbe21df25f89db650d4369 | b6295b40de8b9020e4bb25b2c0b09a126736b5f5 | refs/heads/master | 2020-07-02T22:19:41.421961 | 2019-10-01T07:20:44 | 2019-10-01T07:20:44 | 201,684,949 | 1 | 0 | null | 2019-08-10T21:30:36 | 2019-08-10T21:30:36 | null | UTF-8 | Python | false | false | 3,988 | py | # Copyright (C) 2017 Kevin O'Reilly (kevin.oreilly@contextis.co.uk)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | [
"kevoreilly@gmail.com"
] | kevoreilly@gmail.com |
d067a21fa8765b22a0f88cdba5e0a412f49c94ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_perilous.py | a1869b74937c931bf046a9fb6d81b59763772b4b | [
"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 | 383 | py |
#calss header
class _PERILOUS():
def __init__(self,):
self.name = "PERILOUS"
self.definitions = [u'extremely dangerous: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsondata[... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
13db48c20ac0aeb1293560cbe2a6d3b6db7c0101 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/alertsmanagement/azure-mgmt-alertsmanagement/generated_samples/alerts_summary.py | 8794d5a0df8d764bf286909b59972416f2b2b42d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,547 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
25433c3b9058296a7d47ba555fd4cc166775905f | 0fe11fbe31be719a253c0b2d9e41e20fedc2c40f | /dapper/mods/Lorenz95/boc10.py | e051e268a9250ed1e2e4aa60b8ac50ba136e0b59 | [
"MIT"
] | permissive | lijunde/DAPPER | 148ff5cefb92d1bb01c78bd4a82a6f1ecdebdad2 | dc92a7339932af059967bd9cf0a473ae9b8d7bf9 | refs/heads/master | 2020-12-10T21:44:54.468785 | 2019-09-24T18:18:36 | 2019-09-24T18:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | # From Fig. 1 of Bocquet 2010 "Beyond Gaussian Statistical Modeling
# in Geophysical Data Assimilation".
from dapper import *
from dapper.mods.Lorenz95 import core
t = Chronology(0.05,dkObs=1,T=4**3,BurnIn=20)
Nx = 10
Dyn = {
'M' : Nx,
'model': core.step,
'noise': 0
}
X0 = GaussRV(M=Nx, C=0.001)
... | [
"patrick.n.raanes@gmail.com"
] | patrick.n.raanes@gmail.com |
fa89d08d72199fe676941a86fa19de36749c1879 | 3b8013a29b6800f0f15569d74603346cef62e4e7 | /Reinforcement_learning_TUT/5.2_Prioritized_Replay_DQN/run_MountainCar.py | 127e28eff91a62bb7e6ee2a4f27218d1eb4197f4 | [] | no_license | pentium3/tutorials | 3978140a2038a988b6043cb4efcb5cab67e7ca89 | abf2ea80ba0e5c6800701908367aeb4b5ee2369b | refs/heads/master | 2021-01-22T22:28:32.828169 | 2017-03-20T03:05:18 | 2017-03-20T03:05:18 | 85,548,010 | 3 | 0 | null | 2017-03-20T07:38:15 | 2017-03-20T07:38:15 | null | UTF-8 | Python | false | false | 2,039 | py | """
The DQN improvement: Prioritized Experience Replay (based on https://arxiv.org/abs/1511.05952)
View more on 莫烦Python: https://morvanzhou.github.io/tutorials/
Using:
Tensorflow: 1.0
gym: 0.8.0
"""
import gym
from RL_brain import DQNPrioritizedReplay
import matplotlib.pyplot as plt
import tensorflow as tf
import ... | [
"morvanzhou@hotmail.com"
] | morvanzhou@hotmail.com |
af19ca4c8a24e5a881d2b25b64da4fe3e104f5be | d90283bff72b5a55dd4d0f90c7325355b00ce7b1 | /p1804/p12/tuple.py | 6cab125c1070a8dc3fdf2ce36d74f9586479b242 | [] | no_license | yuemeiss/p1804daima | f841f52e63081d53d50a199e4d148d4533605bb6 | 6ea08eb9971e42bf4ac535033a006d98ed98bf98 | refs/heads/master | 2020-03-15T23:29:59.691297 | 2018-08-06T02:42:49 | 2018-08-06T02:42:49 | 132,395,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | t = ("张三",22,"未婚","有钱","likedog","Ture",'sb')
print(t[3])
print(t[5])
print(t[6])
print(len(t))
print(t.index(22))
print(t.count("Ture"))
print(type(t))
print(t)
print("姓名: %s, \n年龄: %d, \n为什么: %s, \n爱好: %s, \n性别: %s, \n性格: %s, \n相貌: %s " % t )
for a in t:
print(a)
| [
"1083027306@qq.com"
] | 1083027306@qq.com |
dcba45dc6badfffc9ef1b173f06e2e3c525948fc | 0184a8149c063dd7a350dac476ef705304864040 | /rsbeams/rsphysics/decoherence.py | 0c205e51bddb76c15d195d8f4c9b9e1a77bbcb5d | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | radiasoft/rsbeams | 71a8bed396aced7da3f4adc3daebe1a694284c51 | 732b40b233609418b5204b4d865568bf89386005 | refs/heads/master | 2023-06-10T15:11:11.905713 | 2023-05-01T22:11:52 | 2023-05-01T22:11:52 | 56,353,370 | 4 | 24 | NOASSERTION | 2023-05-26T23:03:41 | 2016-04-15T22:28:48 | Python | UTF-8 | Python | false | false | 5,783 | py | import numpy as np
from pathos.multiprocessing import Pool, cpu_count
from scipy.integrate import quad
from scipy.special import fresnel
class CentroidPosition:
"""
Calculate position of an initially offset beam centroid vs turn.
Assumes a waterbag distribution and arbitrary order in tune dependence with ... | [
"chall@radiasoft.net"
] | chall@radiasoft.net |
f14a5f507d6c84a401f49bf011da731a8090d3e6 | 82aee3211216f55392d5a757eb57f02c859e9a28 | /Easy/680_validPalindrome_II.py | 69e73cef406dfb2488f769e23635c4306938a0dc | [] | no_license | Yucheng7713/CodingPracticeByYuch | 505d18095d4b9a35c1f3b23632a90a76d811b64a | 1461b10b8910fa90a311939c6df9082a8526f9b1 | refs/heads/master | 2022-05-01T11:51:00.612603 | 2022-04-18T09:46:55 | 2022-04-18T09:46:55 | 198,961,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | class Solution:
def validPalindrome(self, s):
l_index, r_index = 0, len(s) - 1
while l_index < r_index:
if s[l_index] != s[r_index]:
ld = s[:l_index] + s[l_index + 1:]
rd = s[:r_index] + s[r_index + 1:]
if (ld == ld[::-1]) or (rd == rd[::-1... | [
"yuchengh@usc.edu"
] | yuchengh@usc.edu |
d573c33b815eaa794a8c2ddd9347b9ff3acb8449 | 4491549f0b1bbf5397ae0b56192605a7abcb61b0 | /python/Session-Management-2/models/SQL.py | 9f80310ec3149956a81008768c2ebd2f1a619fae | [
"Apache-2.0"
] | permissive | iNoSec2/skf-labs | 81e9d400ccac1007632add23bd50a094de1f50d5 | 8af9edc83e313be1578c5dee0fd4ecdf7ac18a32 | refs/heads/master | 2023-08-17T00:20:12.274684 | 2023-08-04T13:13:10 | 2023-08-04T13:13:10 | 235,376,119 | 0 | 0 | Apache-2.0 | 2023-08-05T00:31:43 | 2020-01-21T15:33:01 | Python | UTF-8 | Python | false | false | 1,288 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# SKF Labs - Security Knowledge Framework (SKF)
# Copyright (C) 2022, OWASP Foundation, Inc.
#
# This software is provided under a slightly modified version
# of The GNU Affero General Public License. See the accompanying LICENSE
# file for more information.
#
# Description... | [
"glenntencate@gmail.com"
] | glenntencate@gmail.com |
861b5dc42fe75933ac0cd3d42acd0499ef6f55f1 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbon/common/script/entities/audioEmitter.py | 69d4790838f2e6414248d5702ab6b90aa4cedabd | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #Embedded file name: carbon/common/script/entities\audioEmitter.py
"""
Contains a set of available audio components.
"""
INITIAL_EVENT_NAME = 'initialEventName'
INITIAL_SOUND_ID = 'initialSoundID'
EMITTER_GROUP_NAME = 'groupName'
class AudioEmitterComponent:
__guid__ = 'audio.AudioEmitterComponent'
def __init... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
b275678714d301a028aa868acf30bec68fc76782 | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /trunk/pyformex/examples/SpaceTrussRoof_abq.py | 0216d8a2ac79315d917755356de57ab4bf7795cf | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | #!/usr/bin/env pyformex
# $Id$
##
## This file is part of pyFormex 0.8.5 Sun Nov 6 17:27:05 CET 2011
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: https://savannah.nongnu... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
67370eb3a4b958731d7ec128f3d2da56dcf993f9 | 98bebd68f01daa7e328d06e8f6d98042b587995f | /D2/다리를지나는트럭/timecomplexity.py | 99512214389e7583dd4ebd2aa7fb5dd0ea316a05 | [] | no_license | Ysh096/programmers | f189108f2e0cd792697821e806558dea489254f9 | c391ee58df1554af91a7099817b208d6883adca8 | refs/heads/master | 2023-04-13T06:06:48.938489 | 2021-04-15T16:43:30 | 2021-04-15T16:43:30 | 332,446,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import timeit
start_time = timeit.default_timer()
test_list = [1, 2, 3]
for _ in range(10000):
test_list = [0] + test_list
# test_list.insert(0, 0)
terminate_time = timeit.default_timer()
print('덧셈: ', terminate_time - start_time)
start_time = timeit.default_timer()
test_list = [1, 2, 3]
print('insert 전:... | [
"skk7541@gmail.com"
] | skk7541@gmail.com |
65f8dcf11bee03d8da86bda4c16e8fef954c3273 | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /05PythonCookbook/ch12Concurrency/13polling_multiple_thread_queques/pqueue.py | 91396071d9996401e4454a9b17767eed6909d23c | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 1,615 | py | import queue
import socket
import os
class PollableQueue(queue.Queue):
def __init__(self):
super().__init__()
# Create a pair of connected sockets
if os.name == 'posix':
self._putsocket, self._getsocket = socket.socketpair()
else:
# Compatibility on n... | [
"greatabel1@126.com"
] | greatabel1@126.com |
7e6c9b781e4c749a5a0b3bde3a2fb1bfe9d9f012 | 38e0a6aa9df9c968135b348845abfa489cda4031 | /binhaishiPaper/binhaishiPaper/spiders/newsPaperSpider.py | 662ae17c09cb15907a2cbf17c062004b6274cae7 | [] | no_license | AReallyMan/everySpiders | bb923de508bd986bcf158728d17638c4ce608db8 | 19419ae5097a522ed0c88e9ab63aa62419c25b44 | refs/heads/master | 2022-09-20T02:18:06.205480 | 2020-06-03T06:33:47 | 2020-06-03T06:33:47 | 263,788,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | # -*- coding: utf-8 -*-
# @Time : 2020-06-04
# @Author : ZhangYangyang
# @Software: PyCharm
import scrapy
import datetime
import re
import time
from scrapy.spiders import Rule, CrawlSpider
from scrapy.linkextractors import LinkExtractor
from ..items import BinhaishipaperItem
from ..settings import ELASTICS... | [
"969114624@qq.com"
] | 969114624@qq.com |
a5f00db22afe958b88f3b951e3100919543dcdf9 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_intrinsic/orderbook/of_trader.py | 3818a80cc72db0e909b4478f6c75154923f96bcb | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | from marketsim import types
from marketsim.gen._out.trader._singleproxy import SingleProxy
from marketsim import getLabel
class Base(object):
_properties = {}
def __getattr__(self, name):
if name[0:2] != '__' and self._impl:
return getattr(self._impl, name)
else:
raise... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
53c3f734336bf253cd01c5cc8db9119e31f584a6 | a1aba83b90285def84cc425c0b089dd632a01a51 | /py千峰/day1函数/func10.py | ac2e75f8e338836fa45056bb68612f7bafc0267b | [] | no_license | 15929134544/wangwang | 8ada14acb505576f07f01e37c936500ee95573a0 | 47f9abbf46f8d3cbc0698cb64c043735b06940d4 | refs/heads/master | 2023-05-11T19:59:54.462454 | 2021-05-25T15:19:43 | 2021-05-25T15:19:43 | 328,119,916 | 1 | 1 | null | 2021-05-11T16:13:18 | 2021-01-09T09:33:29 | JavaScript | UTF-8 | Python | false | false | 873 | py | # global 变量的范围
# 全局变量 局部变量
# 声明在函数外部的是全局变量,所有函数都可以访问
name = '月月'
def func():
# 函数内部声明的变量,局部变量,仅限于在函数内部使用
s = 'abcd'
s += 'X'
print(s, name)
def func1():
global name # 不修改全局变量,只是获取或者打印。但是如果要修改全局变量。则需要
# 在函数内部声明:global 变量名
# 修改后,全局变量的值发生改变
# print(s, name)
name += '弹吉他的小美女'
... | [
"you@example.com"
] | you@example.com |
326693eabcfe1a9d41f11f7c08ff574a844a8568 | bdb1c323968cd9d5441a187a29ed7e25a2e4f07e | /slave_server/runner/test_scripts/bxtp_ivi_m/operation_lib/base_lib/makelog.py | b80127c92706da5548863284c0dc568cdaff53c0 | [] | no_license | liangzhaowang/automation_system | beee351dd9f09a51e2b81617ac5bee63023ea9b8 | f77ef433c2366253dc9d9fdb7c54911cb38ed3e8 | refs/heads/master | 2022-02-19T11:07:44.047000 | 2019-09-23T02:16:00 | 2019-09-23T02:16:00 | 209,732,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/env python
# coding=utf-8
import os, sys
import logging.config
import logging
import time
class makelog():
def __init__(self, filename="", filepath=""):
self.filename = filename
self.filepath = filepath
self.makelogfile()
self.logger = logging.getLogger()
self.write()
def makelogfile(sel... | [
"zhaowangx.liang@intel.com"
] | zhaowangx.liang@intel.com |
45f051b6b85c7aa298756f2cbe0f5c6d051359c2 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/Python_RegEx_metacharacters__exactly_the_specifies_number_of_occurrences.txt.py | 75b978dc9b6e5add1c1041161a9bbb0f41ebfb6f | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 281 | py | import re
txt = "The rain in Spain falls mainly in the plain!"
# Check if the string contains "a" followed by exactly two "l" characters:
x = re.findall("al{2}", txt)
print(x)
if x:
print("Yes, there is at least one match!")
else:
print("No match")
# Author: Bryan G
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
fba115b2085192f099c00764f8bfc49dcc98f713 | 279caab77d0731196b82548a35e6e61334a2141e | /n_gram_segmentation/segmenter.py | e49613368a50556db728e07bc4ae5cd18bf4e66a | [] | no_license | VitalyRomanov/segmented-embeddings | 52d6382feb36c65e12c513535a7bc5f0793d85ce | 9a8d4b897214e73b0ce18621b9ac121085c88e3a | refs/heads/master | 2022-10-19T22:38:08.148913 | 2022-10-03T14:31:53 | 2022-10-03T14:31:53 | 172,964,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | import sys
import pickle
file_path = sys.argv[1]
lang = sys.argv[2]
words = open(file_path, "r").read().strip().split("\n")
char_gram_size_min = 3
char_gram_size_max = 4
char_grams = set()
def segment_recursively(dest, win, word):
dest.append(word[:win])
if win < char_gram_size_max and len(word) > win:
... | [
"mortiv16@gmail.com"
] | mortiv16@gmail.com |
ed08a844307b2d776880dd97684ac94e4920196a | da9c4a9a92d49d2fb2983a54e0f64c2a1ce8aa19 | /symphony/cli/pyinventory/graphql/mutation/edit_equipment_port.py | 43a16d01545cd8442f49d0bcedae9fa6a4d02f20 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rohan-prasad/magma | 347c370347724488215a0783504788eac41d8ec7 | 2c1f36d2fd04eae90366cc8b314eaab656d7f8ad | refs/heads/master | 2022-10-14T14:08:14.067593 | 2020-06-11T23:52:03 | 2020-06-11T23:54:27 | 271,671,835 | 0 | 0 | NOASSERTION | 2020-06-12T00:20:23 | 2020-06-12T00:17:39 | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from gql.gql.datetime_utils import DATETIME_FIELD
from gql.gql.graphql_client import GraphqlClient
from gql.gql.client import OperationException
from gql.gql.reporter import FailedOper... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ed3b3e49d2373541f1c4a08baaea4b9b8235163d | b03497e9c38e27aac47792c30ad0e2945ed2fca9 | /mqtt.py | ca15170b9e14dc176b9a957e70000f7c57d3ba22 | [] | no_license | ThomasMoellerR/11_02_rpi_cube | c92522e0d2dd910a383c83dd49d55ddb06b0c1b4 | 54c2a8ea6e24a7fa358773a72dade8c1354d1b37 | refs/heads/master | 2020-04-17T11:41:15.158843 | 2019-11-02T13:26:15 | 2019-11-02T13:26:15 | 166,550,814 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | import paho.mqtt.client as pmc
import time
import queue
class c_mqtt:
def __init__(self, hostname = "192.168.178.52", port = "1880", sub_list = []):
self.hostname = hostname
self.port = port
self.try_to_connect = True
self.sub_list = sub_list
self.connected = False
... | [
"test"
] | test |
53fa7be54b523395a65b6f0b0053527f50bfa22f | 4015291afebfd346da3fee4b1d5a775882b5b461 | /packages/service-library/src/servicelib/rest_constants.py | e03667f15f28a500dff9aaa58b93cb6ee3f2a129 | [
"MIT"
] | permissive | pcrespov/osparc-simcore | 3a8a6b5252038542f515c7e90d983ac6f1fb4de7 | eb5e00bc2cf4acfe81f5dc422a5e50a4646c9596 | refs/heads/master | 2023-08-06T04:33:38.594066 | 2023-07-12T09:47:00 | 2023-07-12T09:47:00 | 130,357,545 | 0 | 1 | MIT | 2023-04-18T08:04:27 | 2018-04-20T12:10:41 | Python | UTF-8 | Python | false | false | 212 | py | # SEE https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict
RESPONSE_MODEL_POLICY = {
"by_alias": True,
"exclude_unset": True,
"exclude_defaults": False,
"exclude_none": False,
}
| [
"noreply@github.com"
] | pcrespov.noreply@github.com |
16c41ea1c7c2797237e891f1ac38e86347e93b15 | d59bf974dd42d74dae62f58c0272ceb246d935c9 | /7.2.py | 9ef0a1a85e8beb93d1c39e39aa74b67020b39afb | [] | no_license | Serega1000rr/Ser | 423d2de1ba1fcc1f3f684363b90f05d018fb1306 | e349cb8b5c7aea333a78e448e7edfaa6c13edd61 | refs/heads/main | 2023-05-14T02:39:47.855859 | 2021-06-07T10:46:56 | 2021-06-07T10:46:56 | 374,630,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | things=['mozarella','cinderella','salmonella']
print(things[0].capitalize())
things[1]=things[1].upper()
print(things)
del things[2]
print(things) | [
"unknown@example.com"
] | unknown@example.com |
09b95d91f2931902d3ccab96b894edd1818d2827 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/gun_rotation_shared.py | 04cdb63b1822d5294990244854eebc8db0ae3d35 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,744 | py | # 2017.02.03 21:54:59 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/gun_rotation_shared.py
import BigWorld
import Math
from math import pi
from constants import IS_CLIENT, IS_CELLAPP
from debug_utils import *
if IS_CELLAPP:
from server_constants import MAX_VEHICLE_RADIUS
def calcPitchLimitsFromDe... | [
"info@webium.sk"
] | info@webium.sk |
24f1ef6fd36b61bb20469a5bfc7613033a19d292 | c411c5513ec5d58eb0e0edab0b6a697974d638fb | /model/DeepLabV3.py | 0e3406abccfff10e00297a28aed6ff7b0ce8b37f | [] | no_license | blue88blue/Segmentation | ab7f9dec4ab1ab4cdb4b8ca5af0cb9e1a560e20f | 69c4db1897a550a08a63811ffbb817754c20fbf2 | refs/heads/master | 2023-03-01T06:58:49.405779 | 2021-01-27T02:07:56 | 2021-01-27T02:07:56 | 296,049,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,784 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from model.segbase import SegBaseModel
from model.model_utils import init_weights, _FCNHead
class DeepLabV3(SegBaseModel):
r"""DeepLabV3
Parameters
----------
nclass : int
Number of categories for the training dataset.
ba... | [
"805207107@qq.com"
] | 805207107@qq.com |
f2190533c3b9802af9fa0c749b96108bf2036c1a | 74a1b51082e18a152626eb8044ab5d598283dacb | /easy/leetCode1646.py | 63c66927a02405ce8571af38833036cebcea6577 | [] | no_license | git874997967/LeetCode_Python | 6eb7d869d3737e946a8c6f0c51899a80bf03d650 | 1248cd19ab0d9d8aba503c487e163808c1d107cb | refs/heads/master | 2023-08-22T13:24:15.612040 | 2021-09-20T05:53:07 | 2021-09-20T05:53:07 | 340,973,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #1646. Get Maximum in Generated Array
def getMaximumGenerated(n):
arr = []
arr.append(0)
arr.append(1)
for i in range(2, n+ 1):
print(i)
if i % 2 == 0:
arr.append(i // 2)
else:
arr.append(arr[(i+1)//2] + arr[(i -1)//2])
return max(arr) if n >= ... | [
"g8749979677@gmail.com"
] | g8749979677@gmail.com |
403d845645672867f12a3e55739cd6c86e6594d3 | b31c0f0d1e8a3bf575e6b86591ec1071cd9a8a3d | /mlonmcu/platform/microtvm/microtvm_zephyr_target.py | c70668791002be5ca39259d7331daa22b90d3ca3 | [
"Apache-2.0"
] | permissive | tum-ei-eda/mlonmcu | e75238cd7134771217153c740301a8327a7b93b1 | f1b934d5bd42b5471d21bcf257bf88c055698918 | refs/heads/main | 2023-08-07T15:12:13.466944 | 2023-07-15T13:26:21 | 2023-07-15T13:26:21 | 448,808,394 | 22 | 4 | Apache-2.0 | 2023-06-09T23:00:19 | 2022-01-17T08:20:05 | Python | UTF-8 | Python | false | false | 2,969 | py | #
# Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
#
# This file is part of MLonMCU.
# See https://github.com/tum-ei-eda/mlonmcu.git for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You m... | [
"philipp.van-kempen@tum.de"
] | philipp.van-kempen@tum.de |
0a363bd967dc4a9e87872bd8e62484085cbd6476 | cc2df07a053b0ee13b05fe53ea9463033dd70c36 | /app/models.py | cad45bdeca5f36778a00f25f80049c6608156b71 | [] | no_license | sinjorjob/django-progress-bar | 5d0263d0cacc867fcc4ac6e5d07b37833ab7c849 | d948663231859b3485b7a35608f1c97246f952b7 | refs/heads/master | 2023-07-01T19:19:30.712511 | 2021-08-07T00:19:28 | 2021-08-07T00:19:28 | 393,536,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.db import models
class FileUpload(models.Model):
title = models.CharField(verbose_name="画像のタイトル", max_length=100)
image = models.ImageField(verbose_name="画像",upload_to="images/upload_files/")
def __str__(self):
return self.title | [
"sinforjob@gmail.com"
] | sinforjob@gmail.com |
edaccd77699ca8d4dccc010070da555c9528b148 | c05ab2b704fd779f0ea76f4bd69ee58b68ab4bb7 | /resale_market_place/accounts/migrations/0001_initial.py | c619d03fb096b2a9f94af9a8cb8d9b58a3d08cbd | [] | no_license | cmrajib/django_restaurant | 8aaaa73937fe76768c88149e58417b21bacacba7 | e09a6d6855eb79d30ae5adfa2720e9c86960ecd0 | refs/heads/main | 2023-02-28T18:30:47.415293 | 2021-01-12T20:03:35 | 2021-01-12T20:03:35 | 329,099,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | # Generated by Django 3.1.4 on 2021-01-08 08:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations ... | [
"cmrajib@gmail.com"
] | cmrajib@gmail.com |
a96def7f2dc97e51d0ec0b74e35ba3f491feb1d4 | 312d8dbbf980bf164f210e7935b17dc08d64ff87 | /Model/repeat3_attribute_prediction_exist_PTS_utilize_all/Baseline/main.py | f40523340de517fcd318799d311d421cece624ef | [] | no_license | hsack6/OWGP_NBA | 27dafbd6e59c17ce4a66e92132ee56782e2126bf | 56656efb5884cd9f806e476a92c5e6485c71adeb | refs/heads/master | 2023-02-25T09:52:05.165494 | 2021-02-03T12:44:04 | 2021-02-03T12:44:04 | 288,363,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | import argparse
import random
import pandas as pd
from utils.inference import inference
from utils.data.dataset import BADataset
from utils.data.dataloader import BADataloader
import sys
import os
current_dir = os.path.dirname(os.path.abspath("__file__"))
sys.path.append( str(current_dir) + '/../../../' )
from settin... | [
"yamasaki.shohei@ist.osaka-u.ac.jp"
] | yamasaki.shohei@ist.osaka-u.ac.jp |
a501d1205297f9df8f05e56b27a9b3f0ea2f6122 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-redis/azure/mgmt/redis/models/redis_linked_server_with_properties.py | d4982b6a62d0bc2d014e157738b34cc984be1ebf | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,830 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
37be7de681f708069186af725c1ab6a772547fcf | 1985e545df5ddfee396e87af6501fe517661cc77 | /bin/make_slides_github_action | 0cb25a135267d1a417524d79005623c2d1f311f1 | [
"MIT"
] | permissive | blester125/dotfiles | 46e657966582ba0b4552317107c85a44426ce9fd | 03b6856552040246b4d60330d0af6f37b440024d | refs/heads/master | 2023-07-24T11:13:11.989638 | 2023-07-12T13:30:15 | 2023-07-12T14:50:18 | 127,983,262 | 1 | 0 | null | 2022-02-12T23:09:41 | 2018-04-04T00:10:30 | Emacs Lisp | UTF-8 | Python | false | false | 2,132 | #!/usr/bin/python3
import os
import argparse
import textwrap
def slides_action(title):
title = title.replace(" ", "-")
return textwrap.dedent(r"""
name: Slides
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: blester125/beamer-image:latest
... | [
"blester125@gmail.com"
] | blester125@gmail.com | |
07224a9608ee55b656a3fe877c7771a8a6bd459d | 0eb0657ad8262952c2ec87e7605246d1bebb9cd0 | /storops/vnx/resource/mirror_view.py | 41275de1ffc7ba7358cda4a4dabb7be540b919d3 | [
"Apache-2.0"
] | permissive | cdailing/storops | b666d204bf5fc8a561c436a927e72de3f3d9d64f | d24c48b3cb58f02dce1f131e7448b5400904f8ee | refs/heads/master | 2021-01-19T10:02:01.132218 | 2017-03-29T08:01:55 | 2017-03-29T08:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# 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
#
#... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
b945dff1986dd6fd177224f743126fcb7d69fa73 | 826bffcd468f0979d05251e6578de13fff1029d4 | /tests/utils/_duplicate_console_output_check.py | 28e4ed0277ddd521f04db7319c8e9740b1c82837 | [
"MIT"
] | permissive | korepwx/madoka | 58b9b65cb1e3edf476d741ee1b5ffc67a9793a48 | 56675bd8220935c6a9c1571a886a84bed235fd3b | refs/heads/master | 2021-01-12T03:18:46.261909 | 2017-01-06T06:36:21 | 2017-01-06T06:36:21 | 78,190,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import os
import subprocess
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
from madoka.utils import duplicate_console_output
with duplicate_console_output(sys.argv[1]):
print('from print')
sys.stdout.flush()
sys.stdout.write('from stdout.write\n')
sys... | [
"public@korepwx.com"
] | public@korepwx.com |
bdc7e6c501652abf318d816b800f9404c0ac8d58 | 30ac2f9831ebd33885a6f48d153356c2e3731c26 | /Python_Stack/django/django_orm/project_marcela/app_marcela/models.py | 287fbc16c76b573eca3b93d52409f5d482b42977 | [] | no_license | pharaoht/Coding-Dojo-Projects | 192cfd8c36b6dadb049e81d31bd780c7ab340d1e | 504f71acbac3c006cf866a08aea0566058f81ce2 | refs/heads/master | 2023-05-11T21:09:17.316257 | 2021-06-08T00:54:09 | 2021-06-08T00:54:09 | 334,003,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | from django.db import models
import re
import bcrypt
# Create your models here.
class UserManager(models.Manager):
def register_validator(self, formInfo):
errors = {}
EMAIL_REGEX = re.compile(
r'[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
emailChecker = User.objects.filter(e... | [
"pharaohmanson@gmail.com"
] | pharaohmanson@gmail.com |
c5fc50bd9c9a74dc99617e3b0491bb8b90d339a0 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /hacker_rank/domains/algorithms/implementation/kaprekar-numbers_sunghyo.jung.py | fd4ff909df1f992a146f1752423d6d81c3c36433 | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | __author__ = 'sunghyo.jung'
p, q = int(raw_input()), int(raw_input())
def is_kaprekar(n):
if n == 1:
return True
d = len(str(n))
s = str(n * n)
d = len(s) - d
a = int(s[:d] if len(s[:d]) > 0 else '0')
b = int(s[d:] if len(s[d:]) > 0 else '0')
return n == a + b and b > 0
flag = Fals... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
5fb4190fbcf940f1f1faea22e2a81c53b7e0a41d | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/nn/test_hardshrink.py | e608bf97d4639e51495891a2b9089ff59b265844 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 1,951 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test_hardshrink
"""
from apibase import APIBase
from apibase import randtool
import paddle
import pytest
import numpy as np
class TestNNHardshrink(APIBase):
"""
test
"""
def hook(self):
"""
... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
0002086686eef8eef58f00ddfaa9a3c6b02f158c | 6a4d30fc4850a04f7370f30dbe1b6ffa9f616392 | /intake/migrations/0003_fillablepdf_name.py | a2eb63e24a5799a885567b47ac1da2dc90379735 | [
"MIT"
] | permissive | codeforamerica/intake | bb88d63ae914ce6eebeb957b26451dbb9cfaeb88 | 8755e64c13e2b6f9bef9bbee47011253f20e7e0d | refs/heads/master | 2021-11-26T09:51:10.084263 | 2021-11-15T19:37:23 | 2021-11-15T19:37:23 | 57,333,621 | 51 | 24 | MIT | 2021-09-29T00:07:26 | 2016-04-28T21:03:55 | Python | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-05-09 00:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('intake', '0002_fillablepdf'),
]
operations = [
migrations.AddField(
... | [
"bgolder@codeforamerica.org"
] | bgolder@codeforamerica.org |
d97b68cb2186fd512abb20603927df0360996948 | 2d6a2539055e1efd67f4252d11adfaf7ccd2720b | /principal/models/users.py | aa5c85bbaa81af1f8ba7fa27e4c174724c1fb67d | [] | no_license | r202-coe-psu/principal | 96997818073e6dd74df3590caef90ffec16709cc | 1781eacb880ecdf6dbe35cd1433530708eb29875 | refs/heads/master | 2021-09-16T13:56:28.940394 | 2018-06-21T13:52:53 | 2018-06-21T13:52:53 | 111,189,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | import mongoengine as me
import datetime
from passlib.hash import bcrypt
from flask_login import UserMixin
class DataSource(me.EmbeddedDocument):
provider = me.StringField(required=True)
data = me.DictField()
created_date = me.DateTimeField(required=True,
default=datet... | [
"boatkrap@gmail.com"
] | boatkrap@gmail.com |
01112d45a464ff83d5d7b67ff843feaee71e4958 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/5c70ccf26bba78eb4d1b/snippet.py | 599476d4f4e0a616826b54de9f63877e1de77cae | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 159 | py | import sys
def exec_(code, globals, locals):
if sys.version_info >= (3, 0):
exec(code, globals, locals)
else:
exec("exec code in globals, locals") | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
790e27357a9eeb93997620d266585d71e33aed53 | d0d1e07c984651f96bd9386d546c85c0341e46b2 | /timedata/control/action.py | 0af1dc5757f38f1299f42cfed2bc37a071cdf313 | [
"MIT"
] | permissive | timedata-org/timedata | 61cde905b1fe9eb60ac83ecbf5a5a2114793c45d | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | refs/heads/master | 2020-04-11T12:03:57.962646 | 2019-06-09T10:05:16 | 2019-06-09T10:05:52 | 51,217,217 | 5 | 3 | null | 2016-09-18T16:20:43 | 2016-02-06T19:13:43 | C++ | UTF-8 | Python | false | false | 1,802 | py | from .ops import Ops
from .editor import Editor
from .receiver import Receiver
class Action(Receiver):
"""
An Action takes an incoming message, applies Ops to it, and then
uses it to set a value on a Editor.
"""
def __init__(self, address, ops=()):
self.address = Editor(address)
s... | [
"tom@swirly.com"
] | tom@swirly.com |
f54ba2b9e658843fa70413a13b059f89900ab3dd | 0fe0ffe29ca6f76c6f15c85c8d82b09beaada246 | /third_party/catapult/tracing/tracing_build/strip_memory_infra_trace.py | e4c0cabb5366abaa54d428d65fbac289f6414a55 | [
"BSD-3-Clause"
] | permissive | hanpfei/chromium-net | 4dc8fd48cf3b05d89b11dc121f9c3abdd3ba962e | 9df8ce98c2a14fb60c2f581853011e32eb4bed0f | refs/heads/master | 2023-07-08T15:28:01.033104 | 2023-06-14T13:02:39 | 2023-06-14T13:02:39 | 65,541,033 | 297 | 73 | null | 2022-11-02T23:33:48 | 2016-08-12T09:25:34 | C++ | UTF-8 | Python | false | false | 3,059 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Filters a big trace keeping only the last memory-infra dumps."""
import collections
import gzip
import json
def FormatBytes(value):
units = ['B', 'kB... | [
"hanpfei@gmail.com"
] | hanpfei@gmail.com |
4d8406d067af9e8bc7b63302376f873e80d00c09 | 2b9289c6348a58a839501f3088030061046e2b6c | /local_dm_control_suite/hopper.py | fe253ac364d772509e4d399753d88138d689dcda | [
"MIT"
] | permissive | rohitkuk/mtenv | 2a612e03cfcb8f373ae2a7e7fb21e7fe108bbe1f | 4a6d9d6fdfb321f1b51f890ef36b5161359e972d | refs/heads/main | 2023-04-21T09:26:57.666390 | 2021-05-30T00:29:02 | 2021-05-30T00:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | # Copyright 2017 The dm_control Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"sodhani@fb.com"
] | sodhani@fb.com |
6a175ea3d24d0ba13c9ba9188e4c07e166cac602 | a777170c979214015df511999f5f08fc2e0533d8 | /claf/factory/tokens.py | 0f6f9d5845d72d7970d5be980590319398151d30 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | srlee-ai/claf | 210b2d51918cf210683e7489ccb8347cb8b1f146 | 89b3e5c5ec0486886876ea3bac381508c6a6bf58 | refs/heads/master | 2021-02-13T04:38:36.198288 | 2020-03-03T15:01:01 | 2020-03-03T15:01:01 | 244,661,892 | 0 | 0 | MIT | 2020-03-03T14:45:52 | 2020-03-03T14:45:52 | null | UTF-8 | Python | false | false | 3,202 | py |
from overrides import overrides
from claf.config.registry import Registry
from claf.config.utils import convert_config2dict
from claf.tokens import tokenizer
from .base import Factory
def make_tokenizer(tokenizer_cls, tokenizer_config, parent_tokenizers={}):
if tokenizer_config is None or "name" not in tokeniz... | [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
ccb3efc9358bc44e6f4d99ee6cd99ba7342e7f28 | 4a48593a04284ef997f377abee8db61d6332c322 | /python/dbm/python2/test_dbm.py | 9104e09525b70761eee62c3643b98bb9ef3753c2 | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 1,614 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org)
# 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 withou... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
76f40dbe916e27ef75c91cef03d606f26fd73a67 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_2_aMAN_plus.py | e499fe2553e862196dbf07b73f6585542cbcf6da | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,187 | py | t = int(input())
arr = []
s = ""
times = 0
def rev(x): # index of last from 0
global arr
global times
times = times +1
half = (x+1)//2
for i in range(half):
temp = 1 - arr[i]
arr[i] = 1 - arr[x-i]
arr[x-i] = temp
if((x+1)%2 != 0):
arr[half] = 1 - arr... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
6d45841a1bc911599365d6efe618b8bd10ce654d | fd85e5320da3e0dae5ffc270c54caa8f85d20af7 | /user_analytics/views.py | c1164b992a4c427f2472395f8cdc5ad598a66611 | [
"Apache-2.0"
] | permissive | madre/analytics_nvd3 | 9a657937c91c9acd4b60e4ff33daecdf75a78c49 | 052f775c12f04e0e3a9fd321ee05de1fbceec09a | refs/heads/master | 2021-01-10T18:26:29.051575 | 2015-04-13T10:26:30 | 2015-04-13T10:26:30 | 33,605,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | # -*- coding: utf-8 -*-
# !/usr/local/bin/python
__version__ = "1.0"
__license__ = "Copyright (c) 2014-2010, levp-inc, All rights reserved."
__author__ = "madeling <madeling@letvpicture.com>"
from django.views.generic import TemplateView
from utils.redis_cache import REDIS_INS
class UserBasicTemplate(TemplateView)... | [
"lingnck@gmail.com"
] | lingnck@gmail.com |
56d1a355702247f5513deef778923b1b68ad26fb | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/145/D.py | e13c534bf3fde50c178423dff2b3ee1085432ceb | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | def cmb(n, r, MOD, g1, g2):
if ( r<0 or r>n ):
return 0
r = min(r, n-r)
return g1[n] * g2[r] * g2[n-r] % MOD
def main():
X, Y = map(int, input().split())
MOD = 10 ** 9 + 7
if (X + Y) % 3 != 0:
print(0)
exit()
m = (2 * X - Y) // 3
n = (2 * Y - X) // 3
N... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
0ac3ce67a375b998817489ff3c11903d0feb0220 | 804ce3c2897a8720a27e0d86ac3b868ebd41cd20 | /archive/admin.py | e4f227d12c67b1dd80f1b36e7d55cdbcb8853546 | [] | no_license | hoboland21/mango | 383359aa85b685bfe77c6336974600038454cf80 | be8bf3398612a0c3dbb4498eb5eb18407c574ce3 | refs/heads/master | 2023-07-13T06:25:39.508434 | 2021-08-25T03:25:37 | 2021-08-25T03:25:37 | 399,520,705 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | from django.contrib import admin
from rsvn.models import *
# Register your models here.
#---------------------------------------------------------
class RateHeadingAdmin(admin.ModelAdmin) :
list_display = ('title','descr',)
ordering = ('title',)
#---------------------------------------------------------
class RateA... | [
"jc@saipantech.com"
] | jc@saipantech.com |
01712697928ec9ebd687a93b160d3d87fd2b3bec | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/pandas/genome_calculation.py | 74384393563d0a41da51f305348efca0a30d59db | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 662 | py | import pandas as pd
import numpy as np
import datetime
import sys
filename = 'raw_data.xlsx'
if len(sys.argv) == 2:
filename = sys.argv[1]
def calculate_averages(row):
v1 = row.iloc[0:3].mean()
v2 = row.iloc[3:6].mean()
return np.log2(v1/v2)
start_time = datetime.datetime.now()
df = pd.read_excel(fil... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
60d08f29afa6ffc2672f0e31e78ffda838221d70 | 3fd47598050ab6098088eddc79624dfa855c2143 | /djangoRest/settings.py | 5a18da26ac279010d5a33f80c85edab2135a8091 | [] | no_license | sajibuzzaman/djangoRest_Framework | cf6be098744e2506cea089ebc8f9e0dc21c0162f | a90b571f2c6dc1b9f832a0e0dda5f08b1724d9cc | refs/heads/master | 2023-04-10T04:28:49.872941 | 2021-04-21T18:41:07 | 2021-04-21T18:41:07 | 359,920,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | """
Django settings for djangoRest project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"muhammadsajibuzzaman1998@gmail.com"
] | muhammadsajibuzzaman1998@gmail.com |
f01c048210b678c812f3bb6b87718e5bd62b2199 | 43d0413d129d997b41cd87a740010f889ab0c646 | /dataset_balancing/balance_dataset.py | a159cf9add6b0a13dae208db000a3772fbf4e165 | [] | no_license | LTTTDH/WebVision | 467aa46f63c2b95332f83504feb73f8628382c26 | 4a133071441b7412638382c4465dc2925b87235f | refs/heads/master | 2023-03-15T21:59:29.473087 | 2017-09-27T10:12:06 | 2017-09-27T10:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import numpy as np
path = "../../../datasets/WebVision/info/train_filelist_all.txt"
dest_path = "../../../datasets/WebVision/info/train_balanced_filelist.txt"
file = open(path, "r")
print("Loading data ...")
print(path)
listofclasses = {}
for c in range(0,1000):
listofclasses[c] = []
# Load data
for line in fi... | [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
bcb8f52bdf77dee5e83cf7ccb9a921a9caba190e | 2befb6f2a5f1fbbd5340093db43a198abdd5f53b | /pythonProject/customAuth/CustomAuthApp/migrations/0001_initial.py | 5e92563f7b3e1ae564639280aafad3ca484fe3c3 | [] | no_license | JanardanPandey/RestAPI | 1956d3529782d18ef2118961f6286e3213665aad | 654933a4d9687076a00c6f4c57fc3dfee1a2c567 | refs/heads/master | 2023-06-14T07:02:31.702000 | 2021-07-02T07:50:59 | 2021-07-02T07:50:59 | 382,357,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 3.2.3 on 2021-06-12 11:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.BigAutoFie... | [
"janardanpandey0510@gmail.com"
] | janardanpandey0510@gmail.com |
392544400066482d508c6d31e0c3c975481bbfab | cacac33bd0ff7bd1024c00f907d87a2750a4118f | /radiopadre_client/backends/backend_utils.py | d126c5cb8fac1275d0be18d7814310d14ba24a18 | [
"MIT"
] | permissive | ratt-ru/radiopadre-client | b96abda62e4ad6c26d45f6468e61dbf333806530 | ef138860d22523bf08a847317f3daca363db65a3 | refs/heads/master | 2023-03-07T09:23:22.237526 | 2021-12-05T06:32:00 | 2021-12-05T06:32:00 | 234,801,909 | 4 | 0 | MIT | 2021-07-14T13:05:03 | 2020-01-18T21:44:18 | Python | UTF-8 | Python | false | false | 2,173 | py | import socket, time, os, os.path
import iglesia
from iglesia.utils import message, bye, ff, shell
from radiopadre_client import config
def update_server_from_repository():
"""
Updates the radiopadre git working directory, if necessary
:return:
"""
if config.UPDATE and config.SERVER_INSTALL_PATH an... | [
"osmirnov@gmail.com"
] | osmirnov@gmail.com |
77c75a0b7749c3c5c8338bde04b1bb61e93bb78f | 3e4bb5b4036a66d25a72793c1deaa4f5572d37bf | /apps/dashboard/views.py | 2f723b17ac30dd70dec007dcbcc52e9db4be3f89 | [
"MIT"
] | permissive | hbussell/pinax-tracker | f7f7eb0676d01251d7d8832557be14665755844d | 4f6538324b2e1f7a8b14c346104d2f1bd8e1556b | refs/heads/master | 2021-01-20T12:06:29.630850 | 2010-02-03T00:39:05 | 2010-02-03T00:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py |
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from tasks.models import Task
from tasks.forms import TaskDashboardForm
from tasks.filters import TaskProjectFilter
from projects.models impo... | [
"harley@harley-desktop.(none)"
] | harley@harley-desktop.(none) |
525d87c0196a42e75f55f89d743b31765ba68d48 | 63811ad4592793a8028ab973e254ba59a4205fe5 | /src/modules/storage_evernote/__init__.py | b30826ea497661139b30177a332751794def6cb6 | [] | no_license | AlexWoroschilow/AOD-Notes | d124fe9206278cae3c57b146883081bfaaaf1ff5 | aa43c58291e2f9175a456c156ebc78aaf61cac1e | refs/heads/master | 2022-11-30T10:42:16.405161 | 2020-08-05T20:28:05 | 2020-08-05T20:28:05 | 130,315,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
# Copyright 2015 Alex Woroschilow (alex.woroschilow@gmail.com)
#
# 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
#
# Unles... | [
"alex.woroschilow@gmail.com"
] | alex.woroschilow@gmail.com |
842f17c7aeae65c3e435a8bef7373d36475fcad4 | 48408a93a358e09526e8f8b9cf560cfede086d9f | /tests/test_plot_acc_signal.py | 675b8400125a71a0064af1afd0215602f6460a83 | [
"MIT"
] | permissive | eng-tools/engformat | aa4c137854f05706feceee136e0601508c4ea4f1 | 8cc3937327eb4e7b52e0b5d486248bf25894ec0d | refs/heads/master | 2023-03-28T23:07:54.075599 | 2021-03-30T21:47:27 | 2021-03-30T21:47:27 | 111,424,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | import numpy as np
import matplotlib
matplotlib.use('agg')
from eqsig import AccSignal
from matplotlib.testing.decorators import image_comparison
import matplotlib.pyplot as plt
from bwplot import cbox
from engformat import plot_acc_signal
from tests.conftest import TEST_DATA_DIR
@image_comparison(baseline_images=[... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
8e3d54e893943143b258daaa50207961b795f69d | d9e277dc46c9ed02d339db0fc1c4ebaed9d15e12 | /ingest/spoor_xml.py | 735227883f6ef3b55d3da3731f44056cba250eff | [
"MIT"
] | permissive | O-C-R/intotheokavango | b7ea700a178610ce6154eaf8bd423ff7acf5d522 | 4006940ddead3f31eea701efb9b9dcdc7b19402e | refs/heads/master | 2020-04-10T20:13:52.547817 | 2017-10-31T16:26:17 | 2017-10-31T16:26:17 | 32,355,238 | 1 | 3 | MIT | 2018-06-15T15:43:23 | 2015-03-16T21:51:32 | JavaScript | UTF-8 | Python | false | false | 2,105 | py | import json, xmltodict, os, base64
from ingest import ingest_json_body, save_files, process_image, ingest_data, ingest_plain_body
from housepy import config, log, util, strings
from ingest.sighting import get_taxonomy
def parse(request):
log.info("spoor_xml.parse")
try:
content = ingest_plain_body(req... | [
"brian.house@gmail.com"
] | brian.house@gmail.com |
4b2850b6ce34f9c85f6c0c7634f32b5c9cf5fcff | aef9d6b8bb21957fa8b2235872bca51f64e7b5ff | /petstagram/petstagram/pets/urls.py | 2473e643a2fe767b5674d65d09873b6da5c9eacb | [] | no_license | dreadlordow/Softuni-Python-Web | 3cf9cc234960bb47f1c3c2a91a1a80d0fc499fd6 | 784faccbe15023536917d610384222d839a63bae | refs/heads/master | 2023-08-28T19:39:57.149514 | 2021-02-23T16:28:55 | 2021-02-23T16:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from django.urls import path
from petstagram.pets.views import list_pets, details_or_comment_pet, like_pet, create, edit_pet, delete_pet
urlpatterns =[
path('', list_pets, name='list pets'),
path('details/<int:pk>/', details_or_comment_pet, name='pet details'),
path('like/<int:pk>/', like_pet, name='like ... | [
"georgipavlov1913@gmail.com"
] | georgipavlov1913@gmail.com |
87c33bb6777835d09d524a7349f95644d682d200 | fa7e75212e9f536eed7a78237a5fa9a4021a206b | /python/smqtk/tests/algorithms/nn_index/test_NNI_itq.py | e9cbb9ca8295459ddafa1635f0cd73c710e71e13 | [] | no_license | kod3r/SMQTK | 3d40730c956220a3d9bb02aef65edc8493bbf527 | c128e8ca38c679ee37901551f4cc021cc43d00e6 | refs/heads/master | 2020-12-03T09:12:41.163643 | 2015-10-19T14:56:55 | 2015-10-19T14:56:55 | 44,916,678 | 1 | 0 | null | 2015-10-25T15:47:35 | 2015-10-25T15:47:35 | null | UTF-8 | Python | false | false | 7,630 | py | import json
import os
import random
import unittest
import nose.tools as ntools
import numpy
from smqtk.representation.code_index.memory import MemoryCodeIndex
from smqtk.representation.descriptor_element.local_elements import \
DescriptorMemoryElement
from smqtk.algorithms.nn_index.lsh.itq import ITQNearestNeigh... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
815e6293e7b50bf45be49abf34aa8aa462497005 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181208041346.py | f81adf16e88f6eaee743e5ea52a166492686ae44 | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,022 | py | import datetime
from flask import Flask, request, render_template_string, render_template
from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string
from flask_babelex import Babel
from flask_sqlalchemy import SQLAlchemy
from flask_user import current_user, login_requi... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
e02728d9fc94a43001308defdd5483846398a4de | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /ime/models/ar_net.py | 218ee2b12134f1c56ce580873cc51c45a26c1c8e | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 3,614 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f9c7055b43709d3b9c8e75815970faffbc2bdfd7 | e7f7a4688c587978129f6e95a4735ba99b44028e | /python/aocrecs/logic/users.py | 30ea6147f129eeaaea8e232983a432bc9d972827 | [] | no_license | Jester-5115/aocrecs.com | 97eb521e0006a54e25c2984062134140fb680976 | d6e60a0211f0d8aa6a81f30f2153da1947da9078 | refs/heads/master | 2022-06-11T06:42:26.967342 | 2020-05-06T00:57:04 | 2020-05-06T00:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,254 | py | """Users."""
import asyncio
from aocrecs.cache import cached
@cached(warm=True, ttl=86400)
async def get_people(database):
"""Get all people."""
query = """
select
people.id, people.name, people.country, count(distinct match_id) as match_count,
min(extract(year from matches.pl... | [
"happyleaves.tfr@gmail.com"
] | happyleaves.tfr@gmail.com |
133719c18752571f8bdb0264e27fc9d332272cf0 | b0eef0efd10556a4b054574fdd2d43124cb0856b | /npbench/benchmarks/polybench/gemm/gemm_dace.py | 60a2a8faeadf250f679ec0ac4e94b79a20fadd19 | [
"BSD-3-Clause"
] | permissive | learning-chip/npbench | 140d38be2095b54393de6e0008264b54b7cf686b | f2f545afe3603d5c8f1771f26d660f25ce4a3cda | refs/heads/main | 2023-05-10T09:54:52.719759 | 2021-05-31T12:09:48 | 2021-05-31T12:09:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import numpy as np
import dace as dc
NI, NJ, NK = (dc.symbol(s, dtype=dc.int64) for s in ('NI', 'NJ', 'NK'))
@dc.program
def kernel(alpha: dc.float64, beta: dc.float64, C: dc.float64[NI, NJ],
A: dc.float64[NI, NK], B: dc.float64[NK, NJ]):
C[:] = alpha * A @ B + beta * C
| [
"alexandros.ziogas@inf.ethz.ch"
] | alexandros.ziogas@inf.ethz.ch |
9ed4a38cd1b16b119a215d4a84dccafd921ba499 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /bpmn/models/timer_event_definition.py | 5840f64a909841c9a4b1037fac983ef652b1ef2f | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 341 | py | from dataclasses import dataclass
from .t_timer_event_definition import TTimerEventDefinition
__NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
@dataclass
class TimerEventDefinition(TTimerEventDefinition):
class Meta:
name = "timerEventDefinition"
namespace = "http://www.omg.org/spec/... | [
"chris@komposta.net"
] | chris@komposta.net |
993491362cac36aa4d43c4583fbe256a8c1b0a1b | 06b06ce31d4369dcb2a998a80fb7e5a3349803ce | /pm4pyws/handlers/xes/process_schema/indbpmn_freq/get_vis.py | 4ad8061aed08cc453266324ca1be1ff655f08767 | [
"AGPL-3.0-only"
] | permissive | Javert899/pm4py-ws | f3df4dea442ff0e46fc5ee6df427520c580c96b5 | 78fa062df449d3e5076df87f094f9d5461684f1a | refs/heads/master | 2021-07-07T22:59:35.024414 | 2020-06-02T06:00:57 | 2020-06-02T06:00:57 | 175,439,265 | 0 | 1 | Apache-2.0 | 2019-03-13T14:39:16 | 2019-03-13T14:39:16 | null | UTF-8 | Python | false | false | 5,229 | py | from pm4py.algo.discovery.inductive.versions.dfg import imdfb as inductive_miner
from pm4py.objects.petri.exporter.pnml import export_petri_as_string
from pm4py.visualization.common.utils import get_base64_from_gviz, get_base64_from_file
from pm4py.visualization.petrinet import factory as pn_vis_factory
from pm4py.algo... | [
"a.berti@pads.rwth-aachen.de"
] | a.berti@pads.rwth-aachen.de |
741025911f1f089732b7ae56e651f09b18d60dee | 0909dd4fd63f093022369948622c2627a5ddc47c | /data/root-.pyload-config/userplugins/hoster/PotloadCom.py | a197a1370e1f3a24cde538a76ef14c790fa660bc | [] | no_license | kurtiss/htpc | 3c4f523f0b12e878211d51c1ea63ec1645d4f62c | ef6d859b92dbcace76abef04ef251ee0bf09cf8b | refs/heads/master | 2021-01-18T13:46:47.932073 | 2015-07-01T21:51:18 | 2015-07-01T21:51:18 | 34,362,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
from module.plugins.internal.DeadHoster import DeadHoster, create_getInfo
class PotloadCom(DeadHoster):
__name__ = "PotloadCom"
__type__ = "hoster"
__version__ = "0.02"
__pattern__ = r'http://(?:www\.)?potload\.com/\w{12}'
__description__ = """Potload.com hoster plugin""... | [
"kurtiss@gmail.com"
] | kurtiss@gmail.com |
0a0f62ffcda8415ae96d81cc0d92adf29ef4e134 | 45df3588d0ec1a2bd7dbe4af104a49aa5775d034 | /login/migrations/0006_auto_20150704_0050.py | 6f6528eefa50ad415c8b0b0d31a033845f338a3a | [] | no_license | wittawin/DB_Project | 043db7eb3d70ef32c9c97d51a242775b3e115f73 | 1cc1fe84c75906d670f7bb4dd130093bc15035b8 | refs/heads/master | 2020-04-06T03:43:21.516583 | 2015-07-13T05:47:09 | 2015-07-13T05:47:09 | 37,700,817 | 0 | 1 | null | 2015-06-19T04:06:07 | 2015-06-19T04:06:06 | JavaScript | UTF-8 | Python | false | false | 1,549 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('login', '0005_auto_20150702_1652'),
]
operations = [
migrations.AddField(
model_nam... | [
"o_k_t@hotmail.com"
] | o_k_t@hotmail.com |
d4e6b2b4adda45acf4e45b2520d5c9f3185ba272 | a9386fd8a14e66c27b5059f562dc239f2c4b0ff7 | /MARC/scripts/identify_main_records.py | 9f920cb300e3828fb4c594f1247bf856a943d6e5 | [] | no_license | bentley-historical-library/vandura | 20f93e2f9cf2370e40537f863da9f2f19db329a0 | 0fefc0bf92c2487987a9c23e70187718c3b949f0 | refs/heads/master | 2021-01-17T00:54:08.023435 | 2016-11-04T20:00:04 | 2016-11-04T20:00:04 | 37,206,505 | 0 | 18 | null | 2016-11-04T20:00:05 | 2015-06-10T15:45:33 | Python | UTF-8 | Python | false | false | 808 | py | from vandura.config import marc_dir
from lxml import etree
import os
from os.path import join
ns = {'marc': 'http://www.loc.gov/MARC21/slim'}
marcxml_dir = join(marc_dir, "marcxml_no_ead_joined")
no_main_record = []
for filename in os.listdir(marcxml_dir):
print filename
tree = etree.parse(join(marcxml_dir, filen... | [
"djpillen@umich.edu"
] | djpillen@umich.edu |
53d329f2547fb0ca91031e8381921444d11ea1ef | 4392b40a932619bf8168364cc1df5695069d7de0 | /company/migrations/0001_initial.py | 388fb36a0a4c18497a7718512fa722d44b12f193 | [] | no_license | kashul/python-employee-management | b704aa5276029da55286d9b731d8c306403c77c8 | 99669c889bfafe1a6aa430e88cc947768a34d0ed | refs/heads/master | 2021-01-05T07:53:04.894932 | 2020-02-16T20:18:24 | 2020-02-16T20:18:24 | 240,941,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Generated by Django 2.2.9 on 2020-02-12 08:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(... | [
"you@example.com"
] | you@example.com |
483fe42f132aa6d928108f3433fc12b490fb879c | 84b266bbe18394196ee64cad190b2550189e46a6 | /catkin_carto/build/cartographer_ros/catkin_generated/generate_cached_setup.py | cf9094534137c2e280e5272a056ce5509eeffcfd | [] | no_license | Asher-1/Robots | 4d3a2f9938720a116a3eb749e36decb878b47aa5 | 8056144d1a677584b92db084704b32c540dd6ce8 | refs/heads/master | 2022-03-17T09:10:12.012984 | 2019-09-30T07:36:37 | 2019-09-30T07:36:37 | 209,523,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"ludahai19@163.com"
] | ludahai19@163.com |
3c3ecd6cf0faf3fc4b6e48066c32bd06f5121123 | a802c639bd7af799c6089a6ccda671a7f2436952 | /Code/palindromes-and-strings/palindromes.py | 04474ab25877392f5242f74190ab17078aaedc4e | [] | no_license | franklin-phan/cs1.3-code | 45a2cf045b5c4543def86d71b1cf89a3c8e880b5 | 793238b42e5164cf35bc4d66d3126e07763f67f5 | refs/heads/master | 2022-07-18T19:40:57.559754 | 2020-05-16T15:35:33 | 2020-05-16T15:35:33 | 261,888,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | #!python
import string
# Hint: Use these string constants to ignore capitalization and/or punctuation
# string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz'
# string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# string.ascii_letters is ascii_lowercase + ascii_uppercase
def is_palindrome(text):
"""A string ... | [
"franklin.phan123@gmail.com"
] | franklin.phan123@gmail.com |
cab64dfea12c82e4e1dee006551d8ca5cd935379 | 958685165bfeb4122cc3473659a6d0c89c5cae95 | /crea8s_document/__openerp__.py | d30ebd982f07258e0590d64507368c1fd10d7b7e | [] | no_license | tringuyen17588/OpenERP-7.0 | 44efee7735af65d960c5adb4b03a1a329f5c4a57 | 2486261e4d351d4f444ec31e74c6b0e36ed2fb82 | refs/heads/master | 2021-01-10T02:45:24.320726 | 2016-02-19T06:05:21 | 2016-02-19T06:05:21 | 52,064,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"tri@crea8s.com"
] | tri@crea8s.com |
e58dc2d0c83ac782f98bdc93e308cfaaf1cf99dc | 11e62879d16539494d49a25da66f70c79a390809 | /apps_data/courseevent/migrations/0011_auto_20150917_1206.py | d6d5b8ce371ad8f31197ac07af012de3424331f4 | [] | no_license | sabinem/mentoki | cdf558912f5811d9c78081a0e37c16d016fcb445 | 947881b5100d516a36cdff2bb629b2252b313c1b | refs/heads/master | 2021-04-30T12:15:14.831327 | 2018-02-22T12:25:42 | 2018-02-22T12:25:42 | 121,265,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('courseevent', '0010_auto_20150917_1151'),
]
operations = [
migrations.AlterField(
model_name='classroommenuitem'... | [
"sabine.maennel@gmail.com"
] | sabine.maennel@gmail.com |
536d55634727551f9b11918fe071badd22904a29 | 6710c52d04e17facbc9fb35a7df313f7a2a7bd53 | /1343. Maximum Product of Splitted Binary Tree.py | ff1ec6afa6cdba2b325dc5a13f9fd2aaafb48399 | [] | no_license | pwang867/LeetCode-Solutions-Python | 535088fbe747a453360457728cc22cf336020bd2 | 188befbfb7080ba1053ee1f7187b177b64cf42d2 | refs/heads/master | 2022-11-13T16:20:28.211707 | 2020-06-28T06:01:14 | 2020-06-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# postorder DFS, time/space O(n), space can be reduced to O(1)
# if we traverse the tree twice
class Solution(object):
def maxProduct(self, roo... | [
"wzhou007@ucr.edu"
] | wzhou007@ucr.edu |
f98c01a95f2a08c3020f7e5fde118ba80e8c4c0a | 0724a1443d36f43d7c65d53b4a382a8b4d4ddbdc | /fastreid/modeling/meta_arch/baseline.py | 25002ffa342bf2c90d28939a8d7dcf393e1790de | [] | no_license | zhaoyang10/fast-reid | cb36f8c331f4a1597b59146ca225fa339398ee81 | 8458bece5e66e5760db10bd79482fd5129080d77 | refs/heads/master | 2022-09-02T14:10:21.739881 | 2020-05-23T02:42:31 | 2020-05-23T02:42:31 | 266,256,158 | 2 | 0 | null | 2020-05-23T03:33:50 | 2020-05-23T03:33:49 | null | UTF-8 | Python | false | false | 1,886 | py | # encoding: utf-8
"""
@author: liaoxingyu
@contact: sherlockliao01@gmail.com
"""
from torch import nn
from fastreid.layers import GeneralizedMeanPoolingP
from fastreid.modeling.backbones import build_backbone
from fastreid.modeling.heads import build_reid_heads
from fastreid.modeling.losses import reid_losses
from .... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
bea7cc57bbbfcff2a1a64b8322a3ab6f10e6ee2f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/RPG Quest Generator/World/Types/__init__.py | 19ee6e62f5111f3720e456ead6ae4fa5b8560e0c | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:860c31adaf073aea021ccfed493a9f4723e137aecec7153d79e47daede57d296
size 603
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
35bff181e53c2792d25843ffc5c9c62a576ce855 | 7bead245354e233f76fff4608938bf956abb84cf | /test/test_docx_to_jpg_result.py | a930dd574706fee13420d148e2031d88c030addb | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Convert | 5ba499937b9664f37cb2700509a4ba93952e9d6c | dba2fe7257229ebdacd266531b3724552c651009 | refs/heads/master | 2021-10-28T23:12:42.698951 | 2021-10-18T03:44:49 | 2021-10-18T03:44:49 | 138,449,321 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudmersive_convert_api_... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
353f1336028ba1040a8d2d9147d2a48c7f9191fa | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python 语法基础/d14_tkinter_python图形开发界面库/tkinter/4.Entry输入框控件.py | 9bf10d812b0679dcee7e06b82b7d000faf7f46ef | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 695 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
"""
entry :是输入控件
也可以用于显示简单的文本内容
"""
import tkinter
win=tkinter.Tk()
win.title("zhl")
win.geometry("400x400+200+0")
entry1=tkinter.Entry(win)
entry1.pack()
entry2=tkinter.Entry(win,show="*")##show:设置显示的字符,比如用于密码输入用
entry2.pack()
##绑定变量:
e=tkinter.Varia... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
9f4870d0d0b21b619f73baa217ea590c3fd450da | 493e117a8366b4cde04d4d9946aa785cc0192ecb | /Student/Collegeinfo/Myproject.py | e3f39ab293925e390dece1f110c1e56418428ba6 | [] | no_license | Srinivasareddymediboina/Web-Development-Srinivasa-Reddy- | adf59be95f656fd04823ab44db662c90f6ee22c9 | 715b58a0453fdd738c24b0045ed873e9254b097e | refs/heads/master | 2020-06-22T11:46:08.844365 | 2019-07-19T13:58:07 | 2019-07-19T13:58:07 | 197,709,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | from flask import Flask,render_template,url_for,request
from flask_sqlalchemy import SQLAlchemy
app=Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']="sqlite:///collegeinfo.db"
mydb=SQLAlchemy(app)
#database connection
class Signup(mydb.Model):
id=mydb.Column(mydb.Integer,primary_key=True)
s_name=mydb.Column(my... | [
"nivas0803@gmail.com"
] | nivas0803@gmail.com |
e8358392affc756e228a44fc5f8e9622e3308900 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_091/ch19_2020_09_09_20_16_20_148677.py | 8b1d6477e3882b89861c988bdaf5494780422e46 | [] | 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 | 207 | py | def classifica_triangulo(a,b,c):
if a==b==c:
return "equilátero"
if a!=b!=c:
return "escaleno"
else:
return "isósceles"
x=10
y=10
z=10
print(classifica_triangulo(x,y,z) | [
"you@example.com"
] | you@example.com |
05e15eaff68be2de7c993cd556581c4ef317d9ab | 7d406f258fb0023d8af653c8640925ea16b0d655 | /example/commands/ex_commands.py | 0eb87bccf3c9be3af867cd143a922d5f12a3bb50 | [] | no_license | volitilov/Docker_learn | d0923b8434132203112077de2de9ef1c66972a60 | 458132701554d2b63513d5840cf0a233314b487c | refs/heads/master | 2023-04-16T02:15:06.284505 | 2023-04-01T05:39:55 | 2023-04-01T05:39:55 | 148,593,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | # ex_commands.py
# Примеры консольных комманд для Docker
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
$ sudo chmod ug+s /usr/bin/docker
# Убирает постаянные запросы на прова sudo
$ docker run -it ubuntu /bin/bash
# Флаг -i оставляет STDIN открытым, даже, когда вы не присоединены к
#... | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
1d815389eb5d5cc4f8dfd679b3ab2b2b281e1ae2 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200609191132.py | 95ca5d989d437a421a34401aef5d7ebfbf8f353f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import json
def Strings(str):
# dictionary--> key value pairs
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
for j in range(0,len(newArray)):
if newArray[j][0] in values:
# if newArray[j][0... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2ff51a591a4dd0ef1dbae1c23f2d680ecd694e88 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gnome/ui/RestartStyle.py | a71cd108a8b9be92cb98a6eb21bd9b784f5ea662 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # encoding: utf-8
# module gnome.ui
# from /usr/lib64/python2.6/site-packages/gtk-2.0/gnome/ui.so
# by generator 1.136
# no doc
# imports
import gnome.canvas as __gnome_canvas
import gobject as __gobject
import gobject._gobject as __gobject__gobject
import gtk as __gtk
class RestartStyle(__gobject.GEnum):
# no d... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
5e2106eeff6d1bd89c7cca7cf86ee5f22713f038 | 8f77a1ae843c3ea650cabcacbc89c142f77feebd | /visualize.py | e0e68450d1c119689cc900081d58c50b112594b9 | [] | no_license | bpachev/cs640 | 57d114c11be89d8e4de31f388dbd3e57f54cb06e | 6f4481dbb9b5906cd9ad346ce7711aa7f9deab68 | refs/heads/master | 2020-08-05T12:12:14.623723 | 2019-10-14T21:04:37 | 2019-10-14T21:04:37 | 212,499,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | import numpy as np
import argparse as ap
import matplotlib.pyplot as plt
def ordered_balanced_sample(y, samples_per_class=20):
"""
y -- a numpy array with k unique values
samples_per_class -- an integer specifying how many samples to draw for each unique value
Returns:
inds -- indices to get the samples in orde... | [
"benjaminpachev@gmail.com"
] | benjaminpachev@gmail.com |
4d513a0de2b90b6a4ad593424332864a3b945a96 | 14484978017d08be00c45acd10c4d10869f31b16 | /10-photoresistor/photoresistor.py | ddb63a923b855e8b71cdd31348042bc1bc51546b | [] | permissive | raspberrypi-tw/gpio-game-console | 991f1517ae60cf19c0dbce24fa5919ea46776425 | 5319addec034dae72bf829e5873626b00b69e3d5 | refs/heads/master | 2021-06-18T11:42:23.674188 | 2021-03-23T08:38:15 | 2021-03-23T08:38:15 | 47,773,598 | 15 | 17 | BSD-3-Clause | 2019-07-01T05:29:10 | 2015-12-10T16:23:42 | Python | UTF-8 | Python | false | false | 1,248 | py | #!/usr/bin/python3
#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#|R|a|s|p|b|e|r|r|y|P|i|.|c|o|m|.|t|w|
#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#
# photoresistor.py
# Sense the light by photoresistor
#
# Author : RaspberryPi-spy.co.uk
# Date : 06/22/2014
# Origin : http://www.raspberrypi-spy.co.uk/2013/10/analogue-sensors-on... | [
"sosorry@raspberrypi.com.tw"
] | sosorry@raspberrypi.com.tw |
12ee5ec32428fcb5d2cd8286d92efb4e5a28ada7 | a5747577f1f4b38823f138ec0fbb34a0380cd673 | /16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisST_t-channel_antitop_4f_inclusiveDecays.py | ee7e0b4a08f8c621e19fb53592e5c6b27702b852 | [] | no_license | xdlyu/fullRunII_ntuple | 346fc1da4cec9da4c404aa1ec0bfdaece6df1526 | aa00ca4ce15ae050c3096d7af779de44fc59141e | refs/heads/master | 2020-08-03T07:52:29.544528 | 2020-01-22T14:18:12 | 2020-01-22T14:18:12 | 211,673,739 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'ST_t-channel_antitop_4f_inclusiveDecays'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Summer16_23Sep2... | [
"XXX@cern.ch"
] | XXX@cern.ch |
a8a2b17652d06ce3c5c3f7dcb3f4ccdadcb4f203 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /railrl/torch/vae/dataset/sawyer_door_push_and_reach_data.py | 84da7999020d7b64fe0be7e0b8977003e3597c01 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | import time
import numpy as np
import os.path as osp
import pickle
from gym.spaces import Box
from multiworld.envs.mujoco.sawyer_xyz.sawyer_door import SawyerDoorPushOpenEnv, SawyerDoorPushOpenEnv, SawyerDoorPushOpenAndReachEnv
from multiworld.core.image_env import ImageEnv
from railrl.exploration_strategies.base im... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.