blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95da45923f05f80331aa793ed7b831660dde94ab | 6c30b6a179ee92e9aaf200d11edc10b0a2766332 | /beds/migrations/0007_hospital_user.py | 995b83b6bd219b1a93fde955aca5b557d8d6901a | [] | no_license | akhil-joy-20/covidportals | 1d7af7672295de28cf13e55ab637ac1e3d3faf4f | ecab10847f6cf7e75eac111bd6b9a2bdc06bfa92 | refs/heads/main | 2023-04-21T06:49:14.207470 | 2021-05-15T18:23:23 | 2021-05-15T18:23:23 | 367,692,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Generated by Django 3.2 on 2021-05-08 08:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('beds', '0006_re... | [
"noreply@github.com"
] | akhil-joy-20.noreply@github.com |
81396837888bbd8752e0b764b1563655cb22fdfa | 1d6dd5125e824dfeafddc3488b9a0fa4fe621e4f | /baselines/SRM/srm/hashtags.py | 98b64824c55ac01861595d7e7767b23033aa8161 | [] | no_license | bidishasamantakgp/HashtagPopularityPrediction | 7ca3d8ff1ab419988b992e6362fe66969fa7bef6 | 5c0bb844955fdd6dbf43168c994188d779b67e79 | refs/heads/master | 2021-01-17T20:53:03.649285 | 2016-06-23T06:19:37 | 2016-06-23T06:19:37 | 61,777,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | '''
Created on 09-Dec-2015
*** Make sure you change the company handles from '951522626','57947109' in case the event is not of Flipkart
@author: unni
'''
from db_manager import connect_to_db, execute_sql
import traceback
import datetime
host_name = "10.5.23.213"
user_name = "root"
password = "root"
def hashtag_count... | [
"bidisha.samanta@gmail.com"
] | bidisha.samanta@gmail.com |
69cee2e766fd517e9fd85b3c08161c6a8fc423f1 | 9d566dfadc81df30f3dfeacbe8547e2d834e7d3c | /network/write_list.py | 9669f3c70d2a82e3177e04cd6098c4dee66feabe | [] | no_license | pkugs/Shan-Gao | b60793233c879234733d8020180094f3fb5bd143 | d8c51e1957729ca44428f4ae6dc75b4cac87f06b | refs/heads/master | 2022-12-14T14:53:38.021957 | 2020-09-07T14:56:10 | 2020-09-07T14:56:10 | 293,557,002 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | import os
import numpy as np
import math
import random
import config
def search_file(file_dir):
L=[];
for root,dirs,files in os.walk(file_dir):
for file in files:
if os.path.splitext(file)[1]=='.mat'or os.path.splitext(file)[1]=='.wav':
L.append(os.path.join(root,file))
return L
def read_file(file_name):
... | [
"noreply@github.com"
] | pkugs.noreply@github.com |
cfd6dbfc67e595d1cd3457011e46150e2b7cf429 | 028cb07e35bac5a176b69bab2aca19cb94f5b045 | /activemq/activemq_topics/activemq_topics.py | 9006dedb17940d2807e429c2a1075419d6a006da | [
"BSD-2-Clause"
] | permissive | site24x7/plugins | 7165cf5bcc7b448f21728956589300bbf1311951 | a662341df01f8bd6ef74a7714004b13ac574eef7 | refs/heads/master | 2023-08-08T03:13:45.227196 | 2023-08-07T12:09:33 | 2023-08-07T12:09:33 | 53,572,196 | 45 | 134 | BSD-2-Clause | 2023-08-24T14:22:03 | 2016-03-10T09:30:37 | Python | UTF-8 | Python | false | false | 5,911 | py | #!/usr/bin/python3
import json
PLUGIN_VERSION=1
HEARTBEAT=True
METRICS_UNITS={
"AverageBlockedTime":"ms",
"AverageEnqueueTime":"ms",
"AverageMessageSize":"bytes",
"BlockedProducerWarningInterval":"ms",
"MaxEnqueueTime":"ms",
"MaxMessageSize":"bytes",
"MaxPageSize":"bytes",
... | [
"noreply@github.com"
] | site24x7.noreply@github.com |
59fbfc7dd2483c48a72b0e4f1b56cbc8f281471e | 38ddc2bbe8ebb383ad66af997399b82fddf7a811 | /greeNLP/callbacks/__init__.py | d0d2a50a9c059eab7b9b068c941383264e3301f9 | [] | no_license | lucaspuvis/GreeNLP | a8e280630370b5dd8332e0c5077b069979f17ec8 | b8f0ab2c52e88c95d081a054dda2a3bcc32974af | refs/heads/master | 2023-01-08T03:36:37.139615 | 2020-11-14T10:37:35 | 2020-11-14T10:37:35 | 311,974,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from .cosine_loss_callback import CosineLossCallback
from .KL_loss_callback import KLDivLossCallback
from .masked_langauge_model_callback import MaskedLanguageModelCallback
from .mse_loss_callback import MSELossCallback
from .perplexity_callback import PerplexityMetricCallbackDistillation
from .carbontracker_callback i... | [
"lupu@itu.dk"
] | lupu@itu.dk |
269a5008004594781539eb564e198895cc039b75 | 45b47ece5ad93043b4aba12c3726c7f78d273579 | /spinedemo/__init__.py | 5f864c9c04017ab8c756e0bce0a7326b72b30f5a | [] | no_license | pdwerryhouse/spinedemo | 7b6f845d58f919ebd645f92f53e736b4c04cea18 | a80417a4d4958a2cfe715d2531766fd8c6a8b932 | refs/heads/master | 2020-05-20T03:36:02.244738 | 2012-11-01T04:43:50 | 2012-11-01T04:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from spinedemo.models import initialize_sql
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
engine = engine_from_config(settings, 'sqlalchemy.')
initialize_sql(engine)
c... | [
"paul@dwerryhouse.com.au"
] | paul@dwerryhouse.com.au |
9ff26e83f859b3987d5595639b7e73dad0d7c9cd | 6f9f4924246304f175834075136144e9dd8a7f55 | /src/metachao/tests/test_abc.py | a172d8cf33ed04fa71af7eebc6c9f8be0da1e186 | [] | no_license | pilz/metachao | a5ad4e0b154a161973f5831aa79e2a8595cc0b06 | 8d83d0c8a3dba31a27e949eebdbbcab585ab16b3 | refs/heads/master | 2021-01-23T20:39:08.411414 | 2013-05-02T12:08:38 | 2013-05-02T12:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | from __future__ import absolute_import
from .compat import unittest
from .. import aspect
from ..aspect import Aspect
class AspectABC(unittest.TestCase):
def runTest(self):
class base(Aspect):
pass
class asp1(base):
def register(self):
return 1
cla... | [
"flo@chaoflow.net"
] | flo@chaoflow.net |
9da947175d5b043c42eec6c39db2af91153df4f3 | 4e139c024f09eb547304c2cb2d1399a334f66c92 | /wikigen/model/batch.py | cf72a5f6330af01738d5e7ad2213b10baf545bdc | [] | no_license | epochx/PEER | 04dd77fd638858fe285c9fcee3ad6a4ccd283e9a | de52c45d121b63dee28f72b68de2625c8ec2bb66 | refs/heads/master | 2023-02-27T15:29:09.086756 | 2021-02-01T07:54:29 | 2021-02-01T07:54:29 | 264,897,876 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,053 | py | from itertools import chain
import numpy as np
import torch
class Batch:
def __init__(self, sequences, lengths, masks, classes, tag_sequences):
self.sequences = sequences
self.lengths = lengths
self.masks = masks
self.classes = classes
self.tag_sequences = tag_sequences
... | [
"edison_marrese@hotmail.com"
] | edison_marrese@hotmail.com |
82b5cc7018c380efcdca9d053ca617c8f592ec7c | 89345b964d292d71893f1222aee1f35843677687 | /email/send_email.py | 33b852096c7071327579fe3a3afee53603f21896 | [] | no_license | CodePpoi/python-learn | b87375a0af670bc4edf0d71aceeac2f2fdeb8286 | c7f1bc138598e279b6424e1672e0e04eb93c480a | refs/heads/master | 2023-04-24T01:06:19.652410 | 2021-05-27T07:08:44 | 2021-05-27T07:08:44 | 365,940,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py |
import yagmail
conn = yagmail.SMTP(
user="467938742@qq.com",
password="authcode",
host="smtp.qq.com",
port=465
)
content = "内容填充"
body = f"模版 {content}"
conn.send("467938742@qq.com", "主题", body, "receive_email.py")
| [
"467938742@qq.com"
] | 467938742@qq.com |
20424f1dbe3cb2519bc38fbd05015eb69508b4d9 | c33682b19c145e1a25a2adc8690da99610ccbaca | /products/migrations/0006_product_price_old.py | a68e52f260bf03ec01521967ea334c241e5b90b6 | [] | no_license | win77g/pyshop_aws | c4aec7e1a439b61345bcefda754f70da5e954b99 | f612e8a3010d3d56f4c2ae6bc8186e82d43b902b | refs/heads/master | 2022-12-06T13:46:44.727674 | 2019-01-19T20:08:31 | 2019-01-19T20:08:31 | 165,439,404 | 0 | 0 | null | 2022-11-22T03:11:28 | 2019-01-12T21:50:19 | HTML | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2018-11-02 23:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0005_productimage_is_main'),
]
operations = [
migrations.AddFie... | [
"win21g@mail.ru"
] | win21g@mail.ru |
6093b0b84e132d7837a3094b77d11cdeb5000f0d | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/sales_offer_package.py | e9a9b7e5048aaaf03268032f6799a3a7dd9a2a3c | [] | 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 | 309 | py | from dataclasses import dataclass
from .sales_offer_package_version_structure import SalesOfferPackageVersionStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class SalesOfferPackage(SalesOfferPackageVersionStructure):
class Meta:
namespace = "http://www.netex.org.uk/netex"
| [
"chris@komposta.net"
] | chris@komposta.net |
38ea71f9d0d2e58afbcc0091469b7b707f796890 | 7526bf191eb5a10f02734d8d97316ef4b5642282 | /Earlier/struff.py | d581bb4869828a570d5601c6e906dd6d65d39e5f | [] | no_license | Randomperson999/Python-2020 | 9f4c2cd0ca611220f9824323fcf4af65f6ca2f22 | 9ba8d1fb4f13b7f1b4c854f57b0645e76ae4a1dc | refs/heads/master | 2023-05-02T06:39:52.946828 | 2021-05-25T14:41:24 | 2021-05-25T14:41:24 | 294,149,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | #Caleb Keller
#9/23/2020
#Ascii Art
print(str.format("""
____________________________
{1} / \\ {0}
| ... | [
"caleb.keller@tooeleschools.org"
] | caleb.keller@tooeleschools.org |
84953f6b0acdede51abab2f557bd798055314172 | f460e8380e796619c46139c80c07c5a2eca6e23a | /aws-cloudformation-client-helper/propextractor.py | bafd014fe3da8ad0598cb29f7322b3d2504e75cc | [] | no_license | vasanthrj/easy-devops | feeec17e868e14ab8d2518e8b7ac91b915b7ea43 | 79864ffb875f4ffc5a6c506019ff3e920dac8d43 | refs/heads/master | 2021-01-01T03:33:33.223780 | 2016-04-25T12:41:44 | 2016-04-25T12:41:44 | 57,034,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | #! /usr/bin/env python
import sys
import json
from collections import OrderedDict
CONSTANT_PARAMETERS = 'Parameters'
CONSTANT_PARAMETER_VALUE = 'ParameterValue'
CONSTANT_PARAMETER_KEY = 'ParameterKey'
def readJsonFile(jsonFile, parametersFile):
try:
jsonFileObj = open(jsonFile)
try:
validJsonData = json.loads... | [
"vjagadeesh@BANL13b189493.local"
] | vjagadeesh@BANL13b189493.local |
02520fd4128633b81fb076f02c2474dec8b59267 | fd5414667c7e1ab3d5881a8e455af8206f003b0f | /tools/proto.py | 56b797b078f6f737e7e2d11d5db545b10e35cda6 | [
"MIT"
] | permissive | apvilkko/jane8-musicdisk | d7f21cf24a7c0582a2010812c27c4985fc3bc548 | 86d1ffa8c268f782b23e2b0bb32c62620eadfb58 | refs/heads/main | 2023-04-28T18:38:06.424180 | 2021-05-16T09:13:17 | 2021-05-16T09:13:17 | 306,324,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,622 | py | m = [0] * 128
subclipstart = 0x10
clipstart = 0x30
segmentstart = 0x50
trackstart = 0x70
I_POS_LO = 0
I_POS_HI = 1
I_ORG_LO = 2
I_ORG_HI = 3
I_TOT_REP = 4
I_CUR_REP = 5
I_INSTR = 6
I_REF_EN = 7
SUBCLIP_OFFSET = 0x20
END_STREAM = 0xff
END_SEGMENT = 0xfe
REF_COMMAND = 0xf0
INSTR_TYPE = 0xfc
TYPE... | [
"apvilkko@gmail.com"
] | apvilkko@gmail.com |
03adb8932a0cb9f284b4b1bd04f80bfdfe15184c | 6a2e2931641de25b228d323c08ea4f52908c2fad | /third_party/depot_tools/tests/super_mox.py | 62113e210b57c9b5641aecb45624ebe155906a84 | [
"BSD-3-Clause"
] | permissive | cnsuhao/chromium_base | 875417cbbab6857af2349aa57a6037b7563b5fab | e252f10aa64f0a0ec942997f73dbf3bd685087cf | refs/heads/master | 2021-04-06T17:04:41.317674 | 2011-12-26T15:06:47 | 2011-12-26T15:06:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,299 | py | # Copyright (c) 2011 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.
"""Simplify unit tests based on pymox."""
import os
import random
import shutil
import string
import StringIO
import subprocess
import sys
sys.path.app... | [
"lianliuwei@qq.com"
] | lianliuwei@qq.com |
e0d2bb0df90a5cddc6ae55820e73a8cf96803f73 | 6e88eb98fc588af66df6e8efe39f82238a551883 | /project1/import.py | 952a99a95729e8630c8e551db48cbf106c799d36 | [] | no_license | SE-Materials/CS50-Web-Programming-with-Python-and-JavaScript-Notmine | 89cce92cd7a31c396293afcc237f500126f46efc | 176df85315bbbfb440ec4498e08ea0970420e2b2 | refs/heads/master | 2023-06-17T13:36:06.124810 | 2021-07-20T17:12:08 | 2021-07-20T17:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | import csv, os
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
# Check for environment variable
if not os.getenv("DATABASE_URL"):
raise RuntimeError("DATABASE_URL is not set")
# Set up database
engine = create_engine(os.getenv("DATABASE_URL"))
db = scoped_session(sessio... | [
"vitorhug97@gmail.com"
] | vitorhug97@gmail.com |
e1789ccc0f9e5a3e836ce72d10d6aa8d31e209db | eb6e6c4cb50803ec056b8005e27a93793b422d51 | /classes/retinaAndArm.py | 8b4ffa5769e0d5fa56bbbdf2e71d4fd00031998d | [] | no_license | ZouhairKhatouri/Learning-proto-imperatif-pointing | e0839f0e632c41cfccf4cfc6f5e2c72da15a0fb2 | 71dcd5419676332222a08496e9768ad8169c2267 | refs/heads/main | 2023-06-19T23:25:53.152731 | 2021-07-04T23:00:47 | 2021-07-04T23:00:47 | 352,927,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py | import numpy as np
from math import sqrt, pi, exp, sin, cos
from copy import deepcopy
import torch
from torch import nn
class MotorCortex(nn.Module):
def __init__(self, N_anodes, N_rnodes):
super(MotorCortex, self).__init__()
self.N_anodes = N_anodes
self.N_rnodes = N_rnodes
self.f... | [
"noreply@github.com"
] | ZouhairKhatouri.noreply@github.com |
316e8361374b9656a70868f68a5ab51f562dc7fd | d8a766184f7d2e4379a9578b6bd01451f4434fd8 | /multilang/client.py | c20e10a639354455562a43703cccaf367db1b92a | [] | no_license | YaoQ/zmq_examples | 1e9c386f3d8b51e04208bcededb8f64938a5200e | 631867073b79087c4bf94dff7ff3c57c113fc9a1 | refs/heads/master | 2020-11-30T13:03:08.111975 | 2011-06-03T21:16:59 | 2011-06-03T21:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!/usr/bin/env python
import zmq
ctx = zmq.Context()
s = ctx.socket(zmq.SUB)
s.connect("ipc://hellostream:5678")
s.setsockopt(zmq.SUBSCRIBE, 'hellos')
while True:
msg = s.recv()
print 'Received: ', msg
| [
"jd@j2labs.net"
] | jd@j2labs.net |
6b4c610879a2bf66dfced2dd0292fecd2e7d6277 | d0421259501e9e4a14b6273857ef05101f6aa19d | /xmen/examples/monitor/messenger/expand.py | 4a35d9e0e4e706f6647232f881c71a1006f2bdba | [] | no_license | robw4/xmen | 6fe71ea5eb325736c4909bb9a671a38b085470b3 | e5cafee46c15533c43ebf909710e7cd9ba9a7c68 | refs/heads/master | 2023-07-25T06:47:21.726573 | 2021-04-01T11:02:39 | 2021-04-01T11:02:39 | 209,363,397 | 4 | 2 | null | 2021-08-31T09:02:01 | 2019-09-18T17:10:25 | HTML | UTF-8 | Python | false | false | 568 | py | """expanding dictionary variables"""
from xmen import Experiment
from xmen.monitor import Monitor, XmenMessenger
ex = Experiment()
ex.register('/tmp', 'ex')
m = Monitor(
hooks=[
XmenMessenger('z->^ex$@10s', keep='min', leader='y', expand=True)])
# dictionary variable
z = {'x': 5, 'y': 10}
for i in m(range... | [
"robw@robots.ox.ac.uk"
] | robw@robots.ox.ac.uk |
6f60b205ae861ece9bf95fc250ec636586d23caf | f35bf9ff7405c179289f049fad4396198b4a0ef8 | /CF_658_D2/NONAME00.py | 20edd7136538d6ba47c618fb7f15c07af9246747 | [] | no_license | proRamLOGO/Competitive_Programming | d19fc542e9f10faba9a23f4ef3335f367ccc125a | 06e59ba95c3804cae10120ac7eda6482c3d72088 | refs/heads/master | 2023-01-03T07:27:25.960619 | 2020-10-29T19:15:53 | 2020-10-29T19:15:53 | 151,049,005 | 0 | 7 | null | 2020-10-29T19:15:54 | 2018-10-01T07:05:55 | C++ | UTF-8 | Python | false | false | 192 | py | import sys
sys.stdin = open('CF_657_D2/input.txt', 'r')
sys.stdout = open('CF_657_D2/output.txt', 'w')
linp = "list(map(int,input().split()))"
for T in range(int(input()) ) :
# Code Here | [
"kapilgupta547@outlook.com"
] | kapilgupta547@outlook.com |
20114423ddd8478254f429468b976c2a06c6656a | fad9600919055a160d5fa53f2d54278f373685c5 | /scripts/addons/space_view3d_copy_attributes.py | 67994960d9932e1a7b82e7ca689c5c7c7c18a491 | [] | no_license | miklobit/blenderpython | f666ef26db6be03a1b1fe6a7f2cb5e31aad1b423 | 2b0e93437ac5e894e990ebc18c1d713b5f7ebe29 | refs/heads/master | 2021-01-15T09:33:31.092850 | 2015-04-11T12:22:03 | 2015-04-11T12:22:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,738 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
3b1ab5eb7f32985d40086569a45a80524368b9b6 | 87fafffb6733557c8797642ab4486e2b7718e073 | /textutils/urls.py | 2e8f5368fb9dfd9041fa101f81816e61c262e8df | [] | no_license | simr9011/textutils | 53b73c232a6c5a804edc62db662646f82cd956d0 | 8aa924d2ea657ebc15d69dd4dbc0b58a49a62e03 | refs/heads/master | 2023-03-18T23:05:17.278098 | 2021-03-09T08:40:59 | 2021-03-09T08:40:59 | 345,937,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | """textutils URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"simr9011@gmail.com"
] | simr9011@gmail.com |
650cb140f18e4ad83899980fa89884d410ab91bd | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/BEC_imaging_4_frames.py | e2a56b18f7f98891acb021a2922e70d1ab9bd6db | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | prg_comment = ""
prg_version = "0.7"
def program(prg, cmd):
prg.add(-702000, "Pulse Trig Stingray 1", comment="F1", polarity=1, pulse_t=0.10000)
prg.add(-9000, "Probe y AOM TTL long ")
prg.add(-7500, "Probe y AOM TTL", enable=False)
prg.add(-1500, "Pulse Trig Stingray 1", comment="atoms", polarity=1, pu... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
21b25a812f69d8e88bd80686a46ede291247ae56 | 74047f69c5ebd83f6807978ccbed1fa7bdaaa3ca | /Python/20File Handling/filehandling.py | 7e5baef6a25118968024d26157e6616c57ecf130 | [] | no_license | Ashwinbicholiya/Python | 9b9e6731e3dcb0ccd298cf502f0a82962a52c7f0 | 11e748f105d77f2830a3dd48e3b72f80f3d8d18d | refs/heads/master | 2023-01-02T22:29:53.079325 | 2020-10-30T08:49:17 | 2020-10-30T08:49:17 | 261,976,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | f=open('Mydata','w')
f.write('Hello My name is Ashwin\nI am persuing B.tech')
| [
"ashwinbicholiya@gmail.com"
] | ashwinbicholiya@gmail.com |
a2fc77478d2fc9f48c84c37e6a60c68b443aba2b | 2852fe8a1c7e0a23618f8be2ce0536cd6f0c273f | /scripts/terragrunt-generate-plan | b2a33892a07fcba50920567039a573ca2290c41f | [
"Apache-2.0"
] | permissive | NixM0nk3y/terragrunt | 46868df5dbccc930857e9673a322bc10f633083b | 0d397ab51eb234811a72de4e61797b9dee5e9be7 | refs/heads/master | 2021-08-12T03:11:39.174618 | 2021-08-06T09:32:15 | 2021-08-06T09:32:15 | 231,923,806 | 0 | 1 | Apache-2.0 | 2021-08-06T09:32:15 | 2020-01-05T13:46:32 | Python | UTF-8 | Python | false | false | 13,546 | #!/usr/bin/python3
#
#
#
import subprocess
import argparse
import logging
import zipfile
import tempfile
import shutil
import boto3
import json
import time
import sys
import os
from datetime import datetime
from botocore.exceptions import ClientError
from typing import Any, List, Set, Dict, Tuple, Optional
logging.... | [
"nick.gregory@openenterprise.co.uk"
] | nick.gregory@openenterprise.co.uk | |
b13effbc3db4502934e27a99ac1e94aa4a2c8d10 | d4846c17b617345e359b737caff7c2f616d6061e | /board.py | 682fbd25412da437593b80811423ea54db47a48a | [] | no_license | yiyu-t/Othello | d93a5f1671cbb768d3e4adeb0e4f7ce5f6ad420b | 311ed6e161b32e4139c9cd97c88fdf3be8c884aa | refs/heads/master | 2022-12-04T09:22:30.613016 | 2020-08-24T00:32:47 | 2020-08-24T00:32:47 | 289,780,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | from disk import Disk
BLACK = 0
WHITE = 255
STROKE_WEIGHT = 1.5
SPACING = 100
LOCATION = 50
DIAMATER = 90
class Board:
'''draw the board and keep track of available spaces'''
def __init__(self, rows, columns, spacing):
self.ROWS = rows
self.COLUMNS = columns
self.SPACING = spacing
... | [
"noreply@github.com"
] | yiyu-t.noreply@github.com |
22290cb6922114a09f1c29c6f88f76f475774c03 | 0c6b4e9c5ecc5a7595717f9699953b227486ef3e | /tests/unit/modules/system/test_parted.py | 88de50229ad1773fdd6517638d7252660a23dc26 | [] | no_license | ansible-collection-migration/ansible.misc | d9c92e8bb0c17b3e2a92976215f523c2afaa5a46 | 3c02be2a8c03b2e375a1e1f37b0c119145ea358c | refs/heads/master | 2020-12-26T23:11:36.544511 | 2020-02-03T22:18:53 | 2020-02-03T22:18:53 | 237,681,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,011 | py | # (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
19569eb211cf25411234892dbb9de789158a8703 | a59d1faced9fe7348ca7143d2a8643e0ebad2132 | /pyvisdk/do/affinity_configured.py | c04506089a5fb5d90e02cf73f2a304c1b33600f9 | [
"MIT"
] | permissive | Infinidat/pyvisdk | c55d0e363131a8f35d2b0e6faa3294c191dba964 | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | refs/heads/master | 2023-05-27T08:19:12.439645 | 2014-07-20T11:49:16 | 2014-07-20T11:49:16 | 4,072,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def AffinityConfigured(vim, *args, **kwargs):
'''Virtual machine has a configured memory ... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
4dc58f312613ef2f23e0dbba1749e4a23e1397de | b8ee88b256dbe80939370db36b26a6b26a175238 | /run_random_agent.py | e8ea6adc17579c0785957bfa9be49c4cd670b65f | [] | no_license | A-Maze-Ball/random-agent | 19e33c1aed4fbf8e43ea42f92d2ac0a2aaa9b0e0 | c5ad78a49fb82e52efda9fb631e953c37091d210 | refs/heads/master | 2020-04-15T09:40:59.169526 | 2019-01-26T07:02:21 | 2019-01-26T07:02:21 | 164,561,108 | 0 | 3 | null | 2019-01-26T07:02:22 | 2019-01-08T04:31:24 | Jupyter Notebook | UTF-8 | Python | false | false | 1,205 | py | """A Script to run/test the RandomAgent class"""
import argparse
import gym
import retro
from random_agent import RandomAgent
def main():
script_args = parse_args()
if script_args.use_retro:
env = retro.make(script_args.env_name)
else:
env = gym.make(script_args.env_name)
random_agent... | [
"caseyi@outlook.com"
] | caseyi@outlook.com |
c875f190a633a2edbaeff79365332af0178a5b09 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/quiz06_20200705133212.py | e197cab260fb63d34c9077ac082e82a4d63a6f64 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # Quiz) 표준 체중을 구하는 프로그램을 작성하시오
# * 표준 체중: 각 개인의 키에 적당한 체중
# (성별에 따른 공식)
# 남자: 키(m) x 키(m) x 22
# 여자: 키(m) x 키(m) x 21
# 조건1: 표준 체중은 별도의 함수 내에서 계산
# * 함수명: std_weight
# * 전달값: 키(height), 성별(gender)
# 조건2: 표준 체중은 소수점 둘째자리까지 표시
def std_weight(height, gender): # 키 m 단위 (실수), 성별 "남자" / "여자"
if ge... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
3084ba20c53bd331b16e9070717c0468dd61a029 | 801ff94407b451f07dcab0c60beb6d15f64cfede | /catkin_ws/build/vision_opencv/image_geometry/catkin_generated/pkg.develspace.context.pc.py | 9b6086d260486bb1dee0547bd87336327d2bd6f5 | [] | no_license | Sean-Hastings/rosmasker | 1f2eee3cb05656b848b71f65c59cd3bc6ee7658a | 20536990d89b8073d7dae6b4405568334a7dafb5 | refs/heads/master | 2020-06-14T02:26:26.289555 | 2019-07-05T15:14:03 | 2019-07-05T15:14:03 | 194,866,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,695 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sean_hastings/catkin_ws/src/vision_opencv/image_geometry/include;/opt/ros/kinetic/include/opencv-3.3.1-dev;/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv".split(';') if "/home/sean_hastings/cat... | [
"sean_hastings@brown.edu"
] | sean_hastings@brown.edu |
a92621bbfc1acce8bdf2fb8cbcbde37fbfb4553f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/infra/rspoeifpol.py | e00e37a0f4b2413a151e025adc9891eb938c172c | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 9,302 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
4bf8c48feba676ca78647d9f4ad7589eba6891bd | ed2157e675cfed7ed79a855b9f8ef76e1a5db715 | /PredictionServer/predict.py | f66e903401a31aec06ae1adcca59408fa11d6ae9 | [
"BSD-3-Clause"
] | permissive | hwang-happy/NetSolP-1.0 | a6d73066bb888818a2091af88ce691c05219e722 | 05c7211d81fde51fb5a5457dd6e35f242a3fc990 | refs/heads/main | 2023-08-21T12:58:48.973801 | 2021-10-01T14:49:30 | 2021-10-01T14:49:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,428 | py | # Copyright (c) 2021, Technical University of Denmark
# 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.
import onnxruntime
from data import *
import os
import pickle
import argparse
import pandas as pd
im... | [
"noreply@github.com"
] | hwang-happy.noreply@github.com |
20e91cfdd660b856520992d4e9266f8ae473bb87 | 3b37cbe39be0369e615d252207c946e5350a5fd3 | /tf_x_transformers/autoregressive_wrapper.py | e4d34bcbca5f382f752a2bdf4b97fbe03f7e78ea | [] | no_license | JunnYu/tf-x-transformers | 03bb89d80edd4d4322d5becf3a0643c1e77744a2 | a55a369ac02f192ac7dce6f1fe9c596426c1e005 | refs/heads/main | 2023-04-21T21:41:50.174938 | 2021-05-14T09:36:29 | 2021-05-14T09:36:29 | 365,963,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | from tf_fast_api import *
from tf_x_transformers.tf_entmax import entmax15
entmax = entmax15 # TODO entmax_beisect
# nucleus
def top_p(logits, thres=0.9):
sorted_logits = tf.sort(logits, direction='DESCENDING')
cum_probs = tf.cumsum(tf.nn.softmax(sorted_logits),
axis=-1,
... | [
"573009727@qq.com"
] | 573009727@qq.com |
d24f42076cab4079cfb643935a0a52609e008eab | b2c4fb433e448b28169a26a6a985f8321c2fd17f | /lib/layers/Replicate_unit.py | 5c0cb3cfad94d351104a15218b28b9fdae465dc8 | [
"Apache-2.0"
] | permissive | liubai01/AI-StarCraft-II | 65b3fc6fdeb72f264957fe5d87b6b757ff11d9d0 | e920d345c66324bc1bb1cba3eb86dac7f945ebea | refs/heads/master | 2020-04-06T17:17:02.413326 | 2018-12-19T11:22:25 | 2018-12-19T11:22:25 | 157,652,759 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | import torch
class Replicate_unit0d(torch.nn.Module):
def __init__(self, depth, width, height):
super(Replicate_unit0d, self).__init__()
self.depth = depth
self.width = width
self.height = height
def forward(self, x):
# accept only scalar, 1 dimensional input, first dim... | [
"0@liubai01.cn"
] | 0@liubai01.cn |
84f5e22fe2d1631a96c9772a92c906692c956fc4 | de2cc7050f7dd5053ef8eb59d1fb1464c26fef6c | /День 3 (задача C3).py | 6ccba04800b1567fd5eac80a28631bd1fd16a126 | [] | no_license | Den44/MDS | e37870eaa21b6538ce1e95d754f25f10d26b0458 | 40a310e0d80280d5642160cda29a4b15eef9563f | refs/heads/master | 2020-03-21T03:32:02.145214 | 2018-06-20T16:38:03 | 2018-06-20T16:38:03 | 138,059,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | import datetime
def printTimeStamp(name):
print('Марчик Денис: ' + name)
print('Час компіляції: ' + str(datetime.datetime.now()))
import turtle
def drawTriangle(points,color,myTurtle):
myTurtle.fillcolor(color)
myTurtle.up()
myTurtle.goto(points[0][0],points[0][1])
myTurtle.down()
myTurtl... | [
"noreply@github.com"
] | Den44.noreply@github.com |
56502b9bff33823b880b5d395bb53f2f4948f37a | ca0760bcd0e277c2bfb96158b7a97aec35db399a | /ch09_objects/animals.py | 118021af7a44ccb7856b298e7133fca875543ef4 | [] | no_license | ncapps/python-workout | 5d867fe5ae6fec43175c84405f04c43826b7006f | cf0b91e266c55daee00f3e9beb9bebe38746a833 | refs/heads/master | 2022-12-07T18:14:58.872449 | 2020-09-04T18:13:23 | 2020-09-04T18:13:23 | 285,483,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py |
class Animal():
def __init__(self, color, number_of_legs):
self.species = self.__class__.__name__
self.color = color
self.number_of_legs = number_of_legs
def __repr__(self):
return f'{self.color} {self.species}, {self.number_of_legs} legs'
class Wolf(Animal):
def __init__... | [
"nickcapps10@gmail.com"
] | nickcapps10@gmail.com |
4b8ba6debcacd7c0b6b679f74a8f5e2f7f24904b | a9052cf94440b50ffa6c6a7d6aac209e2cc023b9 | /hanabi/gui.py | 4b3e6e9dca0dfbf80f03a04b9cdaea7e55393eb7 | [] | no_license | supermihi/hanabi | 56a079065e38315de1670769a72b6abe04943c89 | 327e6d43b6b1c95c6d70cf5f2406a1b1a903a5e4 | refs/heads/master | 2021-01-01T19:33:49.499781 | 2014-02-17T20:22:11 | 2014-02-17T20:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,844 | py | import sys, math
from collections import OrderedDict
from PyQt5 import QtGui, QtCore, QtWidgets
from PyQt5.QtCore import Qt
from hanabi import Farben, Zahlen
from hanabi.spielzug import Ablegen, Abwerfen, Hinweis, UngültigerZug
from hanabi.spiel import SpielEnde
from hanabi.spieler import HanabiSpieler
KartenGröße ... | [
"michaelhelmling@posteo.de"
] | michaelhelmling@posteo.de |
6b2cc35c12e83a5f3710590b604634fa5c65d31b | 845814f950175334c40b682725d75cd85ef49946 | /Strings/anagram.py | e7e5a6f86f384e7c568e17ea5718170b50e9703d | [] | no_license | prateek1404/AlgoPractice | 2df9590fd2d6f79871e21aefd5d1ee92d6369553 | 30ebaa23d3bb621ea00bb77dd5d9d51a96fc8c31 | refs/heads/master | 2021-01-13T02:31:36.821087 | 2015-02-13T05:31:32 | 2015-02-13T05:31:32 | 27,031,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | def mergeSort(string1):
if len(string1)==1 or len(string1)==0:
return string1
mid = len(string1)/2
str1= mergeSort(string1[:mid])
str2 = mergeSort(string1[mid:])
str3= merge(str1,str2)
return str3
def merge(str1,str2):
ar1= list(str1)
ar2= list(str2)
len1= len(ar1)
len2 = len(ar2)
i=0
j=0
ar3=[]
while ... | [
"prateek1404@gmail.com"
] | prateek1404@gmail.com |
ff58943c865842f7c1c26c7786a50340d94dc3ab | baab5e53ae7820bdaaaa03b8118a60bb508dec12 | /venv/bin/easy_install | eaa354d2e9ec212df23ac0bbe977da4211e4e09d | [] | no_license | MOMOKO606/CLRS_Code_in_Python | 2fd5cf60b0d94270d838fe9a93e661e1f189b22f | a359f181f476dbf116491a2c5a5e9949a0c5320e | refs/heads/main | 2023-08-15T00:19:29.859903 | 2021-09-27T08:58:58 | 2021-09-27T08:58:58 | 377,838,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/bubu1104/GitHub/CLRS_Code/venv/bin/python3.9
# -*- 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())
| [
"bianlong0618@qq.com"
] | bianlong0618@qq.com | |
cfa5fd045a04723cb67c0a9219f5cf22c2080e28 | 2fd842a4c979c0caa95e1f7a83948942b9eb387b | /tests/providers/googledrive/test_metadata.py | 16ddebafeee8205b32b35b361c90e973897f04ed | [
"Apache-2.0"
] | permissive | jmcarp/waterbutler | 5d24da23126ede1fb5acfa7b54ce7cf05bb6f5d3 | ad5d309dc5a5b2a44214177a87cee068f3b406f6 | refs/heads/develop | 2021-01-17T23:23:20.834884 | 2015-02-26T19:03:52 | 2015-02-26T19:04:53 | 31,084,325 | 0 | 0 | null | 2015-02-20T20:42:36 | 2015-02-20T20:42:36 | null | UTF-8 | Python | false | false | 1,760 | py | import pytest
import os
from waterbutler.providers.googledrive.metadata import GoogleDriveFileMetadata
from waterbutler.providers.googledrive.metadata import GoogleDriveFolderMetadata
from waterbutler.providers.googledrive.metadata import GoogleDriveRevision
from tests.providers.googledrive import fixtures
def tes... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
5fe2d3d04cda1f1d920152caf3da1e05eab7a779 | c9fd2d304681ae1d9ca04739ca4d39e7decaa429 | /tests/test_utils.py | 7952a5ac7d0a0adb62c5421941263d08351edca5 | [
"Apache-2.0"
] | permissive | NitefullWind/httprunner | aa12935aa16aa959f45c2a6cd1accbf6fc0e77ff | 00421a5cbc965105ec49092da948b8fdaabf545f | refs/heads/master | 2020-09-30T09:27:16.495932 | 2019-12-11T02:40:43 | 2019-12-11T02:40:43 | 227,259,763 | 0 | 0 | Apache-2.0 | 2019-12-11T02:34:30 | 2019-12-11T02:34:29 | null | UTF-8 | Python | false | false | 11,400 | py | import io
import os
import shutil
from httprunner import exceptions, loader, utils
from tests.base import ApiServerUnittest
class TestUtils(ApiServerUnittest):
def test_set_os_environ(self):
self.assertNotIn("abc", os.environ)
variables_mapping = {
"abc": "123"
}
util... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
be3eb698a684a2ff54ea505b81c50652762980d2 | 2c5bdbd4af3ebda7a67a3b466f5fece58eb89e3c | /tracker/deepsort.py | cb374405de1b2c1e1cf2065bc2e24f22c510d62f | [] | no_license | Romero027/Caesar | 6a2536cf22c2aa7265d5e0e61556b47be4af633b | 0ba854571914b5c5d0aa24dcfceca8f8ec994ca7 | refs/heads/master | 2022-11-26T08:12:34.487223 | 2020-07-30T15:33:45 | 2020-07-30T15:33:45 | 280,050,800 | 0 | 0 | null | 2020-07-16T04:14:24 | 2020-07-16T04:14:23 | null | UTF-8 | Python | false | false | 4,235 | py | import numpy as np
from os.path import join
import os
import sys
from time import time
import logging
from tracker.deep_sort.detection import Detection
from tracker.deep_sort.tracker import Tracker
from tracker.deep_sort import nn_matching
SAME_TUBE_IOU_MIN = 0.3
def get_iou(a, b, epsilon=1e-5):
"""
Args:
... | [
"xcliu8@gmail.com"
] | xcliu8@gmail.com |
b58dee0ef56a8a88a74375320773657752c18e4a | 877b98cbfee456379a26b088f7fccd2361212db0 | /release/classes/qos/openconfig_qos_types.py | e0286036f5731c36a85043e1213be538e765145f | [
"Apache-2.0"
] | permissive | jjmanzer/public | b6d0872129c649f98012698349d8d3c9e308fcfe | 1ec89717f8aa8dc0eefd5302f295a6fcedafc4ee | refs/heads/master | 2021-05-14T17:45:09.629839 | 2018-01-02T22:43:50 | 2018-01-02T22:43:50 | 116,055,981 | 0 | 0 | null | 2018-01-02T20:50:41 | 2018-01-02T20:50:41 | null | UTF-8 | Python | false | false | 1,137 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"jjmanzer@godaddy.com"
] | jjmanzer@godaddy.com |
0c0e2c30bffa2895b9b37394315b907e4530a356 | ebad837c7f38d4f8aca3f6c876eadc8666a716d2 | /dashboard/urls.py | 3f982b6501f25c7929799ab2dadd627fdac28efe | [] | no_license | rexuru17/planning-master | 90186013748f7dddf8acc1836a761cdf9e3d41f4 | 0e5bbf0b495b44e34b77fa9f3fcb1aa2864eb611 | refs/heads/master | 2023-08-15T03:35:59.087417 | 2021-09-23T13:39:20 | 2021-09-23T13:39:20 | 406,120,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | """planning_system URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"rexuru17@gmail.com"
] | rexuru17@gmail.com |
c5a2fb3f1ab8bbd36252037a635716037ed049e4 | 38396a5ba18094b2e7e5bb53206d943f726f7bb7 | /python/coursera_introduction/week3/problem3_1.py | b466b098e671ee9abd498ff5a82bbcd040792638 | [] | no_license | frauca/samples | a048d051304656757c33a4b5bc23830c52cd4db0 | cd5ba431fe343fae2f47aa7c3b956d60eddf8a78 | refs/heads/master | 2023-08-16T04:31:42.747222 | 2023-08-01T14:46:51 | 2023-08-01T14:46:51 | 3,519,641 | 0 | 0 | null | 2022-12-15T23:23:16 | 2012-02-22T22:07:03 | Python | UTF-8 | Python | false | false | 1,473 | py | # - ProblemSet3.py *- coding: utf-8 -*-
"""
Problem 3_1:
Write a function that reads a text file and counts the number of characters in
it. Print both the text file and the number of characters. Do this so that the
printout isn't doubled space (use an end="" argument in the print statement).
Also, skip a line befo... | [
"rfrauca@gmv.com"
] | rfrauca@gmv.com |
e5316d77096195870907174377ba95a92fe3d067 | 09571e3598a7616a570cc8726ab1bcb3103de180 | /mysite/settings.py | e71410c8a5d9ffbd3939e2bc0af298e61ceb8c3d | [] | no_license | nono8811/my-first-blog | 8dd1aa70a64e6a173d29ff2ba420233c48f8945b | 983a3027ccf00fc51608fd35c501f67aa67274cf | refs/heads/master | 2020-06-19T21:35:39.616913 | 2016-11-26T16:52:56 | 2016-11-26T16:52:56 | 74,830,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
#... | [
"talvikuusi@gmail.com"
] | talvikuusi@gmail.com |
210417a9818acb68c2093acd707508c198e18937 | 1c1a66ae7861cc8271f000776f21a4e5ffd53046 | /Organize-Directory-Files.py | 4d7196a4b11c48577badd7a37a3f8b363980cc99 | [] | no_license | mohamed-shaheen/Automation | 8ebf5fbdd4241d47484c54a7a9363cc1fba4f476 | 05381d19fa0029494bbe44e7e05916c31466454a | refs/heads/master | 2023-01-31T22:52:04.271387 | 2020-12-20T20:27:19 | 2020-12-20T20:27:19 | 323,153,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | import os
import shutil
dir_path = os.path.dirname(os.path.realpath(__file__))
img = 0
musc = 0
vid = 0
ext = 0
arch = 0
doc = 0
cod = 0
try:
print("Organising your files intro [ images - music - video -executable - archive - torrent - document - code - design files]")
for filename in os.listdir... | [
"hamood_shaheen@outlook.com"
] | hamood_shaheen@outlook.com |
be1303228d4203ad7ba51ffe47fe9bf49e2330ea | 78081d72ca28a35afe251fe9b8877fa274010b45 | /rango/views.py | 73d3d6d8faafaf54abe3c1caa8eb8e9f61d8ad74 | [] | no_license | SicongHuang/tango_with_django_project | b85f5a0721c2a54ac21f51f4edceee5b69286aba | 31ca1c447b91ea5babb0e14e131a8e0eb6b239f3 | refs/heads/master | 2023-06-29T20:08:52.696916 | 2021-07-29T22:13:04 | 2021-07-29T22:13:04 | 389,426,346 | 0 | 0 | null | 2021-07-27T09:52:07 | 2021-07-25T19:31:38 | Python | UTF-8 | Python | false | false | 5,336 | py | from django.shortcuts import render
from django.http import HttpResponse
from rango.models import Category
from rango.models import Page
from rango.forms import CategoryForm
from django.shortcuts import redirect
from rango.forms import PageForm
from django.shortcuts import redirect
from django.urls import reverse
from ... | [
"184984913@qq.com"
] | 184984913@qq.com |
9b806f045c78857d8c8c1d08acb3ebda3560b421 | 3632f4ed102ebe9c33982719f760c4af57ef781c | /agents/maze_agents/toy_maze/skill_discovery/base.py | 66dbb0e7b0927ed8df31e445cddccbc84877192b | [
"MIT"
] | permissive | fuyw/edl | 4b23e6a9dd8c90e105f6ad2f50daef8b869c78a6 | ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0 | refs/heads/master | 2023-05-29T16:57:19.213867 | 2020-02-16T15:53:08 | 2020-02-16T15:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # Copyright (c) 2019, salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: MIT
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
import torch
from base.modules.generic import CategoricalWithoutReplacement
from base.actors.skill_discovery import Base... | [
"victorcampos.7@gmail.com"
] | victorcampos.7@gmail.com |
1e5b445ce4cf96477e91a747b8033c1ece2c99c3 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano623.py | f192358edc0205e0083a0a68a224b298f9190a59 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
61e7ec2b9d96f06ba5aec154ea2259a3ea05a06f | 929d7e64b3ec19d4224b45588c0249aed31ac898 | /main.py | 315cba50ebca94c1eb367a7e468b88273d3cc0ea | [] | no_license | cunning-seal/fun_bot | 81a8060e41cb33fab7ab1e13a59973c2089ccf48 | 10738b6dc7ebc9162a05e8a4eea9386dedb3eb6b | refs/heads/master | 2022-12-09T05:06:59.623273 | 2021-01-13T07:21:17 | 2021-01-13T07:21:17 | 208,795,014 | 0 | 0 | null | 2022-12-08T06:36:30 | 2019-09-16T12:32:32 | Python | UTF-8 | Python | false | false | 1,094 | py | from telegram.ext import Updater,CommandHandler,MessageHandler, Filters
from base import TG_TOKEN, TG_API_URL, do_start, start_test_callback, stop_test_callback
from widgets.echo import do_echo
from widgets.weather import *
import logging
def main():
updater = Updater(token=TG_TOKEN, base_url=TG_API_URL, use_c... | [
"a.titov9996@gmail.com"
] | a.titov9996@gmail.com |
86fe143df4d839cef8bcb33e2c833d5ae117c167 | 03704d9d38e6b4cbaa00223f4402789e9abab18f | /ddpg_train.py | 8aee072d9c35998c6bcaffbc6012754ac5c74f37 | [
"BSD-2-Clause"
] | permissive | ajwahir/cookie | 22e924bfd4112c2fd671b0fdcdde95a42f63ffb4 | 8ff5d1500943c409df30c600795478c743570095 | refs/heads/master | 2020-03-26T12:35:06.881456 | 2018-09-11T02:01:09 | 2018-09-11T02:01:09 | 144,899,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,693 | py | # Derived from keras-rl
import numpy as np
import sys
from keras.models import Sequential, Model
from keras.layers import Dense, Activation, Flatten, Input, concatenate
from keras.optimizers import Adam
import keras.backend as K
import numpy as np
from rl.agents import DDPGAgent
from rl.memory import SequentialMemor... | [
"ajwahir@gmail.com"
] | ajwahir@gmail.com |
43f98899cd7caf04fbd823c22f80b6036e0afc76 | 59a00b4ff196eee7cc2f48f20bc24bad666a915f | /code/utils/scripts.py | a2f18386b5db97e45a3bd73b528ecb466aea7320 | [] | no_license | strawberryx/RRWEL | c9cecec9e5f33045ccf24150e28c0bb718ef9554 | ebfd628df00d27133f2865d20d1d391313e4ed8b | refs/heads/master | 2020-05-27T05:46:54.691365 | 2019-06-03T07:14:29 | 2019-06-03T07:14:29 | 188,500,970 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,304 | py | import torch
from torch.autograd import Variable
import os
import math
import numpy as np
import nltk
import torch.nn as nn
import re
import datetime
import pickle
from tqdm import tqdm
from utils.data_loader_f import *
from model.local_score_model import Local_Fai_score
np.set_printoptions(threshold=np.NaN)
def Fme... | [
"1973018841@qq.com"
] | 1973018841@qq.com |
91b6f78c1990f5f6fac72781c59c62b304e3ed0b | b532899f411ea5aa1baf3babb9f15d58fc594c43 | /allnoconfig.py | 1ef6e279d9bd0e188cd6b916efb0798dc7be9a3c | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lknlfy/Kconfiglib | 61d980066a4d3918f82dcdc8dfe7421bd5684db7 | 06f3bb4aa893a8639cb6f7b0eb7359b19dc5cc4f | refs/heads/master | 2020-04-08T17:55:04.998009 | 2018-11-28T15:16:46 | 2018-11-28T15:16:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | #!/usr/bin/env python
# Copyright (c) 2018, Ulf Magnusson
# SPDX-License-Identifier: ISC
# Works like 'make allnoconfig'. Verified by the test suite to generate
# identical output to 'make allnoconfig' for all ARCHes.
#
# See the examples/allnoconfig_walk.py example script for another variant.
#
# The default output ... | [
"ulfalizer@gmail.com"
] | ulfalizer@gmail.com |
df38f362d30b14bc290b9ffe35b319b4c18f7667 | f00df59c8c82885979db362d8152f7c6aad455d1 | /research/object_detection/dataset_tools/generate_studio_dataset.py | 31cb9aed41be5db1b14e7d39f9f5075814cd74b6 | [
"Apache-2.0"
] | permissive | shennan922/VM | 91f6b9cf8b25a67287f7c282d16156b35c63aa97 | 1dab75ecceffdd55d36d297dfab4c9c6a84c1bae | refs/heads/keyong | 2021-06-12T12:42:52.461051 | 2019-05-30T09:36:29 | 2019-05-30T09:36:29 | 177,082,701 | 0 | 0 | Apache-2.0 | 2021-03-31T21:04:34 | 2019-03-22T06:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 20,933 | py | # coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import hashlib
import io
import logging
import os
import json
import errno
import tensorflow as tf
import copy
import random
import numpy
import scipy
import math
import threading
import time
imp... | [
"keyong.yu@accenture.com"
] | keyong.yu@accenture.com |
3f43bbd6108e84ac769e3e1134ab04ffad7a8da0 | f6f06bdda9763fbc08d8ec3ca32c95f094a224e5 | /questao_20.py | 01be8c37a4dd886ce0951d87887ef8a512ede6c5 | [] | no_license | christianvajgel/TP1DesenvolvimentoPythonRedesSistemasOperacionais | 0307b5a2742ecb0bbe5ee3b817ff2ca6a67c19c0 | f4b536ce25f3073e79bc3a006790ab47546ab923 | refs/heads/master | 2020-06-23T02:24:09.527814 | 2019-07-23T17:21:13 | 2019-07-23T17:21:13 | 198,475,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # TP1 - Desenvolvimento Python para Redes e Sistemas Operacionais [19E1_4] - Instituto Infnet.
# Christian Vajgel - 17/02/2019 - Thonny IDE
# questao_20
import psutil
print ("Partição corrente: ", psutil.disk_partitions())
print ("Sistema de arquivo: ", psutil.disk_partitions()[3][2])
print ("Valor total para armazen... | [
"christian.vajgel@al.infnet.edu.br"
] | christian.vajgel@al.infnet.edu.br |
13f3e35626feca5cc213703c9efb89c20da5c7bc | d452e34253561a47b974e260dabd8dcda6e750a2 | /supervised_learning/0x0A-object_detection/7-yolo.py | 010a4b5227e4822f27f207e6b118b9e98d24e1dc | [] | no_license | JohnCook17/holbertonschool-machine_learning | 57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f | 4200798bdbbe828db94e5585b62a595e3a96c3e6 | refs/heads/master | 2021-07-07T10:16:21.583107 | 2021-04-11T20:38:33 | 2021-04-11T20:38:33 | 255,424,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,182 | py | #!/usr/bin/env python3
"""You only look once"""
import numpy as np
import tensorflow as tf
import os
import cv2
class Yolo:
"""The Yolo class"""
def __init__(self,
model_path,
classes_path,
class_t,
nms_t,
anchors):
"... | [
"jcook0017@gmail.com"
] | jcook0017@gmail.com |
74b2b818a967447a134409beda4f612fef096ca4 | 15d5ae695904f85b63ffb3a8ef81d471d6ef5863 | /App/App/urls.py | 9578312ed08f8f074ef7fa2ce25651502e3cbfda | [] | no_license | kevcr07/PythonExam | 8c08fa0d25d131bcfee3639538557ec4c94654c1 | 9d6b28b2a051291d564fe883a33e866cdf758f3a | refs/heads/master | 2021-02-09T06:58:38.801826 | 2020-03-04T04:34:23 | 2020-03-04T04:34:23 | 244,254,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from django.contrib import admin
from django.urls import path
from rest_framework.routers import DefaultRouter
from empleados.views import UsuarioViewSet
router = DefaultRouter()
router.register(r'empleados', UsuarioViewSet) #view para routear a los empleados
urlpatterns = router.urls #se guarda l... | [
"kevinr.07@hotmail.com"
] | kevinr.07@hotmail.com |
ff50ca3c718f1a8dde6fa7ee40947e4b2758bed5 | a555a2b9e77a60d8875a099658e22dd3b634dd05 | /maskrcnn_benchmark/modeling/rpn/loss.py | 4e34830c53face18c52504ee3aa52404c9bf3aff | [
"MIT"
] | permissive | DeppMeng/HRNet-MaskRCNN-Benchmark | 7e57e33ae7f7a1b17d6d3490c20b9bc9368bab4b | 63bc0fcf9e98137c0e07c27ee134b67f2b46004d | refs/heads/master | 2020-07-03T01:19:00.027926 | 2019-08-11T10:30:52 | 2019-08-11T10:30:52 | 201,738,954 | 0 | 0 | MIT | 2019-08-11T08:35:58 | 2019-08-11T08:35:58 | null | UTF-8 | Python | false | false | 6,144 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""
This file contains specific functions for computing losses on the RPN
file
"""
import torch
from torch.nn import functional as F
from ..balanced_positive_negative_sampler import BalancedPositiveNegativeSampler
from ..utils import cat
from ma... | [
"victorchanchina@gmail.com"
] | victorchanchina@gmail.com |
9d2293c03fc0d174dbb1bd4b7fae229799bc431f | 8bcc2319fb7f096d129c44c716e6e98bc859cca9 | /apps/user_backgrounds/migrations/0001_initial.py | c01996706f9b917e133fc652dd9e93fcc7d9c0cc | [] | no_license | Tech-i-s/techis-wd-sample-image-generate-api | 63f32c824c3903992905d091f194b215bb5edc0d | fe47a9908e15fd1784b027b08ee63b252de27063 | refs/heads/main | 2023-08-19T16:18:54.850227 | 2021-10-08T21:26:25 | 2021-10-08T21:26:25 | 408,793,717 | 0 | 0 | null | 2021-09-29T06:34:47 | 2021-09-21T11:30:47 | Python | UTF-8 | Python | false | false | 1,382 | py | # Generated by Django 3.2.4 on 2021-09-20 09:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserBackground',
fields=[
('id', models.Big... | [
"n-hak@beniten.com"
] | n-hak@beniten.com |
f8399dcef6c2baeb3ad770a072d32dfe8af6a70e | 09d0f8b22abad7b8e46389ed3719e300e5033ee7 | /pycook/recipes/ssl.py | 4d14c7af84ba753b8c78993aabd68f047fa2e43c | [] | no_license | angry-boss/cook | d5d8186d50d726d1b049a963c019dd6c8c1dea15 | 6a38896c4493575e6d8d431c0379667a288bbc4d | refs/heads/master | 2023-08-30T05:02:03.424432 | 2021-10-24T17:23:37 | 2021-10-26T11:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #* Imports
import pycook.insta as st
#* Recipes
def enddate(recipe, fname):
return "openssl x509 -enddate -noout -in " + fname
def txt(recipe, fname):
return "openssl x509 -text -in " + fname
def pfx_to_pem(recipe, fname):
"""FNAME is a pfx file."""
f_key = "privatekey.pem"
f_cert = "publiccert.p... | [
"ohwoeowho@gmail.com"
] | ohwoeowho@gmail.com |
0e7411a3d292a1db6866ce097c058fbebfd2c46d | e79cfcc0f19e68b4f511eb8bb4aeae79c514f9a7 | /tail.py | a170db7813f5d88361a1c7152d64c2081eef60b7 | [
"MIT"
] | permissive | nickelsr/Tail | 5f40c0bdc2db31abccb0a3cf932b9ee2c7922062 | 70371054db2d1eee8415c7f2b24c5b45eb6a3e77 | refs/heads/main | 2023-08-27T12:26:04.923388 | 2021-09-23T22:32:22 | 2021-09-23T22:32:22 | 407,274,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,487 | py | #!/usr/bin/env python
import os
import sys
import argparse
import time
import signal
from threading import Thread, Lock, Event
from pathlib import Path
class Tail(object):
"""Prints tail-end of files and their subsequent updates.
Class Vars:
BLOCK_SIZE (int): number of bytes to read into memory simultan... | [
"nicklazaga@berkeley.edu"
] | nicklazaga@berkeley.edu |
9b7e7e93dea4d29c42c96250c4935c99fca50429 | a3a081cc5b69f496a681f75ce179c09f7dfd8c1f | /apps/daily_planner/views.py | 5d41fb9a829bae81a08df9655da1ffe066e94d28 | [] | no_license | ewnike/Calendar | d76214f751343f066501a742255c71323ce59cf7 | a55fea9be6af3bea83f9c36d5a33e321a11e25e0 | refs/heads/master | 2021-01-21T18:38:44.835557 | 2017-05-22T15:25:09 | 2017-05-22T15:25:09 | 92,010,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,670 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect, reverse
from django.contrib import messages
from . models import *
from django.db.models import Count
from datetime import datetime
from datetime import timedelta
import re
EMAIL_REGEX = re.compile (r'^[a-zA-... | [
"wpltd5@yahoo.com"
] | wpltd5@yahoo.com |
7770e8e731d78b3588f59fb166e88bc457ccffdd | 8a1e2f67f139de45e074de02d6cc53edb8a8031b | /app/core/urls.py | 04c7c5eafb8265826e177ff5e45928fa79ca9be3 | [] | no_license | Daniel-Kao/drf-demo1 | ffcbe6afa352daa25e293ff6303e60f975ddad69 | 37a1089464b472d3d993b3e8f63d6e8c3a9508ab | refs/heads/master | 2023-03-17T10:26:30.763260 | 2020-12-09T15:39:10 | 2020-12-09T15:39:10 | 320,001,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from django.urls import path
from . import views
urlpatterns = [
path(
'auth/login/',
views.TokenObtainPairAndUserView.as_view(),
name='auth-login'
)
]
| [
"396007476@qq.com"
] | 396007476@qq.com |
1a8bad7e3272c6c312e36a5b65a59f3e07faae61 | 6b143811f5e87e94b90dda83c45ba068bfc0603d | /data/sampler.py | ed69da38ecfbe063a361593ba78a4c29d3c69105 | [] | no_license | zhangsongdmk/Visual-Transformer-for-Task-aware-Active-Learning | d7ee4b57b70ad41f849d31544397cba2189125cc | 67433555fdee578b87b644c8aab16eab6dc99352 | refs/heads/master | 2023-06-17T09:25:50.962460 | 2021-07-15T08:22:57 | 2021-07-15T08:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import torch
class SubsetSequentialSampler(torch.utils.data.Sampler):
r"""Samples elements sequentially from a given list of indices, without replacement.
Arguments:
indices (sequence): a sequence of indices
"""
def __init__(self, indices):
self.indices = indices
def __iter__(sel... | [
"noreply@github.com"
] | zhangsongdmk.noreply@github.com |
3139aa9fb165db74b25823f36d8c88e4b447fad5 | 1eb3a99bbe6818ec888777e5176e5753ac777ff8 | /lab/lab3/lab3_driver.py | 053d6bfdf75eff7115cabb9a54aa5e62e3226140 | [] | no_license | Sherwen2333/CSE101 | 1f34e860298978a8cb2f7f33b1117f777d852570 | c14425653e3d1b0a244c2df9e29451d842e0de28 | refs/heads/master | 2020-03-14T08:26:01.281358 | 2018-04-29T20:00:48 | 2018-04-29T20:00:48 | 131,524,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | from lab3 import *
import sys
student_file = 'lab3.py'
lines = open(student_file).readlines()
lines = [line.strip() for line in lines]
code_clean = True
for i in range(len(lines)):
if 'input' in lines[i] and not lines[i].startswith('#'):
print('Line {} of {} contains an input() statement. You must delete ... | [
"308120095@qq.com"
] | 308120095@qq.com |
e329a0a080e7ba9ca449b9ae709778a0392052b1 | decf7c877fc02339a13bcb7e47b1735d53543d77 | /assignment11.py | 539b6804a94426b05694142c28bd6e34639a6fb4 | [] | no_license | chiragnarang3003/assignment11 | cf0b2905623cee11ca2bd2cf016c56a9aafca7e8 | fe434ba26cff69816c38f073f1420fa552b2a679 | refs/heads/master | 2020-03-27T13:43:45.712095 | 2018-08-30T18:14:49 | 2018-08-30T18:14:49 | 146,625,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import re
'''
#Question1:->Write a python code to find a valid email address from a text.
'''
#Solution1:->
mailid=str(input("ENTER AN EMAIL ID OF THE USER "))
matcher=re.finditer('\w[_a-zA-Z0-9.]*(@)(gmail.com|yahoo.com)',mailid)
for m in matcher:
print("Match is at :{},end :{},Pattern found :{}"\
.forma... | [
"chirag82888@gmail.com"
] | chirag82888@gmail.com |
40b0958a72341771f64d79a60a2825d61c19f90b | 00c9124de185eead1d28dc190e1e125e5b4ceb26 | /Pyto Mac/PyObjC/MediaToolbox/_metadata.py | 6e1b30739dbee0ddf77fedadfa171f0afb672a1a | [
"MIT"
] | permissive | cclauss/Pyto | 028b9e9c3c2fefa815a4d6831e25f5ebae5b14f1 | 1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed | refs/heads/master | 2020-04-23T22:09:21.151598 | 2019-03-02T00:44:20 | 2019-03-02T00:44:20 | 171,491,840 | 0 | 0 | MIT | 2019-02-19T14:49:25 | 2019-02-19T14:49:25 | null | UTF-8 | Python | false | false | 1,557 | py | # This file is generated by objective.metadata
#
# Last update: Tue Sep 4 22:31:30 2018
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b): return b
else:
def sel32or64(a, b): return a
if sys.byteorder == 'little':
def littleOrBig(a, b): return a
else:
def littleOrBig(a, b): return b
mis... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
feccc0be2eed221107a432723b4052d747e128fe | c1a844c42ee6117f1e88641702757a641ec91449 | /geotorre/geotorre/urls.py | 76b73b96660c4cd5a27cbe86d683c4b3d742d781 | [] | no_license | sergiosuarez/torre-backend | 3517633dc7986637c656baa8d61d9d0d6d2123a8 | 122ffac357cc01a0c64aade4a1c33327a50bc705 | refs/heads/main | 2023-05-11T14:51:52.778583 | 2021-05-17T18:26:58 | 2021-05-17T18:26:58 | 367,479,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | """geotorre URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"suarez.cruz.sergio@gmail.com"
] | suarez.cruz.sergio@gmail.com |
0a8b8f7a764733c4bfd85a3d42eac506b74d2222 | 620718488eb15fac804ae34d497d4adf6e21fdd7 | /product_hunt/product/migrations/0003_auto_20180628_1553.py | 6890f00aaaa21cb6e2a91f54350a46fd961b5423 | [] | no_license | nebanat/product_hunt_clone | 62452c74e967c3a33658d7c7f1c40984d0464fd0 | 6110662b92bbefe9fdb1f70460e66dfc20616380 | refs/heads/develop | 2020-03-21T13:26:32.111949 | 2018-07-20T17:38:49 | 2018-07-20T17:38:49 | 138,605,854 | 0 | 0 | null | 2018-07-20T17:38:49 | 2018-06-25T14:25:34 | Python | UTF-8 | Python | false | false | 909 | py | # Generated by Django 2.0.6 on 2018-06-28 15:53
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('product', '0002_auto_20180626_1118'),
]
operations = [
migrations.RenameField(
model_name='comment'... | [
"abiliyok@gmail.com"
] | abiliyok@gmail.com |
980046f5e2103e442bb725491c52179ab6800270 | cb47081732078d7aada7dbeeec62cf5e10f54a16 | /python/modules/PDFUncertainty.py | 24211df24e9a672e9bdf6db6962945db1447364b | [] | no_license | LLPDNNX/nanoAOD-tools | e5a17bd6df32f652d5667ef43f840989439404d1 | ddefa12f9a4e425457a5f0d602e6c97f1c26e3f3 | refs/heads/HNL | 2023-02-05T21:30:02.152207 | 2023-01-31T10:49:31 | 2023-01-31T11:20:07 | 132,587,889 | 1 | 7 | null | 2023-01-31T11:20:09 | 2018-05-08T09:43:38 | C++ | UTF-8 | Python | false | false | 1,776 | py | import os
import sys
import math
import json
import ROOT
import random
import numpy as np
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import Collection
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module
class PDFUncertainty(Module):
def __init__(
self,
... | [
"Matthias.Komm@cern.ch"
] | Matthias.Komm@cern.ch |
83e43f3d312ca1408e01d8124f06f69e865e313e | 6f54283dbf665c9aff0c9e2d30826792152bc2c2 | /learning/python/week2/triangle.py | 61b43ce6670bfcdc0d44644b52ac36ed2bd51287 | [] | no_license | viciss/viciss | 72e3a906922ec9fe14115727c253fa2fee429653 | c58499ddd776ef1b80c3cc306489e84ec0b4dc4d | refs/heads/master | 2021-01-19T02:02:54.542479 | 2017-11-03T05:58:16 | 2017-11-03T05:58:16 | 10,190,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from turtle import *
fd(60)
seth(120)
fd(60)
seth(240)
fd(60)
done() | [
"nonsense.stone@gmail.com"
] | nonsense.stone@gmail.com |
4dc800c9f5e19b382252c69e218edd2058fb7467 | 222f081d1b4b30f3849152ae940b25b5eefafd4e | /Solver/solver/Optimizer/__init__.py | 0f3790e2ae69b2ffe5111713664329415dcacd11 | [
"Apache-2.0"
] | permissive | zhuanglineu/or-algorithm | 25660f03c270e33592d153a453fcdd7fdb328c90 | 079dbcc9fb678a1f0690ec30badb62dae00a2542 | refs/heads/master | 2021-09-25T10:45:40.764360 | 2018-10-21T09:21:33 | 2018-10-21T09:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from .BaseOptimizer import BaseOptimizer
from .Simplex import Simplex
__all__ = [
"BaseOptimizer",
"Simplex"
]
| [
"zhangyuyang4d@163.com"
] | zhangyuyang4d@163.com |
c13ff571215b7a25bd75a90fc0c1ab8001b06eca | 69da1e55278f221c6f8d273c8909987bd2ccde8a | /mysite/settings.py | 0e3b6ad55ac5aad5a21e6c502e1071ccb1e4150f | [] | no_license | gadeuk/my-first-blog | d84c24edfe6b3187ae1daf793f7a380b356bf18c | 6fe489da8ff03d682d25a2347f865df14349b6ad | refs/heads/master | 2021-01-24T09:03:38.000823 | 2016-10-06T08:56:28 | 2016-10-06T08:56:28 | 69,781,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"tjrkddnr@korea.ac.kr"
] | tjrkddnr@korea.ac.kr |
346ab81711d4df1851b085944d6c7333b4ea2bee | 0476f88b63f825f298aa6d73b8119bb33bdd1c2b | /real code in competition/joy_stick_socket.py | 8aab5dec20550b723bbe2860a4c735518d1177af | [] | no_license | ahmedakef/UGVC2017 | 81e72f75ca9c87a659384f3d5d95f73cbb41d0f9 | 255f4ccd674a5b2cc38e971c82fb4cce4b1eddbb | refs/heads/master | 2021-01-01T15:58:19.000926 | 2017-07-25T23:41:48 | 2017-07-25T23:41:48 | 97,748,054 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,511 | py | # this code to chat between to joy stick and other process in the same machine
import pygame
import socket # Import socket module
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object
port = 12345 # Reserve a port for the service.
host = "192.168.0.1... | [
"you@example.com"
] | you@example.com |
f4e16ba11ca03324c87e407214291e371d30984d | 2ab6e88556bcbb9fbfd0e0dab1d2ad6ccea45e50 | /appsolar/forms.py | 46d8aa30470934fa363b8d6def126cbb905ad5c8 | [] | no_license | matheusbaars/AppSolar | 3bac941408d6cdf029fc65bc9a2361447644a42b | 39c4b7885f9ad3b774c28881512acdbc9f6c0835 | refs/heads/main | 2023-09-03T23:33:12.324684 | 2021-10-27T12:44:33 | 2021-10-27T12:44:33 | 418,486,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, ValidationError
from wtforms.validators import Length, EqualTo, Email
from appsolar.models import User
class RegisterForm(FlaskForm):
def validate_username(self, username_to_che... | [
"matbav@gmail.com"
] | matbav@gmail.com |
8bb875924af00c90cbdbee60fe22374bd0e43d37 | dea20881a3ebf97d6a76ac7f5e115b6ebf6e6643 | /card deal.py | b97e642da09ef8bf09980e69cbe418ebf34041c5 | [] | no_license | cdzierzon5/python-examples | 4297785dd6b31aeac9b29e4a4391be3bec64542c | 7080754ea43de99e844fc842718cebd5059207dc | refs/heads/master | 2020-03-28T16:24:04.903941 | 2019-05-22T19:03:02 | 2019-05-22T19:03:02 | 148,690,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | #cody dzierzon
#card deal
#12/6/18
import random
deck = []
player1_hand = []
player2_hand = []
def makedeck(deck):
"""populate the deck of cards"""
SUITS = ["hearts", "clubs", "dimonds", "spades"]
VALUES = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"]
for e in SUITS:
for i... | [
"cody.dzierzon@tooeleschools.org"
] | cody.dzierzon@tooeleschools.org |
a55b8db7a52b3a01b9a41ada7beb6679715d122a | 0755a5f8d821b2b02b7f087d26e1433156075f04 | /programmers/level1/이상한문자만들기.py | a79e99cd6066d9d5fc391f4d6ae93d528c8cedd7 | [] | no_license | kimevanjunseok/Algorithm | 35fdfdd5a0c5c8ad1029429aba8d6c2320088993 | ea0883964e43779e569a1a2c8a879a246083ef0e | refs/heads/master | 2020-08-17T22:50:13.096789 | 2020-01-07T14:28:56 | 2020-01-07T14:28:56 | 215,720,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # My solution
def solution(s):
answer = ''
cnt = 1
for i in s:
cnt += 1
if i == ' ':
cnt = 1
if cnt % 2 == 0:
answer += i.upper()
else:
answer += i.lower()
return answer | [
"jnunseok@gmail.com"
] | jnunseok@gmail.com |
134cdad8dfbd8ea97028f74092dcfdca827418e2 | e52caf34bf730a44b8469ff0ac3ca5ef6ecb3964 | /tests/test_flop_count.py | b4777da616e76cc1b03dc4c50ecffc726afeee48 | [
"Apache-2.0"
] | permissive | hzsydy/fvcore | c86dba80701590c607e456f960227f1b4277d706 | 99cb965c67e675dc3259cd490c1dd78ab03a55ff | refs/heads/master | 2022-04-25T01:47:12.683563 | 2020-04-14T22:10:41 | 2020-04-14T22:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,011 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import typing
import unittest
from collections import Counter, defaultdict
import torch
import torch.nn as nn
from fvcore.nn.flop_count import flop_count
from fvcore.nn.jit_handles import batchnorm_flop_jit
class ThreeNet(nn.Module):
"""
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
bc077d403936009e1f618080d9de9d678f4e8a2e | 3fae1deab237eaea62ff97fb39562b184637d933 | /whisk/core.py | 6a123edcbc3dcd07ff8f1b7c341f558bcd15a391 | [
"MIT"
] | permissive | TylerOBrien/Whiskpy | 633c9f0a4d90a1ceb28d74633d945fabc80d8c54 | 54c13eecbb790309df7e16ea11e9ffdaf86f5d01 | refs/heads/master | 2022-10-02T18:23:31.082266 | 2020-06-01T03:25:22 | 2020-06-01T03:25:22 | 260,524,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #
# Locals
#
from .auth import Auth
from .database import WhiskSql
from .security import JSONWebToken
#
# Objects
#
auth = Auth()
db = WhiskSql()
jwt = JSONWebToken() | [
"hello@tylerobrien.com"
] | hello@tylerobrien.com |
7aa5a33be15cf56a6f7ef05da08be71e61ee4c23 | 91618c7751d5d85f49db961cdd3911a3514d7fe8 | /scripts/storm_surge_data/plot_stations.py | 566fe7ed289e46c0d435252c8c5eb2b9f172e733 | [] | no_license | jerabaul29/MachineOcean-WP12 | 34ce86387cf22013af7ec04dc82f858082259712 | eaf9880c6d0ce4707731c82d6533a7705198e60c | refs/heads/master | 2022-12-05T10:33:15.565962 | 2020-08-14T11:24:45 | 2020-08-14T11:24:45 | 276,632,386 | 0 | 0 | null | 2020-07-02T11:48:11 | 2020-07-02T11:48:11 | null | UTF-8 | Python | false | false | 1,973 | py | """Script to plot the Norwegian storm surge stations locations from the data in the
kyststasjoner_norge netCDF files. """
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
import netCDF4 as nc4
fig, ax = plt.subplots()
# setup Lambert Conformal basemap.
basemap_obj = Basemap... | [
"jean.rblt@gmail.com"
] | jean.rblt@gmail.com |
1e497c97aec9e0e0040d939e4ae54aa3b6acb88d | 454a64e20278a54e18ca4135bcb886d90b3d72bf | /control_flow_statements/for_else.py | 4a36b5ecec8fb6c8e1b40e272e2ea7981804dc86 | [] | no_license | Shwetapatil05/Python | 2e2d0b1e3bc4fc709f4257e1ef832df7505b1a56 | 1e1cdf10de293c85093c5ebcfb59b97c58b1a69e | refs/heads/main | 2023-08-23T16:49:26.935574 | 2021-10-03T07:10:06 | 2021-10-03T07:10:06 | 412,327,395 | 0 | 0 | null | 2021-10-01T04:36:08 | 2021-10-01T04:36:04 | null | UTF-8 | Python | false | false | 1,063 | py | #--------------------------------------------------------------------------------------------
#Description : For-else loop
#Functionality : Else will be executed only when for loop exits normally without break statement.
#Syntax :
# for num in nums:
# statements;
# else:
# statements;
#----------... | [
"nadeemahmed@mirafra.com"
] | nadeemahmed@mirafra.com |
30decfebb6734bd626d2eb2e6184ea62c312871e | 30e58b930c31526a1e226a928bc77e23f232080e | /dipoleSH/projdipole.py | 700cd0997703c599400475f32207c1cde2d1001d | [] | no_license | bbw7561135/anisotropy | c8688f9d705234c6a90f607acb3e8cc28ea5be28 | a21f85788c16d8aa14fc5934f476def4c8954f34 | refs/heads/master | 2021-06-01T05:35:48.727845 | 2016-05-13T00:27:37 | 2016-05-13T00:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,486 | py | #!/usr/bin/env python
#============================================================================
# File Name : almTibet.py
# Description : Optimization code for spherical harmonic fitting of
# relint skymaps from IceCube using Tibet data
# Creation Date : 03-04-2016
# Last Modified : Thu 03 Ma... | [
"jrbourbeau@gmail.com"
] | jrbourbeau@gmail.com |
e55ca302e853dbb19f1833cf92664c7eda861899 | c1feb3db5d442e8cb5f333e0b02bc6684866ec03 | /test_1_basic/eleven_triangle.py | 2ff850b6a6a9e81c910cddd448c7e6f7ac37f169 | [] | no_license | kekeFu/Python2020 | fb3be0a9bda95576a6581d6b3731419572c8d498 | 25e9fad77a3c051caddb06b07ab002802ac99a1d | refs/heads/master | 2022-11-27T15:06:26.487610 | 2020-08-04T01:44:07 | 2020-08-04T01:44:07 | 284,847,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | """
杨辉三角
"""
def c0(n=1):
s = 1
for i in range(1, n+1):
s *= i
# print(f'A({n}) = {s}')
if n <= 0:
s = 0
return s
def c1(n, m):
if n == 0 or m == 0:
c = 0
elif n == m:
c = 1
else:
c = c0(n) // c0(m) // c0(n-m)
# print(f'C({n},{m}) = {c}')
... | [
"3046937673@qq.com"
] | 3046937673@qq.com |
a2f25a1c94851447fa9a19ab30b057e889214136 | 69d7afb0605e843552fab3f79d8ae6d953b40c3b | /Finished.py | 856af56821b08cde46c1c059de1a56d054dd47ee | [] | no_license | nahmisa/Python_Adventure | 100b5a2244b95c0439a821256f55487480ff9d70 | 6ba86bd617e41ac4a0e1ccf2e74e25f764ac256a | refs/heads/master | 2021-01-10T06:55:54.227529 | 2015-10-13T20:12:21 | 2015-10-13T20:12:21 | 44,200,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from sys import exit
from Scene import *
class Finished(Scene):
def enter(self):
print "Congrats! You finished the game!!! :D"
exit(1) | [
"nahmisa@gmail.com"
] | nahmisa@gmail.com |
e213e447e878e73bc91862518071a1fc25abfee5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_tartest.py | ac40a714bbe9675247ee12f4289ee4409748aa2d | [
"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 | 218 | py |
#calss header
class _TARTEST():
def __init__(self,):
self.name = "TARTEST"
self.definitions = tart
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['tart']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7091f6541abbeb5fb993472c911dbda40f7a59aa | bb47faf11167ef72dd22f2d8fe2825e471e8f328 | /lesson-1/9-Reverse_Integer.py | af956376933591255dea9bdb0a90886fe1d953ec | [] | no_license | WinSon-XiaoYin/Leetcode-python | 00980acef0933db1178295898563de6ab47cde56 | ca2ead336db2b02f32d49f61e9c181909656a636 | refs/heads/master | 2020-04-10T20:10:51.331630 | 2016-09-12T14:08:20 | 2016-09-12T14:08:20 | 68,014,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # -*- coding: utf-8 -*-
"""
将整数逆序输出,如果是负数,符号不需要逆序。
思想:将其转化成字符串,然后逆序
注意:逆序之后,该数可能超出最大值2^31 - 1,需要做判断
"""
class Solution:
def reverse(self, x):
if x >= 0:
x = str(x)
if int(x[::-1]) > (2 ** 31 - 1):
return 0
else:
return int(x[::-1])
... | [
"winsonyin123@gmail.com"
] | winsonyin123@gmail.com |
f925f9be15341ec117f9d921a895d4ee2d66f3a4 | 2145a79db917d6eff6f47278e7691ff76ab357f2 | /octane/api_resources/price_plan.py | cd2a6a0cfa1affe708db7eb764283ed5f492839c | [
"MIT"
] | permissive | zomglings/octane-python | 85e6b333a4394b311d376c8770465b0e014f36ab | e8e1bfeb7146e8cd2314359f2c3ddd280bf105a7 | refs/heads/main | 2023-07-16T09:52:07.744904 | 2021-05-03T15:25:23 | 2021-05-04T22:03:42 | 365,934,071 | 0 | 0 | MIT | 2021-05-10T18:40:34 | 2021-05-10T06:00:32 | null | UTF-8 | Python | false | false | 476 | py | from __future__ import absolute_import, division, print_function
from octane.api_resources.abstract import CreateableAPIResource
from octane.api_resources.abstract import DeletableAPIResource
from octane.api_resources.abstract import ListableAPIResource
from octane.api_resources.abstract import UpdateableAPIResource
... | [
"akshalaby@gmail.com"
] | akshalaby@gmail.com |
8a9e60aef589a2814d221517b550b5522be3e892 | 83ec47bb46e58f232912f9eb193e0e1852ceb194 | /scripts/ckisshug.py | 57da8ad69c04210e825a2c84096b4f1cf700bea8 | [] | no_license | srikanthraju536/code | eb4aa0a26c408d6cd2d57711002f1ae646430b1c | 86687526174b907e7f63b1fb9bb8bec383f25747 | refs/heads/master | 2020-12-31T03:34:29.393137 | 2013-11-23T09:11:41 | 2013-11-23T09:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: dvdreddy
#
# Created: 03/08/2012
# Copyright: (c) dvdreddy 2012
# Licence: <your licence>
#-------------------------------------------------------... | [
"dvdeepankar.reddy@gmail.com"
] | dvdeepankar.reddy@gmail.com |
a21616aac6c0581c109027f3ba449c8b024e70a9 | 6ce793aed75cd664a7a7acdc1aadc0ae76277be6 | /python/TestLDU.py | 9802329dd78f67e8ac69ffdb0249c020af8f0d58 | [] | no_license | johnrayn/98-facial-landmarks-with-DNNDK | 1fddf7828185f21159224ab1ff8770f921f19a68 | 31b67057094f33eb2bfc72478959e791dc114eab | refs/heads/master | 2020-05-25T11:14:34.178956 | 2019-05-10T14:34:34 | 2019-05-10T14:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | from LandmarkDataUnit import LandmarkDataUnit
from BBox import BBox
import GetData
import os
import math
import copy
import numpy as np
import cv2
dataset_dir = '/home/dehim/Downloads/datasets/WFLW/WFLW_images'
output_dir = '/home/dehim/Downloads/Neural_nets/98-facial-landmarks-with-DNNDK/LDU_test'
data = GetData.GetD... | [
"dehim@live.nl"
] | dehim@live.nl |
e5bc55574f607d3a3b3507880dd66a01ec71288f | de644520aacd7af103a613f6b91a79a9e7948f08 | /file_sender/settings/base.py | 2a8c53f90645dfae71980f44d303d01cdc969b7c | [
"MIT"
] | permissive | h-zanetti/file-sender-pro | e0453b879878e9297cca8db9ef6fa8de68ce8d1f | 95acfcd143b104fe03116aca7adc8ee5d2a363c7 | refs/heads/main | 2023-06-20T13:40:35.127385 | 2021-07-23T23:05:37 | 2021-07-23T23:05:37 | 388,798,754 | 0 | 0 | MIT | 2021-07-23T23:05:37 | 2021-07-23T12:45:17 | Python | UTF-8 | Python | false | false | 3,240 | py | """
Django settings for file_sender project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import o... | [
"henriaguiar99@gmail.com"
] | henriaguiar99@gmail.com |
76d20ef9a43fd27787091489e08ed6fe0baef5a8 | 5d5aa0f0586e69e563c06da1867f397ba7f7f1b6 | /oneNN.py | 452b9ab3dde7325eefcc4e2ace03e3881326efe8 | [
"MIT"
] | permissive | AQuickBlackFox/nnet | 0471af2dc83619a19ce47a0c14436cff51150d24 | 0fd5c718c2d03cab91d4a4fd4963b12df241a9de | refs/heads/master | 2021-06-10T10:12:09.673689 | 2017-02-06T00:10:05 | 2017-02-06T00:10:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | # 1 Nearest Neighbor Classifier
import numpy as np
numData = 10
numTest = 6
Row, Col = 16, 16
X = []
Y = []
Z = []
label = {0:"Black", 1:"Light Black", 2:"Dark Grey", 3:"Grey", 4:"Light Grey", 5:"Light White", 6:"White", 7:"Dark White"}
np.random.seed(0)
"""
A 16x16 matrix with values 0 - 255
0 - 31 = Black
32 - 63 ... | [
"noreply@github.com"
] | AQuickBlackFox.noreply@github.com |
9f4b19c081bba55f23b3ff31dc7e143cf3de7a60 | 32eee26d7747ab272a51e9918a5d2dc1bc10f98b | /src/Megatron-LM/megatron/model/__init__.py | 4301f0c2c061685373cf0c5f65cc6746b0e9a5dc | [
"Apache-2.0",
"MIT"
] | permissive | David082/daguan_competition_2021_codes | 5d61ec1c88c0be401212490ad2fc61cb4e5132b3 | b488dbab35d8914bc8f19a086b200ca2418d66f8 | refs/heads/master | 2023-07-26T23:36:53.290387 | 2021-09-13T11:36:16 | 2021-09-13T11:36:16 | 402,744,920 | 0 | 0 | Apache-2.0 | 2021-09-13T11:36:17 | 2021-09-03T11:21:40 | Python | UTF-8 | Python | false | false | 916 | py | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
"michael_wzhu91@163.com"
] | michael_wzhu91@163.com |
c54abd2a16403185c0c8be02abfe0ebcb4586f6d | 0dd93b1e713c4cb16b2bcabf79d86e54589618af | /orders/migrations/0001_initial.py | 2df2a1d15e68231f4f2aa1ddea56637b8dd3eae1 | [] | no_license | tony820315/kubernetes-django-demo | 582df015e845f95890608e17db383fa141df2e41 | cbe303ff904f83c066d7f4e29b3bcdf1e9d6f9e7 | refs/heads/master | 2023-08-23T21:27:30.385165 | 2020-07-22T14:36:33 | 2020-07-22T14:36:33 | 268,551,554 | 0 | 0 | null | 2021-09-22T19:21:35 | 2020-06-01T14:53:52 | Python | UTF-8 | Python | false | false | 1,797 | py | # Generated by Django 3.0.6 on 2020-05-08 08:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Orde... | [
"jerri0912@gmail.com"
] | jerri0912@gmail.com |
a4383ea64764494d33a537ef1646629ccf12819d | a4e1c923a764122110dbf53cec6e842ec1b4382a | /MainAlgorithms/BFSexp.py | fec44d2fcfd8f94f54c530ca87c10955bb36c3e9 | [] | no_license | masi-sh/DP_out_Sum | 16c2eac50923e9eb5729002bb1bcfae67ab19521 | 5c75845660b3d4f1f1d42525d19347c56070700c | refs/heads/master | 2021-06-09T11:51:54.920233 | 2020-05-24T19:50:05 | 2020-05-24T19:50:05 | 144,636,516 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,274 | py | from __future__ import division
import matplotlib
matplotlib.use('Agg')
import sys
#import gzip
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from itertools import combinations
from sklearn.neighbors import LocalOutlierFactor
from collections import Counter
import time
import fcntl
import rando... | [
"noreply@github.com"
] | masi-sh.noreply@github.com |
cccdf3439c8ad6b9a297de5ee3d71afd1049209a | 949633cd7f09a68b19304af14562b29514261ecc | /Geometry/TrackerGeometryBuilder/test/trackerModuleInfoLocalDB_cfg.py | 0d32a3c01c372879815ad6dad5e548e8ffc324f0 | [] | permissive | gsfs/cmssw | eabfe97b0594287ce25556e6b091956b72baad72 | fdbcb59c16cafd2a9b56177064bc0b6b93cc51dc | refs/heads/CMSSW_8_0_X | 2021-01-21T23:41:29.108786 | 2019-04-11T16:11:14 | 2019-04-11T16:11:14 | 226,406,411 | 0 | 0 | Apache-2.0 | 2019-12-06T20:39:25 | 2019-12-06T20:39:24 | null | UTF-8 | Python | false | false | 3,685 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("GeometryTest")
# empty input service, fire 10 events
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration/StandardSequences/GeometryDB_cff')
process.load("CondCore.DBCommon.CondDBSetup_cfi")
process.load('Configuration/Standa... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
2d98c90309750028c773261463b7cb9efd956c47 | 6ba801a6e1e7bb0da95e2bb6362630c26216cab7 | /day22/slam_shuffle.py | 8d390139853aa36b91ac41b7f0cd87452b5af0d0 | [] | no_license | waltman/advent-of-code-2019 | 31fe560ce4c86303684689bde4e91e5d06e64635 | 4edfbcb554fb87dec7b61a471f9aff7986e91055 | refs/heads/master | 2020-09-14T07:37:55.828772 | 2020-05-25T22:31:11 | 2020-05-25T22:31:11 | 223,067,268 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | #!/usr/bin/env python3
from sys import argv
import re
N = 10007
cards = [i for i in range(N)]
filename = argv[1]
with open(filename) as f:
for line in f:
line = line.rstrip()
if m := re.match('^deal with increment (\d+)$', line):
incr = int(m.group(1))
tmp = [i for i in ra... | [
"waltman@pobox.com"
] | waltman@pobox.com |
16864c2c614cb00baca7f8e08c33e4041cf4b3de | b98d70a4379ffa952fca546dbd87ccc17056e0c8 | /knn.py | 42fe3be06184635e776ca16004eb7df627033649 | [] | no_license | ederdiego/KNN | 1e8de28f3ecb0964c5e8ad52d0b6d771370754f9 | b24808b9fb7f13cc4165c78e56202236b92263ba | refs/heads/master | 2022-12-02T12:10:45.401772 | 2020-08-02T02:10:41 | 2020-08-02T02:10:41 | 284,372,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | print(__doc__)
import sys
import numpy as np
import matplotlib.pyplot as plt
from sklearn import svm, datasets
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn.metrics import plot_confusion_matrix
from sklearn.datasets import load_svmlight_file
from sklearn.neighbors... | [
"eder.diego20@gmail.com"
] | eder.diego20@gmail.com |
2a2b8d89211436addc14d2bca96a471ee7f47a5e | 4b7d70d12d5fdb2cf0fd8e5778f5bd3b2e30fb92 | /Decision Tree.py | 3fcd8e259d3c6c767cfebc36077f9fa872488296 | [] | no_license | balomichelle/Classifier-Comparison | 831732ab6e4286bdc6539b59c26b34289262d564 | 9c07d678d1d21184e5639a674a13fab7911d2533 | refs/heads/master | 2020-04-20T17:00:55.067244 | 2019-02-03T18:17:50 | 2019-02-03T18:17:50 | 168,976,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #/usr/bin/env python 3.6
# Build a logistic regression classifier
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import json
from sklearn.tree import DecisionTreeClassifier
from sklearn import tree
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
f... | [
"noreply@github.com"
] | balomichelle.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.