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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0283e43ce1b3b31585f53812085b759b79811cc6 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Individuo_20200710164705.py | ffc91aee5f741018ab08a59df5c8052c8ae54c56 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | import random
class Individuo():
SADIO = 0
INFECTADO_TIPO_1 = 1 #assintomáticos e o infectado inicial
INFECTADO_TIPO_2 = 2 #sintomático
CURADO = 3
MORTO = 4
def __init__(
self,
status,
atualizacoes_cura,
posicao):
self.status = status... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
d29f521a654b15c312751d8f72d1ec6c1fa0ff3d | d0081f81996635e913b1f267a4586eb0bfd3dcd5 | /tests/unit/dataactvalidator/test_fabsreq4.py | 489d9acbfbffa7cd67a5f92be51975de4852decc | [
"CC0-1.0"
] | permissive | fedspendingtransparency/data-act-broker-backend | 71c10a6c7c284c8fa6556ccc0efce798870b059b | b12c73976fd7eb5728eda90e56e053759c733c35 | refs/heads/master | 2023-09-01T07:41:35.449877 | 2023-08-29T20:14:45 | 2023-08-29T20:14:45 | 57,313,310 | 55 | 36 | CC0-1.0 | 2023-09-13T16:40:58 | 2016-04-28T15:39:36 | Python | UTF-8 | Python | false | false | 1,561 | py | from tests.unit.dataactcore.factories.staging import FABSFactory
from tests.unit.dataactvalidator.utils import number_of_errors, query_columns
_FILE = 'fabsreq4'
def test_column_headers(database):
expected_subset = {'row_number', 'business_funds_indicator', 'correction_delete_indicatr',
'u... | [
"Burdeyny_Alisa@bah.com"
] | Burdeyny_Alisa@bah.com |
c3b8845978fac8cfa735af881c0a55ce00ccf926 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_326/ch6_2020_03_09_19_29_35_692924.py | 62c78804fbf0b43e0866b1d8788774568a3b42ba | [] | 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 | 134 | py | def celsius_para_fahrenheit(celsius):
temperatura_equivalente_em_F = (celsius * 9/5) + 32
return temperatura_equivalente_em_F | [
"you@example.com"
] | you@example.com |
167189898c959abc7ed28e564880ee1069d227f1 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/CDPSM/Balanced/IEC61970/LoadModel/__init__.py | 9ee7be64a7b50687c12f23c691687acf992d4b74 | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 1,650 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
8461e2f548998a35f94100eb6fdd0f429b1d5ab8 | c68268657c1a94c09271a124b200b0aeb85bb05e | /angulardjangorest/angular/views.py | 2fc517fe4100318c5e1a5d13e2a29905c476cc33 | [] | no_license | photonkhan/angulardjangorest | 146960801c8fdab924c4012271075a04c1379d91 | 3357066ab094ae152b138a506f3e2d41588ecf68 | refs/heads/master | 2022-12-12T02:09:56.248353 | 2018-07-25T13:12:39 | 2018-07-25T13:12:39 | 142,123,874 | 0 | 0 | null | 2022-11-17T05:58:28 | 2018-07-24T07:49:54 | HTML | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
def index(request):
context = {
'header' : 'Angular with Djano Rest API'
}
return render(request, 'angular/index.html', context)
| [
"you@example.com"
] | you@example.com |
ff6750998ace4ef5d00078ea55ba213c8bdec0e3 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/dimension.py | cd981259ff98407818c27a6f0bc3680ff3fc3da4 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class Dimension:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attri... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c728ae87bedf61ae87a3b9715df359479018fde4 | a08cbd5e9b4e4a037deaaae1749ed4dc55c79661 | /test/IECoreMaya/ObjectDataTest.py | b61ac51f2f90642c99a252ee1471e27d8838e253 | [] | no_license | victorvfx/cortex | 46385788b12dae375c1a5ade26d8f403d2dbccff | deb23599c8c69eac5671e59fe1a8ca0d5e943a36 | refs/heads/master | 2021-01-16T23:11:39.139147 | 2017-06-23T12:39:41 | 2017-06-23T12:39:41 | 95,709,763 | 1 | 0 | null | 2017-06-28T20:40:12 | 2017-06-28T20:40:12 | null | UTF-8 | Python | false | false | 3,927 | py | ##########################################################################
#
# Copyright (c) 2011, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribu... | [
"john@image-engine.com"
] | john@image-engine.com |
2175f0c6c75b4f6669609f7a09d8ddb6bacc229e | 93bf4bbafe0524335ea1216f7f2941348c2cd1bd | /tensorflow/python/kernel_tests/pad_op_test.py | 1597a8c947eb82da5cb47f2e9aac7d6a2967bbbf | [
"Apache-2.0"
] | permissive | sachinpro/sachinpro.github.io | c4951734b09588cad58711a76fe657f110163c11 | c3bbd8d89818f5d8bb7296c851ed5e52c19728e3 | refs/heads/master | 2022-12-23T10:00:13.902459 | 2016-06-27T13:18:27 | 2016-06-27T13:25:58 | 25,289,839 | 1 | 1 | Apache-2.0 | 2022-12-15T00:45:03 | 2014-10-16T06:44:30 | C++ | UTF-8 | Python | false | false | 6,742 | py | # Copyright 2015 Google Inc. 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 applicable law or a... | [
"x0234443@ti.com"
] | x0234443@ti.com |
a5f111402661dc059cae8cb061839575063d1371 | e84feabf99ff6e15df9eeee7b7c2595853fe746d | /app/utils/rabbit.py | 34a303f35e2f07bacfe9fb45fc79e5897dccb18e | [] | no_license | Ravillatypov/freeswitch-intergration | f0536b3abf3982cb2051291dbe101d07e59809b8 | cac8cc829ca0d5734a5294847bf7587758b45eb1 | refs/heads/main | 2023-01-23T02:06:53.070823 | 2020-10-01T17:19:33 | 2020-10-01T17:19:33 | 300,362,493 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | from uuid import uuid4
from aio_pika import Message
from app.settings import MQ_CONVERTER_QUEUE_NAME, MQ_UPLOADS_QUEUE_NAME, ENVIRONMENT
from aio_pika import RobustConnection
async def send_message(rabbit_mq: RobustConnection, routing_key: str, body: bytes):
if ENVIRONMENT == 'test':
return
async w... | [
"ravillatypov12@gmail.com"
] | ravillatypov12@gmail.com |
f7460f6641108e37de035ca72ab022c1e7990a3d | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-3507.py | f4222a0786dc84c1b850189e6ca510c0b4caf33c | [] | 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 | 23,286 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
dc4e68ac5b189ea2e0119cedefbd33e0a5c254e5 | 0cce9a9d9b9da4a820e9ed5fc674d06f0be9810a | /ch10_first_exercises.py | 61b5a7953658f4cd352dcef9cd381f374e582ead | [] | no_license | wbroach/python_work | 3f4a85e998805f50b2400e64c5b7cbc31780b245 | 7e1842b317539d61bab0f04d72e71db893c865ff | refs/heads/master | 2020-04-14T22:06:43.164595 | 2019-10-02T01:25:00 | 2019-10-02T01:25:00 | 164,151,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py |
#~ file_name = 'python_can.txt'
#~ with open(file_name) as file_object:
#~ lines = file_object.readlines()
#~ learning_summary = ''
#~ for line in lines:
#~ learning_summary += line.strip() + " \n"
#~ print(learning_summary)
file_name = 'python_can.txt'
with open(file_name) as ... | [
"someone@someplace.com"
] | someone@someplace.com |
d2dded48a1d604bda8edaeb28fbb63865106133a | e406487b60cf9a220c4164a2e6f6e612ec98843f | /mall/apps/goods/migrations/0002_auto_20190117_1555.py | 7fdd947712c4473763b67eca18cb03688ec0a703 | [] | no_license | L-huihui/duoduo | 3d7caad17664b045882043afacb3dcbc13008fb2 | 16bb64e1216a82a35867516e4351dffe68247415 | refs/heads/master | 2020-04-18T05:49:21.281388 | 2019-01-25T01:44:29 | 2019-01-25T01:44:29 | 167,293,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-01-17 07:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0001_initial'),
]
operations = [
migrations.RenameField(
mode... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
0ba8e6cf08ec403a39f4114cd07dae91ac4183bf | f572e0a4b843ed3fd2cd8edec2ad3aab7a0019d3 | /ows/wms/v13/test_encoders.py | d57cc1d1d58cfd386dcf9b086e8f9df557098abf | [
"MIT"
] | permissive | EOxServer/pyows | 9039c8ed7358c98d736e2b8fd9f47be944f0b0a1 | e09310f992d6e69088940e9b5dbd7302f697344b | refs/heads/master | 2022-10-09T23:27:43.884159 | 2022-10-04T10:03:25 | 2022-10-04T10:03:25 | 218,005,699 | 1 | 1 | null | 2022-01-04T13:36:06 | 2019-10-28T09:01:51 | Python | UTF-8 | Python | false | false | 7,902 | py | # -------------------------------------------------------------------------------
#
# Project: pyows <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
# -------------------------------------------------------------------------------
# Copyright (C) 2019 EOX IT Services GmbH
#
# Permission i... | [
"fabian.schindler.strauss@gmail.com"
] | fabian.schindler.strauss@gmail.com |
2ce97362db302bca16c4ce50d46abe8cef6a939d | e2e39726195c7bc075b9bd56e757acd136527d5c | /typings/vtkmodules/vtkCommonCore/vtkDenseArray_IhE.pyi | 1e566c0d11ab4d5b928576e9018c81f9d2190df0 | [
"BSD-3-Clause"
] | permissive | gen4438/vtk-python-stubs | a652272183d2d1ee48d4639e86bcffc1ac454af0 | c9abd76362adf387af64ce5ddbd04c5d3bebe9da | refs/heads/main | 2023-04-04T02:13:15.459241 | 2021-04-15T10:47:28 | 2021-04-15T10:53:59 | 358,224,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,465 | pyi | """
This type stub file was generated by pyright.
"""
from .vtkTypedArray_IhE import vtkTypedArray_IhE
class vtkDenseArray_IhE(vtkTypedArray_IhE):
"""
vtkDenseArray<unsigned char> - Contiguous storage for N-way arrays.
Superclass: vtkTypedArray[uint8]
vtkDenseArray is a concrete vtkArray imp... | [
"g1e2n04@gmail.com"
] | g1e2n04@gmail.com |
b72ad75306f31160948715d6656aedb45e1792c7 | e2e993962d6e5e30905d13f0532acdac9302c84b | /HTL.tab/Test.panel/Test.pushbutton/keyman/keyman/keys/models.py | a35c8dcb63e577c0174f8f38772822ae3ef1b000 | [
"MIT"
] | permissive | htlcnn/pyrevitscripts | a1777fa0ba36003443d95e0f9fbbcadc4ffa5fe7 | b898a3a5e8d212570254772ae314f343498b1398 | refs/heads/master | 2021-01-01T20:08:31.001558 | 2018-01-11T06:44:26 | 2018-01-11T06:44:26 | 98,773,971 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.db import models
from django.core.urlresolvers import reverse
class Software(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('software_edit', kwargs={'pk': self.pk})
| [
"hoangthanhlong@gmail.com"
] | hoangthanhlong@gmail.com |
849cad464c0731a0afd6cb94a57fdc9007ce5036 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2122.py | c31ad8bdbc94a1aa0c0f79101990a413684bb5df | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py |
def resolve_case():
num = int(input())
num_list = list(str(num))
assend_index = 0
same=1
for assend_index in range(1, len(num_list)):
if num_list[assend_index - 1] > num_list[assend_index]:
break;
elif num_list[assend_index - 1] == num_list[assend_index]:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
edc76c891adea130c96d0cc048da2c771c18b92a | 4dda597dac544b237cf8f8b04b3c9e662b988a92 | /moot/moot/urls.py | 8bbcabe60d7122ead34e89c6f5032e63ab65b2e7 | [] | no_license | beriuta/history | 02ac9414c0475fde59f6a455c23c56235fe3c4bc | 026c965f694e84120825069bedf7bfac235318b5 | refs/heads/master | 2020-04-11T17:24:39.558174 | 2018-12-16T02:08:18 | 2018-12-16T02:08:18 | 161,959,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """moot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"2457409765@qq.com"
] | 2457409765@qq.com |
d03578c423b75b0a881d10b32f169ad9a5075cbb | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005394.py | e5781c7991690423aaa123393d0e5d46def81e37 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
0e7ff815cea27a8a05cb59b0e158e66ee68977ce | 1896685500833ba2e4e25400a03e10536dc57ad5 | /apimpe/wsgi.py | 7ebc7b896b1a99ceded6af9f77e7fbd203d23e58 | [] | no_license | Oswaldinho24k/MPE-API | 04e5d134199083300c2eac2b2d21e206e4306eeb | 2e1d7b282f994867c04d31b09395785d73d90b9d | refs/heads/master | 2020-06-21T14:53:18.903127 | 2016-12-02T18:57:25 | 2016-12-02T18:57:25 | 74,783,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | """
WSGI config for apimpe 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Django... | [
"oswalfut_96@hotmail.com"
] | oswalfut_96@hotmail.com |
2dc917a66e8ef838946a5fcb757890bce77a7963 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-kms/aliyunsdkkms/request/v20160120/GenerateDataKeyWithoutPlaintextRequest.py | 681ae27d16cff738aea6473faf406f81efbeea7d | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,008 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
f6f69bd11a57079c1e860e060690db08820b94e3 | 67553d46a257631810f394908013b82c337e0fbd | /goat/chapter05/5.2/globals_test.py | cc3a84eb474eb4feacb54ede07ac205a359b442a | [] | no_license | bopopescu/goat-python | 3f9d79eb1a9c2733345d699c98d82f91968ca5fa | c139488e2b5286033954df50ae1ca834144446f5 | refs/heads/master | 2022-11-21T11:25:27.921210 | 2020-03-06T01:02:57 | 2020-03-06T01:02:57 | 281,066,748 | 0 | 0 | null | 2020-07-20T09:00:08 | 2020-07-20T09:00:08 | null | UTF-8 | Python | false | false | 154 | py | # coding: utf-8
name = 'Charlie'
def test ():
# 直接访问name全局变量
print(name) # Charlie
name = '孙悟空'
test()
print(name)
| [
"34465021+jwfl724168@users.noreply.github.com"
] | 34465021+jwfl724168@users.noreply.github.com |
51719366dd3b45e9da2070caf4e1ca0906df0c1b | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2283-2409/base-trunk-2283/prototype/pyfox/setup.py | 58da3fb0318bb0b263de8f582d9d2d07804158ca | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | import os
from distutils.core import setup, Extension
Moz="/home/djm/work/firefox/mozilla"
MozDist=Moz+"/dist"
setup(name='pyfoxutil',
version='1.0',
ext_modules=[Extension('_pyfoxutil', ['pyfoxutil.cpp'],
include_dirs=[MozDist+"/include/embed_base",
... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
59cee6f8de1719cbc71645dcc02d79317246d9ea | ce083128fa87ca86c65059893aa8882d088461f5 | /python/python-salad-bdd/.venv/bin/subunit-filter | 317293fe0fb7c7007d0cf0b7e77ec7d6c6da347c | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 7,071 | #!/home/marcosptf/developer/python-bdd/.venv/bin/python2
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 200-2013 Robert Collins <robertc@robertcollins.net>
# (C) 2009 Martin Pool
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-claus... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br | |
56543401f8fff6de82cf72f6710a4d11cd322f0f | 265a07a2becd232b292872d1d7136789463874be | /lei练习/child.py | a18eb14e18c20325173e5d20365a90e17db5663c | [] | no_license | Lz0224/Python-exercise | f4918b8cd5f7911f0c35c0458c2269959937d07d | 3d09f54aebc653f4a5b36765b25c7241e3960764 | refs/heads/master | 2020-12-24T22:20:55.573019 | 2017-08-11T07:18:16 | 2017-08-11T07:18:16 | 100,005,776 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/python
#coding=utf-8
class ParentClass(object):
"""docstring for ParentClass."""
name = "老张"
# def __init__(self, arg):
# super(ParentClass, self).__init__()
# self.arg = arg
def fun(self):
print "老子有钱"
class ChildClass(ParentClass):
"""这是什么玩意。。。。"""
# def _... | [
"Lz0o_o0@outlook.com"
] | Lz0o_o0@outlook.com |
405530803fec0cadc01ebcb0fa2c1f53d630fa56 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/chrome/chrome_common.gypi | a8ee3297b5a77f90ca6ad3a7c2b54682254341f2 | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 33,680 | gypi | # Copyright (c) 2013 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.
{
'targets': [
{
'target_name': 'common',
'type': 'static_library',
'variables': {
'chrome_common_target': 1,
'en... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
374a204faa07f80ad6187a04e03dc1f385ef9168 | 7619aed8a311e2832634379762c373886f4354fb | /trace_pox_eel_l2_multi-BinaryLeafTreeTopology1-steps200/interactive_replay_config.py | 642e4a4db5b05f5ecefc4f4ffd682ee68f5bc5b3 | [] | no_license | jmiserez/sdnracer-traces | b60f8588277c4dc2dad9fe270c05418c47d229b3 | 8991eee19103c8ebffd6ffe15d88dd8c25e1aad5 | refs/heads/master | 2021-01-21T18:21:32.040221 | 2015-12-15T14:34:46 | 2015-12-15T14:34:46 | 39,391,225 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.interactive_replayer import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[Co... | [
"eahmed@ethz.ch"
] | eahmed@ethz.ch |
01ce29ccc41608e7b9ab3c3e53c70e7465104cb8 | fd67592b2338105e0cd0b3503552d188b814ad95 | /egoi_api/paths/lists/post.pyi | e1cd61175409ba8d08a6a2aaadd81bc677ac36da | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,249 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from egoi_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F4... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
176869291f6071bba98ea44848936d7ceec24616 | 9b3abcd9c207a015ed611da2a22b48957e46c22d | /18_Django框架网站/dailyfresh/apps/user/models.py | 7d2b0e2c38e7610873de8a89d398099678359f03 | [] | no_license | it-zyk/PythonCode | 6e22aff6705d0e66df74a7c43f62f8a3a8f3f70f | 1ee51edad768ff01ba8542b1ddea05aee533524b | refs/heads/master | 2020-04-23T05:47:33.691995 | 2019-05-08T14:07:34 | 2019-05-08T14:07:34 | 170,951,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from db.base_model import BaseModel
# Create your models here.
class User(AbstractUser, BaseModel):
'''用户模型类'''
class Meta:
db_table = 'df_user'
verbose_name = '用户'
verbose_name_plural = verbose_name
cl... | [
"it-zyk@outlook.com"
] | it-zyk@outlook.com |
1d82f772f429dc0332e5f8d1b7f993895f9f527b | b2e1d96c0551b6b31ef85353f9b6e5b6354d64e8 | /datafaucet/spark/rows.py | 97e9ffa97152917b124d55ef93a80b38b4716046 | [
"MIT"
] | permissive | SylarCS/datafaucet-1 | 8bd7b96cecc5592e153b61367892e2a63a96119d | a63074ba1fb1a6d15f06e2bfff05df754aaaa452 | refs/heads/master | 2020-09-15T06:04:31.999012 | 2019-11-18T20:00:55 | 2019-11-18T20:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | import sys
from random import randint
from pyspark.sql import DataFrame
from datafaucet.spark import dataframe
INT_MAX = sys.maxsize
INT_MIN = -sys.maxsize-1
def sample(df, n=1000, *col, seed=None):
# n 0<float<=1 -> fraction of samples
# n floor(int)>1 -> number of samples
# todo:
# n dict of key, ... | [
"natalino.busa@gmail.com"
] | natalino.busa@gmail.com |
87a59bc42433821ff6c353a9e24ee2417a5de00f | a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25 | /l3/z3/.history/population_20200522014505.py | 3e8108e382a859c114f46c50cbcf52c462b42894 | [] | no_license | Qabrix/optimization_amh | 12aab7c7980b38812ec38b7e494e82452a4176b4 | 6a4f5b897a4bef25f6e2acf535ba20ace7351689 | refs/heads/main | 2022-12-28T10:57:00.064130 | 2020-10-17T22:57:27 | 2020-10-17T22:57:27 | 304,983,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | import random
import numpy as np
from utils import calculate_value, decision
class Inhabitant:
def __init__(self, gene, value=0):
self.gene = gene
self.value = 0
def __iter__(self):
for char in self.gene:
yield char
def __len__(self):
return len(self.gene)
... | [
"kubabalicki@gmail.com"
] | kubabalicki@gmail.com |
8efeda44d905898ff678ae343caf148717963d54 | 38c606ed14564591c1aa6e65c7dab255aebf76f9 | /0x11-python-network_1/5-hbtn_header.py | 2c76d103cd07681c5295f2c7dd0ea62d4798e81a | [] | no_license | camilooob/holbertonschool-higher_level_programming | d7cee708b308bed86fcc384d7451de26fa9cafaa | db9b6760e7e4998c5f00a4f2cfeb17ec14e44cab | refs/heads/master | 2020-09-29T00:19:25.736344 | 2020-05-15T01:34:32 | 2020-05-15T01:34:32 | 226,900,553 | 1 | 8 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #!/usr/bin/python3
"""the package request"""
if __name__ == "__main__":
import requests
import sys
r = requests.get(sys.argv[1])
print(r.headers.get('X-Request-Id'))
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
0332091c980a247b508924dc4e03710be5f08839 | b0856a2d66cc4c71705b8c16c169848070294cf6 | /removeDupSortedArray.py | 3f60a7ee970822ff9418506693aa240504fabb51 | [] | no_license | jfriend08/LeetCode | 9e378ff015edc3102a4785b0832cf0eeb09f5fc2 | f76d3cf2e7fd91767f80bd60eed080a7bad06e62 | refs/heads/master | 2021-01-21T19:28:25.354537 | 2016-01-15T04:53:11 | 2016-01-15T04:53:11 | 28,518,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | '''
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first five elements of nums being 1, 1, 2, 2 and 3.
It doesn't matter what you leave beyond the new length.
Subscribe to see whic... | [
"ys486@cornell.edu"
] | ys486@cornell.edu |
bfe8e4bc295bbf5a06577105e22905e15b024ebe | 1aec3c93eaa1fc271ea80141a3a41a24cd60c8d9 | /mcrouter/test/test_loadbalancer_route.py | 854b6970f6db6a6b80bfcb4620c6a999a5ebd5a3 | [
"BSD-3-Clause"
] | permissive | boboozy/mcrouter | 810859b997ea2c687c67723a3ad94aa88e93b746 | d78f599bd3887a87d5785422a25e3ac07b0de169 | refs/heads/master | 2021-07-25T09:52:09.175808 | 2017-11-04T01:02:51 | 2017-11-04T01:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import a... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2c198ce9caa80d3848e36c87c340082b71dfce04 | 4d37628a27c5a50a70fa06f78be346223c37ade0 | /jobs/migrations.py | 88f61681fe41fbe0da93397de6760842a9ab4e57 | [
"MIT"
] | permissive | vinissimus/jobs | 93dbc0fd2c755b63d685165996b27a260e5e367c | 6e15749465f7da44e4dc0ad2f520ea6f7fbb67fe | refs/heads/master | 2023-01-01T01:29:50.332671 | 2020-10-23T15:27:49 | 2020-10-23T15:27:49 | 281,219,465 | 7 | 0 | MIT | 2020-10-23T15:31:47 | 2020-07-20T20:30:13 | Python | UTF-8 | Python | false | false | 1,978 | py | from .utils import setup_stdout_logging
from pathlib import Path
import asyncio
import asyncpg
import glob
import logging
import sys
import typing
logger = logging.getLogger("jobs")
current = Path(__file__)
def get_migrations_path() -> Path:
return current.parent / "sql"
def get_available():
files: typin... | [
"jordic@gmail.com"
] | jordic@gmail.com |
a98daa0410363b639ee81fc77a48ba3c678abf66 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/insights/get_guest_diagnostics_settings_association.py | 3440cdd68c76aa4250f607aaf13bbb8ba2ffb7dc | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,562 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
1fcab9c53a7ede0ecb7dfb6ee6e2ec6b84a8d078 | 0f44be0680ccbc2f8f96abfe97f5d1a094cd6e98 | /erokov.py | 494d719d07af47089ded91dc77709f24a452c75e | [] | no_license | kimihito/erokov | f75bf3199531af17a700dac854f00df19b59d3c1 | 32390edbade3d84f8be87367654ff1f6c229ca62 | refs/heads/master | 2016-09-05T23:20:41.926046 | 2012-08-27T10:33:11 | 2012-08-27T10:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | #!/usr/bin/env python
# coding: utf-8
#AVのタイトルをマルコフ連鎖で作るスクリプトを書いてます
import random
import MeCab
def wakati(text):
t = MeCab.Tagger("-Owakati")
m = t.parse(text)
result = m.split(" ")
return result
if __name__ == "__main__":
filename = "title_sort_uniq.txt"
wordlist = []
src = open(filenam... | [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
f80e0eb67f0790a4fdf274aeb6c73eb6e9eec19b | cdc996370837c00003296556afdb33e2f2fee884 | /devel_scripts/launcher.py | 5237995d7e1aaac822ae3a4d546bf7b117644b25 | [] | no_license | capitaneanu/borunte_robot | 1d4f14aadb2aa9e041ea0fdccc85d424cf155fb2 | 85e8765cbfae879f297c5254733a2dea48daeba0 | refs/heads/master | 2022-09-15T03:09:14.062484 | 2020-05-20T17:39:01 | 2020-05-20T17:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
import os
import shlex
import sys
import time
TIMEOUT = 1.0
processes = [] # type: List[sh.RunningCommand]
class ProgramTerminated(Exception):
pass
def check_pid(pid):
""" Check For the existence of a unix pid. """
try:
os.kill(pid, 0)
except OSError:
retur... | [
"mail@roessler.systems"
] | mail@roessler.systems |
59fe0e859dc6987503f7f78594e9789a09d02ae2 | cc60064828984edca97af87427159981e89f582d | /torch/_dynamo/output_graph.py | aee9bfebcf4d9f2f436a509da52fcbe1f879468d | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | d4l3k/pytorch | fdd28e089aa77c1cd897da02c9dd765d53f5ab05 | 11890156e7d10d1fb72c41a38a1b94fc27004d2b | refs/heads/master | 2023-04-16T01:22:23.749295 | 2023-04-04T13:09:25 | 2023-04-06T01:51:10 | 153,366,388 | 0 | 0 | NOASSERTION | 2018-10-16T23:14:39 | 2018-10-16T23:14:38 | null | UTF-8 | Python | false | false | 34,350 | py | import collections
import copy
import functools
import itertools
import logging
import operator
import re
import sys
import traceback
from dataclasses import dataclass
from typing import Any, Dict, List, NamedTuple, Optional, OrderedDict, Set, Union
import torch._guards
import torch._logging
import torch.nn
from tor... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
85f5723a1b5f6ace5827d42b8a4f999504cb1d52 | 92e3840c3b799a8dffffa2aa5fc3ee9c4c3e3bea | /src/apps/video_tags/classification/en_vtag_process.py | 58b8abccecb8387790fdc8ab9f5d4b6aab2f13de | [] | no_license | ZouJoshua/nlp_server | a5c1de32b1fcce769fd70af71425897f0dd03abf | ef53a3dc5856aff5e6ba8ad449f0b21962acbd80 | refs/heads/master | 2022-12-05T14:51:45.816542 | 2019-09-19T10:32:54 | 2019-09-19T10:32:54 | 173,694,625 | 0 | 0 | null | 2022-11-21T21:38:00 | 2019-03-04T07:24:12 | Python | UTF-8 | Python | false | false | 19,874 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Joshua
@Time : 2019/3/4 12:26
@File : predict.py
@Desc : 印度英语视频tag处理
"""
from pyquery import PyQuery
import re
import logging
import json
import requests
from nltk import ne_chunk, pos_tag, word_tokenize
from nltk.tree import Tree
class EnProces... | [
"joshua_zou@163.com"
] | joshua_zou@163.com |
15c9096c932868854571f4061ed0c3a68eec026e | 6efc2eb23678741263da7ac6bd868a9f3a37d38b | /01.stock_investment/05.chart_analysis/test_boto3/test_s3_download.py | 363a8247b52c0222ee245d335c3d2c697ee9f4c1 | [] | no_license | predora005/business-research | c6272b129353a302673cf8a13c1629b5ade4a50e | 96743cc6a0b592c87e6d0f2de341fc3bbb3ef3b1 | refs/heads/main | 2023-06-18T08:08:24.537951 | 2021-07-22T04:19:09 | 2021-07-22T04:19:09 | 314,985,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # coding: utf-8
import boto3
import tempfile
##################################################
# メイン
##################################################
if __name__ == '__main__':
BUCKET_NAME = ''
OBJECT_NAME1 = 'dir1/file1.txt'
FILE_NAME1 = 'file1.txt'
OBJECT_NAME2 = 'dir1/file2.txt'
FILE_NA... | [
"46834065+predora005@users.noreply.github.com"
] | 46834065+predora005@users.noreply.github.com |
624e6493ba366cde8a495ba0effb21374417bbd1 | 4d0213e588149b9fa86fbe35faea8657052d9254 | /setup.py | 27b1a3f4ad3e7c71aeb236803df30c35aed1ff6d | [
"Apache-2.0"
] | permissive | Pyligent/gen-efficientnet-pytorch | 1e492dec87fa33458e452472c65ed0f7afd1a876 | b3bc163478737924f508978a6f0c96e07046e025 | refs/heads/master | 2020-12-14T15:51:36.930259 | 2019-10-30T22:31:10 | 2019-10-30T22:31:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | """ Setup
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
exec(open('geffnet/version.... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
e3fccd35bcac0946969cbb7de0a9f8057ab2c8ee | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/BsPlanInviteConfig.py | f6e1ed05d6ca34d93fd5c47f5c13a9c375717bbe | [
"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,362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class BsPlanInviteConfig(object):
def __init__(self):
self._end_time = None
self._start_time = None
@property
def end_time(self):
return self._end_time
@end_time.s... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
3ecd4acf486810b559bb1eb756b9b32e70f99558 | f05084e33f189c3ca16982a6704fa808831fa71a | /yayo/cart/views.py | 5009693a7231de1285c2d32c1e33dd096dbdca83 | [] | no_license | willyowi/Yayo-maluku-shop | f7581ae4c5ca0a1dc6a9daa92701d0965d27914c | 7c8844bd3cbd97fdac01f991b45ca55b5f419c38 | refs/heads/master | 2021-01-06T16:06:36.397007 | 2020-02-18T15:20:46 | 2020-02-18T15:20:46 | 241,390,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.shortcuts import render,redirect,get_object_or_404
from django.views.decorators.http import require_POST
from shop.models import Product
from .cart import Cart
from .forms import CartAddProductForm
# Create your views here.
@require_POST
def cart_add(request, product_id):
cart = Cart(request)
produ... | [
"wilsonowino1@gmail.com"
] | wilsonowino1@gmail.com |
a30781f84b1feca4e4a793f1a648138952c65940 | b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b | /examples/nlp/duplex_text_normalization/data/data_split.py | 3b053a34419980bc0351c55707a288cbdab02f16 | [
"Apache-2.0"
] | permissive | VahidooX/NeMo | bfde8c9b48c818342a9c6290fb9dee62fafeca38 | 866cc3f66fab3a796a6b74ef7a9e362c2282a976 | refs/heads/main | 2023-07-23T19:13:39.948228 | 2022-04-29T21:51:54 | 2022-04-29T21:51:54 | 227,733,473 | 1 | 2 | Apache-2.0 | 2022-09-15T15:30:13 | 2019-12-13T01:55:21 | Jupyter Notebook | UTF-8 | Python | false | false | 5,238 | py | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | VahidooX.noreply@github.com |
b02a3215d5c955daec98e2db06f5171974b90720 | 05ec80585e500eb75baade82bada8f0c5a2a76dc | /Backtracking/GenerateIP.py | 4b339410a665caec82a4815768bb4049c6a8bab4 | [] | no_license | NenadPantelic/GeeksforGeeks-Must-Do-Interview-preparation | 24477da148d4b9fe8113f669f21984d081327563 | 180c6b1bc6a4b6e1b44c409c220368b391b672b8 | refs/heads/master | 2021-01-05T19:16:22.436554 | 2020-11-15T14:39:02 | 2020-11-15T14:39:02 | 241,113,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 25 21:19:12 2020
@author: nenad
"""
def is_valid(ip, pos,segments):
len_flag = True
# ip is not valid in form 0x e.g 121.03.22.234
if len(ip) > 1 and ip[0] == "0":
len_flag = False
# check ip length, value and if ip's part i... | [
"nenadpantelickg@gmail.com"
] | nenadpantelickg@gmail.com |
907a3117714649a6d18e4ff188d89b213ab23196 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v39r1/tuplemaking/misidrestripping2015/runssmisidrestripping2012.py | 990ae9cec1042354b70a1ce99da16007f43cbb9e | [] | 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 | 15,035 | py | # $Id: $
# Test your line(s) of the stripping
#
# NOTE: Please make a copy of this file for your testing, and do NOT change this one!
#
##use CommonParticlesArchive
#from CommonParticlesArchive import CommonParticlesArchiveConf
#CommonParticlesArchiveConf().redirect("stripping21r1p1a")
#
#from Gaudi.Configuration i... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
540590ef128c7fc98cb5a28c475cbf774c51ff24 | d96787f92bd86c8d8bcf01a4e7ec8f7feec24194 | /kattis/nizovi/solution.py | 9c70b792c4c93471dd6c04868b1338089c92b9f2 | [] | no_license | iandioch/solutions | 133cbc3af58fadcde0b2e981fb0e7d05801070a7 | 8b3e458b3c01179ddf776bfbb897f263f22f3693 | refs/heads/master | 2023-04-09T03:39:16.952817 | 2023-03-15T20:00:53 | 2023-03-15T20:00:53 | 47,693,495 | 48 | 40 | null | 2019-10-22T14:52:59 | 2015-12-09T13:36:55 | Python | UTF-8 | Python | false | false | 721 | py | s = input()
curr = ''
indent = 0
lines = []
for c in s:
curr += c
if curr == '{':
lines.append('{}{}'.format(' '*indent, c))
curr = ''
indent += 2
elif curr.endswith('}') or curr.endswith('},'):
d = curr.find('}')
if len(curr[:d]) > 0:
lines.append('{}{}'... | [
"iandioch11@gmail.com"
] | iandioch11@gmail.com |
2e618ec30de1abe5e786ff02bf4e9c6a5555c288 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2364/60623/305882.py | 64207e9aa3a3c85e563c2b8fdf16e3f809b357a9 | [] | 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 | 55 | py | a=input()
if a=='100':
print(10)
else:
print(a) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b632edb4abed10644c2eca37adee10ff3ebf2a1e | 080397d0e6d573ef6d7eb9c2bc6b1b5787cfe0d1 | /tests/twitter_learning_journal/builders/test_cache_path_builder.py | 2dfeb176343ff67367981b17880cefdbe6d09dac | [
"Beerware"
] | permissive | DEV3L/twitter-learning-journal | ecd0eb922e369b10fd6e039d652eed7078601139 | a51d22a60a3d1249add352d8357975a7f2db585c | refs/heads/master | 2021-09-20T17:27:11.157096 | 2018-08-13T11:58:34 | 2018-08-13T11:58:34 | 114,556,953 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from app.twitter_learning_journal.builders.cache_path_builder import build_cache_path
def test_build_cache_path():
expected_cache_path = './data/pickle/tweets/test'
assert expected_cache_path == build_cache_path(sub_directory='test')
| [
"jus.beall@gmail.com"
] | jus.beall@gmail.com |
dc9388fcc7ecf66dabb9bc64fe98c2f689c370d6 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/Anusha Koila/print_odd_num.py | d290d9c8c6e77770c4fb451217c46810fd11629d | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #print odd numbers
#raise exception when negtive numbers are inputted
try:
num = int(input("Enter an number :"))
except erro1:
if(num<0):
print("Negative numbers not allowed")
else:
print("ODD numbers list :\n ")
for i in range(1,num):
res=i%2
if(res!=0):
print(i)
... | [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
93196c7e4c3d9aee7a600a779e6f089b06a181e0 | 13eae91d078c8b88c990bb6da1b9cdb8e3648b76 | /cogs/Downloader/lib/fontTools/misc/macRes.py | e8b3cbc20ed28d5048adec1ba0a12c560f11c715 | [] | no_license | skylarr1227/skybizzle | 98303c99a5ea897469e381e06dcda3725d6500d6 | 63c38995437d6880bd9bf0de52d406c904cbbd24 | refs/heads/master | 2023-05-13T00:12:46.827511 | 2019-11-12T01:03:45 | 2019-11-12T01:03:45 | 221,097,000 | 0 | 1 | null | 2023-05-07T06:22:44 | 2019-11-12T00:40:38 | Python | UTF-8 | Python | false | false | 6,591 | py | """ Tools for reading Mac resource forks. """
from fontTools.misc.py23 import *
import struct
from fontTools.misc import sstruct
from collections import OrderedDict
try:
from collections.abc import MutableMapping
except ImportError:
from UserDict import DictMixin as MutableMapping
class ResourceError(Exception):
p... | [
"skylarr1227@gmail.comgit config --global user.email skylarr1227@gmail.com"
] | skylarr1227@gmail.comgit config --global user.email skylarr1227@gmail.com |
d4cb57f250e733e13d0676e9b5d25d710f3cafad | 7f52bb7c3a5ed3be6821306137c5217362d06dc3 | /manage.py | 3b50f6ea9203cf02974bbf61451c2a74f68e4d63 | [] | no_license | payush/cristianoronaldoyopmailcom-307 | 547f36250cf3c9c94bdea0fe8c7a1e3e1194294a | d2f2a1f76ab354e391bab8a628782c80a3b1c97a | refs/heads/master | 2020-03-23T14:24:53.428495 | 2018-07-20T06:44:00 | 2018-07-20T06:44:00 | 141,674,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cristianoronaldoyopmailcom_307.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other r... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
af9bfb5814f5f4141fc5fd9980c003da790129c1 | 2dbd4a34f6da93c0e70e8517971672a010db93dc | /py_m/lexer_.py | 2bc01b0157aa225fd69bd537af1b174f584f269a | [] | no_license | kawain/copy_interpreter | 44eebe43c6b9ddefa94066577dcd5779a933f426 | 94e7a6d5d03b528b9138c17a5a6828f6332fa98d | refs/heads/master | 2023-04-26T02:51:46.457263 | 2021-05-22T07:48:52 | 2021-05-22T07:48:52 | 356,544,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,363 | py | from token_ import TokenType, Token
class Lexer:
"""字句解析"""
def __init__(self, input, position=0, next_position=0, ch=""):
self.input = input
self.position = position
self.next_position = next_position
self.ch = ch
self.size = len(self.input)
self... | [
"unknown@example.com"
] | unknown@example.com |
e96605d4527a4551d1105f8932434a99310e65b9 | 561c590ec93131ceb58c21912a375b6e0d50bedb | /jiang_fenci/hmm_segment/segment/model.py | f02feafaf66f8f9e98368fd143fd2570a3590bb7 | [] | no_license | chuanfanyoudong/nlp_learn | 3607555e59789240afd6c4a9620cc6e678e0afb3 | 9fbb6781640ab9aba561dc2de0066a1f1e5882a0 | refs/heads/master | 2020-04-07T13:25:16.118562 | 2019-04-24T07:18:33 | 2019-04-24T07:18:33 | 158,406,684 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | # -*- coding: utf-8 -*-
"""
SEGMENT
--------
封装hmm分词模型
"""
import numpy as np
from hmmlearn.hmm import MultinomialHMM
from jiang_fenci.hmm_segment.segment.corpus import get_corpus
__model = None
class Segment:
def __init__(self):
self.corpus = get_corpus()
self.states, self.init_p = self.get_ini... | [
"qaz3762541@163.com"
] | qaz3762541@163.com |
a6c3cf2f1f9a3458d0b562aef5935f76de142de7 | 1956883d52e4019bbf8bd7bbc3744cdd1376e128 | /abutton.py | 96ea6f9b2354e36232ba86e55ad6e83e85bbaeda | [
"MIT"
] | permissive | Otumian-empire/tkinter-basic-gui | 5d7f7c697e9ac40f34b598b166186733d0931202 | 8a561fde8f770119bc3108511388371b1bdcabf5 | refs/heads/master | 2020-06-18T13:41:17.248470 | 2019-07-15T18:51:40 | 2019-07-15T18:51:40 | 196,320,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from tkinter import *
root = Tk()
x = 0
def increase():
global x
x += 1
label.configure(text=x)
def decrease():
global x
x -= 1
label.configure(text=x)
label = Label(text=x)
sendbutton = Button(text="increase", command=increase)
deletebutton = Button(text="decrease", command=decrease)
send... | [
"popecan1000@gmail.com"
] | popecan1000@gmail.com |
47e01a8d79922beb1795fe91191db98c2627286b | 61a8f496dbe1880398b0156940b1789ddfe8e081 | /Week_7_Lab/Advanced/q10.py | 3c2bfdedd51b4b0239a8993191d0ee3ac329def6 | [] | no_license | luca2849/CM1103-Problem-Solving-With-Python | e369cdc032249e3625ae5dbbd926703e20d11dd9 | a10b7ee6b972b23528a983dd7fff78d097c08465 | refs/heads/master | 2020-04-04T15:07:01.179113 | 2018-12-13T12:07:19 | 2018-12-13T12:07:19 | 156,024,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | def rec_power(a,n):
# if n is 1 then return a
if n == 1:
return a
# recursively call this function for n/2 and call it factor
n = n/2
factor = rec_power(a, n)
# if n/2 is even return the square of factor
if (n/2) % 2 == 0:
return factor * factor
# if n/2 is odd then retur... | [
"="
] | = |
af8010a1e412e867091d19bae06ae1b90c345783 | f993e252fc740471e71a6748685988fc0b5f2e34 | /backend/driver/migrations/0001_initial.py | 66dea496859c52c65d3e087e3245db062a3abc77 | [] | no_license | crowdbotics-apps/cobros-app-22778 | b9b9561d693fc979de0af693ffa9e4ca4d57873d | 0774fc76d1b8b484790ed1ec070c1f6455905c65 | refs/heads/master | 2023-01-12T16:46:05.469345 | 2020-11-19T17:57:14 | 2020-11-19T17:57:14 | 314,314,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # Generated by Django 2.2.17 on 2020-11-19 17:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("del... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4c5aa5950353440cacb41eae8812b9ebad525a8f | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /chrome/test/enterprise/e2e/policy/extension_blacklist/extension_blacklist.py | d14b00fa20cb00fb2767361a0b60407fe2824f33 | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 2,267 | py | # Copyright 2019 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.
import logging
import os
from chrome_ent_test.infra.core import environment, before_all, test
from infra import ChromeEnterpriseTestCase
@environment(file=... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
8ec3bf12cacdc47c54db00c9ea91520d09aa8fc4 | 747f759311d404af31c0f80029e88098193f6269 | /addons/email_account/wizard/wizard_send_email.py | 2ad2aa3b9779c2e69e1d813316fd08d361ac84a4 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | /home/openerp/production/extra-addons/email_account/wizard/wizard_send_email.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
5559ff3b8d6a987f15d3f19068b4c475668a7461 | a07ed3f4984e8153219ef25927a5784c127f43a4 | /arp_spoof/venv/bin/easy_install-3.7 | bb94d94b031d29105f2a3d2e40ac4cab54a11736 | [] | no_license | golan1202/Hacking-with-Python | 939333b4e86669527f2ccf846caa49601fc05848 | 98e0b1fef562d64b3e6ec8eab90ed75fb8c3f221 | refs/heads/master | 2020-08-21T23:41:08.979455 | 2019-10-19T21:31:11 | 2019-10-19T21:31:11 | 216,272,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | 7 | #!/root/PycharmProjects/arp_spoof/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
365f109ecdc7bef348e0afda449d6ff9c1423a44 | 0892937e1ef77f110a05042fa49b9178221590a5 | /quiz_app/admin.py | c54e0446c5f2b40a946d0f3ec5d7d08897fbfaa7 | [] | no_license | dmswl0311/nh_hackathon_quiz | aa2e0cc51db3abe45bdb6aadb96855528a149d63 | c4fadf6a9249d6e8ad80d553f8c20a848bdfc851 | refs/heads/master | 2023-01-29T15:46:22.046038 | 2020-12-13T13:35:46 | 2020-12-13T13:35:46 | 320,609,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.contrib import admin
from .models import Quiz, OX_Quiz
admin.site.register(Quiz)
admin.site.register(OX_Quiz)
| [
"dmswl_0311@naver.com"
] | dmswl_0311@naver.com |
d06ba3a39c1339b3301e652807885c2348d249aa | 75f3ddcebb39e1575d0e735090cbafae5bc05140 | /setup.py | 7d957bf60b9cd3b0c319e27de4efb82b1d33cecc | [
"BSD-3-Clause"
] | permissive | ethen8181/ort_inference | 372b548e98f4e6e6e5fde2bf5533a31c6e6273ce | 2fdd7fe8479c4b8679f8e809fa2b3846ad96b3fe | refs/heads/main | 2023-05-15T07:42:48.247881 | 2021-06-21T04:30:06 | 2021-06-21T04:30:06 | 376,840,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | # -*- coding: utf-8 -*-
import os
import sys
import subprocess
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
# Convert distutils Windows platform specifiers to CMake -A arguments
PLAT_TO_CMAKE = {
"win32": "Win32",
"win-amd64": "x64",
"win-arm32": "ARM",
"w... | [
"ethen8181@gmail.com"
] | ethen8181@gmail.com |
4f529ded28f7f66f414f239e601ba06e9f1e7c18 | f8d7bf751f5596f46111f52f127a412c50b7c6a4 | /mhc2flurry/cluster_parallelism.py | 85bc3fc2d6e85625f2cd6c14a123b901ad645de5 | [
"Apache-2.0"
] | permissive | luoyuan3316/mhc2flurry | 7e9ef790fbceebc34e8f432dc594fc3a12bddab7 | 914dddfd708801a83615d0cc3d41dd3b19e45919 | refs/heads/master | 2023-04-16T14:27:36.602561 | 2021-04-26T14:09:56 | 2021-04-26T14:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,651 | py | """
Simple, naive parallel map implementation for HPC clusters.
Used for training MHC2flurry models.
"""
import traceback
import sys
import os
import time
import signal
import argparse
import pickle
import subprocess
import shutil
from .local_parallelism import call_wrapped_kwargs
from .class1_affinity_predictor impo... | [
"timodonnell@gmail.com"
] | timodonnell@gmail.com |
b6863dd1e133f2d14e1c1aaa6a43917d8b01e00e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-3429.py | 7e35c22deed3fcb33f0fb8c3ea44a31bea95a86c | [] | 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 | 23,289 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
494cf359b8f1efd02f67635b8b12933e562d71b4 | c106149cccfac8dd4f05f976253f529b3234828c | /zerver/management/commands/send_realm_reactivation_email.py | 39b1dd91a654be9dba3474577f165a89b79bc915 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | kartikey54/zulip | cc685686af3bc1fbadc9ded260f62f45087df301 | e8b44f491f8967823273a6d5acd3d3d376e62b90 | refs/heads/master | 2021-01-23T02:59:24.396882 | 2019-10-08T19:46:43 | 2019-10-08T19:46:43 | 86,029,881 | 1 | 0 | Apache-2.0 | 2019-10-08T19:46:44 | 2017-03-24T05:16:51 | Python | UTF-8 | Python | false | false | 805 | py |
from argparse import ArgumentParser
from zerver.lib.management import ZulipBaseCommand, CommandError
from zerver.lib.send_email import send_email, FromAddress
from zerver.lib.actions import do_send_realm_reactivation_email
from typing import Any
class Command(ZulipBaseCommand):
help = """Sends realm reactivatio... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
35dfc784fce1e1f84a5c902dfaad6aa13b45a15b | b7f9d32bfd0ba147182a880de9b257355d3bc945 | /pyedi/grammar/jsonnocheck.py | 28444610964efc57bb6f31665ff2ce012f9fe561 | [] | no_license | jedrus2000/pyedi | 25cbb930d854e0dbe79d251b3215040c978410b2 | b5d291c5f8565137bb845835c8fe439730b2f2c7 | refs/heads/master | 2020-04-12T09:15:58.802275 | 2018-12-19T07:16:55 | 2018-12-19T07:16:55 | 162,396,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | """
This is modified code of Bots project:
http://bots.sourceforge.net/en/index.shtml
ttp://bots.readthedocs.io
https://github.com/eppye-bots/bots
originally created by Henk-Jan Ebbers.
This code include also changes from other forks, specially from:
https://github.com/bots-edi
This project, as origi... | [
"a.barganski@gmail.com"
] | a.barganski@gmail.com |
28642c224abb07f03d6e3c0002d570ec3095e530 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/stack_data/serializing.py | fb67d2906a1d42c448f6b8f99c6e470900813a01 | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 6,441 | py | import inspect
import logging
import sys
import traceback
from collections import Counter
from html import escape as escape_html
from types import FrameType, TracebackType
from typing import Union, Iterable, List
from stack_data import (
style_with_executing_node,
Options,
Line,
FrameInfo,
Variable... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
e0ac24619a342a1b4cf7f9e015cbbcec4a3161d4 | c9b5f49906e213c0c6edd25c063961b8226b67af | /compression/evaluate.py | a6d3d4e3f36ec271fc6ec3957c65c952d9ea8164 | [] | no_license | danielzgsilva/jetson_projects | c481ff505c97ac40089438f34ae24b74e265631c | 72ab79a2d4759fe51d107432aa9ff6ce2c728a53 | refs/heads/master | 2023-01-20T20:22:04.410741 | 2020-12-01T21:31:07 | 2020-12-01T21:31:07 | 294,460,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,723 | py | import os
#os.environ['CUDA_LAUNCH_BLOCKING']='1'
import config
import torch
import numpy as np
from dataloader import TrainDataset, ValidationDataset, DataLoader, get_cifar100_dataset
from model import VGGModel, VGGModel_old
import time
from basisModel import basisModel, display_stats
from options import Options
... | [
"danielzgsilva@knights.ucf.edu"
] | danielzgsilva@knights.ucf.edu |
fb588a29ad13110bfe5be22b2eca5aff80ed72bc | 51bab842d885e6d5e6dc0892522ed8ce82f2be9d | /src/picktrue/sites/abstract.py | ca470e6512e31356d37569ab9e178342d9c4e097 | [
"MIT"
] | permissive | winkidney/PickTrue | d941e5e9eb420f4a80bd0bbe1c06a0ab8ff3c861 | 772b105e4de3852bba41369221f47b8480bf1070 | refs/heads/master | 2023-03-12T01:40:54.780845 | 2023-03-10T17:23:55 | 2023-03-10T17:23:55 | 144,246,340 | 146 | 16 | MIT | 2020-07-24T13:02:24 | 2018-08-10T06:32:10 | Python | UTF-8 | Python | false | false | 2,353 | py | import os
from pathlib import Path
import requests
from picktrue.meta import UA, ImageItem
from picktrue.utils import retry
def normalize_proxy_string(proxy):
if 'socks5' in proxy:
if 'socks5h' not in proxy:
proxy = proxy.replace('socks5', 'socks5h')
return proxy
def get_proxy(proxy_st... | [
"winkidney@gmail.com"
] | winkidney@gmail.com |
f07fecfbe41fa6f5a0d071a0779023ddd9a066ad | 43268854505070471e0911bc0e5b280cadec8601 | /modeller9v8/examples/commands/all_hydrogen.py | 277f74f956357eaf0efaf2fe95d7ea9c4afac96a | [] | no_license | realbigws/From_CA_to_FullAtom | 08621bf350c77e29140051d1af850a51e5fe138f | a59d9fcbc6c1f2bfc5fc2d77da26318c63ac3052 | refs/heads/master | 2020-05-30T01:37:47.378404 | 2019-05-30T21:42:45 | 2019-05-30T21:42:45 | 189,481,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # This will read a specified atom file, generate all hydrogen atoms,
# add atomic radii and charges, and write the model to a PDB file in
# the GRASP format. This can be used with GRASP to display electrostatic
# properties without assigning charges and radii in GRASP.
from modeller import *
from modeller.scripts impo... | [
"wangsheng@ttic.edu"
] | wangsheng@ttic.edu |
5a11112058ae007b6764e25e44cccde6c87c2df1 | 77ab593ed55a6d46b1778f6d41bc70ced3f8cd46 | /face_into/face72/see_data.py | f713bea53d21afcdad492cd716761cea8e41e100 | [] | no_license | wosxcc/bot | e93b92fbca79a915feb186160f3f72c99218ffcb | c097f5455bc6264c9f778fb72900475963836153 | refs/heads/master | 2021-06-12T12:43:47.314071 | 2018-12-14T08:51:43 | 2018-12-14T08:51:43 | 128,619,488 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | import os
import cv2 as cv
path_files = 'E:/dectect/dectect/face68'
for file in os.listdir(path_files):
if (file[-4:]=='.txt'):
print(file)
img = cv.imread(path_files+'/' + file[:-4]+'.jpg')
txt_open = open(path_files+'/' + file)
txt_read = txt_open.read()
txt_lines =txt... | [
"821022156@qq.com"
] | 821022156@qq.com |
ed202550c399b038c7bfb0bf2e966d9f0662b5d4 | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /python/tvm/contrib/tf_op/module.py | bcff2741630c5308254ab8df9ed28a5875b956ff | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 4,901 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | apache.noreply@github.com |
03e2d01099f8601a427ced9e76c0efe84bdc6d95 | 947af25b72b5b3037443fae3fb22fa3a2f1de363 | /nextgisweb_mapserver/mapfile/keyword_tests.py | 8857613f74b6be20b27ab8cb8421416a1f7d64c7 | [] | no_license | guardeivid/nextgisweb_mapserver | 2b527b160b6cb017ae9c6a663e4171783a9c89d2 | 34376442fe6d56794c32523050ceb338a902228f | refs/heads/master | 2020-03-30T02:50:50.893436 | 2014-04-14T09:19:49 | 2014-04-14T09:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
from lxml.etree import tostring, fromstring, RelaxNG
from .keyword import registry
def _test_shema(cls):
root = cls.element_schema()
root.set('datatypeLibrary', 'http://www.w3.org/2001/XMLSchema-datatypes')
xml = tostring(root, pretty_print=True)
idx = 1
print ''
for... | [
"me@dezhin.net"
] | me@dezhin.net |
7f5d989cb77b8fbbb53231f3820afe5b56fbe207 | 18f0ad99e21e2e35126f8c3c28079d358fa2129a | /SnakeBot/buzzer/code.py | 6488f15e023e6bf5709d147c707884478c919297 | [
"MIT"
] | permissive | ladyada/Adafruit_Learning_System_Guides | 9bf18dfa35941e0cbecbb3c2d02b4fa3cb79744f | 6d76801878cbf65132ccea950dc47ae842c73dcd | refs/heads/master | 2023-08-20T20:30:42.910576 | 2022-01-10T20:28:11 | 2022-01-10T20:28:11 | 115,837,894 | 13 | 2 | MIT | 2020-03-31T23:23:45 | 2017-12-31T02:34:47 | C | UTF-8 | Python | false | false | 2,930 | py | import time
import random
from adafruit_crickit import crickit
LEFT = False
RIGHT = True
random.seed(int(time.monotonic()))
ss = crickit.seesaw
left_wheel = crickit.dc_motor_1
right_wheel = crickit.dc_motor_2
RIGHT_BUMPER = crickit.SIGNAL1
LEFT_BUMPER = crickit.SIGNAL2
CENTER_BUMPER = crickit.SIGNAL3
ss.pin_mode(R... | [
"dastels@daveastels.com"
] | dastels@daveastels.com |
d5a2f49110fd363deb27708c646b22143667b47c | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/xtr/all/conanfile.py | e4caa905f0a2d8e333cbaa86e7345766dda819a1 | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 3,685 | py | from conans import ConanFile, AutoToolsBuildEnvironment, tools
from conans.errors import ConanInvalidConfiguration
import os
class XtrConan(ConanFile):
name = "xtr"
description = \
"C++ Logging Library for Low-latency or Real-time Environments"
topics = ("xtr", "logging", "logger")
url = "htt... | [
"noreply@github.com"
] | CAMOBAP.noreply@github.com |
e061f62c09a8e8d7f78c9313d2d96595f9dbd27a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/RUCKUS-WLAN-MIB.py | 0603b37cfd38c7a3260f7fc34fa80689d922e6f4 | [
"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 | 48,959 | py | #
# PySNMP MIB module RUCKUS-WLAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RUCKUS-WLAN-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:50:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
5404d94c2cb141aaa4fa36f139bbfc2f161ce03f | a8731ed73a1fbae2d1e490fc8951aa17873aa7d4 | /iga/population/standard_analysis.py | 163123558095eccca04cfb007d8470d1031bdae1 | [] | no_license | juancq/character-evolver | 452bf84afd52766502fbe6ba6471519d1a7635e1 | 5dcae96916dbfef03cc8f6625e4a4c31fe25224f | refs/heads/master | 2021-01-23T18:08:21.058617 | 2017-05-22T02:08:58 | 2017-05-22T02:08:58 | 129,113 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | import nsga_ii
from iga.gacommon import gaParams
import copy
class Population(nsga_ii.Population):
def __init__(self, paramClass, paramDict):
nsga_ii.Population.__init__(self, paramClass, paramDict)
ops = gaParams.getVar('operators')
len_ops = len(ops)
op_prob = 1. / len_ops
... | [
"juan@dragonite.(none)"
] | juan@dragonite.(none) |
4608f91e2fdbac43339f6c6d31842b17ae0dafae | 9607f45b501c62d0500536e14d134a1aca0a6982 | /datum/utils/binary_utils.py | 298f14ff5da4d3abe55ce11e5906ea9163bdccc3 | [
"Apache-2.0"
] | permissive | shashank-subex/datum | b8fb552d4180ea3ee6345fa6bf4a2620231c7601 | 089b687fc569c8c6ce613349297997c67ce40c7a | refs/heads/master | 2023-05-28T01:00:04.701429 | 2021-06-10T11:13:38 | 2021-06-10T11:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | # Copyright 2020 The OpenAGI Datum Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"mrinal.haloi11@gmail.com"
] | mrinal.haloi11@gmail.com |
62cdd2136986368bbf1b0b11e0bd9c2b67467903 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ysgbRFTPujx8v37yF_9.py | 6636e68c4e204f96c2ae4dff5513f35eb4a94f15 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py |
class Triangle:
def __init__(self):
self.r = {1: [1]}
self.last_row = 1
self.last_num = 1
def advance(self):
new_row = self.last_row + 1
nr = [n for n in range(self.last_num+1, self.last_num + new_row + 1)]
self.last_num = nr[-1]
self.last_row += 1
self.r[new_row... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
957e5920703f3c85f244e9d1b7a3969fb8b9b5b2 | b3586235dc1e1acbd49fab996f581269a808480b | /sistema/producao/migrations/0102_bobine_diam.py | b042cee2ccaad255cc483cecad77993e16a08807 | [] | no_license | gonfersilva/Sistema | 37ad1cd03dfbb7889fa0b0367c6ebd9044712ae3 | 4c6d9ade22040972efbe892eae0130939d7b5c46 | refs/heads/master | 2021-10-23T23:21:51.262723 | 2021-10-13T19:45:49 | 2021-10-13T19:45:49 | 155,545,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.7 on 2020-06-16 15:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('producao', '0101_auto_20200616_1506'),
]
operations = [
migrations.AddField(
model_name='bobine',
name='diam',
... | [
"goncalo.silva@elastictek.com"
] | goncalo.silva@elastictek.com |
0d0efe5aebd2fc8deddd6b033513330081a63629 | 72cdc45a345fe47c525468ff82ef8ce845d9f800 | /Python/django_ajax/ajax_post/app/models.py | db2ea4bd5133f6de68fbf6b39f46e364a5fbe072 | [] | no_license | bopopescu/Coding-Dojo-assignments | 474242e14371e729b5948602ffc0a9328f1e43cb | 0598d7162b37d9472c6f1b82acc51d625ac871ca | refs/heads/master | 2022-11-23T18:55:36.393073 | 2018-07-20T07:43:56 | 2018-07-20T07:43:56 | 281,670,452 | 0 | 0 | null | 2020-07-22T12:24:30 | 2020-07-22T12:24:30 | null | UTF-8 | Python | false | false | 414 | py | from django.db import models
# Create your models here.
class NoteManager(models.Manager):
def create_note(self,post_data): self.create(note=post_data['note'])
def notes_rev(self): return self.all().order_by('-id')
class Note(models.Model):
note = models.TextField()
create_at = models.DateTimeField(a... | [
"gringojaimes20@gmail.com"
] | gringojaimes20@gmail.com |
5c6bb3335f57b10132f77850a43d0ba321816f36 | d7cfe98faeb0fe1b4ce02d54d8bbedaca82764f7 | /study/정올/Language_Coder/j_504_자가진단4.py | f31b55453217d08896730ef9b8cd88efaa777e8b | [] | no_license | Anseik/algorithm | 27cb5c8ec9692cf705a8cea1d60e079a7d78ef72 | 925404006b84178682206fbbb3b989dcf4c3dee9 | refs/heads/master | 2023-02-26T00:02:01.696624 | 2021-02-03T14:10:28 | 2021-02-03T14:10:28 | 301,753,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | line1 = '(@) (@)'
line2 = '(=^.^=)'
line3 = '(-m-m-)'
print(line1, line2, line3, sep='\n')
| [
"kma9271@naver.com"
] | kma9271@naver.com |
bcb9eb4ee3f78a2f529aeb211382936a1af9215f | 4262dcafe190db05852c7e1cfafc687031d23367 | /bin/easy_install | e469a8b93b622d8b2b9ebe5516a43986fad42ee1 | [] | no_license | ShunnoSaiful/JobPortal | b39930fcdb1bc30567f8a2c91d80786ab497afd5 | c8f3064b87c5d967b8f415fc5f080e167fc0c77d | refs/heads/main | 2023-01-07T02:44:33.831589 | 2020-11-11T11:47:46 | 2020-11-11T11:47:46 | 308,109,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/slash/Desktop/SocialBook/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sunnosaiful@gmail.com"
] | sunnosaiful@gmail.com | |
218ddcad43477775f0a864743f17dad426889cb9 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/browser_watcher/DEPS | d488e82a2acc8b591a8a58b50277b1ce2e1d7b9c | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | include_rules = [
"+components/metrics",
"+third_party/crashpad/crashpad",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
037fc634a6c96cca0b1264ed15b267b1d4a37fa3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2243.py | 3f2ecb9e374f1d2bd6ced2658ba82fc35ee1861b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | # 0123
# 0 ....
# 1 ....
# 2 ....
# 3 ....
class Game:
def __init__(self, size = 4):
self.size = 4
self.rows = { 'X': 0, 'O': 0 }
self.columns = {}
self.columns['X'] = [True] * size
self.columns['O'] = [True] * size
self.diagonals = {'X': [True, True], 'O': [True, ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1fa634ea7182b12e6ce9021f8050dcc3492d90b5 | fe3ecb9b1ddd8de17b8cc93209134f86cd9c4a6f | /4_Python_ML/chap06_Regression/lecture/step01_regression.py | 9dd4e34d1e6a6aed096bba40c35b13ede650b6d2 | [] | no_license | nsh92/Bigdata-and-Machine-Learning-Education-at-ITWILL | d1a7292ee4865a3d0c664dd6ecf3afc0d6325847 | 3cb5661001597499178a2c85f4ccf70dcf0855d6 | refs/heads/master | 2022-11-21T23:10:51.421708 | 2020-07-23T12:49:11 | 2020-07-23T12:49:11 | 275,540,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | # -*- coding: utf-8 -*-
"""
회귀방정식에서 기울기와 절편 식
기울기 = Cov(x,y) / Sxx(x의 편차 제곱의 평균)
절편 = y_mu - (기울기 * x_mu)
"""
from scipy import stats # 회귀모델
import pandas as pd
galton = pd.read_csv('C:/ITWILL/4_Python-II/data/galton.csv')
galton.info()
'''
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 928 entries, 0 to 927
Data... | [
"totols1092@gmail.com"
] | totols1092@gmail.com |
48421324896cdf92d22394ec3216d8ebde4bb512 | cbedb18df0aaac810aeea87a2273edb15c1cf899 | /Strings/49. Group Anagrams(3).py | 376bd9d635f4dd8b8830d8cec0f586ee7d9eeefc | [] | no_license | kanglicheng/CodeBreakersCode | 71b833bb9f4c96d520c26f0044365dc62137a940 | 31f7f730227a0e10951e7468bad1b995cf2eafcb | refs/heads/master | 2023-08-07T20:32:05.267695 | 2020-09-14T14:36:25 | 2020-09-14T14:36:25 | 265,978,034 | 0 | 0 | null | 2020-05-22T00:05:29 | 2020-05-22T00:05:29 | null | UTF-8 | Python | false | false | 960 | py | # not sure about the solution at start
# sort each str => O(W logW), w is the length of each words -> O(N * W log W) or counting sort O(N*W)
# turn each word into count char list: each list length is fixed:26 -> need O(W) to turn to list
# but lst can't hash -> turn to str then use hash map
class Solution:
def gro... | [
"56766457+Wei-LiHuang@users.noreply.github.com"
] | 56766457+Wei-LiHuang@users.noreply.github.com |
706004ded5504282ced7c31b8a3c251769a0d8c8 | b00330d48bfe09da78e50694a72793fe128c6a01 | /27_머신러닝_붓꽃 품종 학습.py | e10c7892374db24c3f940ab357d31d34b02b1683 | [] | no_license | swj8905/2021_Hongik_Summer | c177d64c6f0326f00d974e20e1334d8ac0ede3e4 | e3c28d1bfeb4d6a55b152bd922b61b77a17bb84c | refs/heads/master | 2023-06-16T00:47:15.852607 | 2021-07-08T12:01:31 | 2021-07-08T12:01:31 | 378,916,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from sklearn.svm import SVC
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
# 데이터 불러오기
df = pd.read_csv("./iris.csv")
label = df["variety"]
data = df[["sepal.length", "sepal.width", "petal.length", "petal.width"]]
train_data, valid_data, train_label, ... | [
"swj8905@naver.com"
] | swj8905@naver.com |
e9f257c5fcb395ace5094f1d7f8a4c7089a59c4d | fdfffa8cacb572a157ead4a9723f90b25ecfe50c | /modules/ducktests/tests/ignitetest/tests/self_test.py | 5ebabde56c14a2f8f89d2c9ef23b989133e61a1a | [
"Apache-2.0",
"LicenseRef-scancode-gutenberg-2020",
"CC0-1.0",
"BSD-3-Clause"
] | permissive | apache/ignite | 0bc83435a8db46d9c4df000fe05b1c70165b37d4 | dbf1c7825d74809cd6859c85a8ac9ed9ac071e39 | refs/heads/master | 2023-08-31T21:31:04.618489 | 2023-08-31T19:43:09 | 2023-08-31T19:43:09 | 31,006,158 | 4,806 | 2,308 | Apache-2.0 | 2023-09-14T18:56:33 | 2015-02-19T08:00:05 | Java | UTF-8 | Python | false | false | 11,141 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"noreply@github.com"
] | apache.noreply@github.com |
3beaca888a36dc002b9fa618283aacf86d72d4a1 | e7b20ed87e8402bb8f55f0bf2b91824c264e07b4 | /pyhypnolsd/hypnolsd.py | 76420c7b4a25359320b46780ee95a1c1dcd98b44 | [
"Unlicense"
] | permissive | rclough/pyHypnoLSD | 1ebe10929e6067e219851239f6e5a27fafcdb4b4 | 6d8c0539633d47c7e59368fcc849ca9b79ac6db4 | refs/heads/master | 2016-09-05T16:51:15.803912 | 2014-02-14T21:27:58 | 2014-02-14T21:27:58 | 16,823,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | """
Module that contains various functions, constants, and tools
for interacting with a hypnoLSD object
"""
import sys, serial
###############################################################################
# Constants
###############################################################################
NATIVE_BAUD = 960... | [
"root@beaglebone.(none)"
] | root@beaglebone.(none) |
40b38c9d62305e2dc9eb496685175c25a2a73a41 | 21dd7d56c370ea9a02b66654525fd96a398a9e49 | /apps/competition/urls.py | 8fda71942b35148c142e463894bd46fdd17e9acf | [] | no_license | hqpr/fame | fdad5d03bf9ee7ca31ae8a4701ff05bafd49540f | 8b77e3a822ae70ee6d79a8003e1d9f9bc5ba8355 | refs/heads/master | 2023-01-14T16:58:46.533090 | 2015-08-31T15:37:09 | 2015-08-31T15:37:09 | 35,205,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from django.conf.urls import url
from apps.competition.views import competitions, single_competition, single_competition_terms, pick_media_file, SingleCompetitionEnter, \
competition_add_audio, competition_add_video, entry_review
urlpatterns = [
url(r'^$', competitions, name='all_competitions'),
url(r'^(?... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
5181e499b3220d7aa79460e74c4d532b634fb8bc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QgAwpaFWD2jtxZ2wG_8.py | c19c34476af79ec15c2595c52b9b91290b20f82c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | """
Given an integer `n`. Your task is to find how many digits this integer
contains without using `str` or `len` methods!
### Examples
sum_digits(100) ➞ 3
sum_digits(1000) ➞ 4
sum_digits(1) ➞ 1
### Notes
N/A
"""
def sum_digits(n):
count=0
if n==0:
return 1
while n!=0:
n//=... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f5ef2c723c317a80eb8cad3ed47da968f1411d5f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_inferiors.py | acab87363dd1d78f2b03e3b0fd1313fda1eeab3e | [
"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 | 262 | py |
from xai.brain.wordbase.adjectives._inferior import _INFERIOR
#calss header
class _INFERIORS(_INFERIOR, ):
def __init__(self,):
_INFERIOR.__init__(self)
self.name = "INFERIORS"
self.specie = 'adjectives'
self.basic = "inferior"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d812823dcc5f741c075b136a22be8928175d68e6 | 5388e00d992050d515f72666e2f76c51b2ca56ee | /calc_angle_between_two_locs.py | 424c037ae9233d5870ce13b03f901b6b13ad4281 | [
"Apache-2.0"
] | permissive | lonecrane/PyGuymer3 | df9ffc62d4f7fddf04ae3ea18f5487dec48472c7 | c7eb017dac18abb5eafe74e23a93bf7e68e48916 | refs/heads/master | 2020-09-11T23:44:14.036051 | 2019-11-20T07:01:22 | 2019-11-20T07:01:22 | 222,229,475 | 0 | 0 | Apache-2.0 | 2019-11-17T10:13:51 | 2019-11-17T10:13:51 | null | UTF-8 | Python | false | false | 1,049 | py | def calc_angle_between_two_locs(lon1_deg, lat1_deg, lon2_deg, lat2_deg):
"""
This function reads in two coordinates (in degrees) on the surface of a
sphere and calculates the angle (in degrees) between them.
"""
# Import modules ...
import math
# Convert to radians ...
lon1_rad = math.... | [
"t.m.guymer@thomasguymer.co.uk"
] | t.m.guymer@thomasguymer.co.uk |
6f659c63d644601207b26f69956c91a1acf67b0c | 8734446b29c3424e25ef82c3ba65db61f1736a12 | /prngmgr/migrations/0007_auto_20161008_1643.py | 1ea7a65c037d1ef783856208172d4c2c0bbe84f8 | [
"Apache-2.0"
] | permissive | decolnz/prngmgr | 25ef02a3c76c00864009c6470d532805a5b52af3 | 6ea19e0095c123d337e523f3c832f5688254c7f1 | refs/heads/master | 2021-01-19T00:51:26.798203 | 2016-10-11T09:16:04 | 2016-10-11T09:16:04 | 87,213,736 | 1 | 0 | null | 2017-04-04T17:05:25 | 2017-04-04T17:05:25 | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prngmgr', '0006_auto_20161008_1336'),
]
operations = [
migrations.AlterField(
model_name='peeringsession',
... | [
"benm@workonline.co.za"
] | benm@workonline.co.za |
5bfde6f4620ebb1cad3fa1035a1c961d7bfff609 | c25be81a90291c9dd7eed076509729b1c730531e | /tests.py | 93f031029fc25e60902294dba580f390e688262c | [
"Apache-2.0"
] | permissive | icYFTL/RTULAB_Service | 8707b7f9082494e7513c6afc0e4ede89f18cc320 | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | refs/heads/main | 2023-03-18T15:26:56.586261 | 2021-03-18T09:23:30 | 2021-03-18T09:23:30 | 343,216,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | import requests
import unittest
class Test(unittest.TestCase):
def setUp(self) -> None:
self.__host = 'https://rulab.icyftl.ru/'
self.__purchases_host = self.__host + 'purchases'
self.__shop_host = self.__host + 'shop'
self.__factory_host = self.__host + 'factory'
self.__sh... | [
"savap0@yandex.ru"
] | savap0@yandex.ru |
9fda03d01e11adae9c1c4533fc5502a2d6fe71d9 | ba9e1fc7797ebc55a61a40ee66c51b467f353ff1 | /web_scraping_with_python_demos/2-cleangrams.py | 1c489e8f587b8315ebadba2f6d45592f570f395e | [] | no_license | sanpianye/the-little-python | 77c938164d43cbb120063a6d17d0705cc9e92e93 | c04898bf0812afb53b71567699ee523d1bc56a29 | refs/heads/master | 2021-06-14T01:55:31.452777 | 2017-03-09T13:31:59 | 2017-03-09T13:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
''''''
__author__ = 'Engine'
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import string
from collections import OrderedDict
def cleanInput(input):
input = re.sub("\n+", " ", input) # 将多个换行符转为一个空格
input = re.sub("\[[0-9]*\]", ""... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
070b67571830fbc22ce4702fded26ee0e03f646a | 6d7c488d14cf2bc0322c955a53ec34cfd67e8c3b | /.history/plane_ticket/spiders/ticket_spider_20200709002008.py | 9258ec92ad4166dbf5107784494df0a8a3454021 | [] | no_license | byebyeyuchi/getPlaneTicket-web-crawl- | e247b7d015e35d1036e023c748764abb0ad66fe1 | 91a666659a537c053d8cd19c8214a54eab460800 | refs/heads/main | 2023-02-25T21:43:53.046865 | 2021-01-30T02:14:43 | 2021-01-30T02:14:43 | 334,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import scrapy
class TicketSpider(scrapy.Spider):
name = "tickets"
def start_requests(self):
urls =[
"http://montreal.chineseconsulate.org/chn/zlgxw/"
]
def parse(self, response):
all = response.css('.Text_Center li').css()
| [
"delseylyq@gmail.com"
] | delseylyq@gmail.com |
9c0565a7a799b4d983060bea22a4462692fd3731 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /helpers/mixins/store_data_with_default_value_by_key.py | e418e8fb8cbcfde82dbe0fe1b92fbd4096f04bed | [] | 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 | 2,174 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.core.exceptions import ValidationError
from core.models import MixeurBaseModel
class StoreDataWithDefaultValueByKey(MixeurBaseModel):
"""
Mixin for storing value with a unique default value... | [
"norman@xael.org"
] | norman@xael.org |
42ce348fe55b62181045120eb229a2509121b694 | 86f2eb787624e293be660fa97f6bbb35980f2e29 | /translate-app-tkinter/app/utils/thread.py | 11fc4e975c3224a345df30657371cadb3b9e9957 | [
"MIT"
] | permissive | jadsonlucio/holidays-projects | 73e762b7d5669b8850f3fcecf59aa152430c2d19 | 136992f499d37640decf67072280ae87b83fe830 | refs/heads/master | 2023-05-09T03:55:24.433421 | 2020-10-27T13:13:01 | 2020-10-27T13:13:01 | 256,420,473 | 2 | 0 | null | 2021-06-02T01:30:37 | 2020-04-17T06:26:05 | Python | UTF-8 | Python | false | false | 273 | py | from threading import Thread
from functools import wraps
def run_async(func):
@wraps(func)
def async_func(*args, **kwargs):
func_hl = Thread(target = func, args = args, kwargs = kwargs)
func_hl.start()
return func_hl
return async_func
| [
"jadsonaluno@hotmail.com"
] | jadsonaluno@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.