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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ea9b9d12aa2d29c8695d3633efd804228328fd3 | 498fcf34fa4482be5c9fefc488666e60edcf46c7 | /math/0x00-linear_algebra/100-slice_like_a_ninja.py | 528b04754521035294e7fdf6a8121f20db0302c4 | [] | no_license | MansourKef/holbertonschool-machine_learning | 7dbc465def04c311c1afb0e8b8903cbe34c72ad3 | 19f78fc09f0ebeb9f27f3f76b98e7a0e9212fd22 | refs/heads/main | 2023-03-12T16:18:08.919099 | 2021-03-05T09:42:09 | 2021-03-05T09:42:09 | 317,303,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/env python3
"""
np_slice.
"""
def np_slice(matrix, axes={}):
"""Slices a matrix."""
len_dic = len(axes)
args = []
list_axes = []
max_val = max(axes.keys())
for j in range(max_val + 1):
list_axes.append(j)
for i in list_axes:
if i in axes.keys():
sl =... | [
"2798@holbertonschool.com"
] | 2798@holbertonschool.com |
cb036973b6b10d9a97cf5c01c03aa9f66500336d | 77de000e7d9f11a5c00ec8f6a9502c9c772bbe65 | /paying_for_college/admin.py | c20f0c8dd6e545bd09c7cbbdf82b523da4dd7fad | [
"CC0-1.0"
] | permissive | mistergone/college-costs | 5081ceedfd2bb560adfb6ac412471d79dc3e4b80 | 7fcb9155d23f363d7d1a22da4df8887996c4b8a6 | refs/heads/master | 2021-01-17T07:52:45.351978 | 2016-05-27T18:21:01 | 2016-05-27T18:21:01 | 45,491,267 | 0 | 0 | null | 2015-11-03T19:45:04 | 2015-11-03T19:45:04 | null | UTF-8 | Python | false | false | 1,661 | py | #!/usr/bin/env python
from __future__ import absolute_import
from django.contrib import admin
from .models import School, Program, Alias, Nickname, Contact, Disclosure
from .models import BAHRate, Feedback, Worksheet, ConstantRate, ConstantCap
class DisclosureAdmin(admin.ModelAdmin):
list_display = ('name', 'inst... | [
"higs4281@gmail.com"
] | higs4281@gmail.com |
5666f9c55f3024b927bcbc8e0fdb60ceb72db8de | 12485bb945ab8af6ff6a5f3d9d4c542a7bcf95f8 | /server/src/uds/services/Xen/xen_client/__init__.py | 8c47e66b14c2d59e66552db5c9142effdefdc5b3 | [] | no_license | morfeuj/openuds | 6ef0c4bed624def0090efa6abdd2600b9be81a8b | 26e429019e5fe5b01ee1a476c879d8f8333b0ab0 | refs/heads/master | 2020-12-15T15:11:33.598430 | 2020-01-20T16:42:33 | 2020-01-20T16:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,495 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2014-2019 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notic... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
efa9169a5663a0c34cd035eaf9a6c8eb588d6625 | 0485a490f466bd1d02eaae96d277888781208c0e | /tests/single_instruction_translation_validation/mcsema/register-variants/xaddb_r8_r8/Output/test-z3.py | 0f72e6bf891b173f5c8d4ce6b1ee4ac725000960 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | Mthandazo42/validating-binary-decompilation | c0e2d54cd79e609bfa35802975bddfa52e646fad | c0fcd6f099e38195dcbbac9e8c13a825865c5cb5 | refs/heads/master | 2022-11-11T13:18:13.033044 | 2020-06-25T05:49:01 | 2020-06-25T05:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,327 | py | #############################################
######## Auto Generated Proof Scripts #######
#############################################
import z3
import sys
status=True
test_name="UnK"
if(len(sys.argv) > 1):
test_name = sys.argv[1]
def solve(msg, lvar, xvar, s):
global status
s.set("timeout", 60000)
res =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
f4bfb83c2408bd57b3ce899378717e5b6fe39407 | 5552380060fd8be832a61d1cc4020c16dde40452 | /home/migrations/0004_bank_branch_file.py | 244237a150562d68ccb2eac9f7f5cf4d1998f799 | [] | no_license | rayhancse08/LawChamber | a1f4121a911d92cdf7cd4c885767b2080fa5fbb0 | 40f2306d50bc9c2d2b7c08b44e527ab45a7dc756 | refs/heads/master | 2021-09-10T06:32:48.473590 | 2018-03-21T16:12:58 | 2018-03-21T16:12:58 | 125,860,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # Generated by Django 2.0.3 on 2018-03-19 13:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0003_contact'),
]
operations = [
migrations.CreateModel(
name='Bank',
field... | [
"rayhancse08@gmail.com"
] | rayhancse08@gmail.com |
5ca7bb44464eb2b8bc4a97eed49157497214cee6 | aced407b41f6669f69e9eb8bd599260d50c0bd3f | /server/libs/top/api/rest/TaobaokeItemsDetailGetRequest.py | 13b1b69b497043b5f31870c254d245496fe97a64 | [] | no_license | alswl/music_sofa | 42f7d15431f11b97bf67b604cfde0a0e9e3860cc | c4e5425ef6c80c3e57c91ba568f7cbfe63faa378 | refs/heads/master | 2016-09-12T18:37:34.357510 | 2016-05-20T11:49:52 | 2016-05-20T11:49:52 | 58,946,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | '''
Created by auto_sdk on 2013-11-07 12:53:22
'''
from top.api.base import RestApi
class TaobaokeItemsDetailGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.is_mobile = None
self.nick = None
self.num_iids = None
self.ou... | [
"alswlx@gmail.com"
] | alswlx@gmail.com |
93d70c998b5ffa9aa7583bfab766cfc5b0a7927b | bc82de9237a6aa28fd7623a27b35c02ae8416702 | /allennlp/modules/seq2seq_decoders/decoder_net.py | aa73863dd2f546fc9ee2b7c5a40ada2af3ff2e00 | [
"Apache-2.0"
] | permissive | Snnzhao/GrailQA | 78190a8a5bae934c07f4035786f658ef4764c510 | e89e66380402e51bac56f59c7d24d4400bcd11b6 | refs/heads/main | 2023-04-26T19:49:21.683922 | 2021-04-11T09:40:34 | 2021-04-11T09:40:34 | 370,937,323 | 1 | 0 | Apache-2.0 | 2021-05-26T07:00:21 | 2021-05-26T07:00:20 | null | UTF-8 | Python | false | false | 4,117 | py | from typing import Tuple, Dict, Optional
import torch
from allennlp.common import Registrable
class DecoderNet(torch.nn.Module, Registrable):
# pylint: disable=abstract-method
"""
This class abstracts the neural architectures for decoding the encoded states and
embedded previous step prediction vectors... | [
"gu.826@cse-cnc196739s.coeit.osu.edu"
] | gu.826@cse-cnc196739s.coeit.osu.edu |
9ca6d92b19008f566d7bad5323b3263b78cd3d47 | 09e0efb05c9cd29c7aa4301cec7fb95d24d2bdc2 | /nionui_app/nionui_examples/ui_demo/StatusBar.py | 99f1fd1396a4fbf0ae59bae7916bfa90a1e1e115 | [
"Apache-2.0"
] | permissive | AEljarrat/nionui | 4c452037f7e3ee6710c19b18afeb45e35e9ec361 | 3714a54d56f472a8a0f7b9f8a8240103ca790374 | refs/heads/master | 2022-11-30T19:54:10.714060 | 2020-08-06T21:37:47 | 2020-08-06T21:37:47 | 286,014,692 | 0 | 0 | NOASSERTION | 2020-08-08T09:40:31 | 2020-08-08T09:40:30 | null | UTF-8 | Python | false | false | 686 | py | from nion.utils import Model
class Handler:
slider_value_model = Model.PropertyModel(50)
def reset(self, widget):
self.slider_value_model.value = 50
def construct_ui(ui):
label = ui.create_label(text="@binding(slider_value_model.value)")
button = ui.create_push_button(text="Reset to 50",... | [
"cmeyer1969@gmail.com"
] | cmeyer1969@gmail.com |
fa40c9f5c291d466245994d71e3b05bde8d0668f | 976230c7d6270f9fbec052e01f9799e13059f79c | /tests/spatio_temporal/test_daily.py | 0c473f4a8bf1f201c13a2cf6200948d00b171507 | [
"MIT"
] | permissive | amet123/jyotisha | 01cd60884f729814e6757d2a7186a6a4e3941a1f | 83930880ca74d6ddc95cc72f7026ef63a2e1c3be | refs/heads/master | 2020-03-16T09:44:13.310195 | 2018-02-10T02:43:19 | 2018-02-10T02:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import logging
from jyotisha.panchangam.spatio_temporal import City
logging.basicConfig(
level=logging.DEBUG,
format="%(levelname)s: %(asctime)s {%(filename)s:%(lineno)d}: %(message)s "
)
def test_solar_day():
from jyotisha.panchangam.spatio_temporal import daily
panchangam = daily.Panchangam(city=City('Chen... | [
"vishvas.vasuki@gmail.com"
] | vishvas.vasuki@gmail.com |
c1c2f08f213c1883d5c0d7e36a037127caeebd14 | 29ab920cf5c02ca6351e1c98824b8ebdb08933b0 | /src/core/models.py | d6b1641b0977a3f01e92bd8e2d76097fcb2dff09 | [
"MIT"
] | permissive | yordan-marinov/su_dj_todo_app | 237c8a14c17d349a75a437ab810c396269d3b571 | 34adcf3c17fcda30e57d76099780d0cf5f3f0fe6 | refs/heads/main | 2023-05-15T12:05:08.948196 | 2021-06-16T08:01:03 | 2021-06-16T08:01:03 | 375,369,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
title = models.CharField(max_length=120)
description = models.TextField(null=True, blank=True)
... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
47eccdae8acbd25874bd94626617616ed0ee61fe | 5fdcf15f818eb2d0c7b5dd39443064d5bc42aff9 | /lc_reorganizing_string.py | 8ab639672dbe010d9b0fc8e9842a0ca17c1438dc | [] | no_license | vincentt117/coding_challenge | acf3664034a71ffd70c5f1ac0f6a66768e097a6e | 5deff070bb9f6b19a1cfc0a6086ac155496fbb78 | refs/heads/master | 2021-07-02T05:43:08.007851 | 2020-08-27T02:16:19 | 2020-08-27T02:16:19 | 146,027,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # Optimal solution retrieved from Leetcode - https://leetcode.com/problems/reorganize-string/
class Solution:
def reorganizeString(self, S: str) -> str:
pq = [(-S.count(x), x) for x in set(S)]
heapq.heapify(pq)
if any(-nc > (len(S) + 1) / 2 for nc, x in pq):
return ""
a... | [
"vincentt117@gmail.com"
] | vincentt117@gmail.com |
97c63ac9e665a2d66342e42e241c92b0489a2ee3 | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /73_hun.py | 5a18a272bbd749e2a12f95c01d715dc788f4067d | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | s=input()
s1=input()
l=[]
if s==s1:
print(s)
else:
for i in range(0,len(s)):
for j in range(i+1,len(s)):
k=s1[i:j]
if k in s:
l.append(k)
print(max(l, key=len))
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
21e0a4a5c520b5364f7115b1ed1387993123f14b | bea2c1ad58a1d45705ba8f9e4527e4ffac4969cb | /sfepy/discrete/parse_regions.py | c0b71f0ee8b1d0bc7fd05dcd16232c367e61ac0b | [
"BSD-3-Clause"
] | permissive | fethio/sfepy | 8423e9083e3144e1fd97d24c31eda1646167ff5b | 78efe51d6038dc92f5bfeac4c57614746fe28117 | refs/heads/master | 2021-01-16T20:59:29.459626 | 2016-07-01T15:06:11 | 2016-07-01T15:06:11 | 61,715,917 | 1 | 1 | null | 2016-07-01T15:06:11 | 2016-06-22T12:06:07 | Python | UTF-8 | Python | false | false | 6,738 | py | """
Grammar for selecting regions of a domain.
Regions serve for selection of certain parts of the computational domain
represented as a finite element mesh. They are used to define the boundary
conditions, the domains of terms and materials etc.
Notes
-----
History: pre-git versions already from from 13.06.2006.
"""... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
e678647f567f69e613f9801f9ae2ac7ac80e1659 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/185/30193/submittedfiles/swamee.py | cf9c5669d5d51a92ee3a60133f07bc131b3da0cc | [] | 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 | 352 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('digite f:'))
L=float(input('digite L:'))
Q=float(input('digite Q:'))
DeltaH=float(input('digite DeltaH:'))
V=float(input('digite V:'))
g=9.81
E=0.000002
D=((8*f*L*(Q*Q))/((math.pi**2)*g*DeltaH))**1/5
Rey=(4*Q)/(math.pi*D*V)
K=0.25/(math.log10((E... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1d1b706b79d817045a4458163d9e0a30057bb120 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_nets.py | 9595b4e462c02417b87f949ef703a5e57f707413 | [
"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 | 227 | py |
from xai.brain.wordbase.adjectives._net import _NET
#calss header
class _NETS(_NET, ):
def __init__(self,):
_NET.__init__(self)
self.name = "NETS"
self.specie = 'adjectives'
self.basic = "net"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dcb8464506d3eb9dc51cf3f6fac3227e35f31256 | 932c30383a5a3b8f70f182fb160e172826531b2c | /tools/sapp/sapp/ui/tests/interactive_test.py | 88e66ed924672725b2e7e540da16bcbba6688a25 | [
"MIT"
] | permissive | fylux/pyre-check | 78581f8ed68764bb46be6f686d74cbbc25828556 | a675dc272a973972544e595c567bf432993c2b3a | refs/heads/master | 2023-01-01T23:38:11.453527 | 2020-10-24T17:14:28 | 2020-10-24T17:14:28 | 298,233,128 | 0 | 1 | null | 2020-09-24T09:36:45 | 2020-09-24T09:36:45 | null | UTF-8 | Python | false | false | 84,132 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
import os
import sys
from datetime import datetime
from io import StringIO
from typing import List
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7967013853faa251a7c164a1774ad60bcab38057 | 84a240d463a7c286a4ff3b0c344a0e80e681ce38 | /src/chap03/10_time_dependencies/test.py | 1ae0ad5dbbf3e72fb61a6fcfb782ede2deaa843d | [] | no_license | perillaroc/ecflow-tutorial-code | 87f12b11f942b2323e45f8f8c205f665ceaeca7f | e00d0556a161a4c221b854f99dbbd0898ee14762 | refs/heads/master | 2021-09-06T04:30:48.812500 | 2018-02-02T06:48:41 | 2018-02-02T06:48:41 | 119,969,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import os
from pathlib import Path
from ecflow import Defs, Suite, Task, Family, Edit, Trigger, Event, Complete, Meter, Time, Day, Date
def create_family_f1():
return Family(
"f1",
Edit(SLEEP=20),
Task("t1",
Time("03:00 23:00 00:30")),
Task("t2",
Day("sund... | [
"perillaroc@gmail.com"
] | perillaroc@gmail.com |
befb49d4dbdb7cb938cabe95b0ce64fc371134a3 | 93a10a77cfed19f6f43987d5f7333c7599990ab1 | /vpy27/Lib/site-packages/cms/cms_toolbars.py | 963e7378c772e5cbb3cd448e37d3d387bf6db174 | [] | no_license | zfanai/vpy27 | 8cd00a49cadccd462276f685dfa30d51cfdfe3d6 | 57ae83d393c569cb632b1ad0bb093a13851e10ed | refs/heads/master | 2021-07-15T20:25:41.383490 | 2017-10-21T02:18:50 | 2017-10-21T02:18:50 | 107,623,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,153 | py | # -*- coding: utf-8 -*-
from classytags.utils import flatten_context
from django.conf import settings
from django.contrib import admin
from django.contrib.auth import get_permission_codename, get_user_model
from django.contrib.auth.models import AnonymousUser
from django.contrib.sites.models import Site
from django.cor... | [
"zf_sch@126.com"
] | zf_sch@126.com |
b8993aa7ccaea8513fd07124d6005cdbd77c5068 | dd6cf539f20a0143acbdda1ed3f64b18b08a29b5 | /whiteList_v5/Config/2019第一季度脚本/config_fangtoo.py | 8af88ee3c64feb458b58b8f158acd47a212eef70 | [
"MIT"
] | permissive | myirelias/white_list | eec6a900cc3eea0f227425327ab55a6b46ba873d | 2bf344d2dc8f5cb3afbde71e248c019651ee3a7a | refs/heads/master | 2020-04-15T11:10:44.850942 | 2019-11-05T01:51:41 | 2019-11-05T01:51:41 | 164,618,155 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | # 房途网
TASK_NAME = 'fangtoo'
# 起始URL
START_URL = 'http://www.fangtoo.com/'
# 控制域,必须为list格式
DOMAIN = ['fangtoo']
# 请求头
HEADERS = {
'Host': 'www.fangtoo.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0',
'Accept': 'text/html,application/xhtml+xml,application... | [
"myIrelia@aliyun.com"
] | myIrelia@aliyun.com |
7e143995d7e137dcb1934363b26de9cf57999bab | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5040/404005040.py | 9579f1c988fb1681ddca7d2da3451a5a5e882284 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 3,935 | py | from bots.botsconfig import *
from records005040 import recorddefs
syntax = {
'version': '00504',
'functionalgroup': 'SR',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'ZC1', MIN: 0, MAX: 1},
{ID: 'BX', MIN: 0, MAX: 1},
{ID: 'BNX', MIN: 0, MAX: 1},
{ID: 'M3', MIN: 1, MAX: 1},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
451b171eedc679c5013c736a0918b085ca36b46c | fbea3e5d1ecab07b15887b321cd650349f22df95 | /peterklepec_webpage/cms/dashboard.py | 4df6b11b0df775c579e8ece440fb36e4e21e822a | [] | no_license | simonrakovic/peterklepec | 2e2004c04450898107da61314ec2ba03ee93bbe7 | 58114cfbd4f85d08a4749aa34492f52e11a9925e | refs/heads/master | 2021-01-21T07:53:35.429724 | 2016-09-21T12:34:52 | 2016-09-21T12:34:52 | 24,656,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | """
This file was generated with the customdashboard management command and
contains the class for the main dashboard.
To activate your index dashboard add the following to your settings.py::
GRAPPELLI_INDEX_DASHBOARD = 'peterklepec_webpage.dashboard.CustomIndexDashboard'
"""
from django.utils.translation import ... | [
"simonrakovic@gmail.com"
] | simonrakovic@gmail.com |
9500c48e7a7fbda723ca05e82f6932e50a80cc2a | 53ba1c29d6122b8afeb6578f1a338621c61f507d | /FCCeeAnalyses/ZH_Zmumu/dataframe/plots.py | 1478a35a3cf293e86dc3db7e5dd11aed9830304d | [] | no_license | selvaggi/FCChhAnalyses | dd420f5bdba60147322cc16b49479ca200e8a54c | 8f397c77229c68ad87947e6912466da4b0a6654b | refs/heads/master | 2021-04-27T17:08:28.824726 | 2020-05-21T07:42:43 | 2020-05-21T07:42:43 | 136,484,120 | 1 | 0 | null | 2019-05-02T13:12:39 | 2018-06-07T13:49:23 | Python | UTF-8 | Python | false | false | 1,547 | py | import ROOT
# global parameters
intLumi = 5.0e+06 #in pb-1
ana_tex = "e^{+}e^{-} #rightarrow ZH #rightarrow #mu^{+}#mu^{-} + X"
delphesVersion = "3.4.2"
energy = 240.0
collider = "FCC-ee"
inputDir = "Outputs/FCCee/ZH_Zmumu/"
formats = ['png','pdf']
yaxis = ['lin','log'... | [
"clement.helsens@cern.ch"
] | clement.helsens@cern.ch |
51cf6cb246c8fc7206420f5ca0b4ca38daf503b7 | 9a2413b572c0f89b1f80899a10237657d9393bd6 | /sdk/python/pulumi_keycloak/generic_client_role_mapper.py | 7482298398ca25d54904f73e31411f577ced592b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaxxstorm/pulumi-keycloak | 5c25363ece6af49dad40bd693ce07b1fa0dedd74 | 2fc7b1060b725a40d2ada745aa0d10130243a0b5 | refs/heads/master | 2022-10-10T13:11:04.290703 | 2020-06-05T19:11:19 | 2020-06-05T19:11:19 | 270,870,883 | 0 | 0 | NOASSERTION | 2020-06-09T01:08:56 | 2020-06-09T01:08:55 | null | UTF-8 | Python | false | false | 4,797 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class Generic... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
4c10cbd3c907d2b700a4587d67043ec7b66c5280 | f098c361ee79bb8b7a8402fcf20b37f17fb36983 | /Back-End/Python/Basics/Part -3- Hash Maps/04- Serialization and Deserialization/_04_JSON_singledispatch.py | 5bac467735833efd499c104e8e24e933427f5fe3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | rnsdoodi/Programming-CookBook | 4d619537a6875ffbcb42cbdaf01d80db1feba9b4 | 9bd9c105fdd823aea1c3f391f5018fd1f8f37182 | refs/heads/master | 2023-09-05T22:09:08.282385 | 2021-10-31T11:57:40 | 2021-10-31T11:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,389 | py | import json
from datetime import datetime
log_record = {
'time': datetime.utcnow(),
'message': 'Testing...',
'other': {'a', 'b', 'c'}
}
def custom_json_formatter(arg):
if isinstance(arg, datetime):
return arg.isoformat()
elif isinstance(arg, set):
return list(arg)
print(json.dum... | [
"58447627+Koubae@users.noreply.github.com"
] | 58447627+Koubae@users.noreply.github.com |
cee671906f006b2298a9e9071b8bf2c43320fd39 | 5c7b6f96aef9a2c605c8e16eb0e3f6e2ab958947 | /settings.py | 454c3f98b426329036c61e8949009c6ba0b54d30 | [] | no_license | chapkovski/progressbaracrossrounds | 0137ce4a552edf9027eb092f1d9e0abde5cc6e8e | 62905f17d456fc6a7a57fa1fe91b510593740518 | refs/heads/master | 2021-07-03T20:53:58.758511 | 2020-09-03T22:19:49 | 2020-09-03T22:19:49 | 87,289,409 | 0 | 0 | null | 2021-06-10T20:38:02 | 2017-04-05T09:07:49 | Python | UTF-8 | Python | false | false | 1,797 | py | import os
from os import environ
import dj_database_url
from boto.mturk import qualification
import otree.settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# the environment variable OTREE_PRODUCTION controls whether Django runs in
# DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False
if... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
6372a17f6b0d06d1112a8594098c1279fd098c30 | 6eb58e32b469c37428185ab4456184905a5b4fb5 | /analysis_code/newdata_dataread_BP_MHTSTRATEGY_v2_hacktemp.py | c830e7ec48f7165d32ca2acd9803182abd11b3b1 | [] | no_license | rchenmit/mht_analysis | 0b8bfff7730df835975c7c41d65f007ad269e3a9 | 678d4419bdaed9ed9d0041df3a2cd8638074590f | refs/heads/master | 2020-04-06T03:40:41.577209 | 2015-01-12T00:14:48 | 2015-01-12T00:14:48 | 19,548,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,094 | py | ## Robert Chen
## Monday 3/12/2014
##
## trying to parse this in python
##
import os
import sys
if os.name == 'nt': #'nt' = windows
sys.path.append('C:\\anaconda\\lib\\site-packages') #in windows, alot of modules were installed with Anaconda
import pandas as pd
import numpy as np
import math
import copy
import csv
... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
e410730572e9364ca72db41147389438c4725f12 | 38c10c01007624cd2056884f25e0d6ab85442194 | /extensions/extensions.gypi | d7306813a707108e1338e08175390f6649ec65d3 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 51,840 | gypi | # Copyright 2015 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.
{
'variables': {
'extensions_common_constants_sources': [
'common/constants.cc',
'common/constants.h',
],
'extensions_common_mojo_s... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
b19d4c48e98253f0c798e34a47492d4728a86040 | 440e4f13d6b3939f0290931bcd984591f191f9f9 | /demo/XmlResourceSubclass.py | 3ffb043f8b415e55275f9873d23bd8a36a423eb2 | [] | no_license | AlfiyaZi/Phoenix | b445e6906eb61d037c83957ce601d731dc04acfa | c524ed1a3794ec4d2baaba6b12d6d7ef37aa7695 | refs/heads/master | 2020-06-16T18:04:42.696173 | 2016-11-24T18:39:47 | 2016-11-24T18:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | #!/usr/bin/env python
import wx
import wx.xrc as xrc
#----------------------------------------------------------------------
resourceText = br'''<?xml version="1.0"?>
<resource>
<!-- Notice that the class IS a standard wx class, and a custom
subclass is specified as "moduleName.ClassName" Try changing
... | [
"robin@alldunn.com"
] | robin@alldunn.com |
d72b7ab5be64ba723348d6436a369f88a256597d | bce29ac8dccfc51983dcc00c433287866e9d63e7 | /1222-5223.py | 2fd13043ddeebbd63a8be746dccad6b295a1017f | [] | no_license | aiifabbf/leetcode-memo | b2c3f110073367b4b6db95722e96a794b5fe0453 | 5be09b4a804cb600e61e24617b9b2a1cc78fab3f | refs/heads/master | 2021-06-11T18:41:16.550017 | 2021-04-20T15:15:50 | 2021-04-20T15:15:50 | 175,244,504 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | """
给一个8x8的棋盘、皇后的位置、国王的位置,问哪些皇后可以吃掉国王。
很简单,从国王开始往8个方向(上、下、左、右、上左、上右、下左、下右)分别搜索,每个方向遇到的第一个皇后就是能吃掉国王的皇后。注意如果出现国王和皇后之间隔了另一个皇后,比如
::
王 后1 后2
后2是没办法吃掉国王的。
但是要写的好看挺难的……我写了8个for循环。
"""
from typing import *
class Solution:
def queensAttacktheKing(self, queens: List[List[int]], king: List[int]) -> List[List... | [
"aiifabbf@outlook.com"
] | aiifabbf@outlook.com |
4d3e25f526d32e3c523a613ec868b4d3bf6994d0 | 3e9856fd60d797f35dc54a4e0092ceb611f5f1da | /train_gnn_s8_nodp01.py | d0562884ca0c8af89d85da494252ac13c1dc36cf | [] | no_license | yougoforward/parse2 | d18a7f5654c10edbb716dda3ae9615b10d289d8e | 2d21b6f0968b6b05e6c2453bbf46a7cebbd69220 | refs/heads/master | 2021-05-22T23:23:18.046316 | 2020-12-22T09:47:37 | 2020-12-22T09:47:37 | 253,138,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,236 | py | import argparse
import os
import random
import sys
import time
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torchvision
from tensorboardX import SummaryWriter
from torch.nn import functional as F
from torch.nn.parallel.scatter_gather import gather
from torch.utils import data
from dataset.d... | [
"908865817@qq.com"
] | 908865817@qq.com |
36820395946cd35b82cf0890ad00f03f16354844 | 906b3df6f4cb2141910c19dbe8e29fe493205ed2 | /contracts.py | b39f4cb339e5a70daf16f74cbf15b0b6b99822c0 | [] | no_license | webclinic017/IB_to_XCEL_Python | 6af80ed3855e97664f38c50a945554678cc1f834 | 66dfefdb047d373486434e065324e676a9f7618e | refs/heads/main | 2023-06-18T20:38:33.784478 | 2021-07-15T15:29:31 | 2021-07-15T15:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from ibapi.contract import Contract
july_vixFuture_contract = Contract()
july_vixFuture_contract.symbol = 'VXK1'
july_vixFuture_contract.secType = 'FUT'
july_vixFuture_contract.tradingClass = 'VX'
july_vixFuture_contract.exchange = 'CFE'
july_vixFuture_contract.currency = 'USD'
july_vixFuture_contract.la... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
8a221e3053dcc8502c46d16f04827b083c3b5bd0 | 8159c2c650d53fb188a26b508dfff524296707d1 | /lore/deities/alki_l.py | 905ce33ad3e1bc0fadf8acc8293b6ce5991ca540 | [] | no_license | Teifion/Rob3 | 501663bf5077da0c28a7db4960c74c4477dd11bf | 81fc2f9930434b5a4de52b75eb6a8d78dd708f77 | refs/heads/master | 2021-01-16T19:20:29.666426 | 2011-05-30T13:34:17 | 2011-05-30T13:34:17 | 1,819,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | data = {
"cat": "deities",
"page": "alki",
}
blocks = [
{
"id": "summary",
"text": "Summary text"
},
{
"id": "Backstory",
"text": """"""
},
{
"level": "secret",
"text": "Secret info"
},
{
"id": "gm_notes",
"level": "gm",
"text": "GM info"
}
] | [
"sarkalian@gmail.com"
] | sarkalian@gmail.com |
37f6724585a71b87339e498274d17d2f828f55ce | e29faa10be00e8c839bf909922ace176b05826bb | /misc/metric_loss_ops.py | 272388b01a7837eecc308939289b84d6c1ef0bac | [] | no_license | weiyinfu/learnTensorflow | 666e46259da435c19c06f3abbaa8a00ae37431ce | 98cb7a978dd682ec8f651f9da57e2f23d47c21a4 | refs/heads/master | 2022-01-01T08:10:40.215554 | 2021-12-26T06:24:40 | 2021-12-26T06:24:40 | 145,659,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,466 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"weiyinfu.weiyinfu@bytedance.com"
] | weiyinfu.weiyinfu@bytedance.com |
770d33e367fca4988fdf64c78ac4aef27d69ca8f | 9682dab1ce9e00e11708872fa26febc847d4d18c | /pycorrector/seq2seq/corpus_reader.py | 46822ab4f180f6abb8baed21724debbfb98f1cc9 | [
"Apache-2.0"
] | permissive | fireflycsq/pycorrector | 1ed2a6df9ec05bb9055b2052f92301212ebab235 | d1096e4cee99ba95bb4df945707bbd2b8972717a | refs/heads/master | 2020-03-21T15:43:51.228521 | 2018-06-12T07:34:44 | 2018-06-12T07:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,961 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief: Corpus for model
import random
from pycorrector.seq2seq.reader import Reader, PAD_TOKEN, EOS_TOKEN, GO_TOKEN
class FCEReader(Reader):
"""
Read FCE data set
"""
UNKNOWN_TOKEN = 'UNK'
DROPOUT_TOKENS = {"a", "an", "the", "'ll", "'s... | [
"507153809@qq.com"
] | 507153809@qq.com |
4a810f7029a6f0806c1dc6e4f8679c877af55d4b | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.2/kernel/drivers/eciadsl/actions.py | 77a821cb1f94a9b37fd3943be25d766c74b060e7 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005, 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "eciads... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
8c657e2a7939065498bf9e9e9abba7751a7b2714 | cc3ded8dc35ec9f52e7cee6a840fb6d3c92b3185 | /transformers_repo/tests/test_modeling_ctrl.py | 3d1a1cb2dc728952f1ef36f667b59ccf7af1a48b | [
"MIT",
"Apache-2.0"
] | permissive | see--/natural-question-answering | 04e3a38022dcb78a20f1632749cb82bb40a3d8aa | 9d31c8dee0ff799d190a2a351f4857224788a5ca | refs/heads/master | 2023-08-17T00:10:17.594705 | 2020-03-12T21:38:56 | 2020-03-12T21:38:56 | 234,064,034 | 90 | 24 | MIT | 2023-09-06T17:32:48 | 2020-01-15T11:19:50 | Python | UTF-8 | Python | false | false | 8,330 | py | # coding=utf-8
# Copyright 2018 Salesforce and HuggingFace Inc. team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | [
"steffenebe@gmail.com"
] | steffenebe@gmail.com |
03bcad2f49a796e50d41e05a57f6c096d03928b1 | 642e8d6d8cd8d08a73bdcf82ae9689a09284025c | /celery/tests/test_pickle.py | bf2f4ccc4968b6c53b399fa9e10f0ffbaf43368d | [
"BSD-3-Clause"
] | permissive | abecciu/celery | 941f29c033b54b766166f17aa8c5e4be05df08b9 | f0c399e34d56c7a2a14cb42bfb2b6455c68ef0c0 | refs/heads/master | 2021-01-14T12:57:11.230199 | 2009-09-10T13:44:51 | 2009-09-10T13:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | import unittest
from celery.serialization import pickle
class RegularException(Exception):
pass
class ArgOverrideException(Exception):
def __init__(self, message, status_code=10):
self.status_code = status_code
super(ArgOverrideException, self).__init__(message, status_code)
class TestPic... | [
"askh@opera.com"
] | askh@opera.com |
ee8fcb6113dfdf4554705e7c1cf7fe5e5b3c6017 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03253/s028075824.py | 5a75ef3726225d5282ae0dd3a1b8e2323b4d2dfd | [] | 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 | 1,029 | py | import sys
import math
sys.setrecursionlimit(1000000) # 再帰上限を増やす
def calc_combi(n, m, mod=1000000007):
""" nCmの組み合わせ数を数える """
if n - m < m:
return calc_combi(n, n - m)
ans_mull, ans_div = 1, 1
for i in range(m):
ans_mull *= (n - i)
ans_div *= (i + 1)
ans_mull %= mod
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d7d22bee196dd88cf02a813ed99e658a7a9134a1 | d0758e0ca004226cec8ad8b26c9565c98534a8b8 | /11-videogames/Julio/3 - Moscas/game.py | 91460a45758ba15d812fa0b32ac1bfb74b85c7e4 | [] | no_license | pythoncanarias/eoi | 334d64a96afc76ac1fa10282378f291b6d8c94b3 | 349367254f85e3e4273cede067ca950913a1332c | refs/heads/master | 2023-07-06T08:00:11.366345 | 2023-06-30T15:19:33 | 2023-06-30T15:19:33 | 222,742,870 | 26 | 19 | null | 2023-06-25T16:03:46 | 2019-11-19T16:41:25 | Jupyter Notebook | UTF-8 | Python | false | false | 1,274 | py | import pygame
import math
from settings import *
from sprites import Player
class Game:
def __init__(self):
pygame.init()
self.screen = pygame.display.set_mode([WIDTH, HEIGHT])
pygame.display.set_caption(TITLE)
self.clock = pygame.time.Clock()
self.all_sprites... | [
"euribates@gmail.com"
] | euribates@gmail.com |
531328a7203522f625b1e1d7157e9d0d3de657c3 | ab40571d5051ad53c0f205fa797ba36eac516d06 | /language/serene/wiki_index.py | d3f3722d348a60910e695ac044d8e3a711095a05 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | google-research/language | e941b1a92ab46d40d8d03bb0c314905cb6902ce2 | ac9447064195e06de48cc91ff642f7fffa28ffe8 | refs/heads/master | 2023-08-24T23:10:13.207294 | 2023-05-25T20:47:18 | 2023-05-25T22:29:27 | 153,201,352 | 1,567 | 371 | Apache-2.0 | 2023-07-06T23:03:15 | 2018-10-16T00:58:14 | Python | UTF-8 | Python | false | false | 14,914 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"kentonl@google.com"
] | kentonl@google.com |
5b666edc2f564f9e62ca32f883d55c4dc29f7449 | 567eac942e94c653dda710d52c1eb6db0847a075 | /0x0B-python-input_output/100-append_after.py | c1d85581606a8e1587723e9fb8ea9451eb415a89 | [] | no_license | mecomontes/Higher-Level-Programming | beeb4a410ff99fa062a86bd0a7f4d87a39889283 | 3a78f6eeedc70e2f447c49ccaf0838f5878f651c | refs/heads/main | 2023-06-26T18:02:29.046302 | 2021-07-13T14:58:24 | 2021-07-13T14:58:24 | 385,641,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Tru Jun 3 15:13:37 2020
@author: Robinson Montes
"""
def append_after(filename="", search_string="", new_string=""):
"""
Inserts a line after each line containing a specific string
Arguments:
filename (str): The name of the file
s... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
9e16773835ce51e64709f46cb6093b668958019f | 2bf6bf2eeb72b9eb4b8a41f36fb56585e140a611 | /pickle_to_tex.py | 82080a24d542ddb03dc447346c6cdf65cb6965bc | [
"MIT"
] | permissive | Daniel-Bu/exposure | 0fcff9177764cc85bb46298cfcdfaf5aeb29b6ec | 74549ac75822fba41125cb0a086905a51db49d7b | refs/heads/master | 2020-09-27T07:34:49.726377 | 2019-12-07T07:06:34 | 2019-12-07T07:06:34 | 226,464,955 | 0 | 0 | MIT | 2019-12-07T06:12:36 | 2019-12-07T06:12:35 | null | UTF-8 | Python | false | false | 5,295 | py | # This script converts output pickle to step-by-step latex figures
import numpy as np
import os
import pickle as pickle
import shutil
NUM_STEPS = 5
CURVE_STEPS = 8
files = []
filters = [
'Expo.',
'Gam.',
'W.B.',
'Satu.',
'Tone',
'Cst.',
'BW',
'Color',
]
def visualize_detail(name, pa... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
e0c71dc714a97faaca6e6a3978e34959b43481c4 | 03b6e62060ae8db13bfe1ace9b2ee108d96f785b | /functions/box_utils.py | e7aa8a3a01eff392c2ff53b00e0b58ab115d65cb | [] | no_license | pyaf/ssd | d5321cf2bce62a24c37c8f23ba5a326c61ea4dff | 0e8cf8bbc6fdeb57acd7ceb4fffab647921d3018 | refs/heads/master | 2022-03-08T09:18:32.243214 | 2018-10-29T12:02:31 | 2018-10-29T12:02:31 | 151,805,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,420 | py | # -*- coding: utf-8 -*-
import torch
def point_form(boxes):
""" Convert prior_boxes to (xmin, ymin, xmax, ymax)
representation for comparison to point form ground truth data.
Args:
boxes: (tensor) center-size default boxes from priorbox layers.
Return:
boxes: (tensor) Converted xmin, y... | [
"rishabh.agrahari.eee15@iitbhu.ac.in"
] | rishabh.agrahari.eee15@iitbhu.ac.in |
c5b30f8b5cad9ac276560858501ff8ed4aa8a8b1 | 0a7b77367cde1a64d95d1aab53b6a4f344056a9c | /mcod/organizations/views.py | 685347e8b0ddc6c20caa3f4d05cff315812b5080 | [] | no_license | kaglowka/danyzespolapi | 529c2c7fc5d35c630498c8438e59dbcc3c00c437 | 0b3c07c68cf61faa81756822af9eec7c497bba2f | refs/heads/master | 2023-01-13T19:11:40.247512 | 2018-10-28T12:36:47 | 2018-10-28T12:36:47 | 154,993,674 | 0 | 0 | null | 2022-12-26T20:44:19 | 2018-10-27T17:57:34 | CSS | UTF-8 | Python | false | false | 2,487 | py | # -*- coding: utf-8 -*-
import falcon
from dal import autocomplete
from django.apps import apps
from elasticsearch_dsl import Q
from mcod.datasets.documents import DatasetsDoc
from mcod.datasets.schemas import DatasetsList
from mcod.datasets.serializers import DatasetSerializer, DatasetsMeta
from mcod.lib.handlers imp... | [
"krz.glowka@gmail.com"
] | krz.glowka@gmail.com |
1821ffa05b0f39dd18622808d4a83cb6c4da538e | c3132612a7ac311e501e432e1a4c7592bbd7a713 | /day16/code/08_爬虫.py | f5ee39d962d3e580dd54293573568a861feddcd3 | [] | no_license | everqiujuan/python | 7b8e169107012c3d7829d4ebd9860482fc0d8fec | b0a98de943217e24da60f79dec4fe8ebf4f1c713 | refs/heads/master | 2020-06-21T16:57:22.260311 | 2019-07-18T05:58:44 | 2019-07-18T05:58:44 | 184,990,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | #
# 爬虫: 蜘蛛Spider
#
# requests
import requests
import re
# pip 第三方包管理
# pip install requests 安装包
# pip uninstall requests 卸载包
# pip freeze 显示自己安装的包
# pip list 显示所有包
# pip -V 查看版本
# pip show requests 查看包详情
url = 'https://search.51job.com/list/040000,000000,0000,00,9,99,python,2,1.html?l... | [
"1748636236@qq.com"
] | 1748636236@qq.com |
305d43af585283a2419fc1f458c295e373db6e69 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/otp/uberdog/OtpAvatarManagerAI.py | fe784b18b21426dfb9dc945b89ef2a60b8896819 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class OtpAvatarManagerAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("OtpAvatarManagerAI")
def online(self):
pass
def requestAvatarList(self, to... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
71f5c1ce2364f53f0df7d090799750a7ae5ef7d2 | 6cc9adf9c0d840139d70a51f9e05731c4f26fe4c | /Programmers/8.py | 5bbe6b7fd4a2d2760dfc09ee32bdb38a7e843cb8 | [] | no_license | y2sec/Algorithm | 2e05447d401c8c8d0c183c73fb1ce94d26080382 | 712d572bedfbf36dc27e1cc1272143e2b3b73b7f | refs/heads/master | 2023-07-08T00:38:46.809836 | 2021-09-04T06:23:54 | 2021-09-04T06:23:54 | 317,202,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # 문자열 압축
def solution(s):
answer = len(s)
for i in range(1, len(s) // 2 + 1):
start = 0
cnt = 1
change = ''
while start < len(s):
if s[start:start + i] == s[start + i:start + i + i]:
cnt += 1
elif cnt >= 2:
change += str(c... | [
"bae3835@gmail.com"
] | bae3835@gmail.com |
d43a0031adc40a69d9b2814a1c978c8cd490e873 | 910463f16caddc5a4e06d6ca362d62af20910dba | /CH_14_multithreading_and_multiprocessing/T_15_thread_local.py | 5e4a0a8ab9363c44c745791a81890bf00047fd8a | [
"MIT"
] | permissive | AniketS-cpu/Mastering-Python-Second-Edition-test | 3621ac06fc2cff577992396cd924fe09a349d52e | 84de81c355d7ca21a1849eed04a15b722538f521 | refs/heads/master | 2023-06-09T12:42:53.963075 | 2021-07-04T14:54:18 | 2021-07-04T20:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import threading
import concurrent.futures
context = threading.local()
def init_counter():
context.counter = 10
def increment(name):
current_value = context.counter
print(f'{name} value before increment: {current_value}')
context.counter = current_value + 1
print(f'{name} value after increment... | [
"Wolph@wol.ph"
] | Wolph@wol.ph |
a518889814eb5ff4f08fee145ec9852d16126a23 | 2f418a0f2fcca40f84ec0863b31ff974b574350c | /scripts/addons_extern/BrickTricks-master/uv_map_diamond_addin.py | 540c658a13709a5eda3aba03ac9e4a6bac45fe6e | [
"Zlib"
] | permissive | JT-a/blenderpython279 | 57a81b55564218f3b1417c2ffa97f5161897ec79 | 04846c82f794c22f87d677d9eb8cec1d05c48cda | refs/heads/master | 2021-06-25T06:58:07.670613 | 2017-09-11T11:14:36 | 2017-09-11T11:14:36 | 103,723,697 | 4 | 2 | null | 2017-09-16T04:09:31 | 2017-09-16T04:09:31 | null | UTF-8 | Python | false | false | 47,127 | py | import bpy
class ShaderNodeuv_map_diamond(bpy.types.NodeCustomGroup):
bl_name='ShaderNodeuv_map_diamond'
bl_label='uv_map_diamond'
bl_icon='NONE'
def init(self, context):
self.getNodetree(self.name + '_node_tree_v013')
self.inputs['Vector'].default_value=[0,0,0]
self.inputs['HAS... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
a613d147df8ad21434ac4cf9eead8e054bb3143b | b71c43b7f7785ca6718d74aff762557f5591758d | /Python/Week1/CodingDojo_Python/Django_Projects/email_validation/apps/emails/urls.py | 5f6c9ebfc8cb14cc19aa4e6250f72d24b019c58b | [] | no_license | jqchang/DojoAssignments | 4be9db6039763905eada2253873997ba5bfd1058 | 3c5a8b351879ccc380af9ce3b5267ca26ea62681 | refs/heads/master | 2021-01-13T15:28:45.189452 | 2017-04-15T23:31:58 | 2017-04-15T23:31:58 | 79,868,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.conf.urls import url
from . import views
# from django.contrib import admin
urlpatterns = [
url(r'^$', views.index),
url(r'^process$', views.process),
url(r'^success$', views.success),
url(r'^delete/(?P<id>\d+)$', views.delete)
]
| [
"jqchang@gmail.com"
] | jqchang@gmail.com |
2412d1167b7c0b04015b6e4b11532237a2e2543d | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /energies/migrations/0007_energyvector_data.py | e945aa4ab0b6a070aaa73901fa7bf9c5246097dd | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | # Generated by Django 2.2 on 2019-05-02 14:54
from decimal import Decimal
from django.db import migrations
def load_data(apps, schema_editor):
EnergyVector = apps.get_model("energies", "EnergyVector")
Energy = apps.get_model("energies", "Energy")
energies = {energy.identifier: energy for energy in Energ... | [
"norman@xael.org"
] | norman@xael.org |
b3b2a6a978e363f8f53a0106b14af35f54d5c484 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/advanced/98/grid.py | 0b25292e5ce34d129230783fd6a21739685074b5 | [] | 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 | 2,104 | py | import re
DOWN, UP, LEFT, RIGHT = '⇓', '⇑', '⇐', '⇒'
START_VALUE = 1
def print_sequence_route(grid, start_coordinates=None):
"""Receive grid string, convert to 2D matrix of ints, find the
START_VALUE coordinates and move through the numbers in order printing
them. Each time you turn append the grid... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
1ce34e71483a21a7ca0f0f0bf8d2cc6bb9f71ef7 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/vai_q_pytorch/nndct_shared/base/key_names.py | 1cf30c4715f21302ea8f0965e4a1eab9d78f66b6 | [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"Li... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 11,018 | py | # Copyright 2019 Xilinx 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 required by applicable law or agreed to in writing, ... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
4d7a13431523e52f557cb9288ca2df2918ca4592 | 6e9d6a682f20054e13d3764e95b8bd3b7b64fabf | /dailychallenge794.py | 480c50e622ac834ef1ded759d169a5654425fa0f | [] | no_license | SeanyDcode/codechallenges | 30a271e04bc2b360bca923ae868be65a9533c8db | 947cf3034911b381afaf777794d22d2af06aa5ba | refs/heads/master | 2022-11-07T21:22:56.927863 | 2022-10-18T23:33:13 | 2022-10-18T23:33:13 | 154,498,776 | 1 | 0 | null | 2022-10-18T23:02:05 | 2018-10-24T12:38:45 | Python | UTF-8 | Python | false | false | 515 | py | # from dailycodingproblem.com
#
# Daily Challenge #794
# Implement a stack that has the following methods:
#
# push(val), which pushes an element onto the stack
# pop(), which pops off and returns the topmost element of the stack. If there are no elements in the stack, then
# it should throw an error or return null.
#... | [
"noreply@github.com"
] | SeanyDcode.noreply@github.com |
a7bc599698af3f0f019d14651118a3707a859c85 | 4ef91a77e56428f8d9eed917270b165c150707b1 | /unstable_learning_rates/adam/cifar10-6/cifar10.py | 1d37fdb16c6513cf3fd1e981dc35eba1c8ab9280 | [
"MIT"
] | permissive | Jeffrey-Ede/ALRC | e761ffc65a9dad44edf301dd30b766e46b6715b3 | e5bf1d713b56af68c79413ae23e275d466121b90 | refs/heads/master | 2020-06-05T04:38:58.595922 | 2020-05-29T13:25:01 | 2020-05-29T13:25:01 | 192,315,914 | 3 | 2 | null | 2019-06-17T12:29:18 | 2019-06-17T09:25:07 | Python | UTF-8 | Python | false | false | 18,726 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | Jeffrey-Ede.noreply@github.com |
edaac70f667d8974a20ff95bebcd399de5484509 | e62c135403c766497245dd4dc72e7431a023404d | /helloShikha.py | 096873a704da900e7e19b3dbbfcafacf142d731e | [
"Apache-2.0"
] | permissive | ctsit/J.O.B-Training-Repo-1 | 3c437589e5c49749bbd2f97ce906cf01d000bad1 | 3455666557a23837ebcfe7e40de395a267689a6a | refs/heads/master | 2023-03-15T20:45:43.991881 | 2023-03-06T15:11:15 | 2023-03-06T15:11:15 | 82,118,694 | 0 | 31 | Apache-2.0 | 2023-08-24T15:52:05 | 2017-02-15T23:48:22 | Python | UTF-8 | Python | false | false | 54 | py | #This is my hello world program
print 'Hello Shikha!'
| [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
cac5589c71a79b0bc92bda216d163e76b9777908 | b4f0f536c721178a69128eba0afb39fde6f62ffb | /tests/e2e/redis_client.py | 1a61fcb32ee7863df6606f0f932eb42ff2f39bfc | [
"MIT"
] | permissive | jeantardelli/architecture-patterns-with-python | c049257febc369c7d213428019387fe19d38998a | d48c7d6d4a44073b815c7e6770e44cf2e231e35b | refs/heads/main | 2023-05-27T05:12:12.951919 | 2021-06-04T18:48:43 | 2021-06-04T18:48:43 | 355,638,599 | 1 | 0 | MIT | 2021-06-04T18:48:44 | 2021-04-07T18:03:08 | Python | UTF-8 | Python | false | false | 390 | py | import json
import redis
from allocation import config
r = redis.Redis(**config.get_redis_host_and_port())
def subscribe_to(channel):
pubsub = r.pubsub()
pubsub.subscribe(channel)
confirmation = pubsub.get_message(timeout=3)
assert confirmation["type"] == "subscribe"
return pubsub
def publish_m... | [
"jeantardelli@gmail.com"
] | jeantardelli@gmail.com |
c54a4eef064dc72dd2b30f222d245099b69f7005 | b1547d22520133f03c7529086f70d4ae83d24237 | /script/conntect.py | adb439f4a913590a349ab9d91767eb1d6ecc3e6f | [] | no_license | wrwahut/flask_demo | 913b6a3e4cd56fadb834895f559d25af742f1a7f | 699beaa1a6c9f0f413147ff237bb6256c651e953 | refs/heads/master | 2020-03-29T22:03:54.659686 | 2019-01-03T07:48:38 | 2019-01-03T07:48:38 | 150,401,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # -*- coding:utf-8 -*-
import requests
from flask import request
import json
req_session = requests.session()
class Caller(object):
def __init__(self, url_fix,args={}):
self.url = "http://localhost:10002/resource/user/" + url_fix
self.args = args
self.headers = {
"content-type... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
00233f22e2e5ef66eb8018f58af6d447b2945cbb | dcbef06d5a00f07756339b9e62c684dec2fee425 | /nuitka/code_generation/LoopCodes.py | b553f9f6b95a7db4207f65448e6f7735be2edebb | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nuitka/Nuitka | f9543d8d95bfa0b81d4e60af0dfad99fb72893a4 | d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2 | refs/heads/develop | 2023-08-28T14:00:32.861328 | 2023-08-27T09:16:45 | 2023-08-27T09:16:45 | 9,626,741 | 8,573 | 599 | Apache-2.0 | 2023-09-13T02:49:41 | 2013-04-23T15:40:33 | Python | UTF-8 | Python | false | false | 3,141 | py | # Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
2db81d67ed5865facf874ae717b23430c8c420f3 | 4a06e7a07df377e224477c1d24cef620a4f98cc4 | /httprunner/report.py | 19d1581aa9841adcca9bf26388a5392d69109ae6 | [
"Apache-2.0"
] | permissive | ovalike/HttpRunner | b1cbec8ac02a0835987429bf7d966e7e64e62e61 | 6b23edf44c9aa71eba2c6d5d2e6b3335243ac992 | refs/heads/master | 2021-08-02T15:18:01.568043 | 2021-04-26T15:28:23 | 2021-04-26T15:28:23 | 177,881,052 | 0 | 0 | Apache-2.0 | 2019-03-26T22:58:20 | 2019-03-26T22:58:19 | null | UTF-8 | Python | false | false | 11,724 | py | # encoding: utf-8
import io
import os
import platform
import time
import unittest
from base64 import b64encode
from collections import Iterable
from datetime import datetime
import requests
from httprunner import loader, logger
from httprunner.__about__ import __version__
from httprunner.compat import basestring, byt... | [
"httprunner"
] | httprunner |
9770456866da2c0a4a7485ed4ccefca3170983b2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02417/s513271588.py | dd2618394ee3a3fd9727f547170f17cf79edd3e4 | [] | 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 | 285 | py | import string
from sys import stdin
chs = dict([(ch, 0) for ch in string.ascii_lowercase])
for line in stdin:
for ch in line:
c = ch.lower()
if c not in chs:
continue
chs[c] += 1
for ch in string.ascii_lowercase:
print(ch, ':', chs[ch]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
20c35fdc0ddd1e4481b51b2d8e0f88a9989398f7 | df770e5961aa7a0790314da663c426c8b3a93092 | /python/adult_sklearn.py | f344a98e3b820e08c867ac05917d704ba14a9690 | [] | no_license | dengl11/CS315B-Project | be996d461582110e70c3f9e621d13d80ed78a160 | 0da493eb5f6030562d2d2d7546ac7c107f9d2879 | refs/heads/master | 2021-08-28T18:34:41.655923 | 2017-12-13T00:06:29 | 2017-12-13T00:06:29 | 108,506,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | ############################################################
# My Decision Tree Classification
############################################################
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.tree import DecisionTreeClassifier
from my_decision_tree import *
# param
max_depth =... | [
"dengl11@stanford.edu"
] | dengl11@stanford.edu |
03733d50c66db99aab90d764c67c8102c1927d32 | fdce456e2f0ea12f854e98583cfda95955b9a36b | /seekerbuilder/migrations/0016_auto_20210916_1303.py | ad0d13f013270eb5cd84ec0db637506231ce82d1 | [] | no_license | atifasr/jobportal | e5fdc8058759311e8d4ca2c0291066ad86059fb6 | 3fe211598daa66f2a76c2b3d4d26d73459ac7457 | refs/heads/master | 2023-08-05T02:01:00.870360 | 2021-09-29T11:59:29 | 2021-09-29T11:59:29 | 388,807,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Generated by Django 3.2.5 on 2021-09-16 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job_management', '0019_auto_20210913_2147'),
('seekerbuilder', '0015_auto_20210914_1503'),
]
operations = [
migrations.AlterModelOpt... | [
"atifshafi63@gmail.com"
] | atifshafi63@gmail.com |
781493f32e1e6751e010c4bfc68e52c0d2761f13 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/web/woven/model.py | 30887f1e2ab52ec7730c05c3ce860bd0f79dc854 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,065 | py | # -*- test-case-name: twisted.web.test.test_woven -*-
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
__version__ = "$Revision: 1.53 $"[11:-2]
import types
import weakref
import warnings
from zope.interface import implements
from twisted.python import components, reflect
from twis... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
c81c481c4164984cc48621ac820341764eda0f70 | eec9c673984da80f42d2a296ee2cb068639db169 | /tods/tests/feature_analysis/test_StastiticalStd.py | e0e968bb983bc7b56792b66f46ebdad5e1844590 | [
"Apache-2.0"
] | permissive | datamllab/tods | 0766f48e7736fd2dca1cbc59fef019447039fed8 | 314dd6efc6ed3f8d25e100b08de4115edc636e14 | refs/heads/master | 2023-09-03T22:44:31.929096 | 2023-08-24T17:21:27 | 2023-08-24T17:21:27 | 293,719,013 | 1,094 | 175 | Apache-2.0 | 2023-08-24T17:21:28 | 2020-09-08T06:18:12 | Python | UTF-8 | Python | false | false | 5,434 | py | import unittest
from d3m import container, utils
from d3m.metadata import base as metadata_base
from tods.feature_analysis import StatisticalStd
class StatisticalStdTestCase(unittest.TestCase):
def test_basic(self):
self.maxDiff=None
main = container.DataFrame({'timestamp': [1, 3, 2, 5], 'values'... | [
"khlai037@gmail.com"
] | khlai037@gmail.com |
a28a37b7bb5df3b8e2d9c62214b8cdbe474acac8 | 35c8d28a6324d2425929c5aa43cf9d828c8977db | /favsinger/favsingerapp/admin.py | 898788cbaeba2c06bb422217c3ef40ab79967ddf | [] | no_license | peanutyumyum/Likelion_8th | 3bc9bb0414e0b5527ad6fbb4b86b90690e2f6111 | c7d9510f42a5d12f6b6cd58b298abceaf6befa2e | refs/heads/master | 2022-12-16T14:37:28.066275 | 2020-09-24T17:22:04 | 2020-09-24T17:22:04 | 275,782,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import singer
# Register your models here.
admin.site.register(singer) | [
"jrimit@gmail.com"
] | jrimit@gmail.com |
110218098957e307e9f699349df924065f373b44 | f4d0c26d3aa27c77a7c27d9002a08465a0638cbb | /csv_schema/migrations/0008_auto_20171025_1410.py | 5a5a669d07a6928196bbb33dce2d54f89af67d33 | [] | no_license | uk-gov-mirror/nhsengland.NCDR-reference-library | 3afe0711f47dc1b5fa25646bc870a806b3512ce5 | cac30ee0787e81fb9868731576c242c7ea3dbde8 | refs/heads/master | 2023-04-03T15:10:19.320708 | 2017-11-03T15:03:27 | 2017-11-03T15:03:27 | 356,799,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 14:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('csv_schema', '0007_auto_20171025_1119'),
]
operations = [
migrations.AlterUniqueTog... | [
"fredkingham@gmail.com"
] | fredkingham@gmail.com |
6750c234e65cc1a9d0a5a6882b55fffe847f320d | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/884.py | a8d74bc04bec198c408a24561663646aefed2414 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 169 | py | def word_count(phrase):
phrase = phrase.split()
occurences = {}
for word in set(phrase):
occurences[word] = phrase.count(word)
return occurences
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d313990cc102d01487a3785a466d81c1356d418e | d3dc1d50f683566c9d71722f218afc9340ed6ab5 | /mql.tolog/tests/test_tolog_converter.py | c083f199c167dc39587fb81161ecaf545da5e0ec | [] | no_license | heuer/mappa | b20ec8a61979a75802af19803c54ee339e65807c | fc89cf32560d2e9ea6b380127b77fb3587bbd06c | refs/heads/master | 2021-01-23T15:31:54.242393 | 2015-03-16T17:17:35 | 2015-03-16T17:17:35 | 32,339,134 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2007 - 2014 -- Lars Heuer - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# BSD license.
#
"""\
Tests against the "back-to-tolog" stylesheet.
:author: Lars Heuer (heuer[at]semagia.com)
:organization: Semagia - <http://www.semagia.com/>
:license: BSD Li... | [
"Lars@localhost"
] | Lars@localhost |
87ea03bc8f13ab1d0b3226d73cc1dd151a73eb2f | e8f76b7162c9781a4457cd06f5405925a9a18593 | /vbb_backend/users/admin.py | df843087d8aa089373a17f4662347cf93c4abe73 | [
"MIT"
] | permissive | wasswarichard/backend-vbb-portal | bcb54d4cf63f91862704ef5f6e5953b76d8839e8 | 8e4deec8a6e71b17da3476b0a05dbfe73d547b55 | refs/heads/master | 2023-03-24T21:09:25.364768 | 2021-03-16T18:53:26 | 2021-03-16T18:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.contrib import admin
from vbb_backend.users.models import User, Mentor, Student, HeadMaster
from django.contrib.auth.admin import UserAdmin
class MyUserAdmin(UserAdmin):
model = User
fieldsets = UserAdmin.fieldsets + (
(None, {"fields": ("user_type", "external_id")}),
)
admin.site... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
1fd18852d0cbcda793b74043c834504fd069e531 | e296f0f3d7db598aba5658de3ff8c767634e533e | /zoo/migrations/069_add_columns_is_visible_and_moderated_by_and_moderated_at_to_photos_photo.py | c04134e45dbcd4f0f9271346ff9617625c56833f | [] | no_license | devfort/wildlifenearyou | b2ac05070aa6face60156d6e7c85f98f00013c25 | 8e618aea90bbcedc45a4e30199e31880ea9e6dca | refs/heads/master | 2021-01-13T01:25:29.467549 | 2010-06-10T06:37:43 | 2010-06-10T06:37:43 | 7,874,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.conf import settings
if settings.DATABASE_ENGINE == 'mysql':
from dmigrations.mysql import migrations as m
elif settings.DATABASE_ENGINE == 'sqlite3':
from dmigrations.sqlite3 import migrations as m
import datetime
migration = m.Compound([
m.AddColumn('photos', 'photo', 'is_visible', 'bool NOT N... | [
"simon@simonwillison.net"
] | simon@simonwillison.net |
4886128779480e9bd970b67106abee8174e3da54 | b0ef0b7b7752564b703b4438e2624a4645299006 | /usedcar/userinfo/models.py | 3e3221136a2010eb538098c2a6e27d5b90d3e2aa | [] | no_license | beantomemory/django | 66f1ff3f7fbc72df18ee01e394e733b1135fb01c | 1b588cf3888724a5f4d86df04d7ebc91d7f20000 | refs/heads/master | 2020-04-19T09:17:32.771039 | 2019-01-29T07:21:01 | 2019-01-29T07:21:01 | 168,105,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
sex_choice = (
(0, "男"),
(1, "女"),
)
role_choice = (
(0, "买家"),
(1, "卖家"),
(2, "平台"),
)
bank_choice = (
(0, "中国工商银行"),
(1, "中国建设银行"),
(2, "中国农业银行"),
(3, "招商银行"),
(4, "北京银... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
72a1e8fbf7d997f06f2b6a1c01637a81067d34d5 | e09b905a092bd324050e405e1caf1e8a5630cc1f | /pyscf/x2c/sfx2c1e_hess.py | 3f553e32752db64b4fc050c0732c6e6e071cc884 | [
"Apache-2.0"
] | permissive | yangcal/pyscf | 09a2776e8d88b2118f1d00a810a9c90e7e214281 | e833b9a4fd5fb24a061721e5807e92c44bb66d06 | refs/heads/master | 2021-06-18T11:45:57.808856 | 2021-03-18T04:58:53 | 2021-03-18T04:58:53 | 246,690,849 | 1 | 0 | Apache-2.0 | 2020-03-11T22:17:28 | 2020-03-11T22:17:28 | null | UTF-8 | Python | false | false | 16,868 | py | #!/usr/bin/env python
# Copyright 2014-2020 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
7554d991424a83b97388e0f2edccaa713a4db8e9 | 7f114a1fb511b816c116d5b9e67cb998e3e23956 | /PyplayS31.py | c0da34dbd4a6b96011dfd4aadb0932634bbc90f4 | [] | no_license | Bharanij27/bharanirep | 90ac34eb28deaa7ec96d042de456de71b96866d7 | 982133a7939c889d433c178a601441fa087293d9 | refs/heads/master | 2021-08-07T20:22:36.244395 | 2020-06-05T04:58:10 | 2020-06-05T04:58:10 | 186,580,768 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n=list(input())
s=0
for i in range(0,len(n)):
if n[i]=='(': s=s+1
elif n[i]==')': s=s-1
if s==0: print("yes")
else: print("no")
| [
"noreply@github.com"
] | Bharanij27.noreply@github.com |
704a4aee8b6f27bb5942d6c99ff9aad57ada94b8 | d2f50124ff3bec70b9b3139ecb063b06e526781d | /biable/migrations/0030_auto_20170104_1540.py | e5309f4b5538cf1b5c001ee7667bcac85e3fe29f | [] | no_license | odecsarrollo/odecopack-componentes | e8d993f089bf53bbf3c53d1265e70ac5c06b59b8 | b583a115fb30205d358d97644c38d66636b573ff | refs/heads/master | 2022-12-12T00:33:02.874268 | 2020-08-13T18:45:01 | 2020-08-13T18:45:01 | 189,262,705 | 0 | 0 | null | 2022-12-08T11:23:46 | 2019-05-29T16:37:21 | Python | UTF-8 | Python | false | false | 872 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-04 20:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('biable', '0029_auto_20170104_1528'),
]
operations ... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
ef1d6fd47f5542551fbfe13739016b1565abc26b | 1bddfbc901946b6cdef47e5325626d26a9865a51 | /setup.py | c7120cb1461fa0651511e8b384ddc401e186d6a8 | [] | no_license | kagesenshi/dkiscm.importer | ce56eccf70ac776692a0e1015d3e5bc311680979 | c255bca2a755cd3681106c5d3ee2f917de359e2b | refs/heads/master | 2016-09-11T00:58:54.109283 | 2013-10-01T20:05:23 | 2013-10-01T20:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | from setuptools import setup, find_packages
import os
version = '1.4.dev0'
setup(name='dkiscm.importer',
version=version,
description="",
long_description=open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.rst")).read(),
# Get more strings from
#... | [
"izhar@inigo-tech.com"
] | izhar@inigo-tech.com |
56702c50ea0061115156969d39cfedd65bcc9d30 | 63c0a3e5599be2a038bb713abc69584db42a3aae | /system_status.py | baf403826f3a9dc1bef32657a89548c790de8370 | [] | no_license | dmitryduev/sserv-njs | 6ccc98512547ba399e62dd83a99eef6ffe92c075 | 17e53069a2804506aca2a2b984ab465c5b5ff718 | refs/heads/master | 2020-05-22T04:39:53.115636 | 2018-04-11T06:44:43 | 2018-04-11T06:44:43 | 49,021,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | from __future__ import print_function
import time
import psutil
import datetime
import json
import traceback
import argparse
if __name__ == '__main__':
''' Create command line argument parser '''
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
... | [
"dmitry.duev@gmail.com"
] | dmitry.duev@gmail.com |
c6de41952c29d959461ae7ba8c7269444ef04189 | 2c20cd2b84b44f6711d53e02f681b455100d5bdc | /setup.py | e3f064e118ecf33fe25b41078bef36e51b3bfdde | [
"MIT"
] | permissive | YAtOff/s3rsync | a28c69c21a1091ee3d53362af8a9d40357d0469a | ebb36e47602491ef7dcb073bed9527f6243e317b | refs/heads/master | 2023-05-12T04:05:19.950099 | 2020-01-10T10:57:28 | 2020-01-10T10:57:28 | 224,131,742 | 0 | 1 | MIT | 2023-05-01T21:17:12 | 2019-11-26T07:43:08 | Python | UTF-8 | Python | false | false | 184 | py | from setuptools import setup, find_packages
setup(
name="s3rsync",
version="1.0.0",
description="",
packages=find_packages(exclude=("tests",)),
zip_safe=False,
)
| [
"yavor.atov@gmail.com"
] | yavor.atov@gmail.com |
35c2d0ab34307b215c50250f7de343a66666276a | 9b5c995b247803b64895223fc51f407e9da2df45 | /IQ/Files/create_file_and_write_data.py | 2cc9b05c3f86d4e7f3dbc1997bc0e34c16dac890 | [] | no_license | Shyam-Personal/python_repo | 3453156ed73efaa91fa5e01dd15a1a0e664d3d22 | 1809de5afbecc1fd17cd70ae80a1eb4b9282d554 | refs/heads/master | 2021-01-25T14:10:30.394842 | 2019-09-23T13:26:47 | 2019-09-23T13:26:47 | 123,660,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | """
Create 10 files of 1MB size each.
"""
def main():
try:
#Solution 1
data = "A"*1024*1024
for i in range(10):
filename = "Test_{:03d}".format(i)
with open(filename, "w") as fh:
fh.write(data)
except Exception as e:
print("Exception wh... | [
"shyamdeshmukh1@gmail.com"
] | shyamdeshmukh1@gmail.com |
272486de2b4247c949cc78cd8e0754d37480de58 | b2913030cf1646310b08efaa57c2199bb08e37c9 | /general/apero_updates/inprogress/is_night_obs.py | c5c6c4306f1de856f7212981e99d50db3911ae68 | [
"MIT"
] | permissive | njcuk9999/apero-utils | 6f5b5083537562a31573b5c4cc76908c5fe194b9 | 368d53182428ca8befcdd3e5c8ca054f61913711 | refs/heads/master | 2023-08-31T02:56:01.369406 | 2023-08-18T15:12:59 | 2023-08-18T15:12:59 | 238,777,509 | 3 | 5 | MIT | 2023-08-17T14:15:41 | 2020-02-06T20:24:49 | Python | UTF-8 | Python | false | false | 2,454 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2023-01-31 at 11:24
@author: cook
"""
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from astropy.table import Table
from astropy import units as u
from tqdm import tqdm
import warni... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
182247988bf376661723c18e69b7095523833c84 | 04eb5ed2afbd0b2a190e38a48f1c8b86f63b5497 | /client/tests/mocks.py | c7f5fe1971df6068e73fca1512cc9aca0a5d54af | [
"MIT"
] | permissive | Playfloor/pyre-check | 04d671c63ce882891f978c8d1f6540d236dd22ab | 2e8b86fe7ed9fd84a026c188d08877a77b142309 | refs/heads/main | 2023-08-21T11:08:30.229589 | 2021-10-06T03:20:01 | 2021-10-06T03:21:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,028 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
from pathlib import Path
from typing import Optional
from unittest.mock import MagicMock
from .. import command_arguments, con... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7281a1d2b651d0b7b363e815d9c84fe19146565a | 116aadef9866be33782c6cbd06901703728295cc | /tests/conftest.py | 3b640c81e07bc3e0f36f219c27129fc10614ecc5 | [
"Apache-2.0"
] | permissive | dracos/datasette-tiles | 9c4cf6ca683a703f08e1f69cbc4def3694d7bcc3 | f7aa1a49df23584445cf154ad0e3e6d750965b15 | refs/heads/main | 2023-02-28T22:33:08.331682 | 2021-02-03T22:21:57 | 2021-02-03T22:21:57 | 335,932,265 | 0 | 0 | null | 2021-02-04T11:24:40 | 2021-02-04T11:24:39 | null | UTF-8 | Python | false | false | 2,211 | py | import asyncio
from datasette.app import Datasette
from datasette.database import Database
import pytest
CREATE_TILES_TABLE = "CREATE TABLE tiles (zoom_level integer, tile_column integer, tile_row integer, tile_data blob)"
CREATE_METADATA_TABLE = "CREATE TABLE metadata (name text, value text)"
@pytest.fixture(scope... | [
"swillison@gmail.com"
] | swillison@gmail.com |
292b77898a0865b25cff82a3cada848553b42769 | 1e37cc605d52a8264329ba23e2bc7a74408b0f22 | /chrome_from_url.py | 11afc3ec2f015d2f264d0fd1b2ff6d06e5837a79 | [] | no_license | maasano/download_file_from_web | 7df45639a26f9911bb0ae42727d7a5acfb396659 | fa6ce6d57f30c71e9ccd982a3e6f6e314187c8c6 | refs/heads/master | 2022-03-06T06:19:47.662728 | 2019-12-06T04:07:42 | 2019-12-06T04:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # URL でダウンロード
from selenium import webdriver
import os
import time
import csv
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import urllib.request
driver = webdriver.Chrome()
url = "https://pythonchan... | [
"YOUR@EMAIL.com"
] | YOUR@EMAIL.com |
99613f69b3d7edc99a5dc7a75e483837ae852e7c | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/spook/ectoplasms/repairs/services/create.py | 6d46089ce9dab0e2aa31caa286d4f9116eebb2cd | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 1,658 | py | """Spook - Not your homie."""
from __future__ import annotations
from typing import TYPE_CHECKING
import voluptuous as vol
from homeassistant.components.repairs import DOMAIN as REPAIRS_DOMAIN
from homeassistant.helpers import config_validation as cv, issue_registry as ir
from homeassistant.util.ulid import ulid
fr... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
4057875c237527412532aabab219ffd580c79c80 | 25dda94672497e3287a7403e283fb279ad171b79 | /boj/11286 절대값 힙.py | 339ce72781b6d758e8e55eb60f6416475b82351b | [] | no_license | woorud/Algorithm | c94b844e8c96a446c5fdee5c0abb159bfee384d7 | f5b8e3cf0aea7fc4400e6f5bb0c1531fad93e541 | refs/heads/master | 2023-02-23T13:53:28.645036 | 2021-01-29T12:24:23 | 2021-01-29T12:24:23 | 230,908,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import heapq, sys
n = int(sys.stdin.readline())
absheap = []
heapq.heapify(absheap)
for i in range(n):
num = int(sys.stdin.readline())
if num != 0:
heapq.heappush(absheap, (abs(num), num))
else:
try:
print(heapq.heappop(absheap)[1])
except:
print(0) | [
"woorud96@gmail.com"
] | woorud96@gmail.com |
cd8f4cd99721da1d6f5fef038c49ebdd3bbe34f1 | 1010e13cab98cb45a39f3db51d9ccb177fa8b87f | /tools/build_pytorch_libs.py | 1c4f16670c04d5f79b9dd767f2d7be42b567ac63 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | junjun315/pytorch | 2e7dbf60ae63da5e09bf5c8c9fea75f5fed4e940 | 35f1e28ba9b2f7b10198c2365c6437544de5acb8 | refs/heads/master | 2020-04-13T03:53:42.317924 | 2019-01-29T03:02:27 | 2019-01-29T03:02:27 | 162,945,027 | 0 | 0 | NOASSERTION | 2019-01-29T03:02:12 | 2018-12-24T03:18:09 | C++ | UTF-8 | Python | false | false | 11,686 | py | from .setup_helpers.env import (IS_ARM, IS_DARWIN, IS_LINUX, IS_PPC, IS_WINDOWS,
DEBUG, REL_WITH_DEB_INFO, USE_MKLDNN,
check_env_flag, check_negative_env_flag, hotpatch_build_env_vars)
import os
import sys
import distutils
import distutils.sysconfig
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
30f9b23d261d536ea04bb46352a57de101437555 | 248793d43cd41e588fe343fe6f7dd82f667d2eb8 | /num4ch.py | 5a15eaf1bf1360318191d485c7cfb5cbe665d42b | [] | no_license | dongzeyuan/Algorithms | 85dfe22abc0ef539f7d9ff4efa205810e80d70cc | a57bfe5a2887947419f5d6deb6988ce94917c286 | refs/heads/master | 2020-03-09T01:03:15.737335 | 2018-04-07T06:53:47 | 2018-04-07T06:53:47 | 128,503,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | # coding=UTF-8
import wx
class MyFrame(wx.Frame):
'''这是个测试各种函数用法的框架'''
def __init__(self):
wx.Frame.__init__(self, None, -1, 'TestFrame', size=(400, 300))
panel = wx.Panel(self, -1)
# 创建个文本框组件
# 4-04,这个组件定义,必须定义为self.的形式,下面回调函数才能使用该变量
self.num_txt = wx.TextCtrl(panel... | [
"dongfujing88@gmail.com"
] | dongfujing88@gmail.com |
418ab74777c51e9c75e706afd4e9ced9af142f16 | f669b07bf4e1047c7fa4f36983f5d8d9f607a42c | /.metadata/.plugins/org.eclipse.core.resources/.history/c0/20134fb0049000161aace3ce0a3d140b | 4ecac11caf1f115505b487e0511d733ae686192b | [] | no_license | tca85/python | d07b4453b38b5c5a024e2a6f8b8795dac6d928b1 | 436a23250539ef8055f817ada20cb21eab65cc42 | refs/heads/master | 2021-01-10T22:53:01.118480 | 2016-10-24T21:46:59 | 2016-10-24T21:46:59 | 70,340,585 | 1 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 1,233 | #!/usr/bin/python
# -*- coding: latin1 -*-
'''
Created on Oct 5, 2016
@author: tca85
'''
# Para importar a classe é melhor utilizar os atalhos do Eclipse,
# mas também segue o seguinte padrão:
# from pacote + nome do arquivo import NomeClasse
from pacote.Teste import Teste
from pacote.Arquivo import Arquivo
from pa... | [
"thiago.alves.85@gmail.com"
] | thiago.alves.85@gmail.com | |
be54f6e5681f2eb17e502fb6f64a2b06c1775e86 | 9b54e3d58447e917a238b85891020c392c4ac601 | /codeup/1013.py | 645162bf88e339a04cea6f30dd165cdc5e16443a | [
"MIT"
] | permissive | love-adela/algorithm-ps | ea0ebcd641a4c309348b389b8618daa83973f4b2 | c92d105d8ad344def001160367115ecf99d81c0d | refs/heads/master | 2023-05-11T03:37:11.750692 | 2023-04-30T17:31:30 | 2023-04-30T17:31:30 | 174,651,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | a, b = map(int, input().split())
print(a, b)
| [
"love.adelar@gmail.com"
] | love.adelar@gmail.com |
db3a5e796dccbcd86c59c07f265a266fba9cb209 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch66_2020_06_21_19_51_02_942607.py | 0e1afeb82048df4970ad1ba78a24fc6673a561ca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | def lista_sufixos(string):
lista_sufixos = []
while i < len(string):
lista_sufixos.append(string(i+1:))
i+=1
return lista_sufixos
| [
"you@example.com"
] | you@example.com |
04fe48c86770c1775a8f336b73a22b73e71e8ae1 | a9adab93602c472d90a327a466d2cb250bd47788 | /angstromCTF2019/Paint/solve.py | ad3234a32bae12301d55be4a7c6ebefee124f02c | [] | no_license | minmin53/writeups | afc4586e6a9390d7185f2baf99e0aead47bc3ba4 | 4e05be5f0e5eb26a5ee398eb24245e1109ddc056 | refs/heads/master | 2022-05-20T06:58:36.780383 | 2020-04-27T05:06:36 | 2020-04-27T05:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | from Crypto.Util.number import *
secret = 6299216070032440343347392965979007836838729038094716217833184417242961552606478615660021454017748417869655164248211331480611405072831167473391489751775134851039670112072175689249934635695595514291417569520187110712049499304168593830373061979536845913910662875274691147534950900... | [
"theoldmoon0602@gmail.com"
] | theoldmoon0602@gmail.com |
bd0a4edb0505e032600598e3d09c283a811f850c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/51000001.py | 7e66d0a6b9ad05613ad85688a4de506f6035643c | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/51000001.py generated: Wed, 25 Jan 2017 15:25:34
#
# Event Type: 51000000
#
# ASCII decay Descriptor: e- => ?
#
from Configurables import ParticleGun
from Configurables import MomentumRange
ParticleGun().addTool( MomentumRange )
from GaudiKernel import... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
1402215de795362c3bf280285a432acd439ed1a3 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/byte/Schema+Instance/NISTXML-SV-IV-atomic-byte-minExclusive-4-3.py | 546cd4d622222e004eb7c096b36aa268f39fa7a8 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 259 | py | from output.models.nist_data.atomic.byte.schema_instance.nistschema_sv_iv_atomic_byte_min_exclusive_4_xsd.nistschema_sv_iv_atomic_byte_min_exclusive_4 import NistschemaSvIvAtomicByteMinExclusive4
obj = NistschemaSvIvAtomicByteMinExclusive4(
value=109
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
17e70d2e41bdd516debf650b514fe200ab485a25 | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /leetcode/solved/43_Multiply_Strings/solution.py | 90b9fe407e659af20688b1f0a37aefc2a67638f3 | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 sungminoh <smoh2044@gmail.com>
#
# Distributed under terms of the MIT license.
"""
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.
Note: You mus... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
e7b70b9f8478cbe00449d124f054ef12ee82c03b | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/IR_engine_20210728234203.py | 14e0af8534a9c7489e013618793835e8ca8fd7ab | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
from nltk.stem import PorterStemmer
from nltk.tok... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
9c09d0d031676f69bb99df3784b5c7cc3a91d70e | 00657ecc75e0529f5b77759112398bdb11e612bb | /Python3.6/264-Py3-M-Ugly Number II.py | 8930b07936863fb50c031ac463f4cd020151073e | [] | no_license | Hidenver2016/Leetcode | da949cd17f8e29d6007b492719bbc97418ae9cb7 | 1379a6dc2400751ecf79ccd6ed401a1fb0d78046 | refs/heads/master | 2021-07-18T14:46:00.986614 | 2020-05-08T05:02:20 | 2020-05-08T05:02:20 | 152,190,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 18 22:41:55 2019
@author: hjiang
"""
"""
Write a program to find the n-th ugly number.
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.
Example:
Input: n = 10
Output: 12
Explanation: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the seq... | [
"noreply@github.com"
] | Hidenver2016.noreply@github.com |
8143ad2895c961ddd4a0d4b7b09c61ab15f705df | 799a8605e28118da863079f0924cd93974221c3c | /src/ralph/account/admin.py | 341a44f6d5b3666c748d8458f48daf0ba7e4f22c | [
"Apache-2.0"
] | permissive | damjanek/ralph | 31a2fae13e2608bcf9f13853199cfc00ba6db317 | 728e1c17ea8a70600928a59d5ec17a964063485d | refs/heads/master | 2021-01-24T05:06:34.308524 | 2013-02-20T10:26:47 | 2013-02-20T10:26:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin, GroupAdmin
from django.contrib.auth.models import User, Group
f... | [
"lukasz@langa.pl"
] | lukasz@langa.pl |
e0a024431ad980f1924a8f5527c9a6124af8d894 | a9c3e212f86acdbc84ba57357194e8f11c844535 | /catalogue_management/migrations/0005_auto_20170805_1824.py | 7f5911b81aa8bf4c4485c57fcc7aa45c5711b848 | [] | no_license | bitapardaz/carwash | bde4635bda1f1fa51409c2454e27aca84c2bffa0 | 0a10954eae44df7341372b5f3def652e512538b0 | refs/heads/master | 2021-01-15T13:34:31.198300 | 2017-08-23T11:35:33 | 2017-08-23T11:35:33 | 99,678,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('catalogue_management', '0004_auto_20170727_0856'),
]
operations = [
migrations.AlterField(
model_name='service',... | [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
9544cbbc6bb48a09e347d92844c17726d2e71c59 | 41e2cf24f0ff3a11a98bb00e03c598dde35452c4 | /reportview/migrations/0011_auto_20180727_1857.py | 1460d461da8f7a8e002282c032bb1794a19e8855 | [] | no_license | anushamokashi/mob | f5dbedc729073092f94323feca6d95dee24087a2 | 37bc0eb033bc23d37e9d4fb9bb8b2b456553ff7f | refs/heads/master | 2020-04-24T08:36:56.008212 | 2019-02-21T09:09:04 | 2019-02-21T09:09:04 | 171,810,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-27 13:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reportview', '0010_auto_20180725_1515'),
]
operations = [
migrations... | [
"anusha.mokashi@gmail.com"
] | anusha.mokashi@gmail.com |
9466b21de1d9b7a2824a0e619a7509c314f821cf | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /bpmn/models/data_output_association.py | c0dd7b339bab9f4979a5cb5433bfb5f15dd78b02 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 346 | py | from dataclasses import dataclass
from .t_data_output_association import TDataOutputAssociation
__NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
@dataclass
class DataOutputAssociation(TDataOutputAssociation):
class Meta:
name = "dataOutputAssociation"
namespace = "http://www.omg.org/... | [
"chris@komposta.net"
] | chris@komposta.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.