seed
stringlengths
1
14k
source
stringclasses
2 values
#endif #ifdef ENS_PRINT_WARN static std::ostream& Warn = arma::get_cerr_stream(); #else static NullOutStream Warn; #endif } // namespace ens
ise-uiuc/Magicoder-OSS-Instruct-75K
Project repo: https://github.com/lindsaymarkward/python-yeelight-sunflower PyPI: https://pypi.python.org/pypi/yeelightsunflower """ from sonoff.main import Hub, Bulb __title__ = 'sonoff' __version__ = '0.0.1' __author__ = '<NAME>' __license__ = 'MIT'
ise-uiuc/Magicoder-OSS-Instruct-75K
'name', 'image', 'status', 'discount', 'has_sub_sub_category' ];
ise-uiuc/Magicoder-OSS-Instruct-75K
urls.RULE_TARGET_LIST, status_code=200, response_model=schemas.BulkPutRuleTargetResponse, )
ise-uiuc/Magicoder-OSS-Instruct-75K
--------- i(th) order statistic, i.e: i(th) smallest element of the input array --------- Time Complexity --------- O(n.logn)
ise-uiuc/Magicoder-OSS-Instruct-75K
def curate_view(df): df = df.dropna() # drop nan df = df.drop_duplicates() # this may tweak indexes, so need to reset that df = df.reset_index(drop=True) # make sure it's sorted according to some order df.sort_index(inplace=True, axis=1) df.sort_index(inplace=True, axis=0) return df """
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->assertTrue(count($result['tracker']['checkpoints']) == 0); $this->assertEquals(200, $result['code']); } function testUPSFailed() { $result = parcel_track()->setTrackingNumber("1Z0V255F04986285")->fetch(); $this->assertTrue($result['error']); $this->assertEquals(400, $result['code']); } function testUPSCheckCarrier() {
ise-uiuc/Magicoder-OSS-Instruct-75K
total: StorageUsage::from_env(), accounts, } } /// total contract storage usage pub fn total(&self) -> StorageUsage {
ise-uiuc/Magicoder-OSS-Instruct-75K
ACTION, API_ACTION
ise-uiuc/Magicoder-OSS-Instruct-75K
public const string LastNameLengthErrorMessage = "The {0} must be at least {2} and at max {1} characters long."; public const int FirstNameMaxLength = 64; public const int FirstNameMinLength = 2; public const int LastNameMaxLength = 64; public const int LastNameMinLength = 2; public const int UserNameMaxLength = 35; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return [ static::ROLE_ADMIN =>'Admin', static::ROLE_MODERATOR => 'Moderator', static::ROLE_SUPPORT => 'Support' ]; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from citrination_client.models.columns.descriptor_converter import DescriptorConverter from citrination_client.models.columns.formulation import FormulationColumn
ise-uiuc/Magicoder-OSS-Instruct-75K
* <pre> * The time the certificate becomes valid. * </pre> * * <code>.google.protobuf.Timestamp start_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) {
ise-uiuc/Magicoder-OSS-Instruct-75K
NAME='fastrouter' CFLAGS = [] LDFLAGS = [] LIBS = []
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>autograde/cli/__init__.py from autograde.cli.__main__ import cli
ise-uiuc/Magicoder-OSS-Instruct-75K
std::string id() const override { return m_port.id(); } std::string kind() const override { return m_port.kind(); } link_status link() const override { return m_port.link(); } link_speed speed() const override { return m_port.speed(); } link_duplex duplex() const override { return m_port.duplex(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
#define private public
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @file aggregate.hpp * @brief Generator combinator for aggregating sequencially generated values into a value with a generator generator */ namespace proptest { namespace util { template <typename T> Generator<T> aggregateImpl(GenFunction<T> gen1, function<GenFunction<T>(T&)> gen2gen, size_t minSize, size_t maxSize)
ise-uiuc/Magicoder-OSS-Instruct-75K
for attribute in attributes: key_string += attribute.get_string_form() return self.attribute_map.get(hash(key_string))
ise-uiuc/Magicoder-OSS-Instruct-75K
class OpenFECLI(CLI): COMMAND_SECTIONS = ["Setup", "Simulation", "Orchestration", "Analysis"] def get_installed_plugins(self): commands = str(pathlib.Path(__file__).parent.resolve() / "commands")
ise-uiuc/Magicoder-OSS-Instruct-75K
[JsonRpcMethod.Authorization]: mockAuthorization } }); OnMessageHandler.handle(request,sender,sendResponse); expect(mockAuthorization).toHaveBeenCalled(); mock.mockRestore() });
ise-uiuc/Magicoder-OSS-Instruct-75K
image.resizable().scaledToFill() Rectangle().background(Color.black).opacity(0.3) } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
## set base network net = utils.get_model(args.net, args.num_classes) if args.num_classes == 2: args.modelpath = args.output_dir_train + '/best_params_auc.pt'
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestLaunchExporter(TestCase): # test with debug option on def test_with_cli_params_1(self): sys.argv = ['prog', '-o', '1234', '-d', '-i', 'inventory.some.url', '-m', 'tests/collector_config.yaml'] parse_params() self.assertEqual(os.getenv('PORT'), '1234', 'The port was not set correctly!') self.assertEqual(os.getenv('DEBUG'), '1', 'Debug was not set correctly!') self.assertEqual(os.getenv('INVENTORY'), 'inventory.some.url', 'Inventory was not set correctly') self.assertEqual(os.getenv('CONFIG'), 'tests/collector_config.yaml', 'Config was not set') # test with debug option off def test_with_cli_params_2(self): os.environ.clear() sys.argv = ['prog', '--port', '1234', '-i', 'inventory.some.url', '-m', 'tests/collector_config.yaml']
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut i = 0; while array.has_element(i)? { let label: IssueLabelDetail = ctx
ise-uiuc/Magicoder-OSS-Instruct-75K
} export interface Response<TYPE = any> { destination: string; error?: any; payload?: TYPE; source: string; type: 'dAPI.js'; } export interface TunnelOptions { source: string; destination: string; postMessage?: PostMessageType; addListener?: AddListenerType;
ise-uiuc/Magicoder-OSS-Instruct-75K
//Properties... public List<ValidationResult<TValidator>> ValidationResults { get; private set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
type Props = { className?: string; exclude?: ExcludeType; isLoading?: boolean; isOpen: boolean; limit?: number; onClear?: () => void; onClick?: () => void; onRemove?: (arg0: number) => void; onSelect: (arg0: string, arg1: number) => void;
ise-uiuc/Magicoder-OSS-Instruct-75K
return True except Exception as why: return False
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './components/components'; export * from './components/hooks'; declare module "shuimo-ui" { } export interface ShuimoUI { install: (app: App) => App;
ise-uiuc/Magicoder-OSS-Instruct-75K
VariantSupport(const ::default_init_tag&);
ise-uiuc/Magicoder-OSS-Instruct-75K
[assembly: AssemblyTitle("SUPREME")] [assembly: AssemblyDescription("Developed by GhostY")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("GTools")] [assembly: AssemblyProduct("SUPREME")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("GTools")] [assembly: AssemblyCulture("")]
ise-uiuc/Magicoder-OSS-Instruct-75K
stats_temp['fixtures'].append(fixture_temp) info_all.append(stats_temp) except KeyError as e: pass return info_all def team_standings(league, year): """Returns team standings"""
ise-uiuc/Magicoder-OSS-Instruct-75K
pc += CGO_sz[op]; ok &= !I->G->Interrupt; } if (ok) { const size_t quant = factor * num_total_connectors; VertexBuffer * vbo = I->G->ShaderMgr->newGPUBuffer<VertexBuffer>(); ok = vbo->bufferData({
ise-uiuc/Magicoder-OSS-Instruct-75K
except KeyboardInterrupt: print(f"\033[31mO usuário preferiu não digitar esse número.\033[m") return 0 except (ValueError, TypeError):
ise-uiuc/Magicoder-OSS-Instruct-75K
</ul> <div class="footer">
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.fixture() def default_mhc(): return utils.load_gdomains_mhc('1ao7') @pytest.fixture() def default_pep(): return utils.load_gdomains_peptide('1ao7') @isolate def test_instantiate_with_seq(): sampler = PeptideSampler('ADCHTRTAC') assert sampler.pep.numAtoms() > 10
ise-uiuc/Magicoder-OSS-Instruct-75K
import { Project } from '@app/shared/api'; import { AppComponentsModule } from '@app/shared/app-components/app-components.module'; import { ProjectStatusComponent } from './project-status.component'; describe('ProjectStatusComponent', () => { let component: ProjectStatusComponent; let fixture: ComponentFixture<ProjectStatusComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [HttpClientTestingModule, AppComponentsModule], declarations: [ProjectStatusComponent],
ise-uiuc/Magicoder-OSS-Instruct-75K
# Validation set gold file config['val_set_grndtruth'] = ['/mounts/Users/cisintern/huiming/SIGMORPHON/Code/data/forRnn/', '-task' + str(config['the_task']) + '-test_trg'] # Print validation output to file config['output_val_set'] = False # Validation output file config['val_set_out'] = config['saveto'] + '/validation_out.txt' # Beam-size config['beam_size'] = 12
ise-uiuc/Magicoder-OSS-Instruct-75K
mesh = mesher.PrismMesh((0, 100, 0, 200, 0, 50), shape) def fill(i):
ise-uiuc/Magicoder-OSS-Instruct-75K
# File: etl.py # Purpose: To do the `Transform` step of an Extract-Transform-Load. # Programmer: <NAME> # Course: Exercism # Date: Thursday 22 September 2016, 03:40 PM
ise-uiuc/Magicoder-OSS-Instruct-75K
# Try to find into internal wordlists internal_wordlists = [x for x in os.listdir(os.path.abspath(wordlist_base)) if "readme" not in x.lower()] wordlist_choice = "%s.txt" % config.wordlist if ".txt" not in config.wordlist else config.wordlist # Is wordlist available? if wordlist_choice not in internal_wordlists: log.error(" <!> Wordlist '%s' not found." % wordlist_choice) return # Fix wordlist path config.wordlist = os.path.abspath(os.path.join(wordlist_base, wordlist_choice))
ise-uiuc/Magicoder-OSS-Instruct-75K
startMutliInput, startInput,
ise-uiuc/Magicoder-OSS-Instruct-75K
(CentralConfigReader, CentralConfigFetcher.WaitInfoS) ParseHttpResponse(HttpResponseMessage httpResponse, string httpResponseBody); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# # You should have received a copy of the GNU General Public License # along with Nekozilla. If not, see <https://www.gnu.org/licenses/>. """ Various addons and fixes/modifications to the Command, Group, and mixin classes in Discord.py. There are also a bunch of new converter classes here, and some checks and decorators. Note: This is designed to be used in-place of :mod:`discord.ext.commands`.
ise-uiuc/Magicoder-OSS-Instruct-75K
return if not self.users[src]["identified"]: return user = self.users[src]["account"] enabled_chan = configuration.get(self.network, chan, "respond-to-nou", cast=bool) enabled_user = configuration.get(self.network, user, "respond-to-nou", cast=bool) if not enabled_chan or not enabled_user: return # don't say "no u" twice within the same TIMEOUT-second period
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 import { Module } from '@nestjs/common'; import { TaskService } from '../services/task.service'; import { PrismaService } from '../services/prisma.service'; import { TaskResolver } from '../resolvers/task.resolver'; @Module({ providers: [PrismaService, TaskService, TaskResolver], }) export class TaskModule {}
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Carlos-Descalzi/dkide<filename>src/main/java/io/datakitchen/ide/editors/neweditors/container/VariableAssignmentView.java package io.datakitchen.ide.editors.neweditors.container;
ise-uiuc/Magicoder-OSS-Instruct-75K
{'Produto': 'Cerveja', 'Preco': 3.0, 'Em estoque': 10}, {'Produto': 'Chocolate', 'Preco': 7.5, 'Em estoque': 10}, {'Produto': 'Farinha de trigo', 'Preco': 3.75, 'Em estoque': 10}, {'Produto': 'Feijao', 'Preco': 6.0, 'Em estoque': 10}, {'Produto': 'Leite', 'Preco': 3.5, 'Em estoque': 10}, {'Produto': 'Suco', 'Preco': 4.5, 'Em estoque': 10}] # Um carrinho generico para testar carrinho = [{'Produto': 'Cafe', 'Preco': 6.0, 'Em estoque': 20, 'Carrinho': 10, 'Total': 60}, {'Produto': 'Cerveja', 'Preco': 3.0, 'Em estoque': 20, 'Carrinho': 10, 'Total': 30}, {'Produto': 'Chocolate', 'Preco': 7.5, 'Em estoque': 20, 'Carrinho': 10, 'Total': 75},
ise-uiuc/Magicoder-OSS-Instruct-75K
str(self.port) ] self.__shell.execute(command, wait=False, venv=True) # Wait a little while - I'm not using a loop intentionally. time.sleep(5)
ise-uiuc/Magicoder-OSS-Instruct-75K
switch(column) { case CountryRegionCurrencyColumn.CountryRegionCode: return entityData.CountryRegionCode != _originalData.CountryRegionCode; case CountryRegionCurrencyColumn.CurrencyCode: return entityData.CurrencyCode != _originalData.CurrencyCode; case CountryRegionCurrencyColumn.ModifiedDate: return entityData.ModifiedDate != _originalData.ModifiedDate; default: return false; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def profile(self, func, *args, **kwargs): return func(*args, **kwargs) def get_profiler(): if "profiler" not in cache: if PROFILE_SWITCH: cache["profiler"] = Profiler() else: cache["profiler"] = PassThroughProfiler() return cache["profiler"] def profile(func, *args, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
IInputReceiver* m_input_receiver; bool m_input_captured; }; // class engine_impl #endif // #ifdef INGAME_EDITOR
ise-uiuc/Magicoder-OSS-Instruct-75K
{ QString title = trUtf8("消费者本次消费:"); QList<QString> tips; tips << trUtf8("输入消费者的手机号码;"); tips << trUtf8("本次的消费额度(应付);"); tips << trUtf8("若消费者为新用户,系统将会自动替该用户注册,并将注册信息通过短信发送到用户到手机;"); _tipsWidget = new TipsWidget(title, tips, this);
ise-uiuc/Magicoder-OSS-Instruct-75K
//define function to be called externally //linker **need** to find matching name in the object //code generated by NASM extern "C" long long asm_foo(void); //There's a small library of useless functions defined in assembly called library.asm and //a header full of corresponding C extern symbols called library.hpp #include "library.hpp"
ise-uiuc/Magicoder-OSS-Instruct-75K
public static var yellowSea: UIColor {get{return UIColor.colorFromHex(0xFFAD00)}} public static var superNova: UIColor {get{return UIColor.colorFromHex(0xFFCA00)}} }
ise-uiuc/Magicoder-OSS-Instruct-75K
def play(self): snaps.play_note(self.__note) time.sleep(self.__duration)
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo apt-get update
ise-uiuc/Magicoder-OSS-Instruct-75K
aws_secret_key=self.aws_key, aws_sender=self.ses_def_sender,
ise-uiuc/Magicoder-OSS-Instruct-75K
"published": True, "tags": ["test", "hello"],
ise-uiuc/Magicoder-OSS-Instruct-75K
u = num // 1 % 10 d = num // 10 % 10 c = num // 100 % 10 m = num // 1000 % 10 print('Analisando o número {}'.format(num)) print('minhar: {}'.format(m))
ise-uiuc/Magicoder-OSS-Instruct-75K
FLOAT = 'Float' INT = 'Int' PATH = 'Path' STRING = 'String'
ise-uiuc/Magicoder-OSS-Instruct-75K
func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) {
ise-uiuc/Magicoder-OSS-Instruct-75K
# client = writer.get_extra_info('peername') target_w.write(data) try: if target_w.is_closing(): print('已经关闭') break await target_w.drain() except: print('ConnectionResetError') break print('tcp发送机 done')
ise-uiuc/Magicoder-OSS-Instruct-75K
let dict = NSDictionary(contentsOfFile: path) { apiKey = dict["ApiKey"] as! String } guard let url = URL(string: "http://api.openweathermap.org/data/2.5/weather?q=\(city)&appid=\(apiKey)") else {return} URLSession.shared.dataTask(with: url) { (data, _, error) in if let error = error { print(error.localizedDescription) return } guard let data = data else {return}
ise-uiuc/Magicoder-OSS-Instruct-75K
self.inner.clone(), )); // ...poll the future... let result = { let _poll_guard = tracing::info_span!("poll").entered();
ise-uiuc/Magicoder-OSS-Instruct-75K
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
ise-uiuc/Magicoder-OSS-Instruct-75K
import redis class Cache: def __init__(self, host, port): self.conn = redis.Redis(host=host, port=port) def get(self, key): return self.conn.get(key) def sef(self, key, value): self.conn.set(key, value) def hgetall(self, key):
ise-uiuc/Magicoder-OSS-Instruct-75K
class ActivityTest(unittest.TestCase): def test_to_zenobase(self): TAG = "something" activity = Activity(TAG, started_at=datetime.now(), ended_at=datetime.now()) event = activity.to_zenobase_event() self.assertTrue(event["tag"] == TAG)
ise-uiuc/Magicoder-OSS-Instruct-75K
application_reason_codes = db.relationship( 'ApplicationReasonXref',
ise-uiuc/Magicoder-OSS-Instruct-75K
def white(text): return "%s%s%s%s" % (Fore.WHITE, Style.BRIGHT, text, Style.RESET_ALL) def yellow(text): return "%s%s%s" % (Fore.YELLOW, text, Style.RESET_ALL) sys.platform == "win32" and colorama.init() except ImportError: def bright(text): return text def dim(text): return text def red(text): return text def green(text): return text def white(text): return text def yellow(text): return text
ise-uiuc/Magicoder-OSS-Instruct-75K
} async readConfig(
ise-uiuc/Magicoder-OSS-Instruct-75K
module_list = nn.ModuleList() # 存储每一大层,如conv层: 包括conv-bn-leaky relu等 for module_i, module_def in enumerate(module_defs): modules = nn.Sequential() if module_def["type"] == "convolutional": bn = int(module_def["batch_normalize"]) filters = int(module_def["filters"]) kernel_size = int(module_def["size"]) pad = (kernel_size - 1) // 2 # 根据参数选择是否使用depthwise Convolution
ise-uiuc/Magicoder-OSS-Instruct-75K
# pomyślnie przesyłany z jednej goroutine do # drugiej przez nasz kanał. $ go run channels.go
ise-uiuc/Magicoder-OSS-Instruct-75K
use std::process::Command;
ise-uiuc/Magicoder-OSS-Instruct-75K
public all(): Transaction[] {
ise-uiuc/Magicoder-OSS-Instruct-75K
FHA = 0, /// <summary> /// Public and Indian Housing
ise-uiuc/Magicoder-OSS-Instruct-75K
// LanguageError.swift // // // Created by Julian Kahnert on 12.01.20. // enum LanguageError: Error { case languageDetectionFailed }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Created by <NAME> on 16/05/2016 - <EMAIL> # onjoin.py, a plugin for minqlx to automatically display a set message when a player who has set their onjoin message connects. # This plugin is released to everyone, for any purpose. It comes with no warranty, no guarantee it works, it's released AS IS. # You can modify everything, except for lines 1-4 and the !tomtec_versions code. They're there to indicate I whacked this together originally. Please make it better :D # Concepts and code borrowed from names.py by Mino. Thanks a lot! import minqlx _onjoin_key = "minqlx:players:{}:onjoin_message" class onjoin(minqlx.Plugin): def __init__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
fn main() { let mut x = (Test { f: 2 }, Test { f: 4 }); mem::drop(x.0); x.0.f = 3; //~^ ERROR partial reinitialization of uninitialized structure `x.0` }
ise-uiuc/Magicoder-OSS-Instruct-75K
_client = new TcpClient(ip, port); } catch { throw; } } public void Disconnect()
ise-uiuc/Magicoder-OSS-Instruct-75K
setfont fonts/cp437_10x10.png.psf .run/game_term
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!m_impl) throw std::runtime_error{"[Mif::Net::Http::Connection::MakeRequest] Object was moved."}; m_impl->MakeRequest(method, request, std::move(pack)); } bool Connection::IsClosed() const { if (!m_impl)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.AUX_MU_LCR.write(AUX_MU_LCR::DATA_SIZE::EightBit); self.AUX_MU_MCR.set(0); self.AUX_MU_IER.set(0); self.AUX_MU_IIR.write(AUX_MU_IIR::FIFO_CLEAR::All);
ise-uiuc/Magicoder-OSS-Instruct-75K
{children} </td> ); } export default Cell;
ise-uiuc/Magicoder-OSS-Instruct-75K
type.__init__(cls, *args) cls.instance = None def __call__(cls, *args, **kwargs): if not cls.instance: cls.instance = type.__call__(cls, *args, **kwargs) return cls.instance
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->db->insert('categories', $data); } public function get_all_categories() { $this->db->order_by('cat_mobil'); $query = $this->db->get('categories');
ise-uiuc/Magicoder-OSS-Instruct-75K
register.filter('foo_django', foo)
ise-uiuc/Magicoder-OSS-Instruct-75K
cohort.delete(force_policy=SOFT_DELETE_CASCADE)
ise-uiuc/Magicoder-OSS-Instruct-75K
} //根据IP查询发帖记录 if ($request->query('IP') != null) { $posts = Post::suffix($request->query('database_post_num')) ->where('created_IP', $request->query('IP'))->paginate(200); }
ise-uiuc/Magicoder-OSS-Instruct-75K
совершенный: pf несовершенный: ipf """ TEST_DATA = {'test_single_query': {'query': 'фонема'}, 'test_multi_query': {'query': ['фонема', 'морфема']} } class PageParser(Container): def __init__(self, *args, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
export const deleteGroupById = async (req: express.Request, res: express.Response, next: express.NextFunction) => { const groupId = req.body.delete; if (!groupId) { res.status(400).json(GROUP_ID_NOT_PASSED); return next();
ise-uiuc/Magicoder-OSS-Instruct-75K
m = Modification() assert m.version == 1 with it('should create in draft state'): m = Modification() assert m.state == 'draft' with description('A contract'):
ise-uiuc/Magicoder-OSS-Instruct-75K
""" nr = svc.save_request(nr) # Return the updated name request return nr
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>eskemojoe007/sw_web_app # from sw_site.settings.components import BASE_DIR, config # SECURITY WARNING: keep the secret key used in production secret! # SECRET_KEY = config('DJANGO_SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True CORS_ORIGIN_WHITELIST = ( 'localhost:8000', '127.0.0.1:8000', 'localhost:8080', '127.0.0.1:8080',
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash ../build/gomaze --seed --height 10
ise-uiuc/Magicoder-OSS-Instruct-75K
def server_program(): print('Starting Relay Server at ' + host + ':' + str(port)) # show in terminal print('Waiting for clients...') server_socket = socket.socket() # get instance
ise-uiuc/Magicoder-OSS-Instruct-75K
def __call__(self): layer = self.ctx.next_layer(self) try: layer() finally: if self.server_conn.connected(): self.disconnect()
ise-uiuc/Magicoder-OSS-Instruct-75K
nG = np.int_(gvec[:, jG]/[dgx, dgy]) eps_ft[nx + nG1[0], ny + nG1[1]] = ft_coeff[jG] return (eps_ft, gx_grid, gy_grid) def grad_num(fn, arg, step_size=1e-7): """ Numerically differentiate `fn` w.r.t. its argument `arg` `arg` can be a numpy array of arbitrary shape `step_size` can be a number or an array of the same shape as `arg` """
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare class RemoveFocusOutlineConfiguration { /** * The CSS injected for mouse users */
ise-uiuc/Magicoder-OSS-Instruct-75K