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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0697cfae733c1c85df9bb03a68d69a1b583cc00a | 9ac793d32e70775bb119aaddeb832624e3cf9281 | /strkeyword3.py | 2eb32f55412a855bb78a367f3294cc7ae3f400c3 | [] | no_license | prabhatpal77/Adv-python-polymorphism | 9368311732e1bca9b54e099489c255e3498fbb9b | d68375e4816a746a1ffbffa6d179c50227267feb | refs/heads/master | 2020-07-29T00:41:08.162385 | 2019-09-19T16:35:32 | 2019-09-19T16:35:32 | 209,601,547 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # __init__ magic method with __str__ magic method.
class X:
def __init__(self, msg):
self.msg=msg
def display(self):
print("welcome")
def __str__(self):
return self.msg
x1=X("prabhat pal")
print(x1)
x1.display()
x2=X("python")
print(x2)
x2.display()
x3=X("django")
print(x3)
x3.displa... | [
"noreply@github.com"
] | prabhatpal77.noreply@github.com |
ce67e22340faa26b9021729066f24d2f809865a6 | 3a84f9b61a21904251236c22aa893d6ca77a6650 | /pyrosim/demos/ludobots/Demo_19_Torque.py | 8baf3731228a475e057c4f798cd2676fd3b7de5b | [] | no_license | davidmatthews1uvm/2020-ALIFE | 8fd58d59c98364ccc8f40f14c6e0c6281d4d44de | bf8321f0112974b26239710ac7f3f42afb34aec8 | refs/heads/master | 2022-11-29T17:23:58.384592 | 2020-07-18T14:21:29 | 2020-07-18T14:21:29 | 272,540,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | import sys
sys.path.insert(0, '../..')
import pyrosim
import math
ARM_LENGTH = 0.75
ARM_RADIUS = ARM_LENGTH / 10.0
TORQUES = [0.1, 100.0]
SPEEDS = [0.1, 1.0]
# torque is max torque possible, not neccesarily the torque used
for torque in TORQUES:
for speed in SPEEDS:
sim = pyrosim.Simulator(eval_time=10... | [
"dmatthe1@uvm.edu"
] | dmatthe1@uvm.edu |
3cec6f7301e98a820bb832f1da5da84e0a9399f0 | 1e21f0939d4c46db8eeca9fa8ef034ed14b7a549 | /PhotonIDSFs/TnP_76X/test/Signal_fitfunction_Syst_withMVAcut/Signal_fit_systematic_Fit2/fitter_Medium.py | 47b96945ef7a044d056278de2cc37e8440b4f822 | [] | no_license | Ming-Yan/photonTnp | 4e46286998d4e2806e423e2e27893c0a8675494f | 5468bea3eff51b21eed2701cda4f3e5d2ad9e6bf | refs/heads/master | 2021-10-08T20:33:55.910375 | 2018-10-22T09:12:26 | 2018-10-22T09:12:26 | 162,109,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,325 | py | import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.VarParsing import VarParsing
#import PhysicsTools.TagAndProbe.signalFitFunction.commonFitMedium_S as common
options = VarParsing('analysis')
options.register(
"isMC",
False,
VarParsing.multiplicity.singleton,
VarParsing.varType.bool,
... | [
"p.wang@cern.ch"
] | p.wang@cern.ch |
74f5cb59d17df02e4542da48b8d5020b5be8d921 | 6c3bb7feea3b3b029fe65de11954aee778ac3578 | /sorting algorithms/radix_sort_imp.py | 431a39dfefbe0d32954ecf059fd96db94d1d466e | [
"Unlicense"
] | permissive | mkoryor/Python | 72ebb2201c7f4887e023f541509da7e2c6fab5d5 | 837ec4c03130dc4cb919fb5f1eeb4d31206790e4 | refs/heads/master | 2023-05-04T13:00:09.106811 | 2021-05-11T03:06:04 | 2021-05-11T03:06:04 | 114,468,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py |
class RadixSort(object):
def sort(self, array, base=10):
if array is None:
raise TypeError('array cannot be None')
if not array:
return []
max_element = max(array)
max_digits = len(str(abs(max_element)))
curr_array = array
for digit... | [
"noreply@github.com"
] | mkoryor.noreply@github.com |
aa87dbc1381cc510f4fd0e691ac80df795db118b | a7b592be95dc2af9fdb56725f44e98cc59166e6f | /apps/common/biz_utils/utils_dictwrapper.py | a1f43066b827d3f81de5ed1bcdb7c7bd4e4e747f | [] | no_license | cash2one/CRM-3 | bc864c462d155b5dc6a51a5edbd564574b3e2f94 | cedcaeb397ccadb36952534242bd296c5b4513bb | refs/heads/master | 2021-06-14T07:40:53.572013 | 2017-05-23T15:52:06 | 2017-05-23T15:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # coding=UTF-8
import re
RPT_PATTERN = re.compile(r'^([a-z]+)([1-9]{1}|1[0-5]{1})$')
class DictWrapper(dict):
def __getattr__(self, name):
try:
return super(DictWrapper, self).__getitem__(name)
except KeyError:
raise AttributeError("key %s not found" % name)
def __se... | [
"956879357@qq.com"
] | 956879357@qq.com |
81041ed0d6f75bedeba160908e717643a6fc408b | 66fc0b6f603285f32544b90d6562a7f66e341abf | /parser.py | 4638524e101de45969e96a083740910b38aabc11 | [] | no_license | openelections/openelections-data-hi | f4257cab929954218f111f9eab0d38568c41cd30 | 7b56c5ddd5448c4f62fc2ae30d0eadcad609bd19 | refs/heads/master | 2023-05-02T22:43:42.495617 | 2023-04-19T00:00:56 | 2023-04-19T00:00:56 | 96,584,468 | 0 | 5 | null | 2023-04-19T00:00:57 | 2017-07-07T23:54:10 | Python | UTF-8 | Python | false | false | 3,383 | py | # -*- coding: utf-8 -*-
import csv
import requests
OFFICES = ['President and Vice President', 'Governor', 'U.S. Representative', 'State Senator', 'State Representative', 'Lieutenant Governor', 'U.S. Senator']
precinct_file = open("precincts.txt", "rt")
csvfile = csv.DictReader(precinct_file, delimiter=',')
precinct... | [
"dwillis@gmail.com"
] | dwillis@gmail.com |
dba8bef202bdd565edd4a902adbacc05ed643e9a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02609/s490665806.py | a8dbceee4a95774d3a0ccfe52e582fddc2f1fdeb | [] | 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 | 518 | py | def f(n):
ans=1
while n!=0:
ans+=1
n%=bin(n).count("1")
return ans
n=int(input())
x=input()
o=x.count("1")
if o==0:exit(print(*[1]*n))
if o==1:
if x[-1]=="1":
ans=[2]*n
ans[-1]=0
else:
ans=[1]*n
ans[-1]=2
ans[x.index("1")]=0
exit(print(*ans))
mo=0
mz=0
for i in range(n):
if x[n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
455a1ea7e2943449754c8994accb0933e72d7732 | bd211803ddb664c2ba937abdb14dd8a34429e999 | /kokkuvote/migrations/0001_initial.py | e128e6762fca91d41c8bbc76ae2e64598c981041 | [] | no_license | alvarantson/emartauto | f8055257966964c75363bfed881f861c411dbf9d | c81fd15e509ac85f22c7a6249cecda040bbf78ff | refs/heads/master | 2022-02-21T19:13:15.757053 | 2022-02-06T14:50:29 | 2022-02-06T14:50:29 | 218,960,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # Generated by Django 2.2.9 on 2020-04-17 11:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='google_link',
fields=[
('id', models.AutoFi... | [
"alvarantson@gmail.com"
] | alvarantson@gmail.com |
054492b4c0a901a426a9aa22ee5e584cbee95884 | 2c4763aa544344a3a615f9a65d1ded7d0f59ae50 | /playground/cfg_cache/wscript | 9303a0b4fe3444276207a25f55d371502561e5f1 | [] | no_license | afeldman/waf | 572bf95d6b11571bbb2941ba0fe463402b1e39f3 | 4c489b38fe1520ec1bc0fa7e1521f7129c20f8b6 | refs/heads/master | 2021-05-09T18:18:16.598191 | 2019-03-05T06:33:42 | 2019-03-05T06:33:42 | 58,713,085 | 0 | 0 | null | 2016-05-13T07:34:33 | 2016-05-13T07:34:33 | null | UTF-8 | Python | false | false | 401 | #! /usr/bin/env python
"""
compare the execution time of
waf configure
and
waf configure --confcache
"""
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c')
opt.add_option('--confcache', dest='confcache', default=0, action='count', help='Use a configuration cache')
def configure(conf)... | [
"anton.feldmann@outlook.de"
] | anton.feldmann@outlook.de | |
ca8707be7abdfa925b8ebdeabf5485b6943a3066 | 6545714ada44ce8a3bc3a55dfc9abb3ea9282c05 | /code/figures/si/figS0X_histograms.py | cb07599ef7ab19959aacb74dddf6909977cae293 | [
"MIT",
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | RPGroup-PBoC/bursty_transcription | 88b8e30f1fa05b2a57319aa73ab22c3e51f4cb3a | cd3082c567168dfad12c08621976ea49d6706f89 | refs/heads/master | 2023-02-08T07:19:13.599192 | 2020-12-15T22:27:44 | 2020-12-15T22:27:44 | 229,149,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,444 | py | # %%
import enum
import re
import dill
from git import Repo #for directory convenience
import numpy as np
import pandas as pd
import emcee
import arviz as az
import matplotlib.pyplot as plt
import seaborn as sns
import bebi103.viz
import srep
srep.viz.plotting_style()
pboc_colors = srep.viz.color_selector('pboc')
... | [
"manuel.razo.m@gmail.com"
] | manuel.razo.m@gmail.com |
93f6e5d8bb3b2467e9215ebface9f1f79610489f | 18c1cbda3f9f6ca9cc9a27e93ddfece583c4fe43 | /projects/DensePose/densepose/config.py | d4366b11a115d5d9673008dd2df9cdda193fda82 | [
"Apache-2.0"
] | permissive | zzzzzz0407/detectron2 | 0bd8e5def65eb72bc9477f08f8907958d9fd73a1 | 021fc5b1502bbba54e4714735736898803835ab0 | refs/heads/master | 2022-12-04T14:25:36.986566 | 2020-08-26T10:39:30 | 2020-08-26T10:39:30 | 276,800,695 | 1 | 0 | Apache-2.0 | 2020-07-03T03:42:26 | 2020-07-03T03:42:25 | null | UTF-8 | Python | false | false | 3,394 | py | # -*- coding = utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from detectron2.config import CfgNode as CN
def add_dataset_category_config(cfg: CN):
"""
Add config for additional category-related dataset options
- category whitelisting
- category mapping
"""
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2d208e527b45d814669dbc1dcaafd017efa974cf | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/client/fx/events/setorbitorpoint.py | ce1f72d4a16ab75244a47fce7c26186c59c9120e | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,334 | py | # 2015.11.10 21:32:17 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/FX/Events/SetOrbitorPoint.py
from FX import s_sectionProcessors
from ParticleSubSystem import *
import Pixie
from bwdebug import *
class SetOrbitorPoint(ParticleSubSystem):
"""
This class implements an event that sets the wor... | [
"info@webium.sk"
] | info@webium.sk |
e13e7d92bfdb8255a0c0eccbbcacd0f29a374af3 | 999ed80db247794159be1d752bc6f0fc272bd117 | /spytest/spytest/env.py | 9daccb6af3427a3131e4466266a4203d71bb5e5e | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ramakristipati/sonic-mgmt | 7fee876412f0121da96d751f7d199690c73496f3 | a86f0e5b1742d01b8d8a28a537f79bf608955695 | refs/heads/master | 2023-08-31T07:55:38.446663 | 2023-08-31T06:34:53 | 2023-08-31T06:34:53 | 315,448,103 | 2 | 0 | NOASSERTION | 2020-11-23T21:44:07 | 2020-11-23T21:44:07 | null | UTF-8 | Python | false | false | 6,803 | py | import os
max_buckets = 32
defaults = {
"SPYTEST_ONIE_FAIL_ON_NORMAL_PROMPT": "1",
"SPYTEST_LOGS_TIME_FMT_ELAPSED": "0",
"SPYTEST_NO_CONSOLE_LOG": "0",
"SPYTEST_PROMPTS_FILENAME": None,
"SPYTEST_TEXTFSM_INDEX_FILENAME": None,
"SPYTEST_UI_POSITIVE_CASES_ONLY": "0",
"SPYTEST_REPEAT_MODULE_SU... | [
"noreply@github.com"
] | ramakristipati.noreply@github.com |
7329bf28f44b2f6cbded2cd24158892a1a7d480d | 36e12b65922ebbb6d95aff6cbac0777c47e24153 | /getlongest3UTR.py | 3bbdeb30cbe012570b84894898bf2fa0c6690df2 | [
"MIT"
] | permissive | NailouZhang/AnalysisScripts | d0d00174f642d6722cc907f9a392084600630780 | 3df37d2f8fca9bc402afe5ea870c42200fca1ed3 | refs/heads/master | 2023-06-06T08:14:39.064920 | 2021-06-22T16:46:26 | 2021-06-22T16:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | import argparse
import sys
from Bio import SeqIO
from Bio.SeqUtils import GC
from numpy import mean
def nameconversion(ens_to_short):
#Given a file that has ENSG IDs and their corresponding short names, make a dictionary.
ens2short = {} # {ENSMUSG000000 : gene_short_name}
infh = open(ens_to_short, 'r')
for line in... | [
"taliaferrojm@gmail.com"
] | taliaferrojm@gmail.com |
2a0bfa5609aca2dfc02a924a2145644180b42c3b | a08d85552ed0db1a906c3b31ed99f56bae857c60 | /arguments.py | fb8b8bce971e780a8a1f147fee8b65881ca343c2 | [] | no_license | MagdalenaZZ/Python_ditties | 90866e53f9aafa603f05735e2ceb094cf5518a18 | 757d8de1df0e53d38d4ba9854b092eabe6ec6570 | refs/heads/master | 2023-02-20T12:23:09.778092 | 2023-02-07T10:06:55 | 2023-02-07T10:06:55 | 136,293,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | #!/usr/bin/env python
"""
Nice descriptive header
"""
import sys
import argparse
# Make sure you are working on the right version of Python
if sys.version_info[0] == 3:
print ('\nCAVA does not run on Python 3.\n')
quit()
# Command line argument parsing
parser = argparse.ArgumentParser(description='... | [
"magz@MacBook-Air.local"
] | magz@MacBook-Air.local |
9b11c4878c83539c204e7440be80bbd367f71458 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1396.py | 97706fc4f887aef70259b2716a81166bb629ea23 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | # qubit number=5
# total number=54
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5935c694933a8525af6556273b3dcd2ccf5b5bbc | 1976a844596022aa2410efa1656fb669c611fd19 | /web/api/views.py | 80974fe4d8bb946be19980c8b2c4ec679b26bab6 | [
"Apache-2.0"
] | permissive | sacharya/FleetDeploymentReporting | 575f9e311c49e7a5da1ee76422fe30467097c61b | 79236222d0bcf9d3baddae7675232f9b92c46a7f | refs/heads/master | 2020-03-23T06:09:49.044743 | 2018-08-23T20:13:50 | 2018-08-23T20:13:50 | 141,192,574 | 0 | 0 | null | 2018-07-16T20:45:55 | 2018-07-16T20:45:54 | null | UTF-8 | Python | false | false | 10,475 | py | import logging
from cloud_snitch.models import registry
from django.http import Http404
from rest_framework import viewsets
from rest_framework import status
from rest_framework.decorators import list_route
from rest_framework.exceptions import ValidationError
from rest_framework.response import Response
from neo4jdri... | [
"james.absalon@rackspace.com"
] | james.absalon@rackspace.com |
4adc810e449ce9f1cc6ddb43d8bdd3fa31a43e0a | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/deeva/generation.py | 34c4783703c53c851a289ebe8e2be7391365a386 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,838 | py | # Deeva - Character Generation Platform
# Copyright (C) 2018 Fabrizio Nunnari
#
# 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 v... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
435e46730f8c4d4c153b4262319dceef250fa076 | 5c94e032b2d43ac347f6383d0a8f0c03ec3a0485 | /Push2/transport_state.py | 3c64a9d2e39ef49634256f34ad79259e83fd83ec | [] | no_license | Elton47/Ableton-MRS-10.1.13 | 997f99a51157bd2a2bd1d2dc303e76b45b1eb93d | 54bb64ba5e6be52dd6b9f87678ee3462cc224c8a | refs/heads/master | 2022-07-04T01:35:27.447979 | 2020-05-14T19:02:09 | 2020-05-14T19:02:09 | 263,990,585 | 0 | 0 | null | 2020-05-14T18:12:04 | 2020-05-14T18:12:03 | null | UTF-8 | Python | false | false | 2,961 | py | # uncompyle6 version 3.6.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33)
# [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]
# Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/trans... | [
"ahmed.emerah@icloud.com"
] | ahmed.emerah@icloud.com |
1bea5bd6fcead58b583e1c74a86710faafc6bd76 | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /NikWork/main.py | 9d222dfb77ef6da559dc7b9bd989f12cd2ab1fb3 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,161 | py | import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="3"
#import os
import scipy.misc
import numpy as np
np.random.seed(0)
import tensorflow as tf
#print(tf.__version__)
#asdfasdfasf
from model import DCGAN
from utils import pp
#import tensorflow as tf
tf.set_random_seed(0)
fl... | [
"noreply@github.com"
] | nikolaosdionelis.noreply@github.com |
4521d6a7244f51fec11bcd32f5d1d1be2dcbf08e | cb3d1b072391b07ef0e9596df7f223f37683e970 | /[0451]_Sort_Characters_By_Frequency/Sort_Characters_By_Frequency.py | c7229d1bbe77b54189179161cb4098bd1bbdf7ed | [] | no_license | kotori233/LeetCode | 99620255a64c898457901602de5db150bc35aabb | 996f9fcd26326db9b8f49078d9454fffb908cafe | refs/heads/master | 2021-09-10T18:00:56.968949 | 2018-03-30T14:38:27 | 2018-03-30T14:38:27 | 103,036,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | class Solution(object):
def frequencySort(self, s):
"""
:type s: str
:rtype: str
"""
sheet = {}
for i in s:
sheet[i] = sheet.get(i, 0) + 1
res = ''
for key, val in sorted(sheet.items(), key=lambda x: -x[1]):
res += (key * val)
... | [
"cycycy3333@163.com"
] | cycycy3333@163.com |
698dcbdbeec179200cec56754b3c09345c37f0c9 | 374b6fb00fe8b01a04964759ed5f7d97fc6f001f | /manage.py | 038e35696d7fc80e53672839ace8de010809fbeb | [] | no_license | Zoxon470/cleverbots | 2f45730073955a8e5b8e569778305bbc9bb7af90 | 67db087f2d1e00976bd466155bc32e3815d7bdc8 | refs/heads/master | 2022-12-11T09:26:24.817876 | 2019-06-29T04:56:54 | 2019-06-29T04:56:54 | 183,275,969 | 1 | 0 | null | 2022-12-08T05:04:59 | 2019-04-24T17:26:47 | Python | UTF-8 | Python | false | false | 830 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.settings')
try:
from django.core.management import execute_from_command_line
except ImportError:
try:
import django
except ImportError:... | [
"zoxon470@gmail.com"
] | zoxon470@gmail.com |
99aea2b3ffa5ed245b5be98edc2adaf32ee45be1 | ca55dcaa64ea9db4068e13091321cfebecc0ff41 | /codeUp/codeUpBasic/1527.py | 0978736b0e3aa2072616c47aaa23d72ff23a3911 | [] | no_license | gomtinQQ/algorithm-python | 8fb8343594b945099ae2a4dfa794ecb47e54ab0b | 751562922b66e335f621d366bb73dacdc7125140 | refs/heads/master | 2022-12-07T23:05:44.535593 | 2020-08-21T12:29:58 | 2020-08-21T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | '''
1527 : [기초-함수작성] 함수로 123 값 출력하기
123 을 출력하시오.
단, 함수형 문제이므로 함수 f()만 작성하시오.
'''
def f():
print("123")
f() | [
"minhyeonlee1@gmail.com"
] | minhyeonlee1@gmail.com |
8ec6d8887b07d24192c626f26d8eaab0b8db1f3a | 651a296c8f45b5799781fd78a6b5329effe702a0 | /rnglib/cg_memory.py | 4cdecab1c27aa25a499c94878f8eea4233a7a639 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #!/usr/bin/env python
def cg_memory ( i, g, cg1, cg2 ):
#*****************************************************************************80
#
## CG_MEMORY stores the CG values for all generators.
#
# Licensing:
#
# This code is distributed under the GNU LGPL license.
#
# Modified:
#
# 27 May 2013
#
# Author:
#
... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
82b0f72f6f2d36f9269e4c508df534368159de11 | b8eb666c8b6fe4610d87bff8048f4a95a1c5b549 | /测试/接口性能/测试工具_Postman/Django/ppppp/manage.py | ca770a4fc71096442031a51c83199b3cc3b057f6 | [] | no_license | cainiaosun/study | 1e983e404005e537410b205634a27cee974faba0 | 91df9b63cda1839b7fc60de3b5f1eb19ccc33a1f | refs/heads/master | 2020-05-30T09:59:19.749099 | 2019-11-22T10:39:12 | 2019-11-22T10:39:12 | 189,641,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | 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', 'ppppp.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportEr... | [
"1551577567@qq.com"
] | 1551577567@qq.com |
9258465aa0d433f9acebe02ace571cd240004f9f | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/trainer_v2/per_project/transparency/splade_regression/runner/run_splade_regression_fit.py | 4bd23e7ff5f343d8e1095a96d635abed5616e6d9 | [] | 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 | 1,773 | py | import logging
import sys
import tensorflow as tf
from transformers import AutoTokenizer
from misc_lib import path_join
from trainer_v2.custom_loop.train_loop_helper import get_strategy_from_config
from trainer_v2.per_project.transparency.splade_regression.data_loaders.dataset_factories import \
get_vector_regres... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
28462c56603bddf4c7c0c0a3a53ba040c1d5cf98 | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-519639.py | c34e06b386bf393e68d454f3b4c3206f3e367c16 | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,891 | py | #!/usr/bin/env python
"""
True Lieberman-style delegation in Python.
Proxies are usually implemented as objects that forward method calls to a
"target" object. This approach has a major problem: forwarding makes the target
object the receiver of the method call; this means that calls originating from
the body of a met... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
f883cbe229b7a5431271f2695882c1f0a45dc9a1 | 71cac038fabbc61602dbafb3ecddefbe132362aa | /Mining/Executables/package_integrity_test.py | 714ae7813f2e6a41d54d501a18f28fb59439a762 | [
"MIT"
] | permissive | AdamSwenson/TwitterProject | 00a38f18d6c5c6146f8ff21917da456c87c5453d | 8c5dc7a57eac611b555058736d609f2f204cb836 | refs/heads/master | 2022-12-14T07:06:43.958429 | 2019-10-02T01:22:22 | 2019-10-02T01:22:22 | 138,349,359 | 0 | 0 | MIT | 2022-11-22T02:58:09 | 2018-06-22T21:23:31 | Jupyter Notebook | UTF-8 | Python | false | false | 342 | py | """
Created by adam on 6/22/18
"""
__author__ = 'adam'
if __name__ == '__main__':
import environment
from Mining.AccessManagement import TwitterLogin
from Mining.UserQueries import UserFinder
from CommonTools.FileTools import CsvFileTools
from CommonTools.Loggers import SlackNotifications
p... | [
"adam.swenson@csun.edu"
] | adam.swenson@csun.edu |
10e2ad332a4ab24121f1f3de9d8d610a87ad6421 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5648941810974720_1/Python/lbj/A.py | fc68beb5e6f1eb1db1d76e181fd7a1244032b118 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from collections import Counter
from sys import stderr
t = int(input())
def sf(vs):
for i in range(10):
for _ in range(vs[i]):
yield i
for cn in range(t):
s = raw_input()
cnt = Counter(s)
vals = [0 for i in range(10)]
# Linear programming / Gauss-Jordan reduction
vals[0] = cn... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
17b1cf7ee5701068d16e5eb678d394de6e54e0ba | 89abe56b171c6b7bf29395f92155f1f2c524c861 | /src/examples/windy_grid.py | f837e0454e0ef055d7846e2950790cf3b3c88448 | [] | no_license | soumyamulgund/MDP-DP-RL | d37f24d381f9be2cd8aeb0142e0fc747469fab72 | b3ee8b69e2b26f46c7a7cefb6b5a07b5dd38738e | refs/heads/master | 2020-03-26T07:55:50.798742 | 2018-08-14T02:33:36 | 2018-08-14T02:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,971 | py | from typing import Tuple, Sequence, NamedTuple, Set, Mapping
from enum import Enum
from scipy.stats import norm
from processes.mdp_refined import MDPRefined
from processes.det_policy import DetPolicy
from func_approx.dnn_spec import DNNSpec
from func_approx.func_approx_base import FuncApproxBase
from algorithms.func_ap... | [
"ashwin.rao@gmail.com"
] | ashwin.rao@gmail.com |
21ce95a24a03783d71c31d4be40287f8ba4b5f47 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/insights/v20201020/my_workbook.py | 30d5863b2595f34343b8a7942db921ada414cc9e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 22,897 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
864ceef09f60b62a0a11649678e819700f532179 | 535fe1b2b746e096c2a39c61792dffe702024841 | /ch5_client/4_10mTestWithThread.py | 09750dedd80a510c622f3c7f13e932617d0013b9 | [] | no_license | AstinCHOI/book_thisIsRedis | bad890a7570767da3661069aba55b604a2c1284f | 9ec10df7a757e05e7459f003fadfcc4eab892a3b | refs/heads/master | 2020-03-11T18:16:06.826665 | 2018-05-22T03:00:02 | 2018-05-22T03:00:02 | 130,172,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import time
import threading
import redis
TOTAL_OP = 10000000
THREAD = 5
def redis_thread(pool, idx):
r = redis.Redis(connection_pool=pool)
for i in range(TOTAL_OP):
if i % THREAD == idx:
key = value = "key" + str(100000000 + i)
r.set(key, value)
pool = redis.BlockingC... | [
"asciineo@gmail.com"
] | asciineo@gmail.com |
891c2662d78dca4bb7636a77a59d30e31e8a9460 | 6ace7e15e3191d1b8228ad7922a8552ca84f84e7 | /.history/image_detector_20200614200237.py | 41ec32060b2f3b5048ad6b999ba4dbbdd054c16f | [] | no_license | mehmetaliarican/Similar-Image-Finder | f72e95be50c51aa03fc64954a03124b199ca64b1 | a9e0015c443b4a73394099cccf60329cfc4c7cef | refs/heads/master | 2022-10-27T00:57:43.173993 | 2020-06-14T18:02:16 | 2020-06-14T18:02:16 | 272,256,295 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from skimage.metrics import structural_similarity as ssim
from imutils import paths
import matplotlib.pyplot as plt
import numpy as np
import cv2
import glob
import os
import argparse
ap = argparse.ArgumentParser()
ap.add_argument("-t", "--threshold", type=float, default=0.9,
help="threshold")
ap.add_a... | [
"m.ali.arican@gmail.com"
] | m.ali.arican@gmail.com |
90fce63be2d2ea67ff71cb83ce336991d16670c6 | 94f8d393536a38136420b299555a47989cb95e06 | /tengxunzhaopin123/tengxunzhaopin123/middlewares.py | a406fda992e2fc64e8c8f5e26f48c0662c6ef797 | [] | no_license | nolan0536/weizhiBigDataPython | 9164ddc50cd0b850ec7536270d690dd0848b9f06 | ef4ab9d749159166fcfe48883d680ac058b12425 | refs/heads/main | 2023-04-21T21:15:11.235258 | 2021-05-08T01:28:51 | 2021-05-08T01:28:51 | 361,971,771 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class Tengxunzhaopin123SpiderMidd... | [
"1552696515@qq.com"
] | 1552696515@qq.com |
a1ccfcb82ab8dd810185bd40e65365e3fa67a304 | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /Python/cppsecrets.com/program 14.py | 7072f9e819a92b61e186cb3ff5e5ff835dad44e7 | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | """Python Program to Count the Occurrences of Each Word in a Given String Sentence"""
from collections import Counter
text = input()
occur = Counter(text)
print(occur) | [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
3701c020b39c94cf68bd19271c90cc4e2b9b1579 | bfe9c678726a53421f26a7cfdc1447681624c4f2 | /bast/graphics/mesh/sub_mesh.py | 6bc0a14c7930c25239866280f4636279921bb430 | [] | no_license | adamlwgriffiths/bast | df983cf0322b320efdc8ef4ba0207214ebd31ef6 | a78186e9d111a799581bd604b4985467638b0b10 | refs/heads/master | 2021-01-19T20:18:27.558273 | 2015-05-02T03:41:22 | 2015-05-02T03:41:22 | 31,202,746 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | from __future__ import absolute_import
from OpenGL import GL
from ...common.object import DescriptorMixin
from ..buffer.vertex_array import VertexArray
from ..buffer.buffer_pointer import BufferPointer
class SubMesh(DescriptorMixin):
def __init__(self, material, indices=None, primitive=GL.GL_TRIANGLES, **pointers... | [
"adam.lw.griffiths@gmail.com"
] | adam.lw.griffiths@gmail.com |
42a947cc4062cb659223ccf9afbd8090f7fdc4aa | 74060c5771ae3904e99cda84ef3d1ead58940917 | /app.py | 0dd8b44dd6721d70dd36f820ac10c849c3f26655 | [] | no_license | claraj/river-level | 423f34027287f03b0b10a79bddc6cce17d1c4226 | 8a8aed77382337de58af6b694b01c210ea3d6a72 | refs/heads/main | 2023-06-03T07:47:46.025175 | 2021-06-11T02:10:57 | 2021-06-11T02:10:57 | 375,766,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | from flask import Flask, abort
from flask.json import jsonify
import requests
from datetime import datetime
app = Flask(__name__)
@app.errorhandler(400)
def not_found(e):
return jsonify({'Error': 'Bad request. Ensure you use a valid river code, and the number of days must be between 1 and 365.'}), 404
@app.er... | [
"10088152+claraj@users.noreply.github.com"
] | 10088152+claraj@users.noreply.github.com |
acd5eaa9f9e459be6493fb13f20f229d7bb22132 | a94c446a0d9ce77df965674f63be54d54b2be577 | /raspy/invalid_operation_exception.py | 619a77c7c483963df689e25c8c88f7cc472685e5 | [
"MIT"
] | permissive | cyrusbuilt/RasPy | 3434e02c2bff09ef9f3ff4995bda14edc781c14b | 1e34840cc90ea7f19317e881162209d3d819eb09 | refs/heads/master | 2020-03-18T20:19:27.426002 | 2018-08-03T17:07:25 | 2018-08-03T17:07:25 | 135,207,376 | 0 | 0 | MIT | 2018-08-03T17:07:26 | 2018-05-28T20:42:17 | Python | UTF-8 | Python | false | false | 297 | py | """This module contains the InvalidOperationException exception class."""
class InvalidOperationException(Exception):
"""Invalid operation exception.
The exception that is thrown when an operation is attempted on an object
whose current state does not support it.
"""
pass
| [
"cyrusbuilt@gmail.com"
] | cyrusbuilt@gmail.com |
5a691fd91db8702bd66b8e9e3d63005f7c6f009d | 489814a9008e482eb1098c3c97aac23ff037b3cf | /www/rabota/context_processors.py | 7227e85af53f954205996ae8e27a574bcda14bb5 | [] | no_license | boogiiieee/Delo70 | f70fcb92c91f96348513d415b120aad3b4507721 | 5c48371a513b4b1bdd6068c90895a9bda126d88c | refs/heads/master | 2021-09-04T03:10:13.362897 | 2018-01-15T03:57:48 | 2018-01-15T03:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
from rabota.forms import SearchMinForm
from geo.models import CustomLocation
##################################################################################################
##################################################################################################
def custom_proc(r... | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
c755e9e0d94bb5396ef7140478ebd01d23417626 | a566cb316ab93aeadd366b148f5110c327c7eb2b | /chp3/test.py | 12ac2e4c8da6cf7e5fd81b79f352b6ddc085af59 | [] | no_license | piochelepiotr/crackingTheCode | 4aeaffd2c46b2761b2f9642107292d0932731489 | 163ff60f723869a7096b330965d90dc1443d7199 | refs/heads/master | 2021-06-20T21:30:56.033989 | 2021-01-13T08:44:57 | 2021-01-13T08:44:57 | 172,414,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | import unittest
import ex2
import ex3
import ex4
import ex5
import ex6
import stack
class Testing(unittest.TestCase):
def test_s(self):
s = stack.Stack()
s.push(3)
s.push(4)
self.assertEqual(4, s.pop())
self.assertEqual(3, s.pop())
def test_min_s(self):
s = ex2.... | [
"piotr.wolski@telecom-paristech.fr"
] | piotr.wolski@telecom-paristech.fr |
421a92abcac080c140990d2ba04f70ef50b6473d | de3b77cb0927f28cbd85e9142c2dfd7c8be7c27e | /tests/migrations/024_add_updated_at_to_endpoint_params_down.py | 293af995a4fa50583d125154ddd7dc3ad812b296 | [
"MIT"
] | permissive | LoansBot/database | f3dcbccde59fdb80c876d2612f250662946588e6 | eeaed26c2dcfdf0f9637b47ebe15cd1e000d8cc4 | refs/heads/master | 2021-07-02T22:07:18.683278 | 2021-06-02T04:09:38 | 2021-06-02T04:09:38 | 239,400,935 | 0 | 1 | MIT | 2021-06-02T04:14:31 | 2020-02-10T01:06:53 | Python | UTF-8 | Python | false | false | 690 | py | import unittest
import helper
class DownTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.connection = helper.setup_connection()
cls.cursor = cls.connection.cursor()
@classmethod
def tearDownClass(cls):
cls.cursor.close()
cls.connection.rollba... | [
"noreply@github.com"
] | LoansBot.noreply@github.com |
e98a5646e95ea0a4833b1b0150b72feea5dc1830 | c9aca558963537ae10e87b791cc878f8f6a33d77 | /Chapter02/Simple_linear_regression.py | bff0e3c4dfc7ca91098e85038dc360cdf9cb04ec | [
"MIT"
] | permissive | PacktPublishing/TensorFlow-1x-Deep-Learning-Cookbook | d1f8fe311fa127346122aee1a8cc12a85ef4cc8a | 9e23044b0c43e2f6b9ad40a82023f7935757d3d0 | refs/heads/master | 2023-02-05T09:27:15.951141 | 2023-01-30T09:49:25 | 2023-01-30T09:49:25 | 114,516,232 | 91 | 84 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | """
"""
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def normalize(X):
mean = np.mean(X)
std = np.std(X)
X = (X - mean)/std
return X
# Data
boston = tf.contrib.learn.datasets.load_dataset('boston')
X_train, Y_train = boston.data[:,5], boston.target
#X_train... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
88e1bce19a600e0c2c679c6e5cda236a8c2c4e07 | cd4d0df26a8cd40b01872e892dca7204aa66aa1e | /storescraper/bin/celeryconfig/defaults.py | 31d6f1ec02656232b0614147fc23ef99adf4d7f3 | [] | no_license | SoloTodo/storescraper | f3486782c37f48d1b8aac4dc5fa6fa993711382e | b04490f5f3db21a92e9ad7cb67c4030a69e51434 | refs/heads/develop | 2023-08-30T21:43:16.725320 | 2023-08-30T19:36:27 | 2023-08-30T19:36:27 | 95,259,334 | 47 | 23 | null | 2023-08-03T15:34:41 | 2017-06-23T21:56:48 | Python | UTF-8 | Python | false | false | 174 | py | import sys
sys.path.append('../..')
broker_url = 'amqp://storescraper:storescraper@localhost/storescraper'
result_backend = 'rpc://'
imports = (
'storescraper.store'
)
| [
"vkhemlan@gmail.com"
] | vkhemlan@gmail.com |
c44c0c145082573453dda43fc2c47dbb33847365 | 9955a91c6193f28bc2a47fb0ab3955a0a0f525f8 | /model/medical_inpatient_medication_log.py | 90147c432e8c7b46743c6e85b82bd58456195df1 | [] | no_license | asop-source/Klinik- | 77372049fe6cdf2b2c922f093464980fea01bfc5 | a7ab1ca80c73e62178e577a685be888ff6c370da | refs/heads/master | 2020-12-11T06:38:11.765622 | 2020-01-14T08:14:51 | 2020-01-14T08:14:51 | 233,790,453 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api, _
from datetime import date,datetime
class medical_inpatient_medication_log(models.Model):
_name = 'medical.inpatient.medication.log'
admin_time = fields.Datetime(str... | [
"asopkarawang@gmail.com"
] | asopkarawang@gmail.com |
72f0fc5d92d6a4e25fec8d241b1e74159b598da8 | cced1f1ad18c6d9c3b96b2ae53cac8e86846f1f5 | /Blog/comment/views.py | 7d2183dd9347af2c83f7990348ea803cb88433de | [] | no_license | sug5806/portfolio | a3904be506a3746e16da57bba5926c38743783ad | b943955a52c622094a58fb9124323298261ae80a | refs/heads/master | 2022-12-10T06:23:38.472893 | 2019-07-05T04:56:59 | 2019-07-05T04:56:59 | 190,156,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | from django.shortcuts import render
from .forms import CommentForm
from .models import Comment
from django.shortcuts import redirect
from django.urls import resolve
from urllib.parse import urlparse
from django.contrib import messages
def add_comment(request):
if not request.user.is_anonymous:
comment_fo... | [
"sug5806@gmail.com"
] | sug5806@gmail.com |
15b1f220688c13d72343c799f21bd54531825092 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/DeeplabV3_for_Pytorch/configs/deeplabv3plus/deeplabv3plus_r101-d8_480x480_40k_pascal_context.py | 7d41ce9d966dfabe06dd53a1c736699f7b258f24 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 807 | py | # Copyright 2021 Huawei
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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.... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
660031d63690e79aa8df1ed183d32e387b29d77b | 5f5256284d4aa1c3d88dd99301024ba8fa04955e | /weis/multifidelity/test/test_trust_region.py | 3fb88e17c210bb3135a5e410645a1c3a2b75c1d9 | [
"Apache-2.0"
] | permissive | dousuguang/WEIS | 15fbff42dc4298d7592871b961c0f43fcd24feb7 | 1e4dbf6728050f75cee08cd483fe57c5614488fe | refs/heads/master | 2023-07-08T15:46:45.508489 | 2021-05-18T22:46:55 | 2021-05-18T22:46:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | import unittest
import numpy as np
from weis.multifidelity.models.testbed_components import (
simple_2D_high_model,
simple_2D_low_model,
simple_1D_high_model,
simple_1D_low_model,
)
from weis.multifidelity.methods.trust_region import SimpleTrustRegion
class Test(unittest.TestCase):
def... | [
"johnjasa11@gmail.com"
] | johnjasa11@gmail.com |
a2eb28539aed3f9f4c023b85fe772c3742d174f8 | f569978afb27e72bf6a88438aa622b8c50cbc61b | /douyin_open/Oauth2UserToken/__init__.py | 57234d8fe6e43dd02aeb32d856adc28f5132d285 | [] | no_license | strangebank/swagger-petstore-perl | 4834409d6225b8a09b8195128d74a9b10ef1484a | 49dfc229e2e897cdb15cbf969121713162154f28 | refs/heads/master | 2023-01-05T10:21:33.518937 | 2020-11-05T04:33:16 | 2020-11-05T04:33:16 | 310,189,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # coding: utf-8
# flake8: noqa
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import a... | [
"strangebank@gmail.com"
] | strangebank@gmail.com |
6da7aba79b48c6e0a599681866a6dd7dd144697c | 236ea61ca55009173039bec5c6d0cef9daf79432 | /wscript | c1fc25f7ab568838a1a753380d9f3c2accab9618 | [
"BSD-2-Clause"
] | permissive | konarev/nuvolaruntime | 5c974bd4ebe5ddb66e43f1ddd80d96f35bb05b02 | 6a43a81597669b50eece246789d8fa85bfed0822 | refs/heads/master | 2021-01-21T21:15:03.485527 | 2017-06-11T22:35:25 | 2017-06-11T22:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,894 | # encoding: utf-8
#
# Copyright 2014-2017 Jiří Janoušek <janousek.jiri@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# ... | [
"janousek.jiri@gmail.com"
] | janousek.jiri@gmail.com | |
24a5685809e52808904bdcc90e982bc708d4cf22 | 6ff318a9f67a3191b2a9f1d365b275c2d0e5794f | /python/day26/复习面向对象.py | 528ff46caa2096b7158566b26e0dedf26620f292 | [] | no_license | lvhanzhi/Python | c1846cb83660d60a55b0f1d2ed299bc0632af4ba | c89f882f601898b5caab25855ffa7d7a1794f9ab | refs/heads/master | 2020-03-25T23:34:00.919197 | 2018-09-13T12:19:51 | 2018-09-13T12:19:51 | 144,281,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | # class OldboyStudent:
# school='Oldboy'
# def choose_course(self):
# print('is choosing course')
# print(OldboyStudent.__dict__)
# print(OldboyStudent.__dict__['school'])
# print(OldboyStudent.school)
# print(OldboyStudent.choose_course)
# OldboyStudent.choose_course(1)
# OldboyStudent.country='English... | [
"1541860665@qq.com"
] | 1541860665@qq.com |
d864a4a18f26361ad7c9a9e508e92e54f8250bc2 | d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f | /modules/andForensics/modules/utils/android_sqlite3.py | 455f93e4b7c5cde1330befb1977acbfd3297ff38 | [
"GPL-3.0-only",
"Apache-2.0"
] | permissive | dfrc-korea/carpe | e88b4e3bcb536355e2a64d00e807bccd631f8c93 | f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac | refs/heads/master | 2023-04-28T01:12:49.138443 | 2023-04-18T07:37:39 | 2023-04-18T07:37:39 | 169,518,336 | 75 | 38 | Apache-2.0 | 2023-02-08T00:42:41 | 2019-02-07T04:21:23 | Python | UTF-8 | Python | false | false | 2,933 | py | #-*- coding: utf-8 -*-
import sqlite3
import logging
import sys
logger = logging.getLogger('andForensics')
class SQLite3(object):
def execute_fetch_query_multi_values_order(query, query2, db):
try:
con = sqlite3.connect(db)
except sqlite3.Error as e:
logger.error("SQLite open error. it is an invalid file:... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
487ea60364bea7fbadc50bc1b2fd1c36512a6d7c | e9c8094407c351919cc765990dc2b4907d7dc986 | /CRC/check_district_functionality.py | ad1b478d278355540dd1826145d71c1e27efd42a | [] | no_license | chetandg123/System_Test | 343991e37d90c9ae25dbdd9ea06944483e071f33 | 5c8875e298f31dd3feb0726d3967bca7a7daea0a | refs/heads/master | 2022-10-11T13:42:32.537274 | 2020-06-04T16:45:12 | 2020-06-04T16:45:12 | 269,412,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import time
import unittest
class CRC(unittest.TestCase):
def setUp(self):
time.sleep(15)
def test_query(self):
print("District Functionality is selected")
def tearDown(self):
time.sleep(15) | [
"sdevaraja85@gmail.com"
] | sdevaraja85@gmail.com |
31c69697e3c23566e5008b2f757956ca5be41372 | d725d4909a144f3218067c78e0339df781ba8145 | /src/plot_utils.py | cadda8ff609970ad7cbbf8f12682808aac707c01 | [
"Apache-2.0"
] | permissive | dhermes/phd-thesis | 05b101aa93c9d8aa72cc069d29ba3b9d3f2384dc | 732c75b4258e6f41b2dafb2929f0e3dbd380239b | refs/heads/master | 2021-06-13T04:22:37.265874 | 2019-11-16T16:35:22 | 2019-11-16T16:35:22 | 139,187,875 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
568db6eb13884c292c10227362bb121ed53af89d | 4e4c22dfabb1a0fa89f0f51f58737273412a30e0 | /audit/backend/ssh_interactive.py | 41119aecffd21653ed1bf7b9824da53cc1eeb199 | [] | no_license | shaoqianliang/fort_machine | 4cb271d5ef29c924c09172ff397e2af8562ee4ba | cf7e3d4c6682831ce04bcde478930ab7e85abb01 | refs/heads/master | 2020-04-28T15:24:02.056674 | 2019-04-12T23:50:35 | 2019-04-12T23:50:35 | 175,372,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | #!/usr/bin/env python
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.... | [
"1132424753@qq.com"
] | 1132424753@qq.com |
f87411e9cc4b3fab0ab835191ccf46313621ed6d | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/lobby/cybersport/cybersportintroview.py | bb59b4023457fdaa2d97314c8e40330d4006d4b5 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 16,723 | py | # 2016.08.04 19:50:28 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/CyberSportIntroView.py
from gui.Scaleform.genConsts.TOOLTIPS_CONSTANTS import TOOLTIPS_CONSTANTS
from helpers.i18n import makeString as _ms
from adisp import process
from gui import SystemMess... | [
"info@webium.sk"
] | info@webium.sk |
bfd55d416797f1436f81925f4ec800b9a3895717 | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/memops/format/compatibility/upgrade/v_2_0_a3/MapInfo.py | d1f75c3688f4b053d116e3783fe8125172c46e56 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 98,298 | py |
# Packages, classElements and AbstractDataTypes skipped in new model
# (prefix, typeName, elemName, newGuid, elemType)
skipElements = [
('ACCO', 'AccessControlStore', 'permissions', 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:38_00005', 'MetaRole'),
('ACCO', 'Permission', 'accessControlStore', 'www.ccpn.ac.uk_Fogh_2006-0... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
6b886ff3e8ceaf9a22c3d83ecd4644649ed20e2b | d6411d6d766adf97490b5229780952a23a3ec93e | /exportToBox2D.py | 520e5c8b2251d0a95da09748a244b69b76da98c3 | [] | no_license | NCCA/Box2DExport | 22db2dfa4d934a3cb19cb8ca3dc6e98d4c8f5f70 | a81d2a6c02aae0cc45ff573fb8ab625c9cd5454d | refs/heads/main | 2022-11-18T20:23:52.118572 | 2022-11-16T17:03:02 | 2022-11-16T17:03:02 | 24,465,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import maya.OpenMaya as OM
import maya.OpenMayaAnim as OMA
import maya.OpenMayaMPx as OMX
import maya.cmds as cmds
import sys, math
structure="""
typedef struct
{
std::string name;
float tx;
float ty;
float width;
float height;
b2BodyType type;
}Body; \n
"""
def exportBox2D() :
# basicFilter = "*.b2d"
# file=c... | [
"jmacey@bournemouth.ac.uk"
] | jmacey@bournemouth.ac.uk |
7c579b4d5629b63b895546455d32a4745a7ba2ee | 35351364eef7f058b358141aca6f3b74717841b8 | /src/taxpasta/infrastructure/application/kraken2/kraken2_profile_standardisation_service.py | 3d1268f8a406dc1afb07d7f990d8d53b7e29b3f8 | [
"Apache-2.0"
] | permissive | taxprofiler/taxpasta | 75f59c4bb234be9e93418d7eeaadfd73865e0df3 | 98713deaeec2e92b2f020860d264bccc9a25dbd1 | refs/heads/dev | 2023-08-31T15:04:17.971556 | 2023-08-24T20:01:50 | 2023-08-24T20:01:50 | 499,589,621 | 21 | 8 | Apache-2.0 | 2023-09-10T07:49:26 | 2022-06-03T17:06:44 | Python | UTF-8 | Python | false | false | 1,871 | py | # Copyright (c) 2022 Moritz E. Beber
# Copyright (c) 2022 Maxime Borry
# Copyright (c) 2022 James A. Fellows Yates
# Copyright (c) 2022 Sofia Stamouli.
#
# 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 Li... | [
"midnighter@posteo.net"
] | midnighter@posteo.net |
0275e902be4106106025a6572c63ae75e2419353 | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /career_advice/migrations/0005_merge_20200412_0918.py | da2433e841795a5ffac4c98c6ade0117d9040f76 | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # Generated by Django 3.0.3 on 2020-04-12 09:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('career_advice', '0004_auto_20200406_0429'),
('career_advice', '0004_auto_20200408_0830'),
]
operations = [
]
| [
"rashed@ishraak.com"
] | rashed@ishraak.com |
5f5e3209d2fceeaecaa1b2c52f3cb5efe5bf924d | cdd33a31d5b57a4a02803dded5e96a815fbb06d7 | /examples/dagster_examples_tests/test_examples.py | 502cc68abe72b5555628b27e6a1738166a9790cd | [
"Apache-2.0"
] | permissive | david-alexander-white/dagster | 4f177c167150316a5056901aa2522ab778d1d163 | 1c341500bb2380e14873b59b7e25503270188bda | refs/heads/master | 2020-12-07T04:40:02.676080 | 2020-01-06T17:37:40 | 2020-01-07T22:19:01 | 232,633,648 | 1 | 0 | Apache-2.0 | 2020-01-08T18:42:28 | 2020-01-08T18:42:27 | null | UTF-8 | Python | false | false | 679 | py | from __future__ import print_function
from click.testing import CliRunner
from dagster.cli.pipeline import execute_list_command, pipeline_list_command
from dagster.utils import script_relative_path
def no_print(_):
return None
def test_list_command():
runner = CliRunner()
execute_list_command(
... | [
"s@thupukari.com"
] | s@thupukari.com |
40816b4509834099df0a36e835300937d0875954 | 63e0b2a87237df482f559e428c068fb0bdae3786 | /python/tts_aksk_demo.py | 49a804c8c915b5d56eab9d7353895a66a8047692 | [
"Apache-2.0"
] | permissive | liwenxiang/ais-sdk | b547a16de630073e7552aad7425405d1b91d1a7e | 76240abc49795e914988f3cafb6d08f60dbdcb4c | refs/heads/master | 2020-05-13T21:54:56.771333 | 2019-04-04T10:06:58 | 2019-04-04T10:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # -*- coding:utf-8 -*-
from ais_sdk.utils import decode_to_wave_file
from ais_sdk.tts import tts_aksk
import json
if __name__ == '__main__':
#
# access text to speech,post data by token
#
app_key = '*************'
app_secret = '************'
# call interface use the default config
result ... | [
"17091412@qq.com"
] | 17091412@qq.com |
c8b14009abb9b4e6502cc36537e863c28dc908b6 | 8058a6999c702ba9331cc75459cc97a597364448 | /myapp/feedapp/apps.py | 8f3e6c06d44c730276e0bd61a767e9c43089d378 | [] | no_license | shivaconceptsolution/django-project-sample-new | eb587a6002a9350c28fcf31c1209c74de090010d | 1efcd14b3d73c70e898e10f43d37a57281510d18 | refs/heads/master | 2020-09-10T08:02:07.635998 | 2019-11-14T12:41:23 | 2019-11-14T12:41:23 | 221,694,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class FeedappConfig(AppConfig):
name = 'feedapp'
| [
"noreply@github.com"
] | shivaconceptsolution.noreply@github.com |
82c96800c7360a392e36d9f829b797033956880b | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/MEDIUM/YW_ZXBMM_SZXJ_097.py | 3725e08c3c5e6aebcbf3e46bfbad955ec13ddc7d | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
51f1669223491d79b767c54eee33c490e7696ab8 | a06b1f68a43622c21b1dbdd8680f21d588a45219 | /theory/espim/2D/plate/FSDT/transverse_shear_edge_based/stiffmatrices.py | 560948f4d2b1b61c7f3a8349af531c9f91bf3667 | [
"BSD-2-Clause"
] | permissive | i5misswrong/meshless | 6eac7e7ddbe51160ee37358ce36525b26b6c6843 | 27f9729050cedec2d7c1a716104d068608827c0f | refs/heads/master | 2021-01-15T22:51:33.502229 | 2017-07-05T13:59:17 | 2017-07-05T13:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,528 | py | import sympy
from sympy import Matrix
from meshless.sympytools import print_as_sparse, print_as_array, print_as_full
sympy.var('nx1, ny1')
sympy.var('nx2, ny2')
sympy.var('nx3, ny3')
sympy.var('nx4, ny4')
sympy.var('f11, f12, f13, f14')
sympy.var('f21, f22, f23, f24')
sympy.var('f31, f32, f33, f34')
sympy.var('f41, f... | [
"saullogiovani@gmail.com"
] | saullogiovani@gmail.com |
afdbe16747b31d11aa6ffd23da8bdb456945b5a7 | c36b028acbcb8c7416c13e011dd1f6fef3825a6b | /treehand.py | 12c71618d86a403dd284c85d8930b837919e52bd | [] | no_license | pglen/dbgui | 32184e1bd27dad001e52d93bb5a3feb088168921 | 790a9dd3fe9d30399550faef246d2e83467636bd | refs/heads/master | 2023-01-21T08:46:05.598868 | 2023-01-10T15:21:34 | 2023-01-10T15:21:34 | 153,726,394 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | #!/usr/bin/env python
from __future__ import print_function
import os, sys, getopt, signal
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GObject
from gi.repository import GLib
class TreeHand():
def __init__(self, tree_sel_row)... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
b2eec97a9e55d61e6b24331daca7712bdc299e93 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /accelbyte_py_sdk/api/ugc/operations/public_channel/public_create_channel.py | ede3403280ff18ce2acd0694c96810b63b78a3ae | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 8,118 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint:... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
81cdfcc0b542f443cf22c5b6650f06961619aecb | 4979df3343d7b99a9a826bd1cb946ae79fac260c | /tests/core/test_compiler.py | 4c31895384c81437789919e69b48a45af242ea1f | [
"BSD-3-Clause"
] | permissive | e-calder/enaml | 753ff329fb8a2192bddbe7166581ed530fb270be | 8f02a3c1a80c0a6930508551c7de1d345095173d | refs/heads/master | 2021-07-30T01:18:29.222672 | 2021-07-27T08:51:50 | 2021-07-27T08:51:50 | 206,089,494 | 0 | 0 | NOASSERTION | 2019-09-03T13:52:44 | 2019-09-03T13:52:44 | null | UTF-8 | Python | false | false | 1,467 | py | #------------------------------------------------------------------------------
# Copyright (c) 2020, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"marul@laposte.net"
] | marul@laposte.net |
4aae37809f53da42d03a976e5a6283a33bae61c8 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/azure/AzureDefenderOnContainerRegistry.py | 4a4d616fcf8b8cf44c547f290b395ec7d758874c | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 994 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
from typing import List
class AzureDefenderOnContainerRegistry(BaseResourceCheck):
def __init__(self):
name = "Ensure that Azure Defender is set to On fo... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
54a8323ed3240105110fca78f0cb928d7777c030 | 2234300b2316bc0e7b9fcc28de567c62c98a55b5 | /setup.py | b91c43d560eae77a6cfb609534438a62739b253a | [
"MIT"
] | permissive | PierrePaul/ABToast | 9f96249c1f3987421c1a68c81af084bd1a914d85 | edf65f0e86aace18a33a624c13c8ce936c5940eb | refs/heads/master | 2020-07-21T03:08:14.356334 | 2016-11-14T19:00:44 | 2016-11-14T19:00:44 | 73,740,655 | 0 | 0 | null | 2016-11-14T19:41:40 | 2016-11-14T19:41:40 | null | UTF-8 | Python | false | false | 468 | py | # _*_ coding: utf-8 _*_
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-abtoast',
version='1.0.3',
author='Hiten Sharma',
author_email='sharmahiten3@gmail.com',
packages=find_packages(),
url='https://github.com/htadg/ABToast',
license='MIT License',... | [
"sharmahiten3@gmail.com"
] | sharmahiten3@gmail.com |
3e73f0b579944c014d3fa2bc2a0b32c898ef649a | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/django/contrib/gis/db/backends/postgis/adapter.py | a262c444b710587602c0dbc34d4b43ead0fc3cac | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/django/contrib/gis/db/backends/postgis/adapter.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
894cf0ded218d4c3ec26f8fe45a2c3b61bbc23e9 | 27cd4886e5d08cca23bf36e24339ff1155b7db10 | /generators/splash/BagModules/adc_sar_templates_fdsoi/capdac_7b.py | ff152c65df1d3c87f87af13dd87f33d543d0924c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ucb-art/laygo | 8539accac6e9888122e8e0afd160d294ffb56bfc | 8f62ec1971480cb27cb592421fd97f590379cff9 | refs/heads/master | 2021-01-11T08:49:24.306674 | 2020-06-18T15:01:50 | 2020-06-18T15:01:50 | 194,750,788 | 24 | 9 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | # -*- coding: utf-8 -*-
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are... | [
"richards@eecs.berkeley.edu"
] | richards@eecs.berkeley.edu |
b30ddcdc45696a58718f254483b7b0596091e699 | 334bb5c9d948287d8746e81f0438ac5f3ef4c7c8 | /examples/full-screen/simple-demos/colorcolumn.py | b81bcabe0e43a48b686372e51b64a9271c64eedf | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | davidtavarez/python-prompt-toolkit | fc6629694cfdaa227c5c908f7cdb0b73b9eedd1a | ceeed2bb4cb8467cefc112987121b3afd37d773a | refs/heads/master | 2020-04-02T23:39:50.099817 | 2018-10-25T20:50:02 | 2018-10-25T20:50:02 | 154,874,871 | 1 | 0 | BSD-3-Clause | 2018-10-26T18:08:46 | 2018-10-26T18:08:46 | null | UTF-8 | Python | false | false | 1,906 | py | #!/usr/bin/env python
"""
Colorcolumn example.
"""
from __future__ import unicode_literals
from prompt_toolkit.application import Application
from prompt_toolkit.buffer import Buffer
from prompt_toolkit.key_binding import KeyBindings
from prompt_toolkit.layout.containers import HSplit, Window, ColorColumn
from prompt_... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
aa7a716385760f45fec52d6192485a83cb9b1531 | f9369134d8d12e4b542e5529d4283abbda76c07e | /BSTconstruction.py | d890ae7ee8b26bdb2eaca0fc823aa50b9a8cac78 | [] | no_license | yash921/leetcode-questions | 10fdaae874075ddb20331ccbf39dd82d10a9bb11 | f3fa3d3b5843a21bb86f91711105ae2751373e9c | refs/heads/main | 2023-03-27T01:28:13.986142 | 2021-03-20T06:23:40 | 2021-03-20T06:23:40 | 349,645,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 6 18:50:47 2020
@author: yash
"""
import pygame
class BST:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
# Average: O(log(n)) time | O(1) space
# W... | [
"yashdixit921@gmail.com"
] | yashdixit921@gmail.com |
6c99e2dfd5e7bbd0c8e994553a6fa3f87d091723 | 9b6f65a28af4c6befdd015d1416d6257138c0219 | /alpha/event/migrations/0028_auto__add_featuredevent.py | 39908750c0b7119ca35eee4be62b82574ac96f0e | [] | no_license | dany431/cityfusion | 5beec53131898e539a892249fa711fb3086fb53c | 4e67464db69cfa21c965e4eb8796a5c727d5a443 | refs/heads/master | 2016-08-11T13:20:17.966539 | 2016-01-13T11:17:12 | 2016-01-13T11:17:12 | 49,567,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,642 | py | # -*- coding: 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):
# Adding model 'FeaturedEvent'
db.create_table(u'event_featuredevent', (
(u'id', self.gf('django... | [
"danialaftab@ucp.edu.pk"
] | danialaftab@ucp.edu.pk |
25e6bd086f9b240c5225f9b752696fa71aab17ae | 5a281cb78335e06c631181720546f6876005d4e5 | /cloudkitty-9.0.0/cloudkitty/rating/noop.py | bcd23ab7f2e824e0c756b0c453b0e82d1fcdd194 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 1,398 | py | # -*- coding: utf-8 -*-
# Copyright 2014 Objectif Libre
#
# 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 ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
7acbd3f06c296e7b9c504e668609619e1dc8f852 | 1aed14713ddc1a3cea120cb4c8d0d9f79cf62a77 | /test_classification.py | 2ecaf428745589ce698cc0d20d2a4930f9687c77 | [
"MIT"
] | permissive | dazzag24/ResumeParser | 16aa577548f6b300eab758ffb94aacce920b9566 | 06a105f587dd20dd47a9ac81c37e5f4b47d83d9f | refs/heads/master | 2020-04-12T06:55:17.931441 | 2018-12-19T14:21:10 | 2018-12-19T14:21:10 | 162,351,604 | 0 | 0 | MIT | 2018-12-18T22:17:24 | 2018-12-18T22:17:24 | null | UTF-8 | Python | false | false | 7,218 | py | # from glob import glob
# import os
# import pandas as pd
# import matplotlib.pyplot as plt
# import numpy as np
# import json
# from collections import defaultdict
# base_json = 'dataset/resume_dataset.json'
# def pop_annot(raw_line):
# in_line = defaultdict(list, **raw_line)
# if 'annotation' in in_line:
# ... | [
"omkarpathak27@gmail.com"
] | omkarpathak27@gmail.com |
d3551bbf0e9586456be42b46aba252c03480d773 | 39b0d9c6df77671f540c619aff170441f953202a | /PYTHON LIBRARY/SUB_3/linecache_getline.py | a046ab4287da9bd8bc46a9515c5c9027ab555e45 | [] | no_license | yeboahd24/Python201 | e7d65333f343d9978efff6bf86ce0447d3a40d70 | 484e66a52d4e706b8478473347732e23998c93c5 | refs/heads/main | 2023-02-06T10:24:25.429718 | 2020-12-26T01:08:04 | 2020-12-26T01:08:04 | 306,487,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import linecache
from linecache_data import *
filename = make_tempfile()
# Pick out the same line from source and cache.
# (Notice that linecache counts from 1.)
print('SOURCE:')
print('{!r}'.format(lorem.split('\n')[4]))
print()
print('CACHE:')
print('{!r}'.format(linecache.getline(filename, 5)))
cleanup(fil... | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
986ea4fb769b25b6b526c57c670df265c47eca64 | 7172ed9a83a2d3d9a61918bbb9db89a4641f862a | /tests/test_resource_list.py | 89ea147c8912fc597230c055b7c325d2c07f16f3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | giorgiobasile/resync | e7bb49661b32a7789248eabf3a640c327c37b343 | c4734648a6ca93e985164450b85f387a349adee2 | refs/heads/master | 2021-01-13T13:39:49.865944 | 2016-05-06T22:33:37 | 2016-05-06T22:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | import unittest
try: #python2
# Must try this first as io also exists in python2
# but in the wrong one!
import StringIO as io
except ImportError: #python3
import io
import re
from resync.resource import Resource
from resync.resource_list import ResourceList, ResourceListDupeError
from resync.sitemap i... | [
"simeon.warner@cornell.edu"
] | simeon.warner@cornell.edu |
ba713802b829240da77702cbc404256e8622c024 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /mas_nitro-python-1.0/sample/system_version.py | f30d7ea2bffb3a8239bf8a2d6c1e2d8bf5d973eb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 3,023 | py | #!/usr/bin/env python
'''
* Copyright (c) 2008-2015 Citrix Systems, Inc.
*
* 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... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
3e8bd385f8e17649c7021b1e65085eb5bb3cf686 | d41c15b9c68ab2ee70740044d25d620e6b90a09e | /app/mod_cmd/commands/login.py | c37dcd065386da1d5e8778f595de2e190332b205 | [
"Apache-2.0"
] | permissive | jaycode/Arthur.workspace | 9093b54cda983d2e8b6745b894403b5fa1282b56 | 7a581104141ee5f556e058b1276b4087a2921dfc | refs/heads/master | 2021-01-10T10:36:35.599700 | 2016-03-21T19:37:49 | 2016-03-21T19:37:49 | 55,436,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | """Login
"""
def run(project = None, args = [], **kwargs):
"""(todo) Login
login [username]
Args:
username: Do I need to explain this?
"""
return [project, instruction] | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
b2db1c9425158d5ccb537f011f9110822c097969 | 184f13269249b08e5b62444ece10af8a3a35c9a5 | /migrate_create_parse_website_testing_front_apps_api_cypress/004_cypress_fov_suite_2e2/004_2_fov_html_js_python/web_scraping_python/GOOD_003_META_web_scraping_beautifulsoup.py | 865145dc48f2bca5ef5628c7996f32d174353be7 | [
"MIT"
] | permissive | bflaven/BlogArticlesExamples | 3decf588098897b104d429054b8e44efec796557 | aca40bb33f1ad4e140ddd67d6bb39bdd029ef266 | refs/heads/master | 2023-09-04T16:57:57.498673 | 2023-09-01T13:14:12 | 2023-09-01T13:14:12 | 42,390,873 | 9 | 4 | MIT | 2023-03-02T22:39:06 | 2015-09-13T09:48:34 | HTML | UTF-8 | Python | false | false | 23,422 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
[env]
# Conda Environment
# NO CONDA ENV
conda create --name po_launcher_e2e_cypress python=3.9.13
conda info --envs
source activate po_launcher_e2e_cypress
source activate parse_website
conda deactivate
# if needed to remove
conda env remove -n [NAME_OF_THE_CONDA_ENVIR... | [
"bflaven@gmail.com"
] | bflaven@gmail.com |
40f6e5873c826d97e8e486bb641cd1a516f4eb39 | 8b1c47d1ee06bfd2642305bc8c6723ccbe7f9f0d | /pdot.py | 8daa9401b64244dc5827d08408e8b9371a91b5da | [] | no_license | tribeiro/DRATools | 6e594e3e0a497be9aa439c0cc76aa4923c7a5def | 8b73bd50e8cde0ab4225df495970c4199f5f1f1b | refs/heads/master | 2016-08-03T17:44:20.505742 | 2016-02-05T15:44:20 | 2016-02-05T15:44:20 | 6,463,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,562 | py | #! /usr/bin/env python
'''
Calculates Pdot for a O-C time of eclipses, considering Pdot constant over time.
'''
import sys,os
import numpy as np
import pylab as py
######################################################################
def main(argv):
'''
Main function. Reads input parameters and run iteractive pr... | [
"tiago.astro@gmail.com"
] | tiago.astro@gmail.com |
568d1d5d130d876efb8e9236f37533fd74439534 | feba3c32aac7f17d8fbaf6ef7bb4d229844f8247 | /machine_learning/clustering/spectral_clustering/SpectralClustering/main.py | 4478a211b938139541a188e35d40ad5479bc2d81 | [] | no_license | lisunshine1234/mlp-algorithm-python | d48aa1336ae7c4925a0e30f4f09fa6de21f83d0e | 898359a10f65f16e94f3bb27cc61f3837806ca68 | refs/heads/master | 2023-05-01T11:11:47.465491 | 2021-05-24T13:53:40 | 2021-05-24T13:53:40 | 291,934,886 | 0 | 0 | null | 2021-05-24T13:42:15 | 2020-09-01T08:00:17 | Python | UTF-8 | Python | false | false | 5,872 | py | import numpy as np
import run as r
'''
[id]
144
[name]
SpectralClustering
[input]
x_train 训练集 训练集标签数据集 二维数组 必须 定数
y_train 测试集 测试集数据集 二维数组 必须 定数
n_clusters 簇数 默认为8,投影子空间的尺寸,可选整数,整数 字符串 不必须 定数
eigen_solver eigen_solver 默认为None,使用特征值分解策略。 AMG需要安装pyamg。在非常大且稀疏的问题上,它可能会更快,但也可能导致不稳定,可选'lobpcg','amg','arpack' 字符串 不必须 定数
n... | [
"178513111@qq.com"
] | 178513111@qq.com |
b5e44acdf849d67dd76df15fee9528740e2d4810 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_price_response.py | 319556bbd2c00ca7611e5913f4d058e565a6f5bc | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,007 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowPriceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
af8323190f0fb2a1c3ac5e3730d69a87178e772e | 7c7f5141dac7fd6d2bb5d9b1b154c37fe8ccd140 | /pandapower/test/__init__.py | a9e365de3222c2cc7631b9833645df8d98cac140 | [
"MIT"
] | permissive | lucassm/cigre-montecarlo | a6c2f5508d917a1dcbe657d34ea136448026a999 | fd354b9c3ade460b46687ba312f51212dad17151 | refs/heads/master | 2021-01-19T13:27:24.768686 | 2017-02-18T20:49:50 | 2017-02-18T20:49:50 | 82,392,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from .toolbox import *
from .result_test_network_generator import *
from .conftest import *
| [
"lucas.silveiramelo@gmail.com"
] | lucas.silveiramelo@gmail.com |
ba15ea6b6a8de11aca7e0fee71fc5594b4862c2b | c4a0669126f2fbf757ac3b33a8279ef32305bbd7 | /Python Crash Course/Chapter 13/13.1 Stars/main.py | d13a05bea7ad0b6f82c5294c2a451c874c0f822f | [] | no_license | ezeutno/PycharmProject | 822b5a7da05729c5241a03b7413548a34b12e4a5 | bdb87599885287d2d7cd5cd703b62197563722b8 | refs/heads/master | 2021-07-18T20:55:08.605486 | 2017-10-24T03:14:10 | 2017-10-24T03:14:10 | 105,782,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import pygame
from settings import Settings
from pygame.sprite import Group
import game_fuction as gf
def main():
pygame.init()
ai_settings = Settings()
screen = pygame.display.set_mode((ai_settings.screen_width, ai_settings.screen_height))
pygame.display.set_caption('Stars')
stars = Group()
gf... | [
"ivan.suratno@gmail.com"
] | ivan.suratno@gmail.com |
e0493a95982145e381c01ff67d16292c6a0349f0 | d191a04a3ded41175ea84ae88ebddb4f262b7fb1 | /Company test/nvidia.py | c4986c711e53efb20d3e34f2e58950269a5d26df | [] | no_license | YLyeliang/now_leet_code_practice | ae4aea945bae72ec08b11e57a8f8a3e81e704a54 | 204d770e095aec43800a9771fe88dd553463d2f7 | refs/heads/master | 2022-06-13T20:22:51.266813 | 2022-05-24T05:29:32 | 2022-05-24T05:29:32 | 205,753,056 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | x=int(input())
y=int(input())
z=int(input())
A=[]
B=[]
for _ in range(x):
A.append(list(map(int,input().split())))
for _ in range(y):
B.append(list(map(int,input().split())))
C=[['']*z for _ in range(x)]
for i in range(x):
for j in range(z):
C[i][j]=str(sum([A[i][k]*B[k][j] for k in range(y)]))
f... | [
"k87974@163.com"
] | k87974@163.com |
8e5a1d8fbec942a0e35a39675415f7e7b2f42cd4 | 3a18b8ba06a58231f4ecb2c1a231722cdf862e6b | /python_code/dillonsCode/websites_folder/todo_tutorial/venv/lib/python3.8/site-packages/werkzeug/middleware/proxy_fix.py | 2a7af0cdfe43370cd52976eac8ac734c1585167c | [] | no_license | dillonallen92/codeStorage | 98dd7f5a8ecb062e37313a1323aacd362ffc44c7 | 23351e0b3348de922283f6494762db9f291579d6 | refs/heads/master | 2023-07-07T10:32:40.428607 | 2023-06-26T23:26:47 | 2023-06-26T23:28:13 | 141,781,205 | 0 | 1 | null | 2023-02-12T00:21:58 | 2018-07-21T04:30:51 | Mathematica | UTF-8 | Python | false | false | 7,161 | py | """
X-Forwarded-For Proxy Fix
=========================
This module provides a middleware that adjusts the WSGI environ based on
``X-Forwarded-`` headers that proxies in front of an application may
set.
When an application is running behind a proxy server, WSGI may see the
request as coming from that server ... | [
"dillon.allen.92@gmail.com"
] | dillon.allen.92@gmail.com |
d69b9f745e9ad17b53c5384804fdd18190e526a7 | f82bfba767a44bc15557eb2d2ae2558c83cfb0e1 | /catkin_ws/src/tracking/src/diagnose.py | 808ad7f138ea91084f29763cd4647e031bf82b90 | [] | no_license | championway/argbot | 4d89a233541a38cd8c8293c55f981b78aad276b6 | a2c49a4a9df28675063aeb8d8ff6768f424526a1 | refs/heads/master | 2020-04-04T14:39:04.156209 | 2020-01-01T17:06:54 | 2020-01-01T17:06:54 | 156,006,637 | 8 | 2 | null | 2019-03-30T12:36:06 | 2018-11-03T17:24:24 | Jupyter Notebook | UTF-8 | Python | false | false | 4,534 | py | #!/usr/bin/env python
import numpy as np
import cv2
import roslib
import rospy
import tf
import struct
import math
import time
from sensor_msgs.msg import Image, LaserScan
from sensor_msgs.msg import CameraInfo, CompressedImage
from geometry_msgs.msg import PoseArray, Pose, PoseStamped, Point
from visualization_msgs.ms... | [
"cpwearth.eed03@g2.nctu.edu.tw"
] | cpwearth.eed03@g2.nctu.edu.tw |
08c90ebe0b76a7df4692e61b1223d169fa34fbe2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /095_os_and_sys/_exercises/exercises/Programming_Python/04_File and Directory Tools/04_012_os.open mode flags.py | 2336e6e88475b4379afd36620f42eff0ea5e9cbc | [] | 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,564 | py | # _______ __
# fdfile _ __.o... _'C:\temp\spam.txt', __.O_R.. | __.O_B..
# __.r... ? 20
# # b'Hello stdio file\r\nHe'
# # ######################################################################################################################
#
# __.ls.. ? 0 0 # go back to start of file
# __.r... ? 100 # binary mode reta... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
62ab7743a9f1074052811f9d7645e054d1514cc3 | e3fc83e77e218f7b8df4b14b0753fd65afd4b923 | /downloaded_kernels/house_sales/converted_notebooks/kernel_121.py | 36d0e7d411d81763309cb78183e37fd1f9b83211 | [
"MIT"
] | permissive | jupste/wranglesearch | 982684fdaa7914af59758880fdc3a4ff3346477f | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | refs/heads/master | 2023-06-18T04:46:34.474046 | 2021-07-15T23:43:24 | 2021-07-15T23:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,981 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import matplotlib.pyplot as plt
plt.figure(figsize=(20, 5))
from sklearn.model_selection import train_test_split
from sklearn import tree
from sklearn import linea... | [
"jcamsan@rhino.csail.mit.edu"
] | jcamsan@rhino.csail.mit.edu |
c2c571d1543df3e9ae04c706f4659fbe4e3352ec | 9a181799f7b87aace15f0db9afedd861259a48c2 | /At least 1 edge between any 2 vertexes in directed graph.py | 65caf712b4e55b9f6fc994149d45f68c162b02bd | [] | no_license | D-Katt/Coding-examples | 77bea4cf1099019b12bbafd967c1c017adf4e9b8 | 81e8b47857513b7961cab4c09b8c27c20b8b8081 | refs/heads/master | 2021-12-25T05:01:05.026469 | 2021-12-17T13:43:57 | 2021-12-17T13:43:57 | 226,685,637 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | # Ориентированный граф называется полуполным, если между любой парой
# его различных вершин есть хотя бы одно ребро. Для заданного списком ребер
# графа проверьте, является ли он полуполным.
# Сначала вводятся числа n ( 1 <= n <= 100) – количество вершин в графе
# и m ( 1 <= m <= n(n - 1)) – количество ребер. Затем... | [
"noreply@github.com"
] | D-Katt.noreply@github.com |
6e0790e32d260b990eddc5aac28a8e17cb474c33 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5630113748090880_0/Python/musicman3320/argus.py | 5443e0aafb386bdc58fc19821a2d13ddc2e2698f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | fin = open('B-small-attempt0.in', 'r')
fout = open('B-small-attempt0.out','w')
numtests = int(fin.readline().rstrip())
for test in range(numtests):
N = int(fin.readline().rstrip())
heightCounts = [0]*2501
for i in range(2*N-1):
page = [int(h) for h in str(fin.readline().rstrip()).split(" ")]
for h in page:
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
98ae99df2b35e5c0d48d6310c4502d8027b57ff4 | 4314b77d958174db744ae29cd914d24435246cd0 | /sparse_ll.py | 5bf449c07b0c7a2b6a45ecffee23624d0ea43e35 | [] | no_license | danieljtait/solid-sniffle | 87aa262a2281be831c4408e6e06871d8affeb65a | 31abbe1387468100708e7d13baa166f97e094af8 | refs/heads/master | 2021-01-11T00:39:22.628372 | 2016-10-17T08:22:00 | 2016-10-17T08:22:00 | 70,501,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py |
import numpy as np
import matplotlib.pyplot as plt
from main import init_dbw_example,potential,Hamiltonian,pStationary,HJacobi_integrator
from main import pTransition
from scipy.interpolate import UnivariateSpline
X = np.loadtxt('dbwData1.txt',delimiter=',')
T = 0.5
tt = np.linspace(0.,T,50)
# For now fix diffusi... | [
"tait.djk@gmail.com"
] | tait.djk@gmail.com |
07a3b814581a863498fc66da22f05128fbf8aa7d | 59b3dce3c770e70b2406cc1dd623a2b1f68b8394 | /python_3/lessons/Properties/src/test_teacher.py | f4f1839acbf9975d7e2d0791f8b5ab9b6c999217 | [] | no_license | patrickbeeson/python-classes | 04ed7b54fc4e1152a191eeb35d42adc214b08e39 | b5041e71badd1ca2c013828e3b2910fb02e9728f | refs/heads/master | 2020-05-20T07:17:36.693960 | 2015-01-23T14:41:46 | 2015-01-23T14:41:46 | 29,736,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | import unittest
from teacher import Teacher
class TestTeacher(unittest.TestCase):
def setUp(self):
self.teacher = Teacher('steve',
'holden',
'63',
['Python 3-1','Python 3-2','Python 3-3'],
... | [
"patrickbeeson@gmail.com"
] | patrickbeeson@gmail.com |
6794f14678710d8ace89c78a28304ab8181c1c25 | d0002c42833f416d13c2452e3aaf31e34e474231 | /Multibox-FHD-Skin-4ATV/usr/lib/enigma2/python/Components/Renderer/AMBCicontrol.py | 2e7cb609b6a9bb4740eb067d30931f6eb66d2c69 | [] | no_license | stein17/Skins-for-openATV | b146b9d62a1c3149b02af09253a225db43783768 | ad67a0336e8cdba54bf6c5fda42cb12e2b820b05 | refs/heads/master | 2023-08-14T21:31:18.530737 | 2022-08-29T00:35:44 | 2022-08-29T00:35:44 | 94,653,168 | 12 | 18 | null | 2022-04-26T06:02:50 | 2017-06-17T22:47:47 | Python | UTF-8 | Python | false | false | 1,832 | py | #by Nikolasi and jbleyel
from Components.Renderer.Renderer import Renderer
from enigma import ePixmap, eDVBCI_UI, eDVBCIInterfaces, eEnv
from Tools.Directories import fileExists
from Components.Converter.Poll import Poll
class AMBCicontrol(Renderer, Poll):
searchPaths = [eEnv.resolve('${datadir}/enigma2/Multibox/%s/'... | [
"lutz.f.kroll@gmail.com"
] | lutz.f.kroll@gmail.com |
f697416ba21ad9c5bf52caaad7472d1afcf3e15f | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /575-DistributeCandies.py | 4fa220fe6385d42dd5572d2b3e9528ca85753fa5 | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class Solution(object):
def distributeCandies(self, candies):
"""
:type candies: List[int]
:rtype: int
"""
return min(len(candies) / 2, len(set(candies))) | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
f0f572dd9a8b601278b6a14b38b8ab2ede39f5d8 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/list_comprehension/interview2.py | 88cd08b39166faf1fc9acacbb6ec43f53c1757b6 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # LIST COMPREHENSIONS
# 1. return a list of numbers between (1-100)
# 2. List - I want n for each n in nums[1,2,3,4,5,6,7,8,9,10] -(even/odd)
# 3. List of dictionary- return list of brand and models for year>2000
# cars=[
# {'brand':'Ford','model':'Mustang','year':1964},
# {'brand':'Ford','model':'Ranger','yea... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
c1f8bb3be62c97ced5dc256c82611d9584b30bc9 | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/modeling/schema/__init__.py | 01d0f898ac0d5d563da16c9addf1e2a2610c83f7 | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 323 | py | # flake8: noqa
from .attribute import *
from .fact import *
from .helpers import *
from .schema_management import (
SchemaLockStatus,
SchemaLockType,
SchemaManagement,
SchemaTask,
SchemaTaskStatus,
SchemaUpdateType,
)
from .table import *
from .transformation import *
from .user_hierarchy import... | [
"noreply@github.com"
] | MicroStrategy.noreply@github.com |
a1224e592c6abcd25d41d21b5503c12b326683c4 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/170_8.py | 8e5e0f599ffbaa4d32d8dfe5afc7b1f9031f152f | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | Python | Check if list is strictly increasing
The test for monotonic sequence is a utility that has manifold applications in
mathematics and hence every sphere related to mathematics. As mathematics and
Computer Science generally go parallel, mathematical operations such as
checking for strictly increasing se... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.