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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff3e94ef7879ecc2b3a10a2b3dd6073f3cf2643a | 1d0c057b44faf95811c0966c57e31a1c7d37f783 | /eastman2/urls.py | 5dade3d36433c24189a133f1a09d1f50315996c6 | [] | no_license | davidnjakai/eastman2 | c817cf7af72d79a06c4d016f72bb539cc49f1eb8 | 5df8271834baec403b42b56d27d958a48653bfbf | refs/heads/master | 2020-12-25T07:30:02.870419 | 2016-07-07T21:25:19 | 2016-07-07T21:25:19 | 60,179,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """eastman2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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-ba... | [
"dvdseroney@gmail.com"
] | dvdseroney@gmail.com |
153bedd6b9dfdb762195c22a86d2e1d6dddd83c5 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/babel/dates.py | a8fadc7801e088692658f8de8729ba4a76a892aa | [] | 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 | 67,706 | py | # -*- coding: utf-8 -*-
"""
babel.dates
~~~~~~~~~~~
Locale dependent formatting and parsing of dates and times.
The default locale for the functions in this module is determined by the
following environment variables, in that order:
* ``LC_TIME``,
* ``LC_ALL``, and
* ``... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
ca2951f89c8fcf239e756f26b15ef01148feb032 | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/custom_op/test_multi_out_jit.py | 7e252e048b64c9b158fabe21b818fbccaf71a26c | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 3,680 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | Superjomn.noreply@github.com |
a452d16e2734c12010a79f5764930241bc083ee4 | 5407a3a228fca978c49b8fd7230c6c3482cdc839 | /src/utils/namespace_utils.py | c39075670032f89382eb6975fcba2008d8b4f62e | [] | no_license | Seeincup-Ming/GmToolKit | bb6e49dde8b1ce714c044064d971988321db9c62 | 2a938424a2e32164bf5c7890b896bbff00a2d26f | refs/heads/master | 2021-01-01T04:11:21.553149 | 2016-04-18T09:54:45 | 2016-04-18T09:54:45 | 56,496,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,037 | py | # -*- coding: utf-8 -*-
__author__ = 'Po'
import sys
import atexit
import socket
import weakref
import importlib
import rpyc
import rpyc.core.service as Service
import rpyc.core.protocol as Protocol
import rpyc.utils.factory as Factory
namespace_registry = dict() # <key : value> == <namespace : NamespaceManager ins... | [
"xiaoming8185620@126.com"
] | xiaoming8185620@126.com |
665a296262fe97164ada5fc3e0db919390d90e00 | e45d2faad9389886a82ff5176853b1ff6e37caae | /simplecv/017_face_detect.py | e93e398dd543658092ca32de34f80eb4096d57e8 | [] | no_license | allenmo/python_study | 6320aa4cd80fe46ccf73076015c67bdcb6338d30 | 7aff5d810ca6e791d62235d57c072a8dc14457ca | refs/heads/master | 2021-03-24T12:00:33.079530 | 2016-11-22T23:35:58 | 2016-11-22T23:35:58 | 55,770,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from SimpleCV import *
cam = Camera()
disp = Display()
size = cam.getImage().size()
segment = HaarCascade("face.xml")
while disp.isNotDone():
img = cam.getImage()
autoface = img.findHaarFeatures(segment)
lenFace = len(autoface)
if ( lenFace > 0 ):
for i in range(0,lenFace):
face =... | [
"allen02403@gmail.com"
] | allen02403@gmail.com |
cc3df1f2d798d105c86966677a61715ccea7c4e3 | 60f2834c463c47e0dec1ae02c0afc8ff401b383e | /pythonbegin/learn_python/magicians8_9.py | 024fe73f2f1fe8daa926d23bd8c061f1281bc73e | [] | no_license | codenewac/python | 9aed0987f7d00c4d1a13850a5535c73ababb290f | a925362c84934284cb69a84185051bdb213a6a20 | refs/heads/master | 2021-07-01T08:04:00.009483 | 2020-02-14T08:47:11 | 2020-02-14T08:47:11 | 240,200,618 | 0 | 0 | null | 2021-06-10T22:34:24 | 2020-02-13T07:21:58 | HTML | UTF-8 | Python | false | false | 486 | py | magicians_name=['cady','bob','mack','penny','tiara']
def show_magicians(magicians):
"""打印魔术师的名字"""
for magician in magicians:
print("Hello! " + magician.title())
def make_magicians(magicians):
"""对魔术师列表修改"""
for number in range(5):
magicians[number]='the Great '+magicians[number]
ret... | [
"2018307070118@cau.edu.cn"
] | 2018307070118@cau.edu.cn |
8f47de3208833543e640537cd04d8d34420ac5c3 | 454318a732e59051bb8bb9275b5814ad96c42b4d | /Projet/connect4/player.py | 77efe566f6cac0ff538b4426ace2935111c3f704 | [] | no_license | AnthonyBonfils3/Simplon_Brief_faur_in_rows | d46f5b8d5c3ae64e340e31a6cc5ef9cc04a9fb6c | db2b60e1892ca87cf19d9b7e8bbbdea23a3bea0f | refs/heads/main | 2023-04-11T23:17:06.610974 | 2021-04-12T23:57:08 | 2021-04-12T23:57:08 | 357,131,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,096 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 02 10:25:37 2021
@author: bonfils
"""
from abc import ABC, abstractmethod
import numpy as np
import tensorflow as tf
Qlearning_model_path = './Qlearning/models/'
class Player(ABC): ## la classe doit être abstraite pour pouvoir utiliser
## une ... | [
"anthonybonfils3@gmail.com"
] | anthonybonfils3@gmail.com |
35b0929e7702b7fd1ac6ea4d990530148fa577fc | 21e371f62170f6baa31a91c6425494cf6f80de85 | /reactdb/models.py | f416cbc21a7b3fc3c8006930aebfed3c0c6c9297 | [] | no_license | Grant1219/reactdb | 2c9e574e154332b6dc9b57c69d1656bee647fe3a | 700c6fb562c6109052292c879d0a487471129a40 | refs/heads/master | 2021-05-11T21:50:21.084347 | 2018-01-15T00:22:49 | 2018-01-15T00:22:49 | 117,478,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | from sqlalchemy import (
Table,
Column,
Integer,
BigInteger,
Unicode,
ForeignKey
)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import (
scoped_session,
sessionmaker,
relationship,
backref,
)
from zope.sqlalchemy import ZopeTransactionExt... | [
"grant@tuxinator.net"
] | grant@tuxinator.net |
39cebbc5e363c770167687468337da3c136adef7 | 5ce85f7f72bb48407664ecfaf6d7d963fdd90e83 | /signloginout/asgi.py | feec2c7d9f102d1d181f6be5aa8110cd77e99607 | [] | no_license | monali-warghane/signinloginout | 632e994e3aa6d9824f0b020f5978d49855996a1e | f495628591071db63b7b998f67127d1f80b211cb | refs/heads/main | 2023-09-03T18:56:28.760641 | 2021-10-02T11:22:46 | 2021-10-02T11:22:46 | 412,774,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for signloginout project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"monalibawankar97@gmail.com"
] | monalibawankar97@gmail.com |
9a85e70ab62265d785e5f011cfd8ac042b203745 | 9795451f7b059e79a6a96a05752f753113830091 | /EMCUnity/UnityClasses.py | 81abb27adccbc2c8ebb40a7d3a8611870c2900bf | [
"MIT"
] | permissive | fiveout/EMCUnity | a0413544178a5869ec876d88a226a4c8bd9a6859 | 76ba23d54e6409c051e92506a9283cbe722fd4a6 | refs/heads/master | 2021-04-06T09:43:07.276010 | 2018-03-24T06:21:47 | 2018-03-24T06:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,502 | py | import collections
from collections import namedtuple
def namedtuple_defaults(typename, field_names, default_values=()):
''' This makes our objects simple named tuples with default values of None
standard namedtuples, require all values '''
T = collections.namedtuple(typename, field_names)
... | [
"ktelep@gmail.com"
] | ktelep@gmail.com |
f90334a1939d9b22c35a1f046ae87e4ce66693cb | ac305c6739541e84857e297f8eb1b19417978548 | /module_128.py | b9ba541614d3ccd041e0fe0728a597cc18a34050 | [] | no_license | imhardikj/git_test | d6608d6c02e0bc454f9dd31ffbbc5704a7046a61 | 43f0de2e9ac09ecd4fdfee27879fd8ae354a0685 | refs/heads/master | 2020-03-27T21:56:46.394739 | 2018-09-03T11:27:58 | 2018-09-03T11:27:58 | 147,189,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | """A set of classes used to represent electric cars."""
from module_121 import Car
class Battery():
"""A simple attempt to model a battery for an electric car."""
def __init__(self, battery_size=70):
"""Initialize the batteery's attributes."""
self.battery_size = battery_size
... | [
"noreply@github.com"
] | imhardikj.noreply@github.com |
3613286aacd6a6b99a5617825f4bd0694d388038 | df67b93cbe1dbb33a30d0f054ea131ff1ef7e655 | /examples/channel.py | 98adcb41203ce54a8a31bbe788a6f68816282d40 | [] | no_license | colinjcotter/lans | 95505065264d75e86fa2bba22524a297e60e651e | d49dab7aa737164fe45fe5140da31830b4daa03d | refs/heads/main | 2023-06-08T13:15:29.447546 | 2021-06-28T12:39:07 | 2021-06-28T12:39:07 | 323,318,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from lans import *
from firedrake import *
nx = 100
ny = 30
Lx = nx/ny
Ly = 1.0
mesh = RectangleMesh(nx, ny, Lx, Ly)
#uv_normal_dirichlet_bdys = {1:as_vector([1.0,0]),
# 3:as_vector([0,0]),
# 4:as_vector([0,0])}
uv_normal_dirichlet_bdys = {1:as_vector([1.0,0])}
... | [
"colin.cotter@imperial.ac.uk"
] | colin.cotter@imperial.ac.uk |
c65a2c32b78315ed3209d336aa5b4220babed4df | 82b194b063eadfb57d3e3e83b41279c122a33b53 | /movies/migrations/0008_auto_20160119_0904.py | f25c3949a69e05d617e651a5b58cc1f9a434f7cb | [] | no_license | AnupKandalkar/ssdb_django_angular_heroku | 8c02a3a8751ffaf5957895bf4a27add2fe7d004a | 91619f128728d42f15e26dd0c57ad36fab1fd79c | refs/heads/master | 2021-01-21T21:40:16.190289 | 2019-01-16T17:36:08 | 2019-01-16T17:36:08 | 50,094,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('movies', '0007_auto_20160119_0902'),
]
operations = [
migrations.AlterField(
model_name='moviesdata',
... | [
"kandalkar.a87@gmail.com"
] | kandalkar.a87@gmail.com |
f0f593803b7a6cff4b061adf96277989a82afbb1 | d7ad10f190eab923697e2694b6f4f12a2ca53403 | /plugins/gateway/gateway.py | 3faf282507ef27bdbe55af27e3f7301e27f32c9d | [
"MIT"
] | permissive | jtimon/multi-ln-demo | 54425d6dd9eafc2526e99b99eee58a1066416428 | b71ef12ba38b146fca06494bc910b48948e8c74e | refs/heads/master | 2022-12-10T10:35:23.366527 | 2020-04-07T02:42:45 | 2020-04-07T02:43:13 | 189,696,084 | 6 | 0 | null | 2022-12-08T05:26:55 | 2019-06-01T05:54:35 | Python | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python3
"""Simple plugin to allow testing while closing of HTLC is delayed.
"""
from requests.exceptions import ConnectionError
import requests
from pyln.client import Plugin
plugin = Plugin()
# Example payment:
# {'label': 'from_regtest_to_liquid-regtest_label_5ad2ba3afc73bb3d3db3e80909c75501913abdf... | [
"jtimon@jtimon.cc"
] | jtimon@jtimon.cc |
f6227272c3c000017f7eb895200542e0aa7c4100 | 57cfc4dfa84fae4dbe4e83e8b5bcfd36e985694f | /bom_scripts/bom_csv_grouped_by_value_with_fp.py | 84298a254a90e3d0473fd30044a0d42f839850f9 | [
"MIT"
] | permissive | wkevina/micronome-pcb | 2fe1f6f2dc898fb3d313f1cce0ee3c66843c0c3c | dc3d86c2723a2c7115eb68436a7f903cc8f0a9b0 | refs/heads/master | 2021-01-01T05:27:50.602139 | 2016-05-11T21:39:41 | 2016-05-11T21:39:41 | 58,574,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #
# Example python script to generate a BOM from a KiCad generic netlist
#
# Example: Sorted and Grouped CSV BOM
#
"""
@package
Generate a Tab delimited list (csv file type).
Components are sorted by ref and grouped by value with same footprint
Fields are (if exist)
'Ref', 'Qnty', 'Value', 'Cmp nam... | [
"antiomiae@gmail.com"
] | antiomiae@gmail.com |
07b886621333aed549ac0ed9f78af7cb294e0f0f | c2370387878107e67381400ff7ca5fc7c8d21050 | /apirest/apirest/wsgi.py | 4fa9212721a86faff300620cef2f84266ecc8f85 | [] | no_license | Linaerith/Projet_PfDA_2020 | e5e369fa28d9dafcaaa65aac6027315f1f4bc7a3 | a6e1b19cb87dca57c42e80b899233d56d734d3d8 | refs/heads/master | 2020-12-26T12:27:32.255173 | 2020-01-31T21:00:28 | 2020-01-31T21:00:28 | 237,510,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for apirest 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"noreply@github.com"
] | Linaerith.noreply@github.com |
3c840954bad45d6884f9cadc51628038511b55ba | d6475dda9db9ea6e447db2b4d75d2ebdf454e9d8 | /polls/models.py | fefdac850f120944eee69c1278d883e9925f2e2d | [] | no_license | yoophi/django_polls | 3d92b01f239ed6933b7593408b788f7adf2e6c31 | f94c0ff6307cbdd2d3c65a6b5131a515b6fe67af | refs/heads/master | 2021-01-10T00:57:18.706884 | 2016-03-24T14:50:38 | 2016-03-24T14:50:38 | 54,241,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.D... | [
"yoophi@gmail.com"
] | yoophi@gmail.com |
9f51398f8e1742b2e1d28b128a47717e3ca7e4ca | cf1e72bf5120ee8f89f4c152cb83b962f6355f6e | /kernel_benchmarks/popart/test_lstm_popart.py | 3349d0135a33ca874dd1036331c83ddce19c43b6 | [
"MIT"
] | permissive | Adamage/tutorials | 0c57a4b02c7adbdb542fd87a8a46b2b8dbb63949 | b6600c052613909dbec378fea4a69deff46004dc | refs/heads/main | 2023-08-25T18:09:03.783734 | 2021-10-29T13:29:33 | 2021-10-29T13:29:33 | 407,079,255 | 0 | 0 | NOASSERTION | 2021-10-21T07:10:39 | 2021-09-16T08:10:19 | Python | UTF-8 | Python | false | false | 2,096 | py | # Copyright (c) 2020 Graphcore Ltd. All rights reserved.
import os
import subprocess
import sys
import unittest
import pytest
def run_lstm(batch_size, timesteps, hidden_size, extra_args=None):
py_version = "python" + str(sys.version_info[0])
cmd = [py_version, "lstm.py",
"--batch-size", str(batch_... | [
"louisev@graphcore.ai"
] | louisev@graphcore.ai |
c9585d56b0fe94af3866093cae1b512d95ca70cb | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /tests/components/fritz/test_button.py | 36af1c27f5e0bcf2f1852749964ed9cdf872c95c | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 2,402 | py | """Tests for Fritz!Tools button platform."""
from unittest.mock import patch
import pytest
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
from homeassistant.components.fritz.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const impor... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
fa5914ae5d699606bf8f903862b95dc7fc78ceab | d76afab167e163f8f54fb0799bf2c5c1e0868a05 | /src/openzwave_compat/scene.py | 915f9fb2ab849cb653348ed07758de866f776f04 | [] | no_license | magicus/babyzwip | e61b4886fafb582723bc09a2128b5d7ae2b1256d | 38ad83598f9e54ee667ec342a0478206daf3cfee | refs/heads/master | 2021-01-12T07:45:49.928391 | 2018-01-15T09:42:46 | 2018-01-15T09:42:46 | 77,001,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | """
Compatibility layer with python-openzwave
"""
from openzwave_compat import ZWaveObject
# Set default logging handler to avoid "No handler found" warnings.
class ZWaveScene(ZWaveObject):
def __init__(self, scene_id, network=None):
ZWaveObject.__init__(self, scene_id, network)
@property
def s... | [
"mag@icus.se"
] | mag@icus.se |
827c7b9b76801ff6a9ebbc2f8342fe133931ca45 | f17de2f1a2804033a7b7fc74a0d09f964fe1d876 | /hungerExpress/food/migrations/0003_auto_20180331_1736.py | a285d1dd32068594eea223b405926bad96304f74 | [] | no_license | udwivedi394/djangoProjects | 60d6eb275ce75dab3884f1a9c68e01226625c4e2 | 22075b7f850d796afe5a0c06411eb5ff762357b7 | refs/heads/master | 2021-09-10T21:54:44.363710 | 2018-04-03T01:58:27 | 2018-04-03T01:58:27 | 126,106,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.0.3 on 2018-03-31 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('food', '0002_auto_20180331_1725'),
]
operations = [
migrations.AlterField(
model_name='restaurant',
name='contact_no... | [
"utkarshdwivedi394@gmail.com"
] | utkarshdwivedi394@gmail.com |
1d8710b301f679be196cfeb930905c255e5fc17d | 7f015891893bfd60ab2eb9b8f2ca70c1eca062c3 | /onyxlog/core/util.py | e19265187f0864d15ad70430af220acab9d61aa8 | [] | no_license | MauricioAlmeida/onyxlog | b9bad081697de563a559e2d0ca51d0ab4aa8d2a0 | 737816cbd5248a0ad297fc7f6355cf9a22553a63 | refs/heads/master | 2021-01-13T03:27:09.175104 | 2015-11-23T14:53:52 | 2015-11-23T14:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | # -*- coding: ISO-8859-1 -*-
"""
Funções uteis para toda aplicação
"""
def getParam(param):
"""
Retorna o valor de um parâmetro
"""
from onyxlog.core.models.parametro import Parametro
if not param:
return None
parametro = Parametro.objects.filter(nome=param)
if parame... | [
"jairvercosa@gmail.com"
] | jairvercosa@gmail.com |
f6cc20c827f453c325a7d6abd1a137191b4f3eb1 | 76356eb3f3963051a15f7dfe6867586293bd7534 | /models/pruned/random_pruning/imagenet/resnet50_5.py | 49f3cdf8fcafef99f746b8dc1da08175cd959536 | [] | no_license | ICIdsl/performance_modelling | f59c74c0c6b2e60457694978f9a6d2251f3a70c2 | c48cf66db8e530797d0106a737c5c7da0852423c | refs/heads/master | 2023-07-07T22:32:30.718833 | 2021-08-13T12:48:37 | 2021-08-13T12:48:37 | 394,321,871 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,795 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class ResNet50(nn.Module):
def __init__(self, num_classes=10):
super().__init__()
self.conv1 = nn.Conv2d(3, 62, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False)
self.bn1 = nn.BatchNorm2d(62, eps=1e-05, momentu... | [
"ar4414@ic.ac.uk"
] | ar4414@ic.ac.uk |
a53e77f1ed8e5db0c92f17c14085432ed68a4c61 | 2624f3e7b657defbda604c68902f63242ae52141 | /Patterns/pattern_5.py | ebe0be5b2f8a530dcd00d0d30f768124671f1c7a | [
"Apache-2.0"
] | permissive | jarvis-1805/DSAwithPYTHON | a451c40571ef90a979832b33a4b4fb6c0235b209 | 872073d1b8d0001ea8b1a54b5e327dd0c1c406f2 | refs/heads/main | 2023-03-28T23:46:14.672310 | 2021-03-27T10:57:16 | 2021-03-27T10:57:16 | 346,755,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | '''
*
* *
* * *
* * * *
* * *
* *
*
'''
n = int(input())
i = 0
while i <= (n//2)+1:
k = i
while k > 1:
print(' ', end='')
k -= 1
j = 0
while j < i:
print('*', end=' ')
j += 1
print()
i += 1
i = 0
while i < n//2:
k = i
while k < (n//2) - 1:
... | [
"shubhsahu1805@gmail.com"
] | shubhsahu1805@gmail.com |
f340d988bb9d2451fa121b0517affaf95fdea34d | 3e2f9d3ab9303ab54ff26ca17a30275e5b666003 | /payment/urls.py | cf53a280132534d60ff508808f331c77234bf297 | [] | no_license | Alisher007/e-shop | 6721c156e5676514d7567d3da6c29e20eabaa417 | ea45849b4711f8ca7146dab120e1991e7625f04f | refs/heads/master | 2022-12-14T00:16:59.277865 | 2020-09-10T07:44:33 | 2020-09-10T07:44:33 | 293,895,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from django.urls import path
from . import views
app_name='payment'
urlpatterns = [
path('', views.index, name="index"),
path('charge/', views.charge, name="charge"),
path('success/', views.successMsg, name="success"),
]
| [
"alisher.khalikulov@jaresorts.com"
] | alisher.khalikulov@jaresorts.com |
d380e27ac680f5df02f84e51c854721635cbf2ba | 83d0abf6f05ed6694797872c45c6f1b99f9ceeec | /src/const.py | 9ea80df69bec5e1cafe1a8d935e7bcc73a974a60 | [] | no_license | Ruthvik2127/IEEE-CIS-Fraud-Detection-1 | be01ed9eb95f11b31e341424c0b1fc1ab2171f82 | f83d717e7ba604e64b517c480a99325fe0579976 | refs/heads/master | 2023-03-15T15:28:55.374749 | 2019-10-02T13:17:44 | 2019-10-02T13:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | import pandas as pd
train_identity = pd.read_csv("../data/train_identity.csv", )
train_transaction = pd.read_csv("../data/train_transaction.csv", )
test_identity = pd.read_csv("../data/test_identity.csv", )
test_transaction = pd.read_csv("../data/test_transaction.csv",)
BASE_COLUMNS = list(train_transaction.columns... | [
"andrewsiu1029@gmail.com"
] | andrewsiu1029@gmail.com |
ff01db056009a80fa1000e2954fbb76c769b6e7e | a3d2620bbf25002c7b182600c2e40f8f06555e91 | /exc/exc/wsgi.py | 8d7d6db299d15b0077bd2774bf300955b5612354 | [] | no_license | alejo8591/backend-lab | 782736a82933f705f825a1194369bfe13e86c0ec | 4a02a9552083a7c877e91b0f8b81e37a8650cf54 | refs/heads/master | 2016-09-03T03:53:43.878240 | 2015-11-26T06:35:38 | 2015-11-26T06:35:38 | 3,911,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
WSGI config for exc 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "exc.settings")
from django.core.wsgi impo... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
f588ea12e923ea4f213f05f6c9644792b914cfeb | 5e288e450271b3a395e6e2e4d340370d9b2380eb | /CarData/src/Cars/Ford/Car_data_DownTownFord.py | 57addc566fe99503f6c1fa427f4b82e98b81baff | [] | no_license | dnp987/GTA-Cars-old | 76c8713516c8cf5e2fe0ee8a2b4bd5b429657e21 | a7e72db18a5415f4b0ccf9c95b762e1bf801aded | refs/heads/master | 2023-09-02T18:48:26.116925 | 2021-10-17T14:42:14 | 2021-10-17T14:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | '''
Created on June 29, 2020
@author: DNP Enterprises Inc.
'''
from datetime import datetime
from time import sleep
import re
#from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ... | [
"dnp987@gmail.com"
] | dnp987@gmail.com |
0355be01c5e553aed9870e5fe28e838bab995917 | d0dcc77793433e31adda34b0a9989da694b61f19 | /divideTrainTestSet.py | 9b91ab7d5bdffe2b9f85f231da505ed662e38d1e | [] | no_license | MagicSen/python_tools | 0bac702a31ad5b8b742fe809e63f027891783d4c | 296b375cb3807f8436ce6b7c8a661daeecd975c1 | refs/heads/master | 2021-09-02T15:57:59.758341 | 2018-01-03T14:10:17 | 2018-01-03T14:10:17 | 116,134,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | ##
# @file divideTrainTestSet.py
# @brief Given ratio, divid data set to train and test set.
# @author Yang Sen, magicys@qq.com
# @version 1.0.0
# @date 2017-09-09
import os,sys
##
# @brief getListFromFile
# Get a list from a file
# @param file_name
#
# @return
def getListFromFile(file_name):
if not os.path.ex... | [
"syang@usens.com"
] | syang@usens.com |
968290c1917596dac408fca7d1a91f4c18315524 | 3024cafafbfc75193105af7f225d3b12eb2aea46 | /DjangoProjects/project24/iplapp/models.py | b6932bc062b857864ce7ec33dc7f0cac6088b6d7 | [] | no_license | jaishankarg24/Django-Rest-Framework | 33266f6825d51abb8a512426baedf59f2ee957c8 | 809ee9208ffbef4202a8f4058a84f5322793af52 | refs/heads/master | 2023-03-02T20:56:38.051060 | 2021-02-12T05:37:48 | 2021-02-12T05:37:48 | 338,233,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django.db import models
# Create your models here.
class IplTable(models.Model):
name = models.CharField( max_length=50)
age = models.IntegerField()
country = models.CharField( max_length=50) | [
"jaishankarg24@gmail.com"
] | jaishankarg24@gmail.com |
5c5ff093f8e4848fe2435494f5abccda014f4507 | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/9月/9.12/习题答案.py | df9a5234a978fced165131300f75ac2e75628528 | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | #coding=utf-8
import linecache
import time
now = time.time() #代码开始时间
# 前期准备,整理数据
data_keys = ('bid', 'uid', 'username', 'v_class', 'content', 'img', 'created_at', 'source', 'rt_num', 'cm_num', 'rt_uid', 'rt_username', 'rt_v_class', 'rt_content', 'rt_img', 'src_rt_num', 'src_cm_num', 'gender', 'rt_bid', 'location', '... | [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
95aa037242063b122b3bd33f7bb1314f54c46850 | 11ad104b0309a2bffd7537d05e2ab3eaf4aed0ca | /tests/helpers/test_storage_remove.py | 9a447771ea630816f159fba84f8ff655f447eb56 | [
"Apache-2.0"
] | permissive | koying/home-assistant | 15e5d01a45fd4373b3d286e1b2ca5aba1311786d | 9fc92ab04e0d1933cc23e89b4095714aee725f8b | refs/heads/dev | 2023-06-24T01:15:12.150720 | 2020-11-01T12:27:33 | 2020-11-01T12:27:33 | 189,232,923 | 2 | 1 | Apache-2.0 | 2023-01-13T06:04:15 | 2019-05-29T13:39:02 | Python | UTF-8 | Python | false | false | 1,252 | py | """Tests for the storage helper with minimal mocking."""
import asyncio
from datetime import timedelta
import os
from homeassistant.helpers import storage
from homeassistant.util import dt
from tests.async_mock import patch
from tests.common import async_fire_time_changed, async_test_home_assistant
async def test_r... | [
"noreply@github.com"
] | koying.noreply@github.com |
82b80a1803095f37024f7db48d75ec4c61894f66 | 50850883f2a38c50f5c77889ab300bfd81bd5009 | /setup.py | 4f8bfa00256ffb337b8827a49855274293bb340e | [] | no_license | Brant/django-triggeredMenu | b015ffe0b8007b3c5d05ed9cf93d78815dfb50b0 | 218bd9d7696d8fa147f682efd45bc79db7a1d549 | refs/heads/master | 2021-01-01T18:07:32.142089 | 2013-01-04T21:14:06 | 2013-01-04T21:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from setuptools import setup, find_packages
setup(
name = "triggeredmenu",
version = "0.1",
url = 'https://github.com/Brant/django-triggeredMenu',
license = 'GPL',
description = "Adds triggeredMenu static files to a django project",
long_description = open('README.md').read(),
author = 'Br... | [
"brant.steen@gmail.com"
] | brant.steen@gmail.com |
603b9965d66ae58e80bf9f48f51c6c5dbebca190 | d44b37644b1674eba76030c581f3e7c9d02e4127 | /ishelf/content/admin.py | 15d678f71771b0e399603fca59ae7f4940899635 | [] | no_license | tommus/android-05-payu-integration-api | 3d0cae4129d19a6bb8338cc1424fce97b6a5d602 | 8155114ded6abcccde909555e7e40f12b0c49376 | refs/heads/master | 2020-03-23T11:12:36.755036 | 2018-07-19T21:30:49 | 2018-07-19T21:30:49 | 141,490,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from django.contrib.admin import (
ModelAdmin,
register,
)
from ishelf.content.models import (
Author,
Book,
)
# region Author
@register(Author)
class AuthorAdmin(ModelAdmin):
list_filter = ["active"]
list_display = ["__str__", "active"]
list_editable = ["active"]
# endregion
# region... | [
"tomasz.dzieniak@windly.co"
] | tomasz.dzieniak@windly.co |
1a9a1c804acf382b9815037e5ac1e6d8ff33b443 | a4008766df10c009591a3aed79c96b04de58ed33 | /dateFind.py | 6a41772a247cf6b50b0a309538e34f7d7fdddf74 | [] | no_license | JoneWangwz/ZHQH | 2bb1cbc087023159e22e14ad3bb38693827122c6 | 8e13a9c47d383ffbd617f7b72150d37711bb9e37 | refs/heads/master | 2020-03-21T04:17:58.718832 | 2018-07-30T14:14:22 | 2018-07-30T14:14:31 | 138,101,460 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,599 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 29 22:03:51 2018
@author: 王钊
"""
import pandas as pd
import os
from sklearn.model_selection import train_test_split
import csv
from sklearn.linear_model import LogisticRegression
import numpy as np
'''
dateTable,随便去一个表中的时间testingStand/A.csv
date,单日的计算,例如20180101
trendSo... | [
"32155950+Wangzhaozz@users.noreply.github.com"
] | 32155950+Wangzhaozz@users.noreply.github.com |
34906a49299704ce8c70279a90752f8f06fab619 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /ps프로젝트/BS/숫자카드2.py | 8734a278232da1fa846614d424d7f3945e467c48 | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from collections import Counter
def check(v):
lt=0
rt=n-1
cnt=0
while lt<=rt:
mid=(lt+rt)//2
if arr[mid]==v:
return 1
elif arr[mid]>v:
rt=mid-1
else:
lt=mid+1
return 0
if __name__ == '__main__':
n=int(input())
arr=list(m... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
9d7d2d581d50ca04cf1b4329b5b87bf803707862 | c2e6b6119a1d03bc293572d568d21a6b76762a1f | /ex.py | 30c1077d8fe6fac7ee1c285147c7a62bef2ee59a | [] | no_license | kafura-kafiri/Fesss | 24a92e5185881066b0d2f61d1649ab0e43a0f479 | 7b660723237dfbdbd3ba9772a9d2a9c771807bb7 | refs/heads/master | 2021-05-03T17:17:54.799918 | 2018-02-06T16:06:40 | 2018-02-06T16:06:40 | 120,443,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # LSTM for international airline passengers problem with regression framing
import numpy
from pandas import read_csv
import datetime
import math
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mea... | [
"kafura.kafiri@gmail.com"
] | kafura.kafiri@gmail.com |
dcf9913ef2a4ff09c4c40ac79a15797fa47cbec7 | 3bf01ae08ad8e85af0928f8d644e21e3dd3ab504 | /seance/seance_service.py | c702dee1aeac952d9615f8b5eb14ad08be4e0250 | [] | no_license | AnkoSkl/rsoi | 374a09079d1451f3e8890bcef0fdcb504eb49acc | 9c24f193bcea09e12726fd30445227ebf84090ab | refs/heads/master | 2022-12-13T23:16:05.067962 | 2019-11-30T20:39:47 | 2019-11-30T20:39:47 | 153,944,478 | 0 | 0 | null | 2022-12-08T01:19:28 | 2018-10-20T20:13:30 | Python | UTF-8 | Python | false | false | 427 | py | from movie import app
from flask_restful import Api
from seance.rest_api.seance_resource import *
from movie.repository.movie_repository import Movies
api = Api(app)
service_namespace = "/seances"
api.add_resource(SeanceListResource, "/seances")
api.add_resource(SeanceResource, "/seances/<seance_id>")
api.add_resour... | [
"anko136660422@gmail.com"
] | anko136660422@gmail.com |
8ef2d2abe68d0b5499e760395b40896a467518c4 | 2e9193625039cbd93a76a1ac1115e84599c6afcd | /HashTable/hashtableImp.py | 1f19d4d3fcdd4ca486866e38beb7dbb1a273fa65 | [] | no_license | hieudx149/DatastructAndAlgorithms | d54b79c3375dfb17989160a1d2dc74505061eae5 | a5f147b2f644f2a273c50756c9d297fa8b6bcd08 | refs/heads/master | 2023-06-16T13:38:32.039274 | 2021-07-13T10:35:54 | 2021-07-13T10:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | class hash_table:
def __init__(self, size):
self.size = size
self.data = [None]*self.size
def __str__(self): # As in the array implementation, this method is used to print the attributes of the class object in a dictionary format
return str(self.__dict__)
def _hash(self, key):
... | [
"you@example.com"
] | you@example.com |
e05063621f0c473ff8ad2a30c1e044d911e4b514 | ef91c9eea0f4c2b67111e48f7dace22307fbc584 | /three.py/TestRenderTarget.py | f3094ac47d9baaea1216f29ad445a6f842e7d847 | [
"MIT"
] | permissive | lukestanley/three.py | 7cca1f1688419fa98edaa8157c693d475f9f6bfb | a3fa99cb3553aca8c74ceabb8203edeb55450803 | refs/heads/master | 2020-05-22T05:46:09.248617 | 2019-05-12T10:42:55 | 2019-05-12T10:57:07 | 186,241,212 | 0 | 0 | MIT | 2019-05-12T10:33:48 | 2019-05-12T10:33:48 | null | UTF-8 | Python | false | false | 2,099 | py | from core import *
from cameras import *
from geometry import *
from material import *
from helpers import *
class TestTemplate(Base):
def initialize(self):
self.setWindowTitle('Test')
self.setWindowSize(800,800)
self.renderer = Renderer()
self.renderer.setViewportSize(800,80... | [
"stemkoski@gmail.com"
] | stemkoski@gmail.com |
eb9f6d220a2e45524d1b0cab6ac5105592c1b351 | cb66cbf728412a5d07200079076785404d45ad9a | /otmods/ot.py | 80c34765ec074a25540128b8b8fe74333a5ff2ee | [
"MIT"
] | permissive | chomes/overtime_counter | 13e405c5c5a02832098521f6abbc3d35a2d23ac7 | b3787b950747bd13c664c78c97f1531b19a9af0f | refs/heads/master | 2020-05-18T13:36:51.457807 | 2019-05-02T15:31:35 | 2019-05-02T15:31:35 | 184,445,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,393 | py | """
Script used manage over time, creates a database to save information to and read when needed.
Author: chomes@
Version: 1.3
built using pyinstaller
"""
from datetime import date, datetime
import shelve
import getpass
import csv
import calendar
from pathlib import Path
import shutil
import sys
# Overtime class for... | [
"josejam@amazon.co.uk"
] | josejam@amazon.co.uk |
0188b4ca6eafecea318ab321afff936f95e18e40 | 41d6abf94adc5699aff40d862aa32adb03b952b1 | /attendance/attendance/prof/migrations/0004_auto_20170311_1924.py | 427c7077ed93f981b768b219a87d1b3fd1c2087e | [] | no_license | AndreiTich/TopAttendance | ec134252f76bbdbe23664277291b05e207737ee6 | 44c4091bcaf7637eea51382548b5a2465be59e91 | refs/heads/master | 2020-05-21T06:01:47.109394 | 2017-03-11T22:29:45 | 2017-03-11T22:29:45 | 84,583,020 | 2 | 2 | null | 2017-03-10T19:19:59 | 2017-03-10T17:11:08 | Python | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-11 19:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prof', '0003_merge_20170311_1550'),
]
operations = [
migrations.AlterField(... | [
"menglingsilence@gmail.com"
] | menglingsilence@gmail.com |
a890dc792470d462bc393e0a9032f07d41b0bb38 | 4faca7dbc379bd48d0c49de3c5443f432f75651f | /withGUI.py | e5dc997d8dde5fb6be0f9ba372506ff1947b4319 | [] | no_license | adityadroid/Alphabeter | aa08c767c97b859158a4fbc05ca061508ec1cc62 | c0012fc2c41d0a23eefbb89554f3e9100c2d51bc | refs/heads/master | 2021-06-11T01:02:14.661708 | 2017-02-07T19:17:47 | 2017-02-07T19:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,791 | py | import turtle
from tkinter import *
from tkinter import ttk
def printBlank():
turtle.color(str(bg.get()))
turtle.forward(30)
def printA(color):
turtle.color(color)
turtle.left(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(50)
turtle.right(90)
turtle.forward(50)
... | [
"adityaadi1467@gmail.com"
] | adityaadi1467@gmail.com |
43b720aa6186d5142bf19c70b95377a6e09392e7 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/memsic_imu/catkin_generated/generate_cached_setup.py | a7913516ce6d717d1e4e1c8927d7d0035dfa6bef | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"907097904@qq.com"
] | 907097904@qq.com |
5f751dd40eb4c0085434027a83c7ef7d78945f6c | e0708f9ee1adbe9c86d5b333da25ad9b31763b0b | /App_Blog/templatetags/custom_filters.py | 88d002df6794e06beb9d787c1df7ed2d4084618e | [] | no_license | kazi-akib-abdullah/blog_project_django | ad766acd7809876c02791631de96ca31304efef3 | ea6a534e1a9a24b2df055a0757f17e9f6cc09e16 | refs/heads/master | 2023-03-09T21:03:26.977160 | 2021-02-27T08:02:13 | 2021-02-27T08:02:13 | 340,184,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django import template
register = template.Library()
def range_filter(value):
return value[0:500] + "......"
register.filter('range_filter', range_filter) | [
"45953236+kazi-akib-abdullah@users.noreply.github.com"
] | 45953236+kazi-akib-abdullah@users.noreply.github.com |
2e3a286e0a9ecb9a6cf8662b45d6de113da6d8e2 | bef90192417ecaf5405a0ce23a7d1e55e797b702 | /lab3_1.py | d07d197b69a34c013ff68ea9792a3733fd92996c | [] | no_license | fp-computer-programming/cycle-5-labs-p22anishiyama | e712059922d63d1a8084b7f907ad7bc1085d7099 | 65b2f2b9de431013bea14593024a13dcca671c69 | refs/heads/master | 2023-08-25T14:24:45.489265 | 2021-10-29T14:44:26 | 2021-10-29T14:44:26 | 419,737,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # Author: ATN 10/25/21
import time
import math
t1 = time.perf_counter()
math.pow(2, 2)
t2 = time.perf_counter()
speed1 = t2 - t1
print(speed1)
t3 = time.perf_counter()
2 ** 2
t4 = time.perf_counter()
speed2 = t4 - t3
print(speed2)
| [
"p22anishiyama@fairfieldprep.org"
] | p22anishiyama@fairfieldprep.org |
3dd7a6c1cc0e7b493acc79ecedfa610981f4a0c2 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /eggs/numpy-1.6.0-py2.7-linux-x86_64-ucs4.egg/numpy/f2py/auxfuncs.py | a12d92b7ea6a8df62af61ded3a2fcb333b26d37c | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 19,936 | py | #!/usr/bin/env python
"""
Auxiliary functions for f2py2e.
Copyright 1999,2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy (BSD style) LICENSE.
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RIS... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
0ac9d28c7e8325cfbf311caef311479a4339cfd7 | 438703d149788b6dec63f9d5e50acc5db7cab73c | /flask_application/controllers/admin.py | 01df5be6f21d20282a8ed66cccfdf2553c6e19a6 | [] | no_license | kozdowy/picgridder | a190f4e9fdeafa72af84f7cb6e0f76d397da78c3 | 9bb73deca5f7db0a265efb8b1ee4a0e77858f32e | refs/heads/master | 2016-09-05T21:08:45.721794 | 2014-09-07T05:43:45 | 2014-09-07T05:43:45 | 23,750,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from flask import Blueprint
from flask.ext.security import roles_required
from flask_application.controllers import TemplateView
admin = Blueprint('admin', __name__, url_prefix='/admin')
class AdminView(TemplateView):
route = '/admin'
template_name = 'security/index.html'
decorators = [roles_required('a... | [
"hanooter@gmail.com"
] | hanooter@gmail.com |
8407da9d9925caafbab77822da0543ccc6e4cf22 | 21c0caf043f3452257780038c5d087c440d8cdb8 | /hammerblade/torch/tests/test_profiling.py | 2255ce94646387a4cb3981f781f09864755c085b | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Kofi-A-Efah/hb-pytorch | 3f47c43d8dd7f12da3e8b4b0e626819ded1a937c | c06e40f210fdb5ee98a980c08976459c0bfa2612 | refs/heads/master | 2022-07-16T03:56:25.837046 | 2020-05-18T00:41:24 | 2020-05-18T00:41:24 | 265,396,517 | 0 | 0 | NOASSERTION | 2020-05-19T23:50:24 | 2020-05-19T23:50:23 | null | UTF-8 | Python | false | false | 4,839 | py | """
Unit tests for torch.hammerblade.profiler
05/06/2020 Lin Cheng (lc873@cornell.edu)
"""
import json
import torch
import random
torch.manual_seed(42)
random.seed(42)
torch.hammerblade.init()
def test_ROI():
assert not torch.hammerblade.profiler.is_in_ROI()
torch.hammerblade.profiler.enable()
assert tor... | [
"lc873@cornell.edu"
] | lc873@cornell.edu |
730e2ad889abd7253a50a6192e8170560f90da0e | 25835efb6081aa857c347c686f1c776060f9548b | /numpy/lib/_version.py | 4eaabd0ff5ef0527ededaf88b0ebfa69bdfedbea | [] | no_license | hildensia/numpy | 43e085cccc138ac666c8e13fe54c79cbe2d967ef | 9dd46ee2ed9fc55942d9ec13532d817c3b36d322 | refs/heads/master | 2021-01-16T20:55:46.797588 | 2014-05-19T13:35:52 | 2014-05-19T13:35:52 | 20,024,779 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,866 | py | """Utility to compare (Numpy) version strings.
The NumpyVersion class allows properly comparing numpy version strings.
The LooseVersion and StrictVersion classes that distutils provides don't
work; they don't recognize anything like alpha/beta/rc/dev versions.
"""
from __future__ import division, absolute_import, pri... | [
"charlesr.harris@gmail.com"
] | charlesr.harris@gmail.com |
5cbcaaa43ef258823c6c27044d41b401cda0c79d | 6b301b0b0d5fea69e6ab6d3fcfd0a9741143a9b7 | /config/jupyter/.ipython/profile_default/startup/00-setup-spark.py | 0219daccbe9e74cbcbd99ab8d59a1f0b6a772a72 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | frankiegu/pipeline | c7a166e80ccc6a351c32fb1918a41268f2380140 | 3526f58cc9b4d824a23300cd60c647a753902774 | refs/heads/master | 2021-01-11T06:09:36.914324 | 2016-10-03T05:33:41 | 2016-10-03T05:33:41 | 69,836,618 | 1 | 0 | null | 2016-10-03T02:56:09 | 2016-10-03T02:56:09 | null | UTF-8 | Python | false | false | 489 | py | import glob
import os
import sys
# Setup SPARK_HOME
spark_home = os.getenv('SPARK_HOME', None)
if not spark_home:
raise ValueError('SPARK_HOME environment variable is not set')
# System sys.path
sys.path.insert(0, os.path.join(spark_home, 'python'))
for lib in glob.glob(os.path.join(spark_home, 'python/lib/py4j-*... | [
"chris@fregly.com"
] | chris@fregly.com |
9bd7d4a09546d875c2b8004638a23d7321c41824 | 944913d11bd936616396ce57e79b5c13a4581be3 | /scripts/spread_list.py | 6370342e4f31daa4ad4d39d9708e356b3a47786a | [
"MIT"
] | permissive | jcodinal/edit_google_spreadsheet | 67ddae1bf4a275ec13ef9bd1f9949071e06915ed | 44d21a0444c31170c512a4e43e524afc0b82c1bd | refs/heads/master | 2020-04-06T06:57:33.586237 | 2016-09-03T10:23:48 | 2016-09-03T10:23:48 | 61,422,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Script Name : spread_list.py
# Author : jordi codina
# Created : 20/06/2016
# Last Modified : 20/06/2016
# Version : 1.0.0
# License : MIT
# Description : return a list of dictionries {row_title: cel content}... | [
"jordi@travel"
] | jordi@travel |
5c0537d348a3468866db5e6fc02449f939b98820 | 65769cc7508c63d96c85d52d61a1db6ede6444d1 | /app/admin.py | bfbecd6925f18e40270a95c401aa5075375fc4a4 | [] | no_license | eleyine/SDP1-Tinder | bb69859cc02725092364e3db38e4836fa5563a68 | 205e70f2bcf3ec6036d8e84ad04884040f23f833 | refs/heads/master | 2021-05-04T11:24:08.703541 | 2017-12-16T18:19:35 | 2017-12-16T18:19:35 | 46,077,871 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from django.contrib import admin
from app.models.models import UserProfile, Event, SwipeAction
class UserProfileAdmin(admin.ModelAdmin):
list_display = (
'full_name',
'num_votes',
'num_right_swipes',
'num_left_swipes',
'num_views',
'age',
... | [
"eleyine@gmail.com"
] | eleyine@gmail.com |
d0d85506bedc1b3fd956f4a58667a48b4a024fe7 | 889a615a4c503ff7c7452af55965f77b5c086beb | /venv/Scripts/easy_install-3.7-script.py | d4a1f8247617c92a91022bd1cedeccbb4b65ab19 | [] | no_license | james98k/tvs | 1a4e275df35033e1cf7d8116f21a76e739f19baa | 6aaee124ffe0c1340df9295f0b00867a84f8f125 | refs/heads/master | 2022-01-10T12:58:18.900680 | 2019-07-02T21:05:49 | 2019-07-02T21:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!C:\Users\jr\PycharmProjects\FYP\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==28.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... | [
"maricaneston38@gmail.com"
] | maricaneston38@gmail.com |
1fa21a996ce86ac5fad72af0eec2946f98dd82bf | dc1c83330a8639edefec09dd688dd6830acc43b0 | /urls.py | 3f72d3f20e1ab074f0e3000c676307bcac83d594 | [] | no_license | bradleysp/glbrc-task | f96436a498c6090f49bcd356f2ba518526ba669a | 204a0faddce8d0580a65868be4be77a512907b06 | refs/heads/master | 2021-04-15T04:58:24.894625 | 2016-07-24T19:21:44 | 2016-07-24T19:21:44 | 64,081,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth import views as auth_views
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'mysite.app.views.home', name='home'),
... | [
"bradleysp@vcu.edu"
] | bradleysp@vcu.edu |
141c53674db1533ee152ffe3d7fa8435892d9e7c | 08a80a4862ab321e6d8327d2824910d3d98bf7be | /SD-Card-Contents/usr/bin/python2.7-config | eb2cf9ab507c312a065c8a450e68e89bb7311a7c | [] | no_license | farseeker/pirate-3d-buccaneer | 2afc779d2b99219fc4594d7453554fc815f78ffd | fe8b3ac16d7df09571fcc0c540cfb6476b8a7d71 | refs/heads/master | 2022-10-31T14:02:20.851024 | 2018-03-06T01:47:37 | 2018-03-06T01:47:37 | 123,995,114 | 1 | 1 | null | 2022-10-27T19:36:48 | 2018-03-06T00:06:58 | C++ | UTF-8 | Python | false | false | 1,668 | #!/usr/bin/python2.7
import sys
import os
import getopt
from distutils import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
def exit_with_usage(code=1):
print >>sys.stderr, "Usage: %s [%s]" % (sys.argv[0],
... | [
"markness@gmail.com"
] | markness@gmail.com | |
39833c3be9db4f6ed802fb2998b4e637175c6a75 | d2d906d703e2e43b1a1c42eb6791a30fef604377 | /real_coded_ga.py | fde85314666d5815b8ac01e8a0b9e4c0390ef586 | [] | no_license | HaRshA10D/mlda | d0f087aa343cdb26fa7e218eb25353a9730807cf | dfe320382a7f34a821fd7555b823c1f9249a4b9e | refs/heads/master | 2021-01-18T13:16:46.052584 | 2017-09-15T18:16:13 | 2017-09-15T18:16:13 | 100,375,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 1 17:26:43 2017
@author: Harsha SlimShady
"""
import math
import random
import matplotlib.pyplot as plt
import numpy as np
class ga(object):
def __init__(self,chromosomes):
self.chromosomes = chromosomes
self.length = len(self.c... | [
"noreply@github.com"
] | HaRshA10D.noreply@github.com |
348eb95db9fc5e986182b6cff1ec5152971d3c32 | ffa6bf9120a279e848e71c7ac3fc34133d3b6e1a | /scripts/gan/cycle_gan/prepare_data_for_cyclegan_from_dataset.py | 0d1c1dcdbf960ba05211c6f81e8826740d51dfea | [
"MIT"
] | permissive | hiroyasuakada/ros_start | 8f820f1cbed667706371231139e644e4d4417bcb | 10221ad2bcaefa4aaadc6c90424a3751126ac256 | refs/heads/master | 2022-11-18T02:03:34.357524 | 2020-07-16T01:30:27 | 2020-07-16T01:30:27 | 219,941,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,460 | py | # generate data from bag images
from PIL import Image
from pathlib import Path
import os, glob # manipulate file or directory
import numpy as np
import cv2
import matplotlib.pyplot as plt
class DataArrangement(object):
def __init__(self, height, width):
self.height = height
self.width = width
... | [
"hiroyasu071213@gmail.com"
] | hiroyasu071213@gmail.com |
b4122b3750f41b40ecd8b04fe0a7bc8cfceb9f07 | d72b18f827dcde06ec779a14fae94501063f1077 | /other_not _important/stalkingWhSite/stalkingWhSite/settings.py | 0dc372459567297ed9d069d6d2e1266e981fb2da | [] | no_license | cflowers007/stalkingWh | ff5fc11f82d5d4ea653e6d3083b7cad9bdef2f5a | d09b30b8757fffb52965c1e648c616af3b2b5f0a | refs/heads/master | 2022-11-06T03:24:26.839884 | 2020-06-17T22:52:15 | 2020-06-17T22:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | """
Django settings for stalkingWhSite project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
i... | [
"ro0trexustom@gmail.com"
] | ro0trexustom@gmail.com |
bc4d8fdf44a8f6da59b0a8ead9eefac7907e6a29 | b3455474da0bc27c913ff88908be0d0bddba352d | /5.AI/1.Machine Learning/196_mushroom_train2.py | 0919272787d2e7922608902f2ded949c86259dab | [] | no_license | rntva/JumpToPython | 7286bc94e40b553fa7b9fbca7934f2e35f63b54e | 090f0ed5bf28ae7832e5edde11936b71b4fb324b | refs/heads/master | 2021-05-01T02:33:44.528975 | 2018-07-18T08:24:07 | 2018-07-18T08:24:07 | 121,182,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
from sklearn.model_selection import train_test_split
#데이터 읽기
mr = pd.read_csv("mushroom.csv", header=None)
#데이터 내부의 분류 변수 전개
label = []
data = []
attr_list = []
for row_index, row in mr.iterrows() :
label.append(row.... | [
"ltrodl@gmail.com"
] | ltrodl@gmail.com |
fedb6ed76a5d7115dd820e753d6a9561b86a1f9e | 36e27ca74b734994fb2e5cd4e328e7b82202d8cd | /nodarb/migrations/0007_nodarb_tips_rada.py | 23417ec23dc96ae31da304e4df5cc8abde817eeb | [] | no_license | svabis/vf | 5e9513f3a767a9561e2fb8bd3e37bb3c03d113dd | d83a4afd177e4f7007a9ce824ae5ed36f18654fc | refs/heads/master | 2020-05-21T21:19:59.952463 | 2018-06-04T11:11:50 | 2018-06-04T11:11:50 | 84,647,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nodarb', '0006_auto_20170311_1644'),
]
operations = [
migrations.AddField(
model_name='nodarb_tips',
... | [
"fizmats@inbox.lv"
] | fizmats@inbox.lv |
4c0e5007846ba8c267aa7f7fee3d08e596137394 | 3953ee8faa83677c4470242adc45315acd353eff | /src/core/matpy.py | 86cda02cd0b1b22295f1f42a69eb4f542bacc132 | [
"BSD-2-Clause"
] | permissive | zutshi/S3CAMR | 83be6ba820207273e6f4b81c55d737b48b097e2a | e7a354137729fcc1f87e647efc8d91e5cd40c83d | refs/heads/master | 2021-05-04T11:52:09.707263 | 2019-06-25T00:37:11 | 2019-06-25T00:37:11 | 51,499,986 | 4 | 0 | null | 2016-03-29T22:01:38 | 2016-02-11T07:22:38 | Python | UTF-8 | Python | false | false | 3,616 | py | # -*- coding: utf-8 -*-
###############################################################################
# File name: matpy.py
# Author: Aditya
# Python Version: 2.7
#
# #### Description ####
# Provides an interface between Python and their counterpart Matlab functions.
# The primary reason for suc... | [
"aaditya.zutshi@gmail.com"
] | aaditya.zutshi@gmail.com |
a891b7dbf6d6642a5556df699356d8e6d45ea81e | 9eef031728a6cdcd681cad9ba6b0709269383905 | /examples/test/test_analyzer.py | bd467f4878203aa3e45a31a9040cd5ead57b0c12 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | kbeckmann/liteeth | 906b6f30b5d3be28f2bfac91704c7d5ddf26e85e | 54acf9fd76c226d7760294ffde86418e52e0951b | refs/heads/master | 2022-12-24T17:02:42.834415 | 2020-08-24T20:14:35 | 2020-08-24T20:14:35 | 300,029,015 | 0 | 0 | NOASSERTION | 2020-09-30T19:03:51 | 2020-09-30T19:03:50 | null | UTF-8 | Python | false | false | 570 | py | #!/usr/bin/env python3
#
# This file is part of LiteEth.
#
# Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from litex import RemoteClient
wb = RemoteClient()
wb.open()
# # #
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver
analyze... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
7b6b6a70301e291fa4b76eaefb53ca00181d8cf0 | 5806d9dcae364e980baebbd223d942f8cfb2aac4 | /FreshApp/apps.py | 6c1c84f30abb52b504b280c280d95b1b16a06d9a | [] | no_license | Alec-Thoman/DjangoApp | c8c6c65d36f91b31fc01218e059fad32e028dfd4 | 43a6d0df03cc24f0c258ae07e0ce18dc070a8cea | refs/heads/main | 2023-02-25T09:08:03.530584 | 2021-01-16T19:29:39 | 2021-01-16T19:29:39 | 330,227,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class FreshappConfig(AppConfig):
name = 'FreshApp'
| [
"noreply@github.com"
] | Alec-Thoman.noreply@github.com |
15275b6cd87f6c6b72eb7f27a3933696df37ebb2 | 8faa346ec071b7ffec6042ec3260cfe9237894cd | /pythonscripts/WeatherSearchAPI_V1.py | 1f1b49af707e32c219f35a106fb5e2fdf9a535d9 | [] | no_license | changdaniel/glocal-data | ce1eb5bb471276a4b898099272d9fd6f2b8b6694 | 9b36106fb7ef3da892968883b953713e4988bbff | refs/heads/master | 2020-05-19T05:29:46.395387 | 2019-05-28T06:56:38 | 2019-05-28T06:56:38 | 184,850,314 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import requests
import json
from pprint import pprint
apikeyfile = open('apikey2.txt', 'r')
api_key = apikeyfile.read()
url = "http://api.openweathermap.org/data/2.5/forecast?id=4887398&APPID=" + str(api_key)
req = requests.get(url)
data = json.loads(req.text)["list"]
pprint(data[0])
count = 0
for day in data:
i... | [
"andrewacomb@dhcp-10-105-173-92.wireless.northwestern.private"
] | andrewacomb@dhcp-10-105-173-92.wireless.northwestern.private |
be55b0d5e4c5fd36d7343e43f82667e2fb40726d | 79ab0f915e2a1820295bebad13def3a74e67da63 | /are_you_the_one/matchups/migrations/0001_initial.py | 5e8815f8f88f8696db1df7495eae0aebca70b1ca | [] | no_license | iamlostcoast/are-you-the-one | d9b9682b293b4a446c2488c3c8c9539ab2d46c4c | 5d6cc7653790bdad4efd6456e3f1395bdc3a68f3 | refs/heads/master | 2020-03-31T06:47:26.201274 | 2018-10-11T05:10:52 | 2018-10-11T05:10:52 | 151,995,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Generated by Django 2.1.2 on 2018-10-06 04:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Participant',
fields=[
('id', models.AutoFi... | [
"evancasebaker@gmail.com"
] | evancasebaker@gmail.com |
9d6f04b80f6977ff3a51d5c3eeb0354b37a1d374 | 6c38257dae2d5550dc04468eb99613128929bb45 | /uproot4/containers.py | 65416c7c6dd643551b7cc3203d208fb70a5b2711 | [
"BSD-3-Clause"
] | permissive | bendavid/uproot4 | 4360b4a8cc5c975ca69c8bdd364d83c8ff2ed81a | d67d431483e7b2b38d01305311438b2a5685566d | refs/heads/master | 2022-11-27T13:50:20.366768 | 2020-07-28T13:50:29 | 2020-07-28T13:50:29 | 284,759,319 | 0 | 0 | null | 2020-08-03T17:08:16 | 2020-08-03T17:08:15 | null | UTF-8 | Python | false | false | 30,654 | py | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE
from __future__ import absolute_import
import types
import struct
try:
from collections.abc import Sequence
from collections.abc import Set
from collections.abc import Mapping
from collections.abc import KeysView
... | [
"noreply@github.com"
] | bendavid.noreply@github.com |
326d73ecb950b3552e26d785ac5d8f60dcbe908b | a56e5614d0103eb7bd33247416f21e009953dd64 | /a3_2_3.py | ead3a6847fcad12183d63cd52daf2b9f16f07907 | [] | no_license | vikrambhatt1405/aircraftdata_spark | f4ae3546df4ef68da53284bf05af25ba3a75e117 | 578980eae66b99d8298ce884230590ec62cb6369 | refs/heads/master | 2021-01-24T04:34:37.774126 | 2018-02-26T09:15:57 | 2018-02-26T09:15:57 | 122,943,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from pyspark import SparkContext, SparkConf
conf = SparkConf().setAppName("FreqCauseofDelay")
sc = SparkContext(conf=conf)
rdd1 = sc.textFile('hdfs:///user/simmhan/faa/2007.csv')
rdd2 = rdd1.map(lambda l:l.split(",")).filter(lambda c: c[3] != "DayOfWeek")
rdd2 = rdd2.filter(lambda x: x[14] != 'NA')
CarrierDelayFreque... | [
"noreply@github.com"
] | vikrambhatt1405.noreply@github.com |
7b5aa9aaf1793ecd9679085c283898340b11608c | 4b1d3e1db447f178499665e1284a3cf201da7c76 | /tools/drug_strength.py | c2d6430f18ce0cf79debb04756aa82c07be79680 | [] | no_license | yajatvishwak/html-scraper | 97c151296ab3ffd8db42b6879f544a2d3ab12b61 | c57c12ffbcdc6437dba858ce37658ec19536dc76 | refs/heads/master | 2023-05-11T21:41:47.691489 | 2021-05-31T08:39:32 | 2021-05-31T08:39:32 | 273,669,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from bs4 import BeautifulSoup
import os
if os.path.exists("./testfile_drug_strength.txt"):
os.remove("./testfile_drug_strength.txt")
if os.path.exists("../processed/drug_strength.txt"):
os.remove("../processed/drug_strength.txt")
with open("../htmlFile/index.html", "r") as html:
file = open("testfile_drug... | [
"yajat472001@gmail.com"
] | yajat472001@gmail.com |
ffb723bce5647ba3b185cf4e227e25b2ff78a4d7 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/frdyon001/question2.py | 26dadb99dfec05c266eb818b46161070e84fcf6d | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | # Student Number: FRDYON001
# Name: Yonela Ford
# 30 Second Rule Expert
# Date: 08 March 2014
def rule():
print("Welcome to the 30 Second Rule Expert")
print("------------------------------------")
print("Answer the following questions by selecting from among the options.")
ans=input("Did anyo... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
43951d7f5587527a42af16d40b357ac2af3970b6 | c46d15e64c588c424db64a0877a7ab69b8e036e7 | /users/migrations/0006_remove_profile_image.py | b233a8a47db9bbcdc01f4042c3a2805aa25ef914 | [
"MIT"
] | permissive | mhdSharuk/CodePanda | 2275e0502a6824593b582ea37956106a7c30f233 | 55ce8e271378df5d27ee7b3d681cca69e0c2ca83 | refs/heads/main | 2023-04-12T03:53:02.249836 | 2021-04-27T16:27:50 | 2021-04-27T16:27:50 | 358,644,908 | 0 | 0 | null | 2021-04-16T15:36:04 | 2021-04-16T15:36:03 | null | UTF-8 | Python | false | false | 325 | py | # Generated by Django 3.2 on 2021-04-18 08:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0005_alter_profile_image'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='image',
),
... | [
"msharuk589@gmail.com"
] | msharuk589@gmail.com |
2c8e40527c2055da598d7f70ad8bf4ae9d304e79 | ba70cd3dcb502fc6f61244c39b1d446c8f43904e | /venv/Scripts/pip3-script.py | df11badebd96ac6cc1352267dfea865e9b7778bd | [] | no_license | MujtabaMohsin/to-read-books | fa623cf1e76485e61acc35918164b05f2fc34965 | b19ac21af0027b3befb753a7d6884e0320483e71 | refs/heads/master | 2023-05-30T16:16:01.802228 | 2021-06-14T09:30:41 | 2021-06-14T09:30:41 | 376,756,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!C:\Users\User\PycharmProjects\udacity-FSND-activity\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"mmjj1010@gmail.com"
] | mmjj1010@gmail.com |
6cab1ca10fac326f54d052e11c35b4e107b1fd20 | e430c2f92a9b984914abf972d2b39c2ec00c8bab | /app/main/views.py | b2698dc24702d70231e25be9656f19fb1c7a31e9 | [] | no_license | wstarxing/test-flask-pcincipal | 72daa0dd664939a24d54b6f8d87f29aaa98492a5 | 3ba8c16eb87f0e03e3d2432f4c5bca6c446563bf | refs/heads/master | 2021-01-14T08:10:29.085230 | 2017-03-09T09:10:49 | 2017-03-09T09:10:49 | 81,930,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,066 | py | # -*- coding: UTF-8 -*-
from flask import *
from flask_login import login_user, logout_user, login_required, current_user
from app.main import main
from app.main.principalsource import *
from app.models.user import *
@main.route('/abc')
@login_required
# @admin_permission.require()
# @user_permission.require()
def ... | [
"wangxxxing@qq.com"
] | wangxxxing@qq.com |
6b9ed7d7db3e9970dd955f1765cc3b822c92fcac | 034d76b114206d8454b2948e370e43e91153fce8 | /readLabels.py | 70a2bd2b0d9c14ad9399b0bb7c4b3399539e9f5f | [] | no_license | bharadwaj221-zz/TaxonomyAlignment | d921fbec8f56defddcd7a4ae20814700bead34c1 | 994737ddf976ed3c2c192e815975822847bcef13 | refs/heads/master | 2021-05-29T18:06:34.273743 | 2015-04-26T03:15:01 | 2015-04-26T03:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 9 14:31:44 2014
@author: bharadwaj
"""
import sys
import pickle
import string
def getLabel(level, allLabels, category):
if category in allLabels[level]:
return allLabels[level][category]
else:
return '###'
def readLabels(inputFilen... | [
"ec2-user@cam-dev04.production-mr.indix.tv"
] | ec2-user@cam-dev04.production-mr.indix.tv |
6922447130d990d6a1abd8c44c4d5766c07bbb61 | 6d4c0faa73635a7fbd37aa316250996019f069ee | /app/models.py | 713dd92387e77759c6350b02591cf582c5d4cbbb | [] | no_license | eddieberklee/django-template | d93ad4d9c3145b1cf34348678418f43ec7a353d8 | 7b9bc08937f194e4d4f3a833e1fc46254391c44d | refs/heads/master | 2021-01-01T05:30:22.036116 | 2013-08-03T22:27:19 | 2013-08-03T22:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.db import models
# Create your models here.
# Example
# class Note(models.Model):
# title = models.CharField(max_length=255
| [
"eddieberklee@gmail.com"
] | eddieberklee@gmail.com |
5a5b030a3e1b921dcd9ff11aa64c481c8b75bfb7 | 367f6473dfec2768511c559c5d0ac9b77efcc9ba | /mapsite/asgi.py | 0a6c89142de5ffa20a6222b7cd2f612432b7a887 | [] | no_license | nancyhoangd/uvadirect | 7028f9dc41a44d2469986c6f2f6b9aea214caa65 | 671a531cf817736610cccf811c2b70ae8bea4de3 | refs/heads/main | 2023-04-25T15:47:25.373055 | 2021-05-06T19:27:41 | 2021-05-06T19:27:41 | 368,327,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for mapsite project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"aam8mf@virginia.edu"
] | aam8mf@virginia.edu |
8651ed35b2eb2e819fafde9dad2ea2b5c37309a2 | 9354603c34bd8e0e477f8777054dbd775c994ea4 | /webhr/urls.py | b8fc022d061ed07a32c02af440fd47c815a9bd56 | [] | no_license | Drjimoh/the-hr-project | 8c661ee2b5052b8e919dfcdb75827246bcf8d8ea | fc5d2085c7d4da0326cedc66342b0f9f058136d5 | refs/heads/master | 2020-05-20T16:20:02.217053 | 2019-05-08T18:58:44 | 2019-05-08T18:58:44 | 185,664,268 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """webhr URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"waliu.jimoh@yahoo.com"
] | waliu.jimoh@yahoo.com |
87f1b3a99f14a6c990640b36e039893ecae3e2a3 | 92ae7f3e789e29e28bfcedce0c9de12ed2a031ed | /exercicio17.py | 3eb6e999fa1df71901ef1daa627ea1237ad6c79e | [] | no_license | marcosfujimoto/exercicios_udemy | 5737e91cd20fb1b32bfe0fb1a156de72da79c659 | 0a0dd15072a804e09aabdddba9efdce6881d45a6 | refs/heads/main | 2023-08-03T05:37:39.891295 | 2021-09-09T15:43:05 | 2021-09-09T15:43:05 | 404,775,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #Esse programa mostra o maior e menor número depois de uma entrada
a= float(input("Digite um número: "))
b= float(input("Digite um segundo número: "))
c=float(input("Digite um terceiro número: "))
if a>b and a>c:
print(f"O maior número é:", a)
elif b>a and b>c:
print(f"O maior número é:", b)
else:
print(f"... | [
"marcosacfujimoto@gmail.com"
] | marcosacfujimoto@gmail.com |
90fb19f58923debadd698c8a9a76793b115af96d | dd8fadc12b7c89609031e6f19c336457b2e7f314 | /test/test_myStrategy.py | 73bf0735e13ea29147cf69d72574cce2475211a8 | [] | no_license | Sandy4321/ai_cup_2015_code_race | 59c86ae5d61f9c2656e327dd818a8e153aec3c5f | 15cc6d7f79aa7be495fe115c478917f85218fcc1 | refs/heads/master | 2020-05-31T15:32:40.612880 | 2016-11-16T14:29:14 | 2016-11-16T14:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from unittest import TestCase
from debug.ObjectLoader import *
from MyStrategy import MyStrategy
from model.Move import Move
class TestMyStrategy(TestCase):
def test_move(self):
me, world, game = load_objects()
strategy = MyStrategy()
move = Move()
strategy.move(me, world, game, m... | [
"enorone@gmail.com"
] | enorone@gmail.com |
d8e1132a217349048e8003e0bf7d2a90d7ca14d3 | 763ab1610133ba5b1129181a762ba00094f4755f | /ex43.py | 4eb102a063b85b267cc036ab4b0a867c28c70ac1 | [] | no_license | siddhartha-chandra/LPTHW | 3487ba2a7e0babceae28845791589baa5e3aabbb | 38dcafd008277a4b40984b4ca60faee41893ea66 | refs/heads/master | 2021-01-11T00:03:19.095451 | 2016-10-25T19:41:21 | 2016-10-25T19:41:21 | 70,763,783 | 0 | 0 | null | 2016-10-25T19:41:21 | 2016-10-13T03:04:27 | null | UTF-8 | Python | false | false | 8,736 | py | from sys import exit
from random import randint
class Scene(object):
def enter(self):
print "This scene is not yet configured. Subclass it and implement enter()."
exit(1)
class Engine(object):
def __init__(self, scene_map):
self.scene_map = scene_map
def play(self):
curr... | [
"siddhartha.chandra0112@gmail.com"
] | siddhartha.chandra0112@gmail.com |
d278389107f46520c3e1cf7dc30dca6620ea1ed4 | 7f3cdb68feb469e1bfb0f324facb0fa3e773a2e9 | /tutorial/tests/test_login_2.py | 073bbbb7da50e23b9fc4c0d7363431ec30d84efd | [] | no_license | qdoan1651/OrangeHRM | 460c840586d6ab444ad069d20e129df636276a98 | 67044eb7aab64a47b9fbfdf846ed43586cadd4ad | refs/heads/master | 2021-01-25T13:06:27.980187 | 2020-04-07T19:30:22 | 2020-04-07T19:30:22 | 64,992,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | '''
@author: Raghav Pal
https://www.youtube.com/watch?v=BURK7wMcCwU&t=1538s
Selenium Python Small Sample Project | Page Object Model POM
Implement Page Object Model [20:00]
'''
import unittest, time, os
from selenium import webdriver
from tutorial.pages.login_page import LoginPage2
from tutorial.pages.home_page import ... | [
"qdoan1651@gmail.com"
] | qdoan1651@gmail.com |
3cfc9fcf32d42fa790cbc667c7409a210c97a2f2 | 1aaa2a556cb79f423baaa9ea5b98de960deabd4e | /nlc.py | 7a30c8509b6a36f5c760ebb6aff5cb97a361f859 | [] | no_license | IBMLeo/Watson-Legal | 3e28d016b08204a028b19fe49a5dd84e2f05c64f | ff86a697efe75fe76aae2d7e086adda9ae0c2333 | refs/heads/master | 2020-04-23T16:12:07.291942 | 2019-02-18T14:49:47 | 2019-02-18T14:49:47 | 171,290,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from sklearn import model_selection, preprocessing, linear_model, naive_bayes, metrics, svm
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from sklearn import decomposition, ensemble
from sklearn.naive_bayes import GaussianNB
import pandas, xgboost, numpy, textblob, string
import os
from f... | [
"Leonardo@MinideLeonardo.isc.br.ibm.com"
] | Leonardo@MinideLeonardo.isc.br.ibm.com |
a53ec68b0e8ce40a7cda19097562ab614461ffc1 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py | 6a5fa1d94277dc9ee39c696ded14e23b17d938e6 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,185 | py | """Support for installing and building the "wheel" binary package format.
"""
import collections
import compileall
import contextlib
import csv
import importlib
import logging
import os.path
import re
import shutil
import sys
import warnings
from base64 import urlsafe_b64decode, urlsafe_b64encode
from email.message im... | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
6da05ce10f3fc2835fb017f6b5c4b41940d294a7 | 8b3e6319a91aaea381ff6dac26ddbe6018b75dd2 | /test/functional/interface_rest.py | 1ad80b5ba6d8a76d2bcb29b38f5c676a08e9f98b | [
"MIT"
] | permissive | JihanSilbert/Titan | 9ddd7d57a6fa59501ac748c853ef5ff3a12ba51e | 4dfd180ca8518c3ba7160c6cf113eb4e1237c42d | refs/heads/master | 2020-08-15T16:07:37.998031 | 2019-10-19T10:45:49 | 2019-10-19T10:45:49 | 215,368,860 | 0 | 0 | MIT | 2019-10-15T18:27:27 | 2019-10-15T18:27:27 | null | UTF-8 | Python | false | false | 15,081 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The Titancoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the R... | [
"info@jccoin.co"
] | info@jccoin.co |
30e9ec7a26838f6419b32d07ae9170643ae83701 | d93832e698d65bc09858ab3b78594ab1ae87494f | /python/chart/feature_tests.py | ae92d271c9d94065f1d1cab16e54fab95d1010c8 | [
"Apache-2.0"
] | permissive | cbrew/chartparse | bb3ac69f4185f8f8e82b2d5345101b5c648589a1 | 1b93fc73d73bb2c5ac6ff5d55cc250a5f4565428 | refs/heads/master | 2020-05-24T12:55:14.305942 | 2014-08-05T22:45:53 | 2014-08-05T22:45:53 | 6,537,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,754 | py | """
feature tests
=============
We need to be sure that the chart does the right thing
with complex categories. Specifically, if we have a
bare determiner
::code
det
in some cell of the chart, and an edge proposed adding
::code
det(num:sing)
we should not do so, since that is duplicative. Equally, when we
ad... | [
"cbrew@acm.org"
] | cbrew@acm.org |
c7d86bf851fda7dde5e28313f496c7c66a86cd6f | 0c98435987df858aa25df6db6f6110076e46a800 | /randomPassword.py | 6f21f6b7db39fbe3cada73eaace9952108cf8933 | [
"MIT"
] | permissive | mk-knight23/hello-Mk | 218df4ef0382353d0837d4943d6eafde1ede320e | 51ed1af9ded630328aa2535c048f06a85dc9029d | refs/heads/main | 2023-08-29T18:12:33.768112 | 2021-11-06T15:24:58 | 2021-11-06T15:24:58 | 335,338,799 | 1 | 2 | MIT | 2021-10-13T05:34:49 | 2021-02-02T15:42:20 | HTML | UTF-8 | Python | false | false | 142 | py | import random
k="abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#@!][}{?¿%&"
len = 12
p="".join(random.sample(k,len))
print(p)
| [
"noreply@github.com"
] | mk-knight23.noreply@github.com |
140cc07b959bb90f2ddd870de64a3881a6e885bc | 24cd8ef47e6afd2883836ee69f2de95da97ccebd | /system.py | 33f89b8abbd47a3aaffd745808ced2321692974d | [] | no_license | joaowinderfeldbussolotto/TrabalhoFinalAlgoritmos | 8ea35e9cde02624e25bf75536d508de7827ca122 | 753d384cb57eb4e2ef10690cd5a0e5281b0c7529 | refs/heads/main | 2023-08-13T22:35:55.788565 | 2021-09-24T19:36:51 | 2021-09-24T19:36:51 | 409,734,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,315 | py | from models.user import *
from utils.persistence import *
from utils.helper import *
from models.cartItem import *
from time import sleep
#create_table_products()
#create_table_users()
def main() -> None:
loggedUser = None
menu()
def menu(loggedUser = None) -> None:
sleep(1)
print('===============... | [
"joaowinderfeldbussolotto@gmail.com"
] | joaowinderfeldbussolotto@gmail.com |
3d0de491cc84f31ed3d96fa5ed6bc7a73bae9020 | a5c14053b5a763dd9bbe28a0a9c34a88bc280584 | /app/admin/views.py | 1b1505c53465756ff2c71231a41296616627a067 | [] | no_license | smile0304/flask_movie_project | dbcbda194438d324fa89e682f3f8c5e1abf0ae53 | c228821bf90468af8d20f9632ad4e2735c0c7239 | refs/heads/master | 2021-06-25T09:05:34.090540 | 2017-09-11T13:02:06 | 2017-09-11T13:02:06 | 103,136,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,397 | py | #coding:utf8
from . import admin
from flask import render_template,redirect,url_for,flash,session,request,abort
from app.admin.forms import LoginForm,TagForm,MovieForm,PrivateForm,PwdForm,AuthForm,RoleForm,AdminForm
from app.models import Admin,Tag,Movie,Preview,User,Comment,Movicecol,Oplog,Adminlog,Userlog,Auth,Role
f... | [
"smile@smilehacker.net"
] | smile@smilehacker.net |
3c3353fd4690ad220cbbd644ee0bf66566894884 | dbd65739cd4303679c4d81726982ba7b557c812c | /backend/objs/ReminderEntry.py | 298ca6241a0a27a9ad5ebb744cf24719118b2728 | [] | no_license | hnjitlh/SITE_2 | 680f49c9288aff3e52485b6f7a9487370e82ba8e | 02a654813bd118d78df29b2b78e37fe72c145772 | refs/heads/master | 2022-03-19T12:26:17.669016 | 2019-11-10T03:35:36 | 2019-11-10T03:35:36 | 220,728,996 | 0 | 0 | null | 2022-02-13T11:50:35 | 2019-11-10T02:02:54 | HTML | UTF-8 | Python | false | false | 542 | py | from app import db
from datetime import datetime
from .Messages import Message
class ReminderEntry(db.Model):
entry_id = db.column(db.Integer, primary_key=True)
user_id = db.column(db.Integer, db.ForeignKey('user.id'), nullable=False)
message = db.column(db.Integer, db.ForeignKey('message.msg_id'), nullab... | [
"berry64@outlook.com"
] | berry64@outlook.com |
371ee8cb4b4f7e37636a6fbfe01b1f1ba8180744 | f8b5aafac15f408a48fabf853a918015c927e6fe | /bk_tomo/venv/venv27/bin/openstack | ef4239b2369d1cd6ac9e4daa1bf696a84ace7ec5 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/tomo/venv/venv27/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from openstackclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp | |
b3dbee07bc3f3d9638fb8808a02fe6c8648b9872 | 8aca460c3b6e25826a1d385d6b23f837dedfce7a | /dihash/hash_impl.py | 819d2a2513d7545a8c6ae4bc590e91dbbdb9abd2 | [
"MIT"
] | permissive | calebh/dihash | 24d2255de20cabd9c574843157bef0605121c088 | 5b5c13b295915fb582b334a0ca82246bdf75a04e | refs/heads/master | 2023-06-09T14:56:30.112485 | 2023-05-24T23:15:35 | 2023-05-24T23:15:35 | 240,933,328 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,251 | py | import hashlib
import networkx as nx
import pynauty
import math
# Convert a NetworkX graph to a nauty graph
# Input should be a NetworkX digraph with node labels represented as strings, stored in the 'label'
# field of the NetworkX node attribute dictionary
def nauty_graph(g):
# Map each node to a natural number 0... | [
"caleb.helbling@yahoo.com"
] | caleb.helbling@yahoo.com |
4c4409f87b3e88223ff6038724d1ce3c7a819609 | e4ea05e525feb006f1aa4e50ea8f11379b7ceff4 | /server.py | 5c34bbaed2f6b660cb6e5d6b627cc0f957514de2 | [
"MIT"
] | permissive | datopian/resolver | e1d141cf35ef0f588f95754b74810be84df55882 | a897a90021432691ace81974dd261e48ee34fc95 | refs/heads/master | 2021-09-14T16:33:35.775866 | 2018-05-16T05:52:33 | 2018-05-16T05:52:33 | 98,884,698 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | import os
import logging
from flask import Flask
from flask_cors import CORS
import flask
from resolver import make_blueprint
SERVICE_NAME = os.environ.get('DATAHUB_SERVICE_NAME', 'resolver')
# Create application
app = Flask(__name__, static_folder=None)
# CORS support
CORS(app, supports_credentials=True)
@app.e... | [
"irakli.mchedlishvili@datopian.com"
] | irakli.mchedlishvili@datopian.com |
a7c4980bb01592141cea84dc3aad994dd75b58bd | b5e7243aa9d0e00e9017aa0324a901d0bde0570e | /task.10.py | d90a855b49177cdcf4f37ec70db0d8b411908a19 | [] | no_license | Lekhasreesangeetham/Lekha-python | 94cea2609b14ee73e53a2f1d5d7d20ea85c5a8b3 | 096dbe4f18e175e59147da250e03cdf616685ba6 | refs/heads/main | 2023-08-05T08:19:03.902187 | 2021-09-24T06:30:22 | 2021-09-24T06:30:22 | 403,986,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | a=input("enter a string")
b=a[::-1]
if(a==b):
print("given string is a palindrome")
else:
print("given string is not a palindrome")
| [
"noreply@github.com"
] | Lekhasreesangeetham.noreply@github.com |
c82fba8ab01d1d077471b17f9aead11553d75109 | f24edb38dd4f7de8a7683afbbc9ab2a4237a361e | /venv/lib/python3.6/site-packages/pip/_internal/network/auth.py | 64c6fd42fd13ad6212d709ee2ae711d0ca0f6507 | [] | no_license | ngecu/automate_django_data_filling | 882220f84a6b4af5484d4b136c740a803ccccfd2 | d6b7095904878f06e4aae6beb2156113a6145c21 | refs/heads/main | 2023-02-26T02:36:26.582387 | 2021-01-31T15:50:22 | 2021-01-31T15:50:22 | 317,846,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,537 | py | """Network Authentication Helpers
Contains interface (MultiDomainBasicAuth) and associated glue code for
providing credentials in the context of network requests.
"""
import logging
from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
from pip._vendor.requests.utils import get_netrc_auth
from pip._vendor.si... | [
"devngecu@gmail.com"
] | devngecu@gmail.com |
f59f062c20bb92420bb4ec172e9e3f763356ef80 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/quiz04_20200628163202.py | 43cf11c468754194ccbd6ea39f998db2cd2226d8 | [] | 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 | 826 | py | # 당신의 학교에서는 파이썬 코딩 대회를 주최합니다.
# 참석률을 높이기 위해 댓글 이벤트를 진행하기로 하였습니다.
# 댓글 작성자들 중에 추첨을 통해 1명은 치킨, 3명은 커피 쿠폰을 받게 됩니다.
# 추첨 프로그램을 작성하시오.
# 조건 1: 편의상 댓글은 20명이 작성하였고 아이디는 1~20 이라고 가정
# 조건 2: 댓글 내용과 상관 없이 무작위로 추첨하되 중복 불가
# 조건 3: random 모듈의 shuffle과 sample을 활용
# (출력 예제)
# -- 당첨자 발표 - -
# 치킨 당첨자: 1
# 커피 당첨자: [2, 3, 4]
# -- 축하합니다... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
fc04e12dcdbbafa967a840973bd3e33969b3becb | 54b7bae79af992c149c644c21a8fa09313841449 | /Demo/SVM/svmMLiA.py | 1f86b194b77772aa9bc3a153a8814b0e320d8405 | [
"Apache-2.0"
] | permissive | ViatorSun/GitChat_CNN | 75f9542364c9a51a467d69625cc219e8f2a6795d | d2f16eb2d108afa58ab31e09956424af22d96c47 | refs/heads/master | 2021-07-11T15:09:03.579803 | 2019-01-22T16:00:55 | 2019-01-22T16:00:55 | 143,283,383 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,182 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2018.
# @Author : 绿色羽毛
# @Email : lvseyumao@foxmail.com
# @Blog : https://blog.csdn.net/ViatorSun
# @Note : 功能实现
from numpy import *
# from time import sleep
def loadDataSet(fileName):
dataMat = []; labelMat = []
fr = open(fileName)
f... | [
"noreply@github.com"
] | ViatorSun.noreply@github.com |
62fa5b544c8111890d1b4fd3779bb0e5afef0918 | 5e83d62064ea4fd954820960306fb06cc8f0f391 | /ecommerce2/settings/__init__.py | 53cfe2179c4f250cc57fedca627640353c668e53 | [] | no_license | bharatkumarrathod/cfe_ecommerce2_RESTapi | eff2fad0cbff7cb3def2c13de282b085aba7291d | a081cdbf10c1fbde58e128b9c9b287443c726071 | refs/heads/master | 2020-12-25T21:43:44.166109 | 2015-10-27T21:04:19 | 2015-10-27T21:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from .base import *
try:
from .local import *
except:
pass
try:
from .production import *
except:
pass
| [
"carlofusiello@gmail.com"
] | carlofusiello@gmail.com |
dd4e74a77ce8690082c0f3839317d11c0ef60a3b | b73071a23f22e025f2c723654160e1cc5722cb4b | /cuadruplos.py | d68c9f384365369ae4c68b53e8ee8b094fdb4a41 | [] | no_license | omarcarreon/drawmycode | d6c381910906381d5a56209b23b4a22965fd6945 | aa62bf0f3caec411c876ff4a041afd328d025f2b | refs/heads/master | 2021-05-03T06:01:05.084952 | 2016-05-01T23:38:39 | 2016-05-01T23:38:39 | 53,284,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,538 | py | from structs import *
from cubosemantico import *
from tablas import *
from dmcparser import *
import sys
pilaO = Stack()
pOper = Stack()
pTipos = Stack()
pSaltos = Stack()
pEjecucion = Stack()
pDimensionada = Stack()
# Inicia con el index 0
cuadruplos = []
# Inicia con el index 0
contSaltos = 0
actualAccessDIM = 1
... | [
"oomarcarreon@gmail.com"
] | oomarcarreon@gmail.com |
1c74451d6dd86c81bcc9238ce0d1267915d0facd | 2b80bd308a6f768e499927761d64928b8cd9da15 | /job/migrations/0009_auto_20200722_1609.py | d58a3cca04db92c33ef4b9afaa578eb45eacee8e | [] | no_license | karimmerabtane/django_job_board | a0015cfffc4e8b4d68a8db8c9cc2ac1e0c8400f3 | 21238a12c1a6873cf0fb278038bac9b37d51fdea | refs/heads/master | 2023-08-03T20:29:11.957695 | 2020-07-26T23:52:44 | 2020-07-26T23:52:44 | 279,559,386 | 0 | 0 | null | 2021-09-22T19:28:39 | 2020-07-14T10:53:41 | JavaScript | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.0.8 on 2020-07-22 16:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('job', '0008_jobapply_job'),
]
operations = [
migrations.RenameField(
model_name='jobapply',
old_name='job',
new_... | [
"karim.sniper88@gmail.com"
] | karim.sniper88@gmail.com |
917f801689c9521ae3cd9db9f38c779b8466c316 | d695adfe54f6019ecaf3e0ad741391654c348666 | /introduction to requests.py | d6ba2c9e05da2890600a46d9baecdb146a18adf1 | [] | no_license | yangmiaohong/Python-02_codes | 98a048334479b89c877a5d53a515bd03759cdcf4 | 80be2800acdf0ea9493cd91f9a177bb22daf7d15 | refs/heads/master | 2020-06-17T02:11:36.572815 | 2016-11-28T14:58:45 | 2016-11-28T14:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,675 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 12 21:21:16 2016
@author: chen
"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
import requests
#---------------------------------------------------------------
#Make a request
#get method
r = requests.get('http://esf.xm.fang.com/house/... | [
"noreply@github.com"
] | yangmiaohong.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.