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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4192251a1f0165bc9861caa80f4688fd57d879e | 3b81dfbacf97918d36fb5accbcef0b610378e1a8 | /python-basic/item/shoot/02-老蒋开枪设计类,创建对象.py | 141feaad46a116d7abd5069ed6c48ff39f865cf1 | [] | no_license | XiaoFei-97/the-way-to-python | 11706f0845f56246ba8ea0df8ff34e622bbdad2d | 3667a24f4f4238998e9c6ed42cdc49c68881a529 | refs/heads/master | 2020-03-21T06:46:36.939073 | 2018-06-23T03:51:11 | 2018-06-23T03:51:11 | 138,241,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | class Person(object):
"""人的类"""
def __init__(self,name):
super(Person,self).__init__()
self.name = name
class Gun(object):
"""枪的类"""
def __init__(self,name):
super(Gun,self).__init__()
self.name = name #用来记录枪的类型
class Danjia(object):
"""弹夹的类"""
def __init__(self,max_num):
super(Gun,self).__init__()
s... | [
"jack_970124@163.com"
] | jack_970124@163.com |
96781964961a6b8473dc819f30a615209b263664 | 82fbbcef99c345d7c7acae5c6e5a2f01eea956bf | /sif_embedding_perso.py | 956e1a0fd8e1b7a3fd3d68cd2be465498738d1a2 | [
"MIT"
] | permissive | woctezuma/steam-descriptions | 06ae1cc602f06fbb789e55297d69eebbed265c99 | 16e694dfa565dd84acf1f5007bb8dde90f45a2a8 | refs/heads/master | 2023-08-09T22:19:04.354387 | 2023-02-06T14:03:43 | 2023-02-06T14:03:43 | 189,773,250 | 1 | 0 | MIT | 2023-09-14T16:24:17 | 2019-06-01T20:06:35 | Python | UTF-8 | Python | false | false | 11,203 | py | # Objective: learn a Word2Vec model, then build a sentence embedding based on a weighted average of word embeddings.
# References:
# [1] Sanjeev Arora, Yingyu Liang, Tengyu Ma, "A Simple but Tough-to-Beat Baseline for Sentence Embeddings", 2016.
# [2] Jiaqi Mu, Pramod Viswanath, All-but-the-Top: Simple and Effective Po... | [
"woctezuma@users.noreply.github.com"
] | woctezuma@users.noreply.github.com |
93fcf60be9475d9cd490935255c7a9803947da13 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/DistributedTriggerAI.py | 374f8cd57b81b637e18ee7e8befda3be1dea203f | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 422 | py |
from direct.directnotify import DirectNotifyGlobal
from direct.task import Task
import DistributedSwitchAI
class DistributedTriggerAI(DistributedSwitchAI.DistributedSwitchAI):
"""
DistributedTriggerAI class: The server side representation
of a Cog HQ trigger. This is the object that remembers what the... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
94d19d1919340743e72d4ebb192343c2b15a4bb0 | ecb7156e958d10ceb57c66406fb37e59c96c7adf | /Leetcode Exercise/Leetcode234_Palindrome Linked List/mySolution.py | dbf19308c870dfebb7d2d431d79233914dcedce8 | [] | no_license | chenshanghao/RestartJobHunting | b53141be1cfb8713ae7f65f02428cbe51ea741db | 25e5e7be2d584faaf26242f4f6d6328f0a6dc4d4 | refs/heads/master | 2020-07-27T17:39:58.756787 | 2019-10-18T06:27:27 | 2019-10-18T06:27:27 | 209,175,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def isPalindrome(self, head: ListNode) -> bool:
if not head or not head.next:
return True
slow, fast = head, head
while fast.next... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
7fc045062d1d679bc74cc6bd4c75f09c7eccaacd | d4eec8dafdf95084189316dfbc774d0b6ae21463 | /bcs-app/backend/apps/configuration/yaml_mode/views.py | b834138be79fee180860850707b420bcdb547d9f | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | dd-guo/bk-bcs-saas | 8b9411a22cee9c7982595ff4860720e603dbfaa9 | 45d69d9a72039fbb4f05638785af7dcbc1c075e4 | refs/heads/master | 2020-12-01T04:03:22.626481 | 2019-12-27T06:10:51 | 2019-12-27T06:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,828 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"gejun.coolfriend@gmail.com"
] | gejun.coolfriend@gmail.com |
00fa4d011176e57511ded5ed70adff09c00870ef | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/linear_model/plot_ard.py | d372542275a23bab2e67a592ff0f450684f6bdcd | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,909 | py | """
==================================================
Automatic Relevance Determination Regression (ARD)
==================================================
Fit regression model with Bayesian Ridge Regression.
See :ref:`bayesian_ridge_regression` for more information on the regressor.
Compared to the OLS (ordinary l... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
46f1492e0079cbd9e43a52216150bcb80318ccfe | 2feaddc19de5490a1b55af08079d7e1d866f4c2d | /test/includes/common.py | b4fad481873ade2896fdf63bd350d326132c9932 | [
"BSD-3-Clause"
] | permissive | drakkar-lig/walt-python-packages | 4beba93394da306550a54313800bb455b8652e81 | 2e487767c697aded22ba3e08b26964b45e154559 | refs/heads/master | 2023-09-04T10:53:48.768130 | 2023-09-01T08:05:11 | 2023-09-01T08:05:11 | 24,328,535 | 6 | 3 | BSD-3-Clause | 2023-09-01T08:12:36 | 2014-09-22T12:56:10 | Python | UTF-8 | Python | false | false | 1,764 | py | import os
import sys
from pathlib import Path
TEST_IMAGE_URL = "hub:eduble/pc-x86-64-test-suite"
def test_suite_image():
p = Path("/tmp/test_suite_image")
if not p.exists():
p.write_text(f"pc-x86-64-test-suite-{os.getpid()}\n")
return p.read_text().strip()
def test_suite_node():
p = Path("/... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
000c1ebab7161995ba2a7f947ebcf545cd414d7d | 6b5431368cb046167d71c1f865506b8175127400 | /challenges/estimando-o-valor-de-pi-1/tests.py | 620927474107e9a20a9a8627a9b42bd69d3f8c26 | [] | no_license | Insper/design-de-software-exercicios | e142f4824a57c80f063d617ace0caa0be746521e | 3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310 | refs/heads/master | 2023-07-03T12:21:36.088136 | 2021-08-04T16:18:03 | 2021-08-04T16:18:03 | 294,813,936 | 0 | 1 | null | 2021-08-04T16:18:04 | 2020-09-11T21:17:24 | Python | UTF-8 | Python | false | false | 617 | py | from strtest import str_test
class TestCase(str_test.TestCaseWrapper):
TIMEOUT = 2
def test_1(self):
for n in [1, 2, 3, 4, 10, 100, 1000, 10000]:
s = 0
for i in range(1, n + 1):
s += 6 / (i**2)
esperado = s**0.5
obtido = self.function(n)... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
5da15392b61fbee5433962aa065a01f22a496917 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02675/s264656425.py | 2c982c55dd80b0a0be281ffc5f2da71e4b7ffb85 | [] | 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 | 220 | py | N = str(input())
N = N[::-1]
if N[0] == '2' or N[0] =='4' or N[0] =='5' or N[0] =='7' or N[0] =='9' :
print('hon')
elif N[0] == '0' or N[0] =='1' or N[0] =='6' or N[0] =='8' :
print('pon')
else:
print('bon') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
af3e3b9bcce575f57877e191b46b2cfb11a4e81c | c243661d9d321b39256ad3dee4f5ce4b30a1fa93 | /packages/compress-stringify/python-web-demo/parse_string_decompress_load_sample_inputs.py | e9a295edc58bd8b9dccffb1a87464cf0883016d1 | [
"Apache-2.0"
] | permissive | InsightSoftwareConsortium/itk-wasm | 409621ea9430065c51759e4398959fe0ea3ab64a | 63369f1439583f27c77a4534ea2ef204c63dfa39 | refs/heads/main | 2023-08-31T13:31:27.333792 | 2023-08-30T04:20:30 | 2023-08-30T04:20:30 | 45,812,381 | 69 | 23 | Apache-2.0 | 2023-09-11T21:09:22 | 2015-11-09T03:20:17 | C++ | UTF-8 | Python | false | false | 761 | py | import js
async def load_sample_inputs(model):
sample_input = bytes([100,97,116,97,58,97,112,112,108,105,99,97,116,105,111,110,47,105,119,105,43,99,98,111,114,43,122,115,116,100,59,98,97,115,101,54,52,44,75,76,85,118,47,83,65,69,73,81,65,65,51,113,50,43,55,119,61,61])
model.inputs["input"] = sample_input
i... | [
"matt.mccormick@kitware.com"
] | matt.mccormick@kitware.com |
44f1e787c7b23aac5830825fe0b255ac28d4cdf4 | 9689ebc06e7c9a5c1b5b19d34dbcf0f5b5b82cb6 | /callcenter/migrations/0081_auto_20181220_2253.py | 1a65a3e4074be197ec3a50bab2a3e38b75af4f25 | [] | no_license | tigrezhito1/Ramas | 94fe57dc4235616522aa50b36f5a655861ecbb9f | fa894fa69f6bf2a645179cadc11fb8809e82700a | refs/heads/master | 2020-05-02T07:03:03.564208 | 2019-03-26T14:55:29 | 2019-03-26T14:55:29 | 177,808,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-20 22:53
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('callcenter', '0080_merge_20181220_2241'),
]
operations = [
... | [
"you@example.com"
] | you@example.com |
2029aeff51b31fb2e24f1e95c740deb621b4268b | 34270cb66280545a37ec58381c9bac819d626a32 | /tests/api/test_request.py | a023918ab092efa85317007b5ef389d2c5734e9e | [
"Apache-2.0"
] | permissive | ArdanaCLM/opsconsole-server | ffc7320138b2635506295bf367bc9e3225a744ca | d98c230aad058616d6b59079842893b290332cd9 | refs/heads/master | 2021-05-16T12:07:23.195171 | 2018-08-03T17:18:17 | 2018-08-03T20:02:39 | 105,184,962 | 1 | 2 | Apache-2.0 | 2018-02-13T05:40:25 | 2017-09-28T18:29:24 | Python | UTF-8 | Python | false | false | 4,058 | py | # (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
from bll import api
from tests import util
from bll.api.request import BllRequest
class Test(util.TestCase):
def test_chained_creation(self):
req1 = BllRequest(target=util.randomword(),
... | [
"nicolas.bock@suse.com"
] | nicolas.bock@suse.com |
a16fa2249589283ee9dcfb6f641f0fd3246aa783 | e48b43fd5135d5469d77d41bce6d9e5e26c133cb | /expand.py | b02f99347685bfd5a048b763c414b70183f62677 | [] | no_license | abcp4/SFPNovelty | b62aee179b9000ce8ce041c2ebec61cb00ed3d0f | 99f1a85bafed6f966100b90247a6a73a8b20a120 | refs/heads/main | 2023-07-05T23:57:14.596778 | 2021-08-11T20:41:59 | 2021-08-11T20:41:59 | 359,220,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import custom_mcts
def default(node,state):
return [custom_mcts.Node(node, a) for a in state.get_possible_actions()]
| [
"noreply@github.com"
] | abcp4.noreply@github.com |
2bb8d377c3f0f92ed567eeddc1e97303100d5013 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_winos.py | 4e2b048338398edd14d25251a3ce0aeb08022260 | [
"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 | 214 | py |
#calss header
class _WINOS():
def __init__(self,):
self.name = "WINOS"
self.definitions = wino
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['wino']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
03ff69f5d49343b455e515bad16a54b876459c51 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/88/usersdata/236/58781/submittedfiles/listas.py | 3bd37d6ae7004bd6da0f8a8243ae437e9ce52610 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # -*- coding: utf-8 -*-
def MAIORDEGRAU (A):
maior=0
for i in range (1,N+1,1):
ABS(DEGRAU)=A[i]-A[i-1]
if DEGRAU>maior:
maior=DEGRAU
print(maior)
N= int(input('Digite o número de termos da lista: '))
A=[]
for i in range (1,N+1,1):
numero= int(input('n:'))
A.append('nume... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
02bb21280cce17cc249b2e2402eaa7c6392d9123 | 49cbc5f4735152ecd0dfff45fd719f2705c0ab30 | /exp1.py | c058e12eee2b5909adc7ca1fb3b79bc6e56b65b6 | [
"MIT"
] | permissive | praveenpmin/Python | 964cc3652bfe79be93b71094fe504e7b6b072def | 9e2316b990a9c8c379b584339f918d23db32821a | refs/heads/master | 2023-09-02T21:42:19.287328 | 2023-06-28T05:53:41 | 2023-06-28T05:53:41 | 157,956,206 | 0 | 0 | MIT | 2023-08-30T03:40:37 | 2018-11-17T06:08:21 | Python | UTF-8 | Python | false | false | 166 | py | a = 4
b = 9
if b % a == 0 :
print ("b is divisible by a")
elif b + 1 == 10:
print ("Increment in b produces 10")
else:
print ("You are in else statement") | [
"pbabu1@lenovo.com"
] | pbabu1@lenovo.com |
cbc8d9a403e89fb536274d56d9dada624be9462b | 743d58c35caf21568feddc86946bbee340174721 | /automatic_office/__init__.py | 8ef015868a5b83dad235c019f43a2dcef24c5a89 | [] | no_license | klgentle/lc_python | 38009ed82614c8f21ca9af6e3779a2e0898af09f | aabe56e690b40e4b93afef99bfe46d9a06e20cea | refs/heads/master | 2022-12-02T05:23:55.585659 | 2022-08-07T12:11:38 | 2022-08-07T12:11:38 | 176,750,473 | 2 | 0 | null | 2022-11-15T23:42:06 | 2019-03-20T14:21:51 | Python | UTF-8 | Python | false | false | 115 | py | import os
import sys
# 绝对路径的import
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
| [
"klgentle@sina.com"
] | klgentle@sina.com |
940461a00d7c2aadf22e0a960479714a1c3d2055 | 225198561b0902fd267f3af95be50b0c8fbe4ca0 | /python/fpga_sdrlib/fft/qa_fft.py | bdc1d23d7e69614f34760e7aff02e545ae83cf56 | [
"MIT"
] | permissive | benreynwar/fpga-sdrlib | 84c2a3989e8264ea5300517dde424f6d62c68bc0 | 8f31883a11f04f10ff065baedfc8e4cc913aef99 | refs/heads/master | 2021-01-18T17:17:52.926427 | 2012-12-31T03:33:53 | 2012-12-31T03:33:53 | 5,812,896 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 11,949 | py | # Copyright (c) 2012 Ben Reynwar
# Released under MIT License (see LICENSE.txt)
import os
import random
import unittest
import logging
import shutil
from numpy import fft
from fpga_sdrlib.message import msg_utils
from fpga_sdrlib.conversions import int_to_c
from fpga_sdrlib.generate import logceil
from fpga_sdrlib im... | [
"ben@reynwar.net"
] | ben@reynwar.net |
45997b82d56895703ff4a3a134de0adc9dd4a8a1 | 7437ad1203ff272a482e4a7c7266afdbc7a0e619 | /lra/models/gpu_16g/linear_transformer_exp/listops/r1/config.py | e995e9eec539a6581e7a43ebafb563a58630585f | [] | no_license | maximzubkov/spe | 4ccc59d538a2cb4e5f9b0118ef79933eed0b8d95 | d877feb0f6b935152e5431ce374606ba72c08d65 | refs/heads/main | 2023-08-23T02:08:14.253693 | 2021-10-05T17:25:36 | 2021-10-05T17:25:36 | 385,636,912 | 0 | 0 | null | 2021-10-05T17:25:37 | 2021-07-13T14:42:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,311 | py | # Copyright 2020 Google LLC
# 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, sof... | [
"zubkov.md@phystech.edu"
] | zubkov.md@phystech.edu |
6c602b72c293927fb1d528411a5844309da2a86d | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /base/third_party/libevent/libevent_nacl_nonsfi.gyp | 91e2557b765dae92c5247763243dd8bc9e04f7ce | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 1,223 | gyp | # Copyright 2014 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.
{
'includes': [
'../../../build/common_untrusted.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets':... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
2d297b6201f59e67d8543a6fc8dcc4d29204b0d0 | 3107b28d397f62fe913996fa50f099dc38fda20e | /qcfractal/services/gridoptimization_service.py | 4234942c56c4e89fa84931630e001f15de75b3ca | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yudongqiu/QCFractal | 71ccfcdd194cdf3c6b807d4317d2439aa8b37394 | 43b5b4807dfe19f78177288f204aab1066de2dea | refs/heads/master | 2020-04-27T09:53:56.291827 | 2019-07-29T19:46:39 | 2019-07-29T19:46:39 | 174,233,001 | 0 | 0 | BSD-3-Clause | 2019-03-06T22:49:09 | 2019-03-06T22:49:09 | null | UTF-8 | Python | false | false | 7,849 | py | """
Wraps geometric procedures
"""
import json
from typing import Dict, Set
import numpy as np
from .service_util import BaseService, expand_ndimensional_grid
from ..extras import get_information
from ..interface.models import GridOptimizationRecord, Molecule, json_encoders
__all__ = ["GridOptimizationService"]
c... | [
"malorian@me.com"
] | malorian@me.com |
5002218b34ce893201d9e6252947b323554ba638 | 34e53150928e94855ee587c0ddd927a3c893d511 | /docs/conf.py | 6642590b7ad60b5cfc3294480323cd1d58650405 | [
"MIT"
] | permissive | uw-pycert-course-01/circle-class | 2b0c15317f653b397a0ed33cd80d10e6a68dc3fd | df5a7468e36a894fa8785dc6c5ea112f5c6db81d | refs/heads/master | 2023-09-05T03:32:37.591657 | 2021-11-23T14:54:50 | 2021-11-23T14:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,481 | py | # This file is execfile()d with the current directory set to its containing dir.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
#
# All configuration values have a default; values that are comme... | [
"akmiles@icloud.com"
] | akmiles@icloud.com |
3cd41709b1409e8e8c53ca77f1b68be35db2c15f | 9e7483cca39a82bcc219a51e9ccfeadeb026bff3 | /4_Flask_MySQL/6_users/server.py | 6cfc5605456d5ca529de90fb8c461ed66f74bd8b | [] | no_license | nramiscal/PYTHON | 2489cbfbe8d22fb6a96b5d2beab0218d0be30fe9 | 75bd1ef9e22abb7d17b6c92196f62cfbbd749199 | refs/heads/master | 2021-04-29T16:53:55.591187 | 2018-02-15T17:17:56 | 2018-02-15T17:17:56 | 121,657,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | from flask import Flask, request, redirect, render_template, session, flash
from mysqlconnection import MySQLConnector
app = Flask(__name__)
mysql = MySQLConnector(app,'users')
app.secret_key = 'ThisIsSecret'
@app.route('/')
def home():
return redirect('/users')
@app.route('/users')
def index():
users = mysql... | [
"nramiscal@gmail.com"
] | nramiscal@gmail.com |
cfb1d1fad72c5c899ab7cf3e94f854cfd11ddc76 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_302.py | 68de52e02daf69b9998018265070985ae3fe4143 | [] | 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,023 | 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 |
e1881ded3dce36b78149971eeb52f0be86908022 | b62599ac4093da825708638a4a25f252a83e9f37 | /object_detection/object_detection_rt.py | d2a4c5443ef1178afc36c91e7053405948f18f7b | [] | no_license | raspberry-pi-maker/NVIDIA-Jetson | 25ca2033d36aa8c6f837ed2a8c49281d646be29b | 30a5596aa0d9a6a960f2fef4d084eb42a94a2b66 | refs/heads/master | 2023-06-23T04:17:15.675476 | 2023-06-10T02:23:33 | 2023-06-10T02:23:33 | 211,216,972 | 40 | 30 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | import argparse
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import time
import tarfile
import tensorflow.contrib.tensorrt as trt
import tensorflow as tf
import zipfile
from distutils.version import StrictVersion
from collections import defaultdict
from io import StringIO
from matplotlib i... | [
"raspberry.pi.maker@gmail.com"
] | raspberry.pi.maker@gmail.com |
0c3f52b0dcd6a2a978142a858d3fed4a8d00e023 | a0cde41c20d4ffdcc1ace0e217e3338f1cd93cde | /src/batchDefinition/slanTour/batchDefSTWeightedAVG.py | 2ec97b0b75915ffa295f2489348f02040b01fc35 | [] | no_license | sbalcar/HeterRecomPortfolio | ea15a3277774d1b37d69b527406e5a8558cc3cbf | a8714902a1f45b5e9bfe0f9af40cce87e36c7471 | refs/heads/master | 2022-05-30T00:59:36.693858 | 2022-04-09T16:12:34 | 2022-04-09T16:12:34 | 219,495,240 | 1 | 3 | null | 2021-01-17T12:44:59 | 2019-11-04T12:21:41 | Jupyter Notebook | UTF-8 | Python | false | false | 3,061 | py | #!/usr/bin/python3
import os
from typing import List
from typing import Dict #class
from pandas.core.frame import DataFrame #class
from portfolioDescription.portfolio1AggrDescription import Portfolio1AggrDescription #class
from evaluationTool.aEvalTool import AEvalTool #class
from evaluationTool.evalToolDHondt imp... | [
"bc.stepan.balcar@gmail.com"
] | bc.stepan.balcar@gmail.com |
16ffec30ff35fe9c3e0c9763c7a430088738c46f | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/cloudpickle/__init__.py | 35e5df340d353e27242a6b1bba4359a8c662f922 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 101 | py | from __future__ import absolute_import
from cloudpickle.cloudpickle import *
__version__ = '0.6.1'
| [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
4f7ed658cf910265ba6d8203ffa1366e2069ff3f | 65d844f57c93b97459ba58a7f8d31fcddaef2c57 | /example/data_reader.py | d859e4febe7c2ef2c5f74ecb408e32e3ed809e36 | [
"Apache-2.0"
] | permissive | tonywenuon/keras_dialogue_generation_toolkit | 797411838e8213422cce4f5ac94f4e98e56cc912 | 75d82e7a281cd17a70bd9905fcebf2b906a6deec | refs/heads/master | 2023-04-04T14:39:10.117825 | 2021-03-29T11:25:23 | 2021-03-29T11:25:23 | 215,433,666 | 24 | 2 | null | 2023-03-24T22:45:14 | 2019-10-16T01:55:53 | Python | UTF-8 | Python | false | false | 23,866 | py |
import sys, os
project_path = os.path.sep.join(os.path.abspath(__file__).split(os.path.sep)[:-2])
if project_path not in sys.path:
sys.path.append(project_path)
import argparse
import numpy as np
from sklearn.utils import shuffle
from typing import Callable, Optional, Sequence, Iterable
from run_script.args_parse... | [
"you@example.com"
] | you@example.com |
e89063f004ef56318689c8df2ebf442192e2aa44 | a39e95a0536d312311531a49dec90bcc8f7ab0c5 | /Lesson6_FunctionCompileRE/main.py | 46adef70714ec420ee43ff944b6b4cdcde1257cb | [] | no_license | Hadirback/python_part2 | 095010ca4866a4b6c9e5ca092602b43edbd344e8 | a4b00aeb30f88df55751d5f23e570c33face113d | refs/heads/master | 2020-08-11T09:13:03.793607 | 2019-11-04T23:10:45 | 2019-11-04T23:10:45 | 214,536,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # compile
# re compile - если нужно найти и изменить что то подходящее под
# шаблон в нескольких переменных
import re
text1 = """
Сбо́рная Франции по футбо́лу 34-я минута представляет Францию в международных
матчах и турнирах по футболу. """
text2 = """
Управляющая организация 56-й номер — Федерация футбола Франци... | [
"mail.evgeny.filippov@gmail.com"
] | mail.evgeny.filippov@gmail.com |
d0937d391db976cdd9ce380dfda1333e8c5e6cfd | 6ffc398b4a27c339f24938e8a0b9c565e33539ce | /site-packages-27/fpdf/__init__.py | e1f6d0ec86f11b94c27e9cf80fc511a1e065dabb | [] | no_license | zwlyn/awesome-pdf | 8f4483d717130a54545f2ba8b05313da99103039 | 8223929db5433c7b4ed61bceb4f5808c12e1ad85 | refs/heads/master | 2023-01-24T23:52:35.415117 | 2020-04-05T12:05:31 | 2020-04-05T12:05:31 | 253,162,782 | 2 | 0 | null | 2023-01-05T10:50:08 | 2020-04-05T05:31:20 | Python | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"FPDF for python"
__license__ = "LGPL 3.0"
__version__ = "1.7.9"
from .fpdf import FPDF, FPDF_FONT_DIR, FPDF_VERSION, SYSTEM_TTFONTS, set_global, FPDF_CACHE_MODE, FPDF_CACHE_DIR
try:
from .html import HTMLMixin
except ImportError:
import warnings
warnings.war... | [
"1666013677@qq.com"
] | 1666013677@qq.com |
c8eb3aeda662891d7280421a60fa273f048c7670 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-1496.py | c138c5f1b37ad1d5b8f878c60570148520f70029 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,999 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
90fc9a11b36c7ec3937a286038d3b1c0a4812f9d | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/520.detect-capital/520.detect-capital_93512141.py | 4b4f3fe2c57d6a464255034820308ab06b71b8df | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class Solution(object):
def detectCapitalUse(self, word):
"""
:type word: str
:rtype: bool
"""
if word == word.upper():
return True
if word == word.lower():
return True
if (word[:1] == word[:1].upper()) and (word[1:] == word[1:].lower()... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
8fe3e72a4fe1168fd5eb38c66f4f4aa526bd5ad0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/100_Python_Exercises_Evaluate_and_Improve_Your_Skills/Exercise 12 - More Ranges NUKE.py | 7bb9127b558afdf2d3b6aa97628abdcdb2897719 | [] | 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 | 163 | py | #Create a script that generates a list whose items are products of the original list items multiplied by 10
my_range r..(1, 21)
print([10 * x ___ x __ my_range])
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
788ed2e5916d24970d79524c60e182a03ad4ecfb | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Introdução à Programação - 500 Algoritmos resolvidos/Capitulo 2/Exercicios 2a/Algoritmo36_lea9.py | a368507b3389f066630181aa6ff943bc3796ea6c | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Program: Algoritmo36_lea9.py
# Author: Ramon R. Valeriano
# Description:
# Developed: 14/03/2020 - 19:55
# Updated:
number1 = int(input("Enter with firs number: "))
number2 = int(input("Enter with second number: "))
sum_ = number1 + number2
print("The sum: %d" %sum_)
| [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
421a0b4b3adb4a231c693a21ffb4d19b7fd44a5c | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CTRON-AppleTalk-ROUTER-MIB.py | cd4f746fc5022649fc87c04124d71cea11af6658 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 76,271 | py | #
# PySNMP MIB module CTRON-AppleTalk-ROUTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-AppleTalk-ROUTER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:26:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
05be3c6193f89bc5f3be46293ad8f4dda8d7aff8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2551/60771/296110.py | 9c1d23a5339719691c0cae541b95c62c95ea2fb3 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #15
ori = input().split(" ")
N = int(ori[0])
M = int(ori[1])
lights = [False]*N
for i in range(0,M):
ori = input().split(" ")
a = int(ori[1])
b = int(ori[2])
if ori[0] == "0":
for j in range(a-1,b):
lights[j] = not lights[j]
if ori[0] == "1":
res = 0
for j in ran... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1f5efb06eab8edbd3e09147a821a534f8f2d7483 | 1154fa5ae6fe517151e41f5f4746d1bada23e1a5 | /scenes/cup_generator/model.py | 7e8f6d5861759736d796c1fb6a1e135ab6258a3d | [] | no_license | joaomonteirof/SMART_COUSP_Reconstruction | 9f7aac2eb08bc67f3d8b7e786ff66a5c1c9dadf4 | 79ea702d75875bec399721b04cdaecf4fc6a6a0e | refs/heads/master | 2023-09-04T00:05:20.981615 | 2021-10-13T17:26:10 | 2021-10-13T17:26:10 | 106,738,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Generator(torch.nn.Module):
def __init__(self, input_dim=128, num_filters=[1024, 512, 256, 128, 64, 32], output_dim=1):
super(Generator, self).__init__()
# Hidden layers
self.hidden_layer = torch.nn.Sequential()
for i in range(len(num_... | [
"joaomonteirof@gmail.com"
] | joaomonteirof@gmail.com |
c12730826a6aa9d5f5d486adc9b4fbd73d3e312c | 87b4518e55c0e465aba39d86e65ba56f56502198 | /css/postprocess.py | 787db97ecfb72ae1d5d3a86a4fc9aaf218d47c28 | [
"MIT"
] | permissive | Serkan-devel/m.css | 302831008d8949a2fb7b91565621b47dd638e38f | 3c0e3d7875bc9ab63c93322cc02cab62239804d7 | refs/heads/master | 2020-04-01T02:00:17.005772 | 2019-01-12T11:36:33 | 2019-01-12T11:36:33 | 152,761,732 | 0 | 0 | MIT | 2019-01-12T11:36:34 | 2018-10-12T14:20:51 | Python | UTF-8 | Python | false | false | 7,550 | py | #!/usr/bin/env python
#
# This file is part of m.css.
#
# Copyright © 2017, 2018, 2019 Vladimír Vondruš <mosra@centrum.cz>
#
# 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... | [
"mosra@centrum.cz"
] | mosra@centrum.cz |
664f09053f27f2b77899c5910bdf31676aa50d20 | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /boost/__init__.py | 5fcaf0454eb4a7d2110c8944fffced5eb4adc99e | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,999 | py | from collections import OrderedDict
import theano.tensor as T
from pylearn2.costs.cost import Cost
from theano.printing import Print
from pylearn2.expr.nnet import softmax_ratio
from pylearn2.models.mlp import MLP
from pylearn2.utils import block_gradient
from pylearn2.utils import safe_izip
from pylearn2.utils import ... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
3aca5990393a22c05a881749cc4244289bd6ecee | b7affc938e20e21a351cfa1465b10137c6ca914c | /twoslug/model/__init__.py | 5cb775b69a012b8f302a060213fae58aaefa5320 | [
"Apache-2.0"
] | permissive | aliles-heroku/twoslug | 83009ac378dde937e14c0e26642361c4088b1629 | f129b4ca2f54ab4efc81e4ae395abc172a23e2dd | refs/heads/master | 2016-09-06T15:24:20.350575 | 2014-08-04T03:21:12 | 2014-08-04T03:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from __future__ import absolute_import
from . import wordnet
from . import doge
from . import markov
| [
"aaron.iles@gmail.com"
] | aaron.iles@gmail.com |
7c0bf7ade1f8db725a4ef41dc22305288b4582ce | 2716d8e04c957aebc5137b3dbb719cbb31eaf013 | /user_extent/users/models.py | 74d53617f24544e6ce4de123d9e95b400466ebb0 | [] | no_license | anlaganlag/mini_proj_component | 01d5fdd641cbc2a5199865d64b21431603704bd1 | 1def0fc576bb422b6819bd2df56b8e7cd48d3368 | refs/heads/master | 2021-01-06T23:54:13.921612 | 2020-02-20T10:28:55 | 2020-02-20T10:28:55 | 241,518,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class CustomUser(AbstractUser):
pass
def __str__(self):
return self.username
| [
"tanjhu@163.com"
] | tanjhu@163.com |
24364854b0efa09b1fd0ed72288c66064dfb1353 | a2e3f4944076a9d25fd6e7aa30d0cda55c47ff18 | /template_dynamicloader/views.py | 2f66be35ba8cae440020eeac4d89c162fbdf329c | [] | no_license | redatest/Shakal-NG | fb62b58b3d4c7a6a236beed8efd98712425621f2 | d2a38df9910ec11b237912eefe1c1259203675ee | refs/heads/master | 2021-01-18T02:21:44.654598 | 2015-03-21T14:09:56 | 2015-03-21T14:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.views.decorators.http import require_POST
from template_dynamicloader.forms import ChangeTemplateHiddenForm
from template_dynamicloader.utils import switch_template
@require_POST
def change(r... | [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
6a138ba973cb0c3445c9e304eb69802cea8a51f1 | 34b76d94ff323e65e76be9bef71379e73046ad1f | /sacred_runs_final/_sources/run_sacred_926b2f1738101acc8665dff2324ae499.py | 44541df559402ca43e56054e8681d454cc6dacc7 | [
"MIT"
] | permissive | lorelupo/baselines | 5324e3f05615789608e6119ae7395b77973cbe8c | 8b6df664ecb714e77703f8fd9c7ea3841048bb28 | refs/heads/master | 2020-04-29T20:19:34.256241 | 2019-02-28T19:18:21 | 2019-02-28T19:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,135 | py | #!/usr/bin/env python3
# noinspection PyUnresolvedReferences
'''
This script runs rllab or gym environments. To run RLLAB, use the format
rllab.<env_name> as env name, otherwise gym will be used.
export SACRED_RUNS_DIRECTORY to log sacred to a directory
export SACRED_SLACK_CONFIG to use a slack plugin
... | [
"nico.montali24@gmail.com"
] | nico.montali24@gmail.com |
b25ce7f623ec6fdde3d149c689911c96dd5e5206 | 471763d760e57f0487d5f032d261674c6fb732c8 | /pymoo/experimental/my_test.py | c374176b5538cd3516ee40931e823ed8ac6f23c1 | [
"Apache-2.0"
] | permissive | s-m-amin-ghasemi/pymoo | 7b583834d2f6dea26592001eb59e45472dadd490 | 74123484b0f72d601823bcda56f9526ad12e751a | refs/heads/master | 2020-05-02T09:55:31.641675 | 2019-03-04T19:24:37 | 2019-03-04T19:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from pymoo.operators.crossover.simulated_binary_crossover import SimulatedBinaryCrossover
from pymoo.operators.mutation.polynomial_mutation import PolynomialMutation
from pymoo.optimize import minimize
from pymoo.util import plotting
from pymoo.util.reference_direction import UniformReferenceDirectionFactory
from pymop... | [
"jules89@arcor.de"
] | jules89@arcor.de |
bfef3942212fd8787ff9a982dc557466875180f2 | 18c0f7dc356db08027472243ab19ed5ab98f5dcc | /script.module.placenta/lib/resources/lib/modules/unjuice.py | 9bd6d75cf13480440c43b5f5d3c66d523db1b25b | [
"Beerware"
] | permissive | parser4life/tantrumrepo | 8656ac06f18aa3e76b4c279de61ec11ee6a88d60 | 3b37145f4772409e538cbddb0b7aa23be525772a | refs/heads/master | 2020-03-08T04:48:30.025644 | 2018-04-01T02:21:16 | 2018-04-01T02:21:16 | 127,931,630 | 1 | 2 | null | 2018-04-03T15:46:42 | 2018-04-03T15:46:42 | null | UTF-8 | Python | false | false | 4,541 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @tantrumdev wrote this file. As long as you retain this notice you
# can do whatever you want wit... | [
"31803191+muaddibttv@users.noreply.github.com"
] | 31803191+muaddibttv@users.noreply.github.com |
192816a0aa4248471ba63ca120bc57733699c6ee | 4852046aed2588c7a359c4b805251fa953399b23 | /web/urls.py | bd18502d943190273fbe1e27349abd18c0f82e9d | [] | no_license | enasmohmed/Mobily-WebSite | 8cc11cc0e31d78da85029e8885c56b4ecc4d1e33 | dbab598ca36ccbadb15e37199b719b618b5c11f9 | refs/heads/master | 2020-08-08T12:08:23.169066 | 2019-10-26T20:24:51 | 2019-10-26T20:24:51 | 213,828,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """web URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"enasm2477@gmail.com"
] | enasm2477@gmail.com |
a33f00ae4c2d0a44e8d884798cff5199cbd63b9e | b4914b08ce57707a4f663403566b4e8e9b68d9a0 | /hofvideos/settings.py | cd8023eb92ad11c2702bd1d251e7218271c4a589 | [] | no_license | Harshvartak/halloffamevids | 9d47521ac9cafbcc1bbb8f049e64765d300bbf6c | 89bd7d3890feecd67ba293b0ab8d62ced491d025 | refs/heads/master | 2022-12-09T10:57:47.856072 | 2019-09-26T19:31:56 | 2019-09-26T19:31:56 | 211,171,960 | 0 | 0 | null | 2022-12-08T06:38:36 | 2019-09-26T20:02:38 | JavaScript | UTF-8 | Python | false | false | 3,326 | py | """
Django settings for hofvideos project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"vartak.harsh@gmail.com"
] | vartak.harsh@gmail.com |
825e5b112be413802be4e582a733b67f276cf6ad | 1ceb35da7b1106a4da4e8a3a5620d23a326a68e4 | /corticalmapping/scripts/post_recording/00_old/movie_multi_plane_single_channel_deepscope/within_plane_folder/090_get_neuropil_subtracted_traces.py | 551768f06dbf818c36c61b57bb1068b0fc1d1578 | [] | no_license | zhuangjun1981/corticalmapping | c3870a3f31ed064d77f209a08e71f44c375676a3 | 0ddd261b3993f5ce5608adfbd98a588afc56d20c | refs/heads/master | 2022-11-14T03:24:53.443659 | 2020-07-13T23:48:50 | 2020-07-13T23:48:50 | 84,975,797 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | import sys
import os
import h5py
import numpy as np
import corticalmapping.HighLevel as hl
import corticalmapping.core.FileTools as ft
import matplotlib.pyplot as plt
lam = 1. # 100.
plot_chunk_size = 5000
def plot_traces_chunks(traces, labels, chunk_size, roi_ind):
"""
:param traces: np.array, shape=[trac... | [
"junz@alleninstitute.org"
] | junz@alleninstitute.org |
bf50004145bd6d307ec066d1ad0794c4877ad04b | 849f05421d6becc6c9da70cb077dc356c3b4af0b | /addphoto/migrations/0002_auto_20200301_1602.py | 1aa115012e6672cc5efaab5d54635095ea376dff | [] | no_license | microStationCorp/faceshot | 63d632ff07b71c24b65577c926a28beb0e6ebd89 | 451e1a19f56a0da84f6290b2d6d15c0d8e60cb92 | refs/heads/master | 2021-02-06T20:08:35.427105 | 2020-03-03T07:16:25 | 2020-03-03T07:16:25 | 243,944,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.0.3 on 2020-03-01 10:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('addphoto', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='uploadedphoto',
name='image',
... | [
"sujanmondal916@gmail.com"
] | sujanmondal916@gmail.com |
7d503436d2d772f337fa170b88ce13e1e6d851f4 | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buy_top_fc_smart_20210204001749.py | e28c6f69964eb4311396f03581510b45098e4b0e | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # Buy top tickers from Financhill
import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market, equity_buy_limit
from tda.orders.common import Duration, Session
import tda
import os, sys
import time
from selenium import webdriver
import json
currentdir = os.path.dirname(os.path.realpa... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
aebd77ff3c559266ef4a5dce4c44cbc2bda85af3 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/build/turtlebot_gazebo/catkin_generated/pkg.develspace.context.pc.py | 76fa70e69fef0fcfde19f495cc341709a0f0e080 | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_gazebo"
PROJECT_SPACE_DIR =... | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
3484f514f3efa0f801ae3310b219f4923b7b871b | a98899845ed5dc112f50e2824082c8dc49941ed8 | /project/api/migrations/0033_session_is_invitational.py | 824057127393ceff2fd50eef9202d4ffbb3b6438 | [
"BSD-2-Clause"
] | permissive | talexb/barberscore-api | 9d6c48eca5233b530e2c02251b004b0b1d72c429 | 2320a75d9b49368f5eb1e00e5e5f32f5c79484a1 | refs/heads/master | 2021-01-15T11:57:34.970439 | 2017-08-07T14:42:57 | 2017-08-07T14:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-18 03:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0032_person_last_name'),
]
operations = [
migrations.AddField(
... | [
"dbinetti@gmail.com"
] | dbinetti@gmail.com |
81e6a970b801ccc37420106f206135876a43bc0c | 108cc1350623d1a30c3e08f357267e516f254ae9 | /test/test_sgd_classifier.py | 245f73242df189c623eae7a1182296f5e0ab0fdb | [
"CC-BY-SA-4.0",
"Apache-2.0"
] | permissive | agoyal3/cs224u | 1afd02948f5abb08636d599c4a9266c2cb5d7447 | f565857a79f09be1b8cfb5c76f8d5731e159939f | refs/heads/master | 2023-08-11T21:15:25.947141 | 2021-09-24T07:05:05 | 2021-09-24T07:05:05 | 401,109,252 | 0 | 0 | Apache-2.0 | 2021-09-07T20:49:11 | 2021-08-29T18:04:38 | Jupyter Notebook | UTF-8 | Python | false | false | 2,453 | py | import pytest
from sklearn.datasets import load_digits
from sklearn.metrics import accuracy_score
from sklearn.model_selection import RandomizedSearchCV, cross_validate
from sklearn.model_selection import train_test_split
import utils
from np_sgd_classifier import BasicSGDClassifier
from np_sgd_classifier import simpl... | [
"cgpotts@gmail.com"
] | cgpotts@gmail.com |
b947ef80ac45577d2b326521537502f06ee36992 | c981bbd7434b814f7968b9ba0e2235f82d7874b4 | /Modellbewertung und Hyperparamter-Abstimmung/roc_curve.py | 965aee0f54da0a3269c211ea4d38a0b7714aeadd | [] | no_license | foxriver76/MachineLearningRaschka | e1ef187f5b2b7b9d8f4edf834451e1aa5f6b9d70 | a2940fa6c187a5223fcc789d8a7f1ccb5d7dc3e2 | refs/heads/master | 2021-03-27T11:53:44.684929 | 2018-05-13T09:03:20 | 2018-05-13T09:03:20 | 104,927,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 31 12:13:57 2017
@author: moritz
"""
import pandas as pd
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler, LabelEncoder
from sklearn.model_selection import train_test_split, StratifiedKFold
import matplotlib.py... | [
"moritz.heusinger@gmail.com"
] | moritz.heusinger@gmail.com |
5c1b7a79524ef0a7a58892297255840adff3bca9 | aa13e1d93b7a8017e1e610a900bd05f6df91604f | /codechef/contests/APRIL17/SMARKET/test.py | 9ce7c7e4717b87e49c329c52f811ca151af5949b | [] | no_license | laveesingh/Competitive-Programming | 3ce3272eab525635f9ce400f7467ee09de8b51df | 41047f47c23bc8572a1891e891a03cc3f751e588 | refs/heads/master | 2021-01-24T09:51:00.332543 | 2017-10-30T17:11:48 | 2017-10-30T17:11:48 | 52,956,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | import random
def case():
q = random.randint(1,100000)
a = []
for i in xrange(random.randint(1,10000)):
a.extend([random.randint(1,30)]*random.randint(1,15))
n = len(a)
print n,q
for s in a: print s,
print
for i in xrange(q):
x = random.randint(1,n)
y = random.ra... | [
"laveechaudharytheone@gmail.com"
] | laveechaudharytheone@gmail.com |
bc515c0993495b2e5a539a3fda11dd20316f2e87 | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /homeassistant/components/motion_blinds/config_flow.py | d861c989ee0e2c19d2a4eef6e23cd33e93f2c8c3 | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 6,137 | py | """Config flow to configure Motion Blinds using their WLAN API."""
from __future__ import annotations
from typing import Any
from motionblinds import MotionDiscovery
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components import dhcp
from homeassistant.const import CONF_API_KE... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
7138157a99f990cabe7b6d92c931997d3c4c9092 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/power/tel/lab/ensure_valid_calibration_table_test.py | 76eb4dbd4acd38d244719fc813c3d683256c7892 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | #!/usr/bin/env python3
#
# Copyright 2019 - The Android Open Source Project
#
# 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
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
c406c4fa44ef9faa6c952d4cf2179d081e449de0 | e1f5ae5fb62eac4cd87eac807e57321d895a6c48 | /boards/tests/test_view_reply_topic.py | 508a0a252fcdcb4c189740fe6b94398761a0d94b | [] | no_license | Abepena/django-boards | 5c1eebce615ff41e75a32cd46ec10228f0eff6c6 | 22aa237f9f19d04ddeb2284cd8f066563d6bc1b1 | refs/heads/master | 2020-03-24T22:08:54.894285 | 2018-08-10T16:29:39 | 2018-08-10T16:29:51 | 143,059,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | from django.test import TestCase
from django.contrib.auth.models import User
from django.urls import reverse, resolve
from ..models import Board, Topic, Post
from ..forms import PostForm
from ..views import reply_topic
class ReplyTopicTestCase(TestCase):
"""
Base Test for all other Test Cases with this page
... | [
"pena.abe@gmail.com"
] | pena.abe@gmail.com |
3101499783426029239417ff8d62a287c447d05e | 58a4e136b6759d9cc81a895dae6f536c6a125ecf | /poorsmantwitter/wsgi.py | 92942c392dc65bd30a1716de81dcc46d4c255c6d | [] | no_license | JohnnyFang/django-api-vuejs | d833866a1b86757ed7b6301984f70f39a1cadfae | 80edc54740f46866cc938d1a5d190d71110711ad | refs/heads/master | 2020-03-29T04:31:47.018835 | 2018-09-20T02:06:03 | 2018-09-20T02:06:03 | 149,535,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for poorsmantwitter project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"fangdejavu@gmail.com"
] | fangdejavu@gmail.com |
7eaeded100089b486b8f923c64538f6f48c2e19b | 420f9ae4ffa771ba126578a24e4347920556bf99 | /lexor/command/to.py | 4c3995058a0825285bfaf39298e00ba3bc475157 | [] | no_license | jmlopez-rod/lexor | 4bdb73a6ee482dcdeecbc17526869517b3f95b9e | 7b16b586b18f3724c3b1c2bc2ecab2490dc3a0f7 | refs/heads/master | 2020-12-24T17:35:19.863505 | 2014-09-28T07:10:29 | 2014-09-28T07:10:29 | 24,552,903 | 0 | 1 | null | 2015-09-22T01:00:16 | 2014-09-28T07:13:42 | Python | UTF-8 | Python | false | false | 11,721 | py | """to
Execute lexor by transforming a file "to" another language.
"""
import re
import os
import sys
import textwrap
import argparse
from lexor.command import config, error, warn
from lexor.core.parser import Parser
from lexor.core.writer import Writer
from lexor.core.converter import Converter
DEFAULTS = {
'pa... | [
"jmlopez.rod@gmail.com"
] | jmlopez.rod@gmail.com |
88fdacb8b8fd7a0424e1685a2102d2689d162abd | 232b2e8881a4ba693bea940022d68cc22caeccbb | /virtual/lib/python3.6/site-packages/pylint/test/input/func_block_disable_msg.py | 5ed690ebfd0ad61e819ce5be60262d24f8c1f576 | [
"MIT"
] | permissive | bryomajor/my-developer-life | b52ea3cd39e5d8226c51c700da32f5daf2489dc7 | 8332e1da4d24511255b1b7fc02f94ae4352f87a1 | refs/heads/master | 2022-12-08T08:18:40.266324 | 2019-10-29T13:40:44 | 2019-10-29T13:40:44 | 217,529,308 | 1 | 2 | MIT | 2022-12-08T06:47:28 | 2019-10-25T12:31:00 | Python | UTF-8 | Python | false | false | 4,722 | py | # pylint: disable=C0302,bare-except,print-statement
"""pylint option block-disable"""
from __future__ import print_function
class Foo(object):
"""block-disable test"""
def __init__(self):
self._test = "42"
def meth1(self, arg):
"""this issues a message"""
print(self)
def meth... | [
"bryomajor@gmail.com"
] | bryomajor@gmail.com |
618b82c84c0b4bb643b5a6a82e5c9447552a00b4 | fd3b242c83a65edb85d3ad27c67172109fb5b0db | /venv/lib/python2.7/site-packages/kubernetes/client/models/v1_cinder_persistent_volume_source.py | 73bcff8a2e312ac36248a78ca6ce04aeb15a998b | [] | no_license | mainak90/hvac-openshift-feeder | a0946d89bd79e19881113effe3305499d80df4a8 | 730689dd7feca354fc09dabe3510333c9557e979 | refs/heads/master | 2020-12-08T07:39:58.125243 | 2020-04-26T19:49:40 | 2020-04-26T19:49:40 | 232,927,203 | 1 | 0 | null | 2020-01-09T23:45:08 | 2020-01-09T23:37:41 | Python | UTF-8 | Python | false | false | 6,790 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.13.9
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"mainak90@gmail.com"
] | mainak90@gmail.com |
869691689426d6cb7685d75ef8632d92cfda512e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/AVAYA-WLAN-MIB.py | b600cf2b3247fa4d11241bea5311fa1fd388088c | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 722,741 | py | #
# PySNMP MIB module AVAYA-WLAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AVAYA-WLAN-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:32:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
eeaecaef2aa86b78b91e226879df507b600fbaa2 | e28009b0a4584e8d128ed6fbd4ba84a1db11d1b9 | /724.Find Pivot Index/724.Find Pivot Index.py | e2f3a7351cebe7b37a64abc1530fec85170e3a81 | [] | no_license | jerrylance/LeetCode | 509d16e4285296167feb51a80d6c382b3833405e | 06ed3e9b27a3f1c0c517710d57fbbd794fd83e45 | refs/heads/master | 2020-12-02T23:10:27.382142 | 2020-08-02T02:03:54 | 2020-08-02T02:03:54 | 231,141,551 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # LeetCode Solution
# Zeyu Liu
# 2019.3.25
# 724.Find Pivot Index
from typing import List
# method 1 slice切片遍历,极慢
class Solution:
def pivotIndex(self, nums: List[int]) -> int:
for i in range(len(nums)):
if sum(nums[:i]) == sum(nums[i+1:]):
return i
return -1
# transf... | [
"noreply@github.com"
] | jerrylance.noreply@github.com |
a4339549ff121a3716ac714438184f983ddea0d6 | 33da2094a944e4333ea76b04c3c6078cf643b1dc | /tyler_crowdboticstest_155/settings.py | 3d7ce2c30ec2503a84c8fca167abba0fe7ab3ab5 | [] | no_license | TylerCrowdboticsTest/tyler-crowdboticstest-155 | 3f72a9e63f63d827379bf709b2baf6b3776113e6 | cc063c566acf36c353a4129ab21ff265d75fb163 | refs/heads/master | 2020-03-22T04:12:50.631988 | 2018-07-02T18:47:42 | 2018-07-02T18:47:42 | 139,481,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,143 | py | """
Django settings for tyler_crowdboticstest_155 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settin... | [
"tyler@crowdbotics.com"
] | tyler@crowdbotics.com |
488685056f08db0538589e4fdee347e07b5f51ef | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3340.py | 943d402779d7cc0f57243fa17da494fa75990ae5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,749 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
1c0a5d1b35fec3aea62c94f8bbf9b9c3a2720fbb | 9719df2dc131aa1189acef7273bee090290becd6 | /Chapter 11/E6.py | e4dd52107ac0dc81baf55df8f39f90d0cbb908ec | [
"MIT"
] | permissive | hanzhi713/thinkcs-python3-solutions | df72e9d76779a5ffb9a8f9a9316c672a021feece | 290b34df7d9c7f45daebd1af6017a03828ec8eb4 | refs/heads/master | 2020-03-31T10:03:03.301775 | 2018-10-08T17:41:10 | 2018-10-08T17:41:10 | 152,120,690 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | def scalar_mult(s, v):
resul = []
for item in v:
resul.append(item * s)
return resul
print(scalar_mult(5, [1, 2]))
| [
"hanzhi713@163.com"
] | hanzhi713@163.com |
0f3add105d1072828de995c41fe4f79d5c9ec94f | 4d330238c7eb97fac95f3674ab4ddb5114fdf3d7 | /biosteam/units/auxiliary.py | f446902fd6363ba65c9a0adae2cd4ba9307fa988 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"MIT"
] | permissive | BioSTEAMDevelopmentGroup/biosteam | d064c7d5a16d79a966caa68ed3f4cca089f9c49c | 0501214b7e7fb16b89d1e45c94938b0e08b1331f | refs/heads/master | 2023-08-20T04:47:10.816994 | 2023-08-12T19:22:20 | 2023-08-12T19:22:20 | 164,639,830 | 115 | 29 | NOASSERTION | 2023-06-10T15:56:37 | 2019-01-08T12:02:16 | Python | UTF-8 | Python | false | false | 4,071 | py | # -*- coding: utf-8 -*-
"""
This module contains functions for adding auxliary unit operations.
"""
import biosteam as bst
__all__ = ('Auxiliary',)
class Auxiliary:
"""Abstract class for light-weight auxiliary unit. The class should
compute all results during initialization."""
__slots__ = (
... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
f389441237396496a1f375d5ed95c01c58064c1e | 13724823af94e5e5351ffa42ca896397f12f1f05 | /install/lamachine/lib/python3.5/site-packages/clam/common/data.py | 5e35a55f97e5b69f4ff27117d419bdb6913041f5 | [] | no_license | AymanYac/Neonec-Deep-Classsifier | 21e00cb0c5561f4ac22968f748ada0aa299e0a94 | a7978f434cc09d9e00a7df5d391bae77daf17637 | refs/heads/master | 2022-06-08T12:44:10.203386 | 2018-07-06T15:28:00 | 2018-07-06T15:28:00 | 139,996,406 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107,269 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
###############################################################
# CLAM: Computational Linguistics Application Mediator
# -- CLAM Data API --
# by Maarten van Gompel (proycon)
# https://proycon.github.io/clam
#
# Centre for Language and Speech Technology / ... | [
"root@Razer-Stealth.localdomain"
] | root@Razer-Stealth.localdomain |
8d949e06450535d4290d453381f9fea6c09f6263 | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/leetcode/2222/hyo.py | c1b25c1cdff34ac62d6631e0c46197bc05b08274 | [] | no_license | wisest30/AlgoStudy | 6819b193c8e9245104fc52df5852cd487ae7a26e | 112de912fc10933445c2ad36ce30fd404c493ddf | refs/heads/master | 2023-08-08T17:01:12.324470 | 2023-08-06T11:54:15 | 2023-08-06T11:54:15 | 246,302,438 | 10 | 17 | null | 2021-09-26T13:52:18 | 2020-03-10T13:02:56 | C++ | UTF-8 | Python | false | false | 381 | py | class Solution:
def numberOfWays(self, s: str) -> int:
right_cnts = Counter(s)
left_cnts = Counter()
ret = 0
for c in s :
right_cnts[c] -= 1
if c == '0' : ret += left_cnts['1'] * right_cnts['1']
else : ret += left_cnts['0'] * right_cnts['0... | [
"noreply@github.com"
] | wisest30.noreply@github.com |
052bbab1f6d426719015437fad0b7bdf83bbc0ac | 648e5ea6722db2f29806e24f11cf169257dfc1c7 | /blogsadmin/migrations/0005_auto__add_field_position_group.py | 0ad40ed7325a477fce46b6380adef8c7a5a32b72 | [] | no_license | cash2one/doorscenter | 30d4f65e3fb57c417df3f09d7feab721d8425faa | d2771bf04aa187dda6d468883a5a167237589369 | refs/heads/master | 2021-05-27T15:38:56.219907 | 2012-06-20T05:38:15 | 2012-06-20T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | 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):
# Adding field 'Position.group'
db.add_column('blogsadmin_position', 'group', self.gf('django.db.models.fi... | [
"alex@altstone.com"
] | alex@altstone.com |
47a97ab6d8d5f5548aebdd21309a93628a5ddc13 | b9deb23923e6b4625ef04993b66d912594815a4c | /sftgan_handler.py | 0211a66576337831f7602d0c65fc1e05907207de | [] | no_license | previtus/SuperSuperSuperResolution | 4491ae9ab9269a0be9a3fc5a3d47a5b72b09f5b0 | 98ef3017bcf1da4f73bedb29574d00af8f895cab | refs/heads/master | 2021-11-18T20:01:27.757712 | 2021-09-17T13:22:35 | 2021-09-17T13:22:35 | 253,820,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,176 | py | import os
import glob
import numpy as np
import cv2
import torch
import torchvision.utils
from os import listdir
from os.path import isfile, join
import sys
sys.path.append(r'SFTGAN/pytorch_test/')
#from SFTGAN.pytorch_test import architectures as arch
#from SFTGAN.pytorch_test import util as util
import architectur... | [
"previtus@gmail.com"
] | previtus@gmail.com |
ecf372af2d6cf157af07fc00c931f935f1a252c8 | 696ac453ee30865980a9bd5a6fc25a1baa0f32ec | /ssd/models/ssd512.py | 4aae987f027ee31be62081601a30161af0d183f9 | [
"MIT"
] | permissive | jjjkkkjjj/pytorch_SSD | b420f82c9be0de641b0da2100ee7f399b9d595bd | 4082ea745e0ca3a95cf73a89d824cd11ceb7c180 | refs/heads/master | 2021-06-12T21:35:50.536971 | 2020-06-25T15:05:28 | 2020-06-25T15:05:28 | 254,406,062 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,406 | py | from ..core.layers import *
from .base import SSDvggBase, SSDTrainConfig, SSDValConfig, load_vgg_weights
from ..core.boxes import *
from torch import nn
class SSD512(SSDvggBase):
def __init__(self, class_labels, input_shape=(512, 512, 3), batch_norm=False,
val_config=SSDValConfig(val_conf_thresh... | [
"kado_89_ssp_jun@yahoo.co.jp"
] | kado_89_ssp_jun@yahoo.co.jp |
669f9df4e9dd7d4445d619a9df31513eff7f9760 | 2aed68d1ee14eb3fc344fe1e0db99b20f0c9a166 | /xnr/twitter/feedback_like.py | 1eb22b5a4e7e5a77903c88e07cd9307c7264e97f | [] | no_license | zhhhzhang/xnr1 | a8ab151d99e74124eae2ec15c61281a32cb9ce8d | bfa621916c9a787bcdff4573a06d12056e25c556 | refs/heads/master | 2020-03-19T04:56:22.330912 | 2018-05-30T12:00:12 | 2018-05-30T12:00:12 | 135,883,486 | 0 | 1 | null | 2018-06-03T07:35:36 | 2018-06-03T07:35:35 | null | UTF-8 | Python | false | false | 2,408 | py | #!/usr/bin/env python
#encoding: utf-8
from launcher import Launcher
from Elasticsearch_tw import Es_twitter
import time
class Like():
def __init__(self, username, password, consumer_key, consumer_secret, access_token, access_secret):
self.launcher = Launcher(username, password, consumer_key, consumer_secret, acce... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
0375651712e4ca4f0a688682437e8c6a0263b53c | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/virtualenv/info.py | d93b549be167f5959986545dde548e4456d6340c | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | from __future__ import absolute_import, unicode_literals
import logging
import os
import platform
import sys
import tempfile
IMPLEMENTATION = platform.python_implementation()
IS_PYPY = IMPLEMENTATION == "PyPy"
IS_CPYTHON = IMPLEMENTATION == "CPython"
PY3 = sys.version_info[0] == 3
PY2 = sys.version_info[0] == 2
IS_WI... | [
"muhammadabdullah@wanclouds.net"
] | muhammadabdullah@wanclouds.net |
c385ced724613b09d739b2c164df6dc0a7c9fb32 | 6fe8250e67e46808a0f297abd38b49f65050336d | /tests/integration/__init__.py | 13b945a3c4201a757520391da34446dd3f96baf2 | [] | no_license | pitymaia/pluserable | 854fb6f220e744de87126f6a3e6429f8d1c60546 | 7a7656e66c894bc7981d6193354357014b3307c3 | refs/heads/master | 2020-08-31T08:37:45.917498 | 2019-10-22T20:23:17 | 2019-10-22T20:23:17 | 218,649,739 | 0 | 0 | null | 2019-10-31T00:09:41 | 2019-10-31T00:09:40 | null | UTF-8 | Python | false | false | 1,152 | py | """An integration test goes through several layers of production code.
It accesses a database, so it is slower than a unit test.
"""
from bag.sqlalchemy.tricks import SubtransactionTrick
from kerno.web.pyramid import IKerno
from pyramid import testing
from sqlalchemy.orm import sessionmaker
from tests import AppTest... | [
"nandoflorestan@gmail.com"
] | nandoflorestan@gmail.com |
40a96d6da20ca24cb48bf2ecfa5d1d8e91736e5c | 787ca5f82814a58c63cf3d8c0ec02082c40420de | /sbfury/golpe.py | 44f94c69909c812085dd0cff319e7226e67c4fad | [] | no_license | hugoruscitti/sbfury | 72e586354b7cb88532bcfbe5705a66b1008710cb | 474ce8304c45e63214184cde50f2976724fd8455 | refs/heads/master | 2020-06-29T19:03:25.284388 | 2013-01-02T04:15:09 | 2013-01-02T04:15:09 | 4,811,263 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | # -*- encoding: utf-8 -*-
# Shaolin's Blind Fury
#
# Copyright: Hugo Ruscitti
# Web: www.losersjuegos.com.ar
import pilas
from configuracion import DEPURACION
import efecto_golpe
import random
class Golpe(pilas.actores.Actor):
"""Representa un golpe (invisible) que un actor emite a otro."""
def __init__(self,... | [
"hugoruscitti@gmail.com"
] | hugoruscitti@gmail.com |
01509e3cb94f4932fe35bb4db8fbf15445461508 | 81eceea57d570fa1f9f6468875b1b06b8de9f0f0 | /.history/block_20200624172716.py | ca5c135349d1728a51d30bcf28a737626975d11e | [] | no_license | digg2414/python-blockchain | fe9cdab754123eddef660c39ffb4c0c6b0e99523 | 36c4df03bdd71dbd58663ee4b16f6a72f02d401f | refs/heads/master | 2022-11-05T01:08:44.229492 | 2020-06-24T23:11:41 | 2020-06-24T23:11:41 | 274,786,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import time
def mine_block(last_block, data):
"""
Mine a block based on the last_block and the data.
"""
times_stamp
class Block():
"""
Block: a unit of storage.
Store transactions in a blockchain that supports a cryptocurrency.
"""
def __init__(self, timestamp, last_hash ,dat... | [
"JHarold1241@outlook.com"
] | JHarold1241@outlook.com |
f5f7b157ea9d5a2354c0805cea334cfac3408e7b | 0a4031c062c098811c3b419b94ccf96724439107 | /json-quiz/3.py | 3792c2d4d8cd12eef82fce1a96bcc06d32b59ffc | [] | no_license | dflatow/compjour-hw | d934ac6b9d22ca923100d023809fa32103e8e74a | 4a26854769c31536247acb41b35f32fb55ab1e59 | refs/heads/master | 2020-05-05T03:17:49.699470 | 2015-06-02T02:15:55 | 2015-06-02T02:15:55 | 33,497,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import requests
import json
data_url = "http://www.compjour.org/files/code/json-examples/maps.googleapis-geocode-mcclatchy.json"
# fetch the data file
response = requests.get(data_url)
text = response.text
# parse the data
data = json.loads(text)
print('A.', data['results'][0]['formatted_address'])
print('B.', data['s... | [
"daflatow@gmail.com"
] | daflatow@gmail.com |
588fd89ceb2c26f8185620167f76a654f48d4862 | 54bd004dd18f23b46fd75288823977a93d6c7c9d | /Python_basics/English_poet.py | 25376846330552643db0128f53300bf3acfbf400 | [] | no_license | Gagangithub1988/Python | 13f914a200f6f4750c1b7da1467ca7e3f48814d0 | 8c9ba1902ac45841fd3145d49b08547420f15f2d | refs/heads/master | 2022-11-03T22:12:51.799829 | 2020-06-20T06:46:45 | 2020-06-20T06:46:45 | 273,642,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | print('Twinkle, twinkle, little star,\n\tHow I wonder what you are! \n\t\tUp above the world so high, \n\t\tLike a diamond in the sky. \nTwinkle, twinkle, little star, \n\tHow I wonder what you are') | [
"noreply@github.com"
] | Gagangithub1988.noreply@github.com |
a8777de0fff2f753f2a10440eda5dc07631663cd | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/stream/handlers/dataflow_yaml_execute_log.py | ec10a68c37c3a15e1547efc90d0f256f3089bb28 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
c5d0d0c338ada160cfe71dbf39008f8f29b820c2 | b347bc4b850dee4a8a9a171b563a3f31230ce1c7 | /sktime/transformations/series/detrend/_deseasonalize.py | a0bab72194a91c2333d9664f368666d36ad498a6 | [
"BSD-3-Clause"
] | permissive | sktime/sktime | 5963962df338c5931a2f9f1794d1203c50ddc27e | 70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f | refs/heads/main | 2023-08-22T18:20:08.022950 | 2023-08-22T15:24:39 | 2023-08-22T15:24:39 | 156,401,841 | 1,117 | 268 | BSD-3-Clause | 2023-09-14T20:44:21 | 2018-11-06T15:08:24 | Python | UTF-8 | Python | false | false | 21,903 | py | #!/usr/bin/env python3 -u
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Implements transformations to deseasonalize a timeseries."""
__author__ = ["mloning", "eyalshafran", "aiwalter"]
__all__ = ["Deseasonalizer", "ConditionalDeseasonalizer", "STLTransformer"]
import numpy as np
import pa... | [
"noreply@github.com"
] | sktime.noreply@github.com |
a5f0b3191bcadf185372843a5c817ae11372a54b | 146db0a1ba53d15ab1a5c3dce5349907a49217c3 | /omega_miya/plugins/nbnhhsh/__init__.py | 7866c153d40576e1b4b45923a629b974818a5e08 | [
"Python-2.0",
"MIT"
] | permissive | hailong-z/nonebot2_miya | 84d233122b2d785bfc230c4bfb29326844700deb | 7d52ef52a0a13c5ac6519199e9146a6e3c80bdce | refs/heads/main | 2023-03-26T14:59:31.107103 | 2021-03-09T17:01:08 | 2021-03-09T17:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | import re
from nonebot import on_command, export, logger
from nonebot.typing import T_State
from nonebot.adapters.cqhttp.bot import Bot
from nonebot.adapters.cqhttp.event import GroupMessageEvent
from nonebot.adapters.cqhttp.permission import GROUP
from omega_miya.utils.Omega_plugin_utils import init_export
from omega_... | [
"ailitonia@gmail.com"
] | ailitonia@gmail.com |
29d68c117848a99093caea9576f255c3fd233bb3 | c7fc1265dd09cae456c978c09643811bf3aa89d7 | /mileage_cal.py | 722bfc599c73d4858c72caed5ac2bbc36aa3fabd | [] | no_license | chandraprakashh/Data_Handling | e136c6bc188506ca6660becd434d5a17bed8e199 | 59f43288dea379f8fe0bb0fe01b17d0e5e99e057 | refs/heads/master | 2020-07-18T18:11:25.908312 | 2020-01-13T10:24:51 | 2020-01-13T10:24:51 | 206,290,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
"""
1.Code Challenge
Name:
Gas Mileage Calculator
Filename:
mileage_cal.py
Problem Statement:
Assume my car travels 100 Kilometres after putting 5 litres of fuel.
Calculate the average of my car.
... | [
"noreply@github.com"
] | chandraprakashh.noreply@github.com |
4abd4f456948302874dfdc97f41babf31670d96a | 4786fe9537fbcb50b7490f7f95624e9c8589801f | /ex21a.py | b80932994d975a1f5b8f8cfd3bbc785b73fc603b | [] | no_license | dbialon/LPTHW | 075e5a82c541dd277ee30f5ebbc221e30c63e29e | 3e6674cded2bcd90d4a098efd00a71abeb33bdc5 | refs/heads/master | 2022-06-07T02:14:18.180807 | 2020-05-02T13:30:52 | 2020-05-02T13:30:52 | 259,911,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | def add(a, b):
print(f"ADDING {a} + {b}")
return a + b
def subtract(a, b):
print(f"SUBTRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return a / b
print("""
This programm will execute the... | [
"dbialon79@outlook.com"
] | dbialon79@outlook.com |
8f45532721df9ce375e512eac8e8b5d2f48bbfcc | fe2eef159f7e75b6a3b4ecbacab53a19df33b8eb | /setup.py | 3c3eff7248dd676186f2778a2b4149610c6dc6e0 | [
"MIT"
] | permissive | a1fred/django-model-render | 6b9572ff26ced93e6de0aa15ac97fef1217ebeba | 0912b2ec9d33bada8875a57f7af9eb18d24e1e84 | refs/heads/master | 2020-09-12T19:23:57.847976 | 2017-01-02T20:49:20 | 2017-01-02T20:49:20 | 32,887,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
requirements = [
'django>=1.4',
]
setup(
name='django-model-render',
version='0.5',
description='Django models extension that allows define default model templates',
author='a1fred',
author_email='demalf@gmail.com',
li... | [
"demalf@gmail.com"
] | demalf@gmail.com |
c174a2e44b99cb6349ff944069b1b602555b46c7 | 892c35f72f46f145c3f3860c1c29f1f4503ef9a6 | /search/search.py | fb2fa2520ad49d842fb5e069fbe0011cfdf4eb90 | [] | no_license | pymmrd/tuangou | aaa2b857e352f75f2ba0aa024d2880a6adac21a8 | 8f6a35dde214e809cdd6cbfebd8d913bafd68fb2 | refs/heads/master | 2021-01-10T20:31:55.238764 | 2013-11-13T13:53:53 | 2013-11-13T13:53:53 | 7,911,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import re
import string
from django.db.models import Q
from django.conf import settings
from tuangou.search.models import SearchTerm
from tuangou.stats.utils import stats
from tuangou.utils.location import get_current_city
def store(request, q):
#if search term is at least three chars long, store in db
if len... | [
"zg163@zg163-Lenovo-IdeaPad-Y470.(none)"
] | zg163@zg163-Lenovo-IdeaPad-Y470.(none) |
326f5de126d44ed5c242cb25b5cef8c4788a9c97 | fffcc24d7c3fbadd615db1c2de632ebec72b92da | /cgi-bin/simpletemplate.py | 3551d703604abe395986350f77e0ad80b887ef96 | [] | no_license | kimihito/minpy | 35a5cf1596979e3bc57d6bfb6fcded03ae10f0d3 | 6273d43f65279d800a37a5dd9b34488d2cea54a1 | refs/heads/master | 2016-08-08T02:10:02.967527 | 2012-06-11T13:57:23 | 2012-06-11T13:57:23 | 4,147,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | #!/usr/bin/env python
# coding: utf-8
import re
if_pat=re.compile(r"\$if\s+(.*\:)")
endif_pat=re.compile(r"\$endif")
for_pat=re.compile(r"\$for\s+(.*)\s+in\s+(.*\:)")
endfor_pat=re.compile(r"\$endfor")
value_pat=re.compile(r"\${(.+?)}")
class SimpleTemplate(object):
"""
シンプルな機能を持つテンプレートエンジン
"""
def _... | [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
7f329a56f3c63d6f634c341fe1ee1a609f562304 | eef39fd96ef4ed289c1567f56fde936d5bc42ea4 | /BaekJoon/Bronze2/15969.py | 803573cbb6d19798b9968fcd14d2be7454bafc32 | [] | no_license | dudwns9331/PythonStudy | 3e17da9417507da6a17744c72835c7c2febd4d2e | b99b9ef2453af405daadc6fbf585bb880d7652e1 | refs/heads/master | 2023-06-15T12:19:56.019844 | 2021-07-15T08:46:10 | 2021-07-15T08:46:10 | 324,196,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # 행복
"""
2021-01-22 오전 1:37
안영준
문제
코이 초등학교에 새로 부임하신 교장 선생님은 어린 학생들의 행복감과 학생들의 성적 차이 관계를 알아보기로 했다.
그래서 이전 성적을 조사하여 학생 들의 시험 점수 차이 변화를 알아보려고 한다.
예를 들어서 2016년 학생 8명의 점수가 다음과 같다고 하자.
27, 35, 92, 75, 42, 53, 29, 87
그러면 가장 높은 점수는 92점이고 가장 낮은 점수는 27점이므로 점수의 최대 차이는 65이다.
한편 2017년 학생 8명의 점수가 다음과 같았다.
85, 42, 79, 95, 37, 11, 7... | [
"dudwns1045@naver.com"
] | dudwns1045@naver.com |
d830da1f9d9e07fe504090cca4bc6f96ec19b136 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/SsdataDataserviceRiskAntifraudscoreQueryResponse.py | eb88453a0ac5e908d0040c632adda75bafe8c3cc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class SsdataDataserviceRiskAntifraudscoreQueryResponse(AlipayResponse):
def __init__(self):
super(SsdataDataserviceRiskAntifraudscoreQueryResponse, self).__init__()
self._b... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
675dda5c8c83bf0f987ede0d78116c521d6932a4 | a6c0bb39fe1f5218094f9d8a728d32c7348414b8 | /timesformer_pytorch/timesformer_pytorch.py | dfbbfbb447de3d906549636f03dc5833d4f4c0ce | [
"MIT"
] | permissive | Willforcv/TimeSformer-pytorch | 042f23cd4e02e973fc0374579f18a4b529309edb | 4e4a60d4876a45cceddcf8af514eb39eac40ff96 | refs/heads/main | 2023-03-20T16:54:42.934377 | 2021-03-21T19:14:02 | 2021-03-21T19:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange, repeat
# classes
class RMSNorm(nn.Module):
def __init__(self, dim, eps = 1e-8):
super().__init__()
self.scale = dim ** -0.5
self.eps = eps
self.g = nn.Parameter(torch.ones(1))
... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
c8aa130be7fae098e4c52b4cee2c663da7e8857d | 50ba981bc65efea92f61c698cecfbbe3214a724e | /Django_DB_Backup/App/views.py | f634d2abf55cd3aa4e2af403c7b5c2c6d7ea4e24 | [] | no_license | shubhamjain31/demorepo | ff0a4283fc866ea94df1c340da430271daf93cb6 | 90639b8622e68155ff19bfec0bb6925b421f04cf | refs/heads/master | 2023-04-27T03:42:10.057387 | 2022-06-28T06:14:44 | 2022-06-28T06:14:44 | 229,792,545 | 1 | 0 | null | 2023-04-21T21:36:24 | 2019-12-23T17:04:22 | Python | UTF-8 | Python | false | false | 2,012 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from itertools import chain
from django.contrib.auth.models import User
from django.views.decorators.csrf import csrf_exempt
from django.core import serializers
from django.contrib.admin.utils import NestedObjects
from djan... | [
"sj27754@gmail.com"
] | sj27754@gmail.com |
29f5a4ba9b7219b748f52e07f89157085e7a71a9 | 60c39402b6c957e5dfae0c63b5d7af13d9ba9350 | /man_in_the_middle.py | 8bd0947f1e8e9f0ddc3b0bb140e90309fd35c323 | [] | no_license | palex88/deauth | 91747ac1a0143c7601351ebdd874b5e748380d06 | 70365da4841b75d46223cb84aa154705aa482fdb | refs/heads/master | 2020-03-10T23:39:30.274222 | 2018-05-07T05:38:47 | 2018-05-07T05:38:47 | 129,645,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,989 | py | # !usr/bin/env/python
#
# File: man_in_the_middle.py
# Author: Alex Thompson
# Github: palex88@github.com
# Python Version: 2.7
# Purpose: This script runs a man in the middle attack. It finds the local network IP and MAC addresses, then displays
# to the user all the devices connected to the netw... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
26bc1342180ebbe498f0c43171c93b41246741b6 | 8f4c691f190a1d4ffd4261ea6dca6a2d3a96284c | /csa/csa/doctype/coach/test_coach.py | 0237f9215f3d3c946814d85ca059dd549fb3f4eb | [
"MIT"
] | permissive | Jishnu70055/usermanagement | 57abb738160fb213acdc2c71b40244eae4b06cee | f7b526335c2b99899afac188696071fa35df09ca | refs/heads/master | 2023-09-03T17:30:50.147750 | 2021-10-21T13:27:38 | 2021-10-21T13:27:38 | 399,362,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # Copyright (c) 2021, s and Contributors
# See license.txt
# import frappe
import unittest
class TestCoach(unittest.TestCase):
pass
| [
"jishnudq70055@gmail.com"
] | jishnudq70055@gmail.com |
5a091ab107c4e5d163d242d119c57c1fbd321eb4 | 10ca8a1d04eb2d95b5153725366d1483a21ce085 | /src/svviz/__init__.py | 8eede553f204534eeb5465c2d5329bdb6e786fdb | [
"MIT"
] | permissive | apregier/svviz | b5c04620d47eee4b92e61c0549294c07ace06e2b | e3e0cbee3eda104199f70142d0fc9264d613f1f7 | refs/heads/master | 2021-01-17T18:32:56.835803 | 2015-10-29T21:49:24 | 2015-10-29T21:49:24 | 45,568,368 | 1 | 0 | null | 2015-11-04T21:24:32 | 2015-11-04T21:24:32 | null | UTF-8 | Python | false | false | 25 | py | __version__ = "1.3.3dev"
| [
"nspies@stanford.edu"
] | nspies@stanford.edu |
b2253842a0e9b8288ac8ee0d30df524f7b9ba0b0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /045_functions/011_function_introspection/_exercises/inspect — Inspect Live Objects/017_inspect_getclasstree_unique.py | ebbf5718b636badc01d294b99ee8331e6cc56fb7 | [] | 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 | 159 | py | # ______ i....
# ______ example
# f... inspect_getclasstree _______ 0
#
# print_class_tree(i___.getclasstree(
# |ex___.A ex____.B C D|
# u..._T...
# )) | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d1f1a5c53b69d2a328358b4ddb724f32f5a28fe3 | 072c282276d12df2d54826e56ab024ebe08923be | /dashboad/views.py | b8d96a160953d44ea9018057d5f531481f481508 | [] | no_license | ericniyon/Urmas | 4cf8a6b744cdd851e8814800a991fe49d4ac85d9 | 1a7403acd3b8c1a348700f9ef0f0fb7ce6f17af0 | refs/heads/master | 2020-09-09T11:01:08.346376 | 2019-11-11T17:43:01 | 2019-11-11T17:43:01 | 221,429,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,587 | py | from django.shortcuts import render, redirect ,get_object_or_404, render_to_response
from django.template import RequestContext
# from django.contrib.auth.models import User
from urmas_users.models import User
# from django.core.urlresolvers import reverse
from django.views.generic import TemplateView
from django.cont... | [
"niyoeri6@gmail.com"
] | niyoeri6@gmail.com |
fbe3f086830981b67b0ff4d35dbfd848f1e762ad | 9c4828f1caf252c49c16ee7c5d73353f7b820785 | /EducationaldataofBD/venv/main.py | 7ab1dbbc43bcb8d95d50371d680f2e2c8d018812 | [] | no_license | pronob1010/Data_Science_Project_with_Edu_data | 44459dd3d27f5fcba4f7a810671fe0e2e481b6c1 | a4c6d1ac430f332eff5435318c86e82e70e7d765 | refs/heads/master | 2022-12-26T12:08:59.221010 | 2020-10-08T15:14:43 | 2020-10-08T15:14:43 | 298,825,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import csv
country = pd.read_csv('C:\\Users\\prono\\PycharmProjects\\EducationaldataofBD\\venv\\dataset1.csv')
df = country.head(5900)
df = df.set_index(["EIIN"])
sd = df.reindex(columns=['DIVISION','INSTITUTE_TYPE','DISTRICT'])
print(sd)
print("--... | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
106d49eb14aff65452fe4cd74937e87eeea8b07e | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /115_testing/examples/Github/_Level_1/unittest-testsuite-example-master/app/foo_tests.py | d884126e6c468ffaf2c16c987e6331bddcc6897e | [] | 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 | 268 | py | # -*- coding: utf-8 -*-
import unittest
import foo
class TestFoo(unittest.TestCase):
def setUp(self):
self.FOO = foo.Foo()
def test_foo(self):
self.assertEqual(self.FOO.foo(),'foo')
if __name__ == '__main__':
unittest.main() | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
ef7be56fb5d9456857d6f97b035f6216b0f4c322 | 6f8906230f03d4d3616e7ad04d7a54c2e55fb3e8 | /profiles/migrations/0007_auto_20210201_1849.py | e1dc6a7fbb5379afc379eedc29eeb1f079b92e0b | [] | no_license | sanidhyaagrawal/tergum-shared | 8c45d95cb3510dc72f787c92fef4951c341ccc4c | 8ab3a527fcc6c400ca1e11d93353afea466366c7 | refs/heads/main | 2023-05-09T14:46:46.185172 | 2021-06-02T15:15:13 | 2021-06-02T15:15:13 | 342,639,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # Generated by Django 3.0.8 on 2021-02-01 13:19
from django.db import migrations, models
import profiles.models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0006_auto_20210127_2212'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"sanidhya7921@gmail.com"
] | sanidhya7921@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.